{"type": "func", "start": 6443613712, "end": 6443613877, "name": "sub_18011BE10", "pseudocode": "// \n// sub_18011BE10 from 0x18011be10 to 0x18011beb5 (165 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016e160\n// > <???> @ 0x18020215c\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:50 +0000\n// \n\n__int64 __fastcall sub_18011BE10(__int64 a1)\n{\n  __int64 result; // rax\n  void *v4; // rcx\n\n  result = sub_1800F5350(*(_QWORD *)(a1 + 72), *(_QWORD *)(a1 + 48), *(_QWORD *)(a1 + 104), 0, 1);\n  if ( !(_DWORD)result )\n  {\n    memmove(\n      (void *)(*(_QWORD *)(a1 + 96) + 8LL * *(_DWORD *)(a1 + 40) * (*(_DWORD *)(a1 + 16) + 1)),\n      *(const void **)(a1 + 104),\n      8LL * (*(_DWORD *)(a1 + 16) + 1));\n    if ( --*(_DWORD *)(a1 + 40) < 0 )\n      *(_DWORD *)(a1 + 40) = *(_DWORD *)(a1 + 32) - 1;\n    _InterlockedExchangeAdd((volatile signed __int32 *)(a1 + 136), 1u);\n    v4 = (void *)qword_1801F2B78[86 * *(unsigned int *)(*(_QWORD *)(a1 + 8) + 69808LL) + 43 * *(int *)(a1 + 168)];\n    if ( v4 )\n      sub_1800C14F0(v4);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_18011BE10 from 0x18011be10 to 0x18011beb5 (165 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016e160\n; > <???> @ 0x18020215c\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:50 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18011be10\npush    rdi                                                            ; +0x5, 0x18011be15\nsub     rsp, 30h                                                       ; +0x6, 0x18011be16\nmov     r8, [rcx+68h]                                                  ; +0xa, 0x18011be1a\nmov     rbx, rcx                                                       ; +0xe, 0x18011be1e\nmov     rdx, [rcx+30h]                                                 ; +0x11, 0x18011be21\nmov     edi, 1                                                         ; +0x15, 0x18011be25\nmov     rcx, [rcx+48h]                                                 ; +0x1a, 0x18011be2a\nxor     r9d, r9d                                                       ; +0x1e, 0x18011be2e\nmov     [rsp+38h+var_18], edi                                          ; +0x21, 0x18011be31\ncall    sub_1800F5350                                                  ; +0x25, 0x18011be35\ntest    eax, eax                                                       ; +0x2a, 0x18011be3a\njnz     short loc_18011BEAA                                            ; +0x2c, 0x18011be3c\nmov     eax, [rbx+10h]                                                 ; +0x2e, 0x18011be3e\nmov     rdx, [rbx+68h]; Src                                            ; +0x31, 0x18011be41\ninc     eax                                                            ; +0x35, 0x18011be45\nmovsxd  r8, eax                                                        ; +0x37, 0x18011be47\nimul    eax, [rbx+28h]                                                 ; +0x3a, 0x18011be4a\nshl     r8, 3; Size                                                    ; +0x3e, 0x18011be4e\nmovsxd  rcx, eax                                                       ; +0x42, 0x18011be52\nmov     rax, [rbx+60h]                                                 ; +0x45, 0x18011be55\nlea     rcx, [rax+rcx*8]; void *                                       ; +0x49, 0x18011be59\ncall    memmove                                                        ; +0x4d, 0x18011be5d\nsub     [rbx+28h], edi                                                 ; +0x52, 0x18011be62\njns     short loc_18011BE6F                                            ; +0x55, 0x18011be65\nmov     eax, [rbx+20h]                                                 ; +0x57, 0x18011be67\ndec     eax                                                            ; +0x5a, 0x18011be6a\nmov     [rbx+28h], eax                                                 ; +0x5c, 0x18011be6c\nlock xadd [rbx+88h], edi                                               ; +0x5f, 0x18011be6f\nmov     rax, [rbx+8]                                                   ; +0x67, 0x18011be77\nmov     ecx, [rax+110B0h]                                              ; +0x6b, 0x18011be7b\nmovsxd  rax, dword ptr [rbx+0A8h]                                      ; +0x71, 0x18011be81\nlea     rcx, [rax+rcx*2]                                               ; +0x78, 0x18011be88\nimul    rax, rcx, 158h                                                 ; +0x7c, 0x18011be8c\nlea     rcx, qword_1801F2B78                                           ; +0x83, 0x18011be93\nmov     rcx, [rax+rcx]                                                 ; +0x8a, 0x18011be9a\ntest    rcx, rcx                                                       ; +0x8e, 0x18011be9e\njz      short loc_18011BEA8                                            ; +0x91, 0x18011bea1\ncall    sub_1800C14F0                                                  ; +0x93, 0x18011bea3\nxor     eax, eax                                                       ; +0x98, 0x18011bea8\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x9a, 0x18011beaa\nadd     rsp, 30h                                                       ; +0x9f, 0x18011beaf\npop     rdi                                                            ; +0xa3, 0x18011beb3\nretn                                                                   ; +0xa4, 0x18011beb4", "xrefs": ["<???> @ 0x18016e160", "<???> @ 0x18020215c"], "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"}