{"type": "func", "start": 6443615360, "end": 6443615581, "name": "sub_18011C480", "pseudocode": "// \n// sub_18011C480 from 0x18011c480 to 0x18011c55d (221 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016e120\n// > <???> @ 0x1802021bc\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__int64 __fastcall sub_18011C480(__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  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    memset(*(void **)(a1 + 120), 0, 8LL * (*(_DWORD *)(a1 + 16) + 1));\n    if ( (unsigned int)sub_1800C0A10(1u) )\n      result = sub_180064370(a1);\n    else\n      result = (unsigned int)sub_1800C0A10(0) ? sub_180064600(a1) : sub_18011C560(a1);\n    if ( !(_DWORD)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      v6 = --*(_DWORD *)(a1 + 40) < 0;\n      if ( v6 )\n        *(_DWORD *)(a1 + 40) = *(_DWORD *)(a1 + 32) - 1;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18011C480 from 0x18011c480 to 0x18011c55d (221 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016e120\n; > <???> @ 0x1802021bc\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\npush    rbx                                                            ; +0x0, 0x18011c480\nsub     rsp, 30h                                                       ; +0x2, 0x18011c482\nmov     r8, [rcx+68h]                                                  ; +0x6, 0x18011c486\nmov     rbx, rcx                                                       ; +0xa, 0x18011c48a\nmov     rdx, [rcx+30h]                                                 ; +0xd, 0x18011c48d\nxor     r9d, r9d                                                       ; +0x11, 0x18011c491\nmov     rcx, [rcx+48h]                                                 ; +0x14, 0x18011c494\nmov     [rsp+38h+var_18], 1                                            ; +0x18, 0x18011c498\ncall    sub_1800F5350                                                  ; +0x20, 0x18011c4a0\ntest    eax, eax                                                       ; +0x25, 0x18011c4a5\njnz     loc_18011C557                                                  ; +0x27, 0x18011c4a7\nmov     eax, [rbx+10h]                                                 ; +0x2d, 0x18011c4ad\ninc     eax                                                            ; +0x30, 0x18011c4b0\nmovsxd  r8, eax                                                        ; +0x32, 0x18011c4b2\nimul    eax, [rbx+28h]                                                 ; +0x35, 0x18011c4b5\nshl     r8, 3; Size                                                    ; +0x39, 0x18011c4b9\nmovsxd  rdx, eax                                                       ; +0x3d, 0x18011c4bd\nmov     rax, [rbx+60h]                                                 ; +0x40, 0x18011c4c0\nlea     rcx, [rax+rdx*8]; void *                                       ; +0x44, 0x18011c4c4\nmov     rdx, [rbx+68h]; Src                                            ; +0x48, 0x18011c4c8\ncall    memmove                                                        ; +0x4c, 0x18011c4cc\nmov     eax, [rbx+10h]                                                 ; +0x51, 0x18011c4d1\nxor     edx, edx; Val                                                  ; +0x54, 0x18011c4d4\nmov     rcx, [rbx+78h]; void *                                         ; +0x56, 0x18011c4d6\ninc     eax                                                            ; +0x5a, 0x18011c4da\nmovsxd  r8, eax                                                        ; +0x5c, 0x18011c4dc\nshl     r8, 3; Size                                                    ; +0x5f, 0x18011c4df\ncall    memset                                                         ; +0x63, 0x18011c4e3\nmov     ecx, 1                                                         ; +0x68, 0x18011c4e8\ncall    sub_1800C0A10                                                  ; +0x6d, 0x18011c4ed\ntest    eax, eax                                                       ; +0x72, 0x18011c4f2\njz      short loc_18011C500                                            ; +0x74, 0x18011c4f4\nmov     rcx, rbx                                                       ; +0x76, 0x18011c4f6\ncall    sub_180064370                                                  ; +0x79, 0x18011c4f9\njmp     short loc_18011C51A                                            ; +0x7e, 0x18011c4fe\nxor     ecx, ecx                                                       ; +0x80, 0x18011c500\ncall    sub_1800C0A10                                                  ; +0x82, 0x18011c502\nmov     rcx, rbx                                                       ; +0x87, 0x18011c507\ntest    eax, eax                                                       ; +0x8a, 0x18011c50a\njz      short loc_18011C515                                            ; +0x8c, 0x18011c50c\ncall    sub_180064600                                                  ; +0x8e, 0x18011c50e\njmp     short loc_18011C51A                                            ; +0x93, 0x18011c513\ncall    sub_18011C560                                                  ; +0x95, 0x18011c515\ntest    eax, eax                                                       ; +0x9a, 0x18011c51a\njnz     short loc_18011C557                                            ; +0x9c, 0x18011c51c\nmov     eax, [rbx+10h]                                                 ; +0x9e, 0x18011c51e\nxor     edx, edx                                                       ; +0xa1, 0x18011c521\nadd     [rbx+5Ch], eax                                                 ; +0xa3, 0x18011c523\nmov     ecx, [rbx+1Ch]                                                 ; +0xa6, 0x18011c526\ninc     ecx                                                            ; +0xa9, 0x18011c529\nimul    ecx, eax                                                       ; +0xab, 0x18011c52b\nmov     eax, [rbx+5Ch]                                                 ; +0xae, 0x18011c52e\ncmp     eax, ecx                                                       ; +0xb1, 0x18011c531\ncmovge  eax, edx                                                       ; +0xb3, 0x18011c533\nsub     dword ptr [rbx+54h], 1                                         ; +0xb6, 0x18011c536\nmov     [rbx+5Ch], eax                                                 ; +0xba, 0x18011c53a\njns     short loc_18011C547                                            ; +0xbd, 0x18011c53d\nmov     eax, [rbx+20h]                                                 ; +0xbf, 0x18011c53f\ndec     eax                                                            ; +0xc2, 0x18011c542\nmov     [rbx+54h], eax                                                 ; +0xc4, 0x18011c544\nsub     dword ptr [rbx+28h], 1                                         ; +0xc7, 0x18011c547\njns     short loc_18011C555                                            ; +0xcb, 0x18011c54b\nmov     eax, [rbx+20h]                                                 ; +0xcd, 0x18011c54d\ndec     eax                                                            ; +0xd0, 0x18011c550\nmov     [rbx+28h], eax                                                 ; +0xd2, 0x18011c552\nxor     eax, eax                                                       ; +0xd5, 0x18011c555\nadd     rsp, 30h                                                       ; +0xd7, 0x18011c557\npop     rbx                                                            ; +0xdb, 0x18011c55b\nretn                                                                   ; +0xdc, 0x18011c55c", "xrefs": ["<???> @ 0x18016e120", "<???> @ 0x1802021bc"], "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"}