{"type": "func", "start": 6443541664, "end": 6443541903, "name": "sub_18010A4A0", "pseudocode": "// \n// sub_18010A4A0 from 0x18010a4a0 to 0x18010a58f (239 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180190580\n// > <???> @ 0x180190590\n// > <???> @ 0x1801b08c0\n// > <???> @ 0x1802017d8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:54:32 +0000\n// \n\n__int64 __fastcall sub_18010A4A0(__int64 *a1)\n{\n  __int64 v1; // rbx\n  __int64 v2; // rcx\n  __int64 result; // rax\n  __int64 v4; // rax\n  unsigned int v5; // edi\n  __int64 v6; // rsi\n  float *v7; // rdx\n  __int64 v8; // rcx\n\n  v1 = *a1;\n  v2 = *(_QWORD *)(*a1 + 168);\n  *(_DWORD *)(v1 + 548) = 0;\n  *(_DWORD *)(v1 + 552) = 1065353216;\n  result = sub_180100F40(v2, 0, (_QWORD *)(v1 + 576));\n  if ( !(_DWORD)result )\n  {\n    _InterlockedOr((volatile signed __int32 *)(v1 + 100), 0x10u);\n    v4 = *(_QWORD *)(v1 + 232);\n    v5 = 0;\n    if ( *(int *)(v4 + 96) > 0 )\n    {\n      v6 = 0;\n      while ( 1 )\n      {\n        v7 = *(float **)(v6 + *(_QWORD *)(v4 + 104));\n        if ( !*(_DWORD *)v7 )\n          break;\n        if ( *(_DWORD *)v7 == 1 )\n        {\n          result = sub_18009C140(v1, v5, *((_DWORD *)v7 + 14));\n          goto LABEL_10;\n        }\n        if ( *(_DWORD *)v7 == 2 )\n        {\n          result = sub_18009BC60(v1, v5, *((_DWORD *)v7 + 12) != 0);\n          goto LABEL_10;\n        }\nLABEL_11:\n        v4 = *(_QWORD *)(v1 + 232);\n        ++v5;\n        v6 += 8;\n        if ( (signed int)v5 >= *(_DWORD *)(v4 + 96) )\n          goto LABEL_12;\n      }\n      result = sub_18009C0C0(v1, v5, v7[14]);\nLABEL_10:\n      if ( (_DWORD)result )\n        return result;\n      goto LABEL_11;\n    }\nLABEL_12:\n    v8 = *(_QWORD *)(v1 + 168);\n    *(_QWORD *)(v1 + 640) = 0;\n    return sub_1800E1DB0(v8, (_QWORD *)(v1 + 648));\n  }\n  return result;\n}", "assembly": "; \n; sub_18010A4A0 from 0x18010a4a0 to 0x18010a58f (239 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180190580\n; > <???> @ 0x180190590\n; > <???> @ 0x1801b08c0\n; > <???> @ 0x1802017d8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:54:32 +0000\n; \npush    rbx                                                            ; +0x0, 0x18010a4a0\nsub     rsp, 20h                                                       ; +0x2, 0x18010a4a2\nmov     rbx, [rcx]                                                     ; +0x6, 0x18010a4a6\nxor     edx, edx                                                       ; +0x9, 0x18010a4a9\nmov     rcx, [rbx+0A8h]                                                ; +0xb, 0x18010a4ab\nlea     r8, [rbx+240h]                                                 ; +0x12, 0x18010a4b2\nmov     dword ptr [rbx+224h], 0                                        ; +0x19, 0x18010a4b9\nmov     dword ptr [rbx+228h], 3F800000h                                ; +0x23, 0x18010a4c3\ncall    sub_180100F40                                                  ; +0x2d, 0x18010a4cd\ntest    eax, eax                                                       ; +0x32, 0x18010a4d2\njnz     loc_18010A589                                                  ; +0x34, 0x18010a4d4\nmov     [rsp+28h+arg_0], rsi                                           ; +0x3a, 0x18010a4da\nmov     [rsp+28h+arg_8], rdi                                           ; +0x3f, 0x18010a4df\nlock or dword ptr [rbx+64h], 10h                                       ; +0x44, 0x18010a4e4\nmov     rax, [rbx+0E8h]                                                ; +0x49, 0x18010a4e9\nxor     edi, edi                                                       ; +0x50, 0x18010a4f0\ncmp     [rax+60h], edi                                                 ; +0x52, 0x18010a4f2\njle     short loc_18010A561                                            ; +0x55, 0x18010a4f5\nxor     esi, esi                                                       ; +0x57, 0x18010a4f7\nnop     dword ptr [rax+00000000h]                                      ; +0x59, 0x18010a4f9\nmov     rax, [rax+68h]                                                 ; +0x60, 0x18010a500\nmov     rdx, [rsi+rax]                                                 ; +0x64, 0x18010a504\nmov     ecx, [rdx]                                                     ; +0x68, 0x18010a508\ntest    ecx, ecx                                                       ; +0x6a, 0x18010a50a\njz      short loc_18010A53C                                            ; +0x6c, 0x18010a50c\nsub     ecx, 1                                                         ; +0x6e, 0x18010a50e\njz      short loc_18010A52C                                            ; +0x71, 0x18010a511\ncmp     ecx, 1                                                         ; +0x73, 0x18010a513\njnz     short loc_18010A54F                                            ; +0x76, 0x18010a516\ncmp     dword ptr [rdx+30h], 0                                         ; +0x78, 0x18010a518\nmov     rcx, rbx                                                       ; +0x7c, 0x18010a51c\nmov     edx, edi                                                       ; +0x7f, 0x18010a51f\nsetnz   r8b                                                            ; +0x81, 0x18010a521\ncall    sub_18009BC60                                                  ; +0x85, 0x18010a525\njmp     short loc_18010A54B                                            ; +0x8a, 0x18010a52a\nmov     r8d, [rdx+38h]                                                 ; +0x8c, 0x18010a52c\nmov     rcx, rbx                                                       ; +0x90, 0x18010a530\nmov     edx, edi                                                       ; +0x93, 0x18010a533\ncall    sub_18009C140                                                  ; +0x95, 0x18010a535\njmp     short loc_18010A54B                                            ; +0x9a, 0x18010a53a\nmovss   xmm2, dword ptr [rdx+38h]                                      ; +0x9c, 0x18010a53c\nmov     rcx, rbx                                                       ; +0xa1, 0x18010a541\nmov     edx, edi                                                       ; +0xa4, 0x18010a544\ncall    sub_18009C0C0                                                  ; +0xa6, 0x18010a546\ntest    eax, eax                                                       ; +0xab, 0x18010a54b\njnz     short loc_18010A57F                                            ; +0xad, 0x18010a54d\nmov     rax, [rbx+0E8h]                                                ; +0xaf, 0x18010a54f\ninc     edi                                                            ; +0xb6, 0x18010a556\nadd     rsi, 8                                                         ; +0xb8, 0x18010a558\ncmp     edi, [rax+60h]                                                 ; +0xbc, 0x18010a55c\njl      short loc_18010A500                                            ; +0xbf, 0x18010a55f\nmov     rcx, [rbx+0A8h]                                                ; +0xc1, 0x18010a561\nlea     rdx, [rbx+288h]                                                ; +0xc8, 0x18010a568\nmov     qword ptr [rbx+280h], 0                                        ; +0xcf, 0x18010a56f\ncall    sub_1800E1DB0                                                  ; +0xda, 0x18010a57a\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xdf, 0x18010a57f\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xe4, 0x18010a584\nadd     rsp, 20h                                                       ; +0xe9, 0x18010a589\npop     rbx                                                            ; +0xed, 0x18010a58d\nretn                                                                   ; +0xee, 0x18010a58e", "xrefs": ["<???> @ 0x180190580", "<???> @ 0x180190590", "<???> @ 0x1801b08c0", "<???> @ 0x1802017d8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}