{"type": "func", "start": 6443616800, "end": 6443616951, "name": "sub_18011CA20", "pseudocode": "// \n// sub_18011CA20 from 0x18011ca20 to 0x18011cab7 (151 bytes)\n// \n// 2 xrefs:\n// > sub_18011BCB0 @ 0x18011bd59\n// > <???> @ 0x180202204\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_18011CA20(__int64 a1)\n{\n  __int64 result; // rax\n  int v3; // eax\n  int v4; // ecx\n  int v5; // eax\n  bool v6; // sf\n\n  memset(*(void **)(a1 + 120), 0, 8LL * (*(_DWORD *)(a1 + 16) + 1));\n  if ( (unsigned int)sub_1800C0A10(1u) )\n  {\n    result = sub_180064370(a1);\n    if ( (_DWORD)result )\n      return result;\n  }\n  else if ( (unsigned int)sub_1800C0A10(0) )\n  {\n    result = sub_180064600(a1);\n    if ( (_DWORD)result )\n      return result;\n  }\n  else\n  {\n    result = sub_18011C560(a1);\n    if ( (_DWORD)result )\n      return result;\n  }\n  v3 = *(_DWORD *)(a1 + 16);\n  *(_DWORD *)(a1 + 92) += v3;\n  v4 = v3 * (*(_DWORD *)(a1 + 28) + 1);\n  v5 = *(_DWORD *)(a1 + 92);\n  if ( v5 >= v4 )\n    v5 = 0;\n  v6 = --*(_DWORD *)(a1 + 84) < 0;\n  *(_DWORD *)(a1 + 92) = v5;\n  if ( v6 )\n    *(_DWORD *)(a1 + 84) = *(_DWORD *)(a1 + 32) - 1;\n  return 0;\n}", "assembly": "; \n; sub_18011CA20 from 0x18011ca20 to 0x18011cab7 (151 bytes)\n; \n; 2 xrefs:\n; > sub_18011BCB0 @ 0x18011bd59\n; > <???> @ 0x180202204\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; \npush    rbx                                                            ; +0x0, 0x18011ca20\nsub     rsp, 20h                                                       ; +0x2, 0x18011ca22\nmov     eax, [rcx+10h]                                                 ; +0x6, 0x18011ca26\nmov     rbx, rcx                                                       ; +0x9, 0x18011ca29\nmov     rcx, [rcx+78h]; void *                                         ; +0xc, 0x18011ca2c\ninc     eax                                                            ; +0x10, 0x18011ca30\nmovsxd  r8, eax                                                        ; +0x12, 0x18011ca32\nxor     edx, edx; Val                                                  ; +0x15, 0x18011ca35\nshl     r8, 3; Size                                                    ; +0x17, 0x18011ca37\ncall    memset                                                         ; +0x1b, 0x18011ca3b\nmov     ecx, 1                                                         ; +0x20, 0x18011ca40\ncall    sub_1800C0A10                                                  ; +0x25, 0x18011ca45\ntest    eax, eax                                                       ; +0x2a, 0x18011ca4a\njz      short loc_18011CA60                                            ; +0x2c, 0x18011ca4c\nmov     rcx, rbx                                                       ; +0x2e, 0x18011ca4e\ncall    sub_180064370                                                  ; +0x31, 0x18011ca51\ntest    eax, eax                                                       ; +0x36, 0x18011ca56\njz      short loc_18011CA86                                            ; +0x38, 0x18011ca58\nadd     rsp, 20h                                                       ; +0x3a, 0x18011ca5a\npop     rbx                                                            ; +0x3e, 0x18011ca5e\nretn                                                                   ; +0x3f, 0x18011ca5f\nxor     ecx, ecx                                                       ; +0x40, 0x18011ca60\ncall    sub_1800C0A10                                                  ; +0x42, 0x18011ca62\nmov     rcx, rbx                                                       ; +0x47, 0x18011ca67\ntest    eax, eax                                                       ; +0x4a, 0x18011ca6a\njz      short loc_18011CA7D                                            ; +0x4c, 0x18011ca6c\ncall    sub_180064600                                                  ; +0x4e, 0x18011ca6e\ntest    eax, eax                                                       ; +0x53, 0x18011ca73\njz      short loc_18011CA86                                            ; +0x55, 0x18011ca75\nadd     rsp, 20h                                                       ; +0x57, 0x18011ca77\npop     rbx                                                            ; +0x5b, 0x18011ca7b\nretn                                                                   ; +0x5c, 0x18011ca7c\ncall    sub_18011C560                                                  ; +0x5d, 0x18011ca7d\ntest    eax, eax                                                       ; +0x62, 0x18011ca82\njnz     short loc_18011CAB1                                            ; +0x64, 0x18011ca84\nmov     eax, [rbx+10h]                                                 ; +0x66, 0x18011ca86\nxor     edx, edx                                                       ; +0x69, 0x18011ca89\nadd     [rbx+5Ch], eax                                                 ; +0x6b, 0x18011ca8b\nmov     ecx, [rbx+1Ch]                                                 ; +0x6e, 0x18011ca8e\ninc     ecx                                                            ; +0x71, 0x18011ca91\nimul    ecx, eax                                                       ; +0x73, 0x18011ca93\nmov     eax, [rbx+5Ch]                                                 ; +0x76, 0x18011ca96\ncmp     eax, ecx                                                       ; +0x79, 0x18011ca99\ncmovge  eax, edx                                                       ; +0x7b, 0x18011ca9b\nsub     dword ptr [rbx+54h], 1                                         ; +0x7e, 0x18011ca9e\nmov     [rbx+5Ch], eax                                                 ; +0x82, 0x18011caa2\njns     short loc_18011CAAF                                            ; +0x85, 0x18011caa5\nmov     eax, [rbx+20h]                                                 ; +0x87, 0x18011caa7\ndec     eax                                                            ; +0x8a, 0x18011caaa\nmov     [rbx+54h], eax                                                 ; +0x8c, 0x18011caac\nxor     eax, eax                                                       ; +0x8f, 0x18011caaf\nadd     rsp, 20h                                                       ; +0x91, 0x18011cab1\npop     rbx                                                            ; +0x95, 0x18011cab5\nretn                                                                   ; +0x96, 0x18011cab6", "xrefs": ["sub_18011BCB0 @ 0x18011bd59", "<???> @ 0x180202204"], "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"}