{"type": "func", "start": 6443096496, "end": 6443096641, "name": "sub_18009D9B0", "pseudocode": "// \n// sub_18009D9B0 from 0x18009d9b0 to 0x18009da41 (145 bytes)\n// \n// 3 xrefs:\n// > sub_1800890B0 @ 0x1800890e7\n// > sub_18008A090 @ 0x18008a124\n// > <???> @ 0x1801fad34\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n_OWORD *__fastcall sub_18009D9B0(__int64 a1)\n{\n  int v2; // ecx\n  __int64 v3; // rdx\n  _OWORD *v4; // rax\n  _OWORD *result; // rax\n\n  if ( *(_QWORD *)(a1 + 8) )\n  {\n    v2 = 0;\n    if ( *(int *)(a1 + 16) > 0 )\n    {\n      v3 = 0;\n      do\n      {\n        v3 += 4;\n        ++v2;\n        *(_DWORD *)(v3 + *(_QWORD *)(a1 + 8) - 4) = 0;\n      }\n      while ( v2 < *(_DWORD *)(a1 + 16) );\n    }\n  }\n  memset(*(void **)(a1 + 1320), 0, 4LL * *(int *)(a1 + 1480));\n  v4 = *(_OWORD **)(a1 + 520);\n  *v4 = 0;\n  v4[1] = 0;\n  result = *(_OWORD **)(a1 + 528);\n  *result = 0;\n  result[1] = 0;\n  result[2] = 0;\n  result[3] = 0;\n  result[4] = 0;\n  result[5] = 0;\n  *(_QWORD *)(a1 + 52) = 0;\n  *(_QWORD *)(a1 + 84) = 0;\n  return result;\n}", "assembly": "; \n; sub_18009D9B0 from 0x18009d9b0 to 0x18009da41 (145 bytes)\n; \n; 3 xrefs:\n; > sub_1800890B0 @ 0x1800890e7\n; > sub_18008A090 @ 0x18008a124\n; > <???> @ 0x1801fad34\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18009d9b0\npush    rdi                                                            ; +0x5, 0x18009d9b5\nsub     rsp, 20h                                                       ; +0x6, 0x18009d9b6\nxor     edi, edi                                                       ; +0xa, 0x18009d9ba\nmov     rbx, rcx                                                       ; +0xc, 0x18009d9bc\ncmp     [rcx+8], rdi                                                   ; +0xf, 0x18009d9bf\njz      short loc_18009D9E3                                            ; +0x13, 0x18009d9c3\nmov     ecx, edi                                                       ; +0x15, 0x18009d9c5\ncmp     [rbx+10h], edi                                                 ; +0x17, 0x18009d9c7\njle     short loc_18009D9E3                                            ; +0x1a, 0x18009d9ca\nmov     edx, edi                                                       ; +0x1c, 0x18009d9cc\nxchg    ax, ax                                                         ; +0x1e, 0x18009d9ce\nmov     rax, [rbx+8]                                                   ; +0x20, 0x18009d9d0\nlea     rdx, [rdx+4]                                                   ; +0x24, 0x18009d9d4\ninc     ecx                                                            ; +0x28, 0x18009d9d8\nmov     [rdx+rax-4], edi                                               ; +0x2a, 0x18009d9da\ncmp     ecx, [rbx+10h]                                                 ; +0x2e, 0x18009d9de\njl      short loc_18009D9D0                                            ; +0x31, 0x18009d9e1\nmovsxd  r8, dword ptr [rbx+5C8h]                                       ; +0x33, 0x18009d9e3\nxor     edx, edx; Val                                                  ; +0x3a, 0x18009d9ea\nmov     rcx, [rbx+528h]; void *                                        ; +0x3c, 0x18009d9ec\nshl     r8, 2; Size                                                    ; +0x43, 0x18009d9f3\ncall    memset                                                         ; +0x47, 0x18009d9f7\nmov     rax, [rbx+208h]                                                ; +0x4c, 0x18009d9fc\nxorps   xmm1, xmm1                                                     ; +0x53, 0x18009da03\nxorps   xmm0, xmm0                                                     ; +0x56, 0x18009da06\nmovups  xmmword ptr [rax], xmm0                                        ; +0x59, 0x18009da09\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x5c, 0x18009da0c\nmov     rax, [rbx+210h]                                                ; +0x60, 0x18009da10\nmovups  xmmword ptr [rax], xmm1                                        ; +0x67, 0x18009da17\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6a, 0x18009da1a\nmovups  xmmword ptr [rax+20h], xmm1                                    ; +0x6e, 0x18009da1e\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x72, 0x18009da22\nmovups  xmmword ptr [rax+40h], xmm1                                    ; +0x76, 0x18009da26\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0x7a, 0x18009da2a\nmov     [rbx+34h], rdi                                                 ; +0x7e, 0x18009da2e\nmov     [rbx+54h], rdi                                                 ; +0x82, 0x18009da32\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x18009da36\nadd     rsp, 20h                                                       ; +0x8b, 0x18009da3b\npop     rdi                                                            ; +0x8f, 0x18009da3f\nretn                                                                   ; +0x90, 0x18009da40", "xrefs": ["sub_1800890B0 @ 0x1800890e7", "sub_18008A090 @ 0x18008a124", "<???> @ 0x1801fad34"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}