{"type": "func", "start": 6443289808, "end": 6443290448, "name": "sub_1800CCCD0", "pseudocode": "// \n// sub_1800CCCD0 from 0x1800cccd0 to 0x1800ccf50 (640 bytes)\n// \n// 2 xrefs:\n// > sub_1800CE1D0 @ 0x1800ce2b8\n// > <???> @ 0x1801fe70c\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_1800CCCD0(__int64 a1, __int64 a2, char a3)\n{\n  __int64 result; // rax\n  __int64 v7; // rcx\n  int v8; // eax\n  __int64 v9; // [rsp+40h] [rbp+8h] BYREF\n\n  if ( !*(_QWORD *)(a1 + 472) )\n    return 30;\n  *(_QWORD *)(a2 + 512) = a1;\n  *(_QWORD *)(*(_QWORD *)(a1 + 472) + 40LL) = 0;\n  *(_QWORD *)(*(_QWORD *)(a1 + 472) + 48LL) = a2;\n  *(_DWORD *)(*(_QWORD *)(a1 + 472) + 88LL) = 0;\n  *(_DWORD *)(*(_QWORD *)(a1 + 472) + 92LL) = -1;\n  *(_DWORD *)(*(_QWORD *)(a1 + 472) + 84LL) = -1;\n  *(_DWORD *)(*(_QWORD *)(a1 + 472) + 56LL) = 8;\n  *(_QWORD *)(*(_QWORD *)(a1 + 472) + 24LL) = a1;\n  if ( a3 )\n  {\n    *(_QWORD *)(a1 + 496) = 0;\n    *(_DWORD *)(a1 + 24) = 1;\n    *(_QWORD *)(a1 + 16) = 0;\n    *(_QWORD *)(a1 + 40) = 0;\n    v7 = *(_QWORD *)(a1 + 8);\n    v8 = *(_DWORD *)(v7 + 70452);\n    *(_DWORD *)(a1 + 72) &= 0xFEEDFFD8;\n    *(_DWORD *)(a1 + 548) = v8;\n    *(_DWORD *)(a1 + 552) = 0;\n    *(_DWORD *)(a1 + 544) = 1065353216;\n    *(_DWORD *)(a1 + 52) = 1065353216;\n    *(_DWORD *)(a1 + 120) = 1065353216;\n    *(_DWORD *)(a1 + 164) = 1065353216;\n    *(_DWORD *)(a1 + 124) = 1065353216;\n    *(_QWORD *)(a1 + 188) = 1065353216;\n    *(_DWORD *)(a1 + 156) = 1065353216;\n    *(_DWORD *)(a1 + 160) = 1176256512;\n    *(_DWORD *)(a1 + 152) = 0;\n    *(_DWORD *)(a1 + 168) = 1135869952;\n    *(_DWORD *)(a1 + 172) = 1135869952;\n    *(_QWORD *)(a1 + 176) = 1065353216;\n    *(_DWORD *)(a1 + 184) = 0;\n    *(_QWORD *)(a1 + 224) = 0;\n    *(_DWORD *)(a1 + 232) = 0;\n    *(_DWORD *)(a1 + 240) = 1065353216;\n    *(_QWORD *)(a1 + 244) = 1065353216;\n    *(_DWORD *)(a1 + 256) = 0;\n    *(_DWORD *)(a1 + 252) = *(_DWORD *)(v7 + 69704);\n    *(_QWORD *)(a1 + 88) = 1065353216;\n    if ( v7 )\n    {\n      *(_DWORD *)(a1 + 316) = 1065353216;\n      *(_QWORD *)(a1 + 336) = 0;\n      *(_DWORD *)(a1 + 320) = 1065353216;\n      *(_QWORD *)(a1 + 344) = 0;\n      *(_DWORD *)(a1 + 324) = 1065353216;\n      *(_QWORD *)(a1 + 352) = 0;\n      *(_DWORD *)(a1 + 328) = 1065353216;\n      *(_QWORD *)(a1 + 360) = 0;\n    }\n    *(_QWORD *)(a1 + 296) = 0;\n    *(_QWORD *)(a1 + 304) = 0;\n    *(_BYTE *)(a1 + 312) = 0;\n  }\n  result = sub_18009B6A0(*(_QWORD *)(a1 + 96), 0, 1u);\n  if ( !(_DWORD)result )\n  {\n    if ( !a3 )\n      return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 472) + 32LL))(*(_QWORD *)(a1 + 472), a2);\n    result = sub_180096490(*(_QWORD *)(a1 + 96), 0, 0, 4);\n    if ( !(_DWORD)result )\n    {\n      result = sub_180068B10(*(_QWORD *)(a1 + 112));\n      if ( !(_DWORD)result )\n      {\n        result = (*(__int64 (__fastcall **)(_QWORD, __int64, __int64 *))(**(_QWORD **)(a1 + 32) + 288LL))(\n                   *(_QWORD *)(a1 + 32),\n                   4294967293LL,\n                   &v9);\n        if ( !(_DWORD)result )\n        {\n          result = sub_1800923A0(v9, *(_QWORD *)(a1 + 96), nullptr, 0, 0, nullptr);\n          if ( !(_DWORD)result )\n            return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 472) + 32LL))(\n                     *(_QWORD *)(a1 + 472),\n                     a2);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800CCCD0 from 0x1800cccd0 to 0x1800ccf50 (640 bytes)\n; \n; 2 xrefs:\n; > sub_1800CE1D0 @ 0x1800ce2b8\n; > <???> @ 0x1801fe70c\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_10], rbx                                              ; +0x0, 0x1800cccd0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800cccd5\npush    rdi                                                            ; +0xa, 0x1800cccda\nsub     rsp, 30h                                                       ; +0xb, 0x1800cccdb\ncmp     qword ptr [rcx+1D8h], 0                                        ; +0xf, 0x1800cccdf\nmovzx   edi, r8b                                                       ; +0x17, 0x1800ccce7\nmov     rsi, rdx                                                       ; +0x1b, 0x1800ccceb\nmov     rbx, rcx                                                       ; +0x1e, 0x1800cccee\njnz     short loc_1800CCD08                                            ; +0x21, 0x1800cccf1\nmov     eax, 1Eh                                                       ; +0x23, 0x1800cccf3\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x28, 0x1800cccf8\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x2d, 0x1800cccfd\nadd     rsp, 30h                                                       ; +0x32, 0x1800ccd02\npop     rdi                                                            ; +0x36, 0x1800ccd06\nretn                                                                   ; +0x37, 0x1800ccd07\nmov     [rdx+200h], rbx                                                ; +0x38, 0x1800ccd08\nmov     rax, [rcx+1D8h]                                                ; +0x3f, 0x1800ccd0f\nmov     [rsp+38h+arg_8], rbp                                           ; +0x46, 0x1800ccd16\nxor     ebp, ebp                                                       ; +0x4b, 0x1800ccd1b\nmov     [rax+28h], rbp                                                 ; +0x4d, 0x1800ccd1d\nmov     rax, [rcx+1D8h]                                                ; +0x51, 0x1800ccd21\nmov     [rax+30h], rsi                                                 ; +0x58, 0x1800ccd28\nmov     rax, [rcx+1D8h]                                                ; +0x5c, 0x1800ccd2c\nmov     [rax+58h], ebp                                                 ; +0x63, 0x1800ccd33\nmov     rax, [rcx+1D8h]                                                ; +0x66, 0x1800ccd36\nmov     dword ptr [rax+5Ch], 0FFFFFFFFh                                ; +0x6d, 0x1800ccd3d\nmov     rax, [rcx+1D8h]                                                ; +0x74, 0x1800ccd44\nmov     dword ptr [rax+54h], 0FFFFFFFFh                                ; +0x7b, 0x1800ccd4b\nmov     rax, [rcx+1D8h]                                                ; +0x82, 0x1800ccd52\nmov     dword ptr [rax+38h], 8                                         ; +0x89, 0x1800ccd59\nmov     rax, [rcx+1D8h]                                                ; +0x90, 0x1800ccd60\nmov     [rax+18h], rbx                                                 ; +0x97, 0x1800ccd67\ntest    dil, dil                                                       ; +0x9b, 0x1800ccd6b\njz      loc_1800CCEB4                                                  ; +0x9e, 0x1800ccd6e\nmov     [rcx+1F0h], rbp                                                ; +0xa4, 0x1800ccd74\nmov     dword ptr [rcx+18h], 1                                         ; +0xab, 0x1800ccd7b\nmov     [rcx+10h], rbp                                                 ; +0xb2, 0x1800ccd82\nmov     [rcx+28h], rbp                                                 ; +0xb6, 0x1800ccd86\nmov     rcx, [rcx+8]                                                   ; +0xba, 0x1800ccd8a\nmov     eax, [rcx+11334h]                                              ; +0xbe, 0x1800ccd8e\nand     dword ptr [rbx+48h], 0FEEDFFD8h                                ; +0xc4, 0x1800ccd94\nmov     [rbx+224h], eax                                                ; +0xcb, 0x1800ccd9b\nmov     [rbx+228h], ebp                                                ; +0xd1, 0x1800ccda1\nmov     dword ptr [rbx+220h], 3F800000h                                ; +0xd7, 0x1800ccda7\nmov     dword ptr [rbx+34h], 3F800000h                                 ; +0xe1, 0x1800ccdb1\nmov     dword ptr [rbx+78h], 3F800000h                                 ; +0xe8, 0x1800ccdb8\nmov     dword ptr [rbx+0A4h], 3F800000h                                ; +0xef, 0x1800ccdbf\nmov     dword ptr [rbx+7Ch], 3F800000h                                 ; +0xf9, 0x1800ccdc9\nmov     qword ptr [rbx+0BCh], 3F800000h                                ; +0x100, 0x1800ccdd0\nmov     dword ptr [rbx+9Ch], 3F800000h                                 ; +0x10b, 0x1800ccddb\nmov     dword ptr [rbx+0A0h], 461C4000h                                ; +0x115, 0x1800ccde5\nmov     [rbx+98h], ebp                                                 ; +0x11f, 0x1800ccdef\nmov     dword ptr [rbx+0A8h], 43B40000h                                ; +0x125, 0x1800ccdf5\nmov     dword ptr [rbx+0ACh], 43B40000h                                ; +0x12f, 0x1800ccdff\nmov     qword ptr [rbx+0B0h], 3F800000h                                ; +0x139, 0x1800cce09\nmov     [rbx+0B8h], ebp                                                ; +0x144, 0x1800cce14\nmov     [rbx+0E0h], rbp                                                ; +0x14a, 0x1800cce1a\nmov     [rbx+0E8h], ebp                                                ; +0x151, 0x1800cce21\nmov     dword ptr [rbx+0F0h], 3F800000h                                ; +0x157, 0x1800cce27\nmov     qword ptr [rbx+0F4h], 3F800000h                                ; +0x161, 0x1800cce31\nmov     [rbx+100h], ebp                                                ; +0x16c, 0x1800cce3c\nmov     eax, [rcx+11048h]                                              ; +0x172, 0x1800cce42\nmov     [rbx+0FCh], eax                                                ; +0x178, 0x1800cce48\nmov     qword ptr [rbx+58h], 3F800000h                                 ; +0x17e, 0x1800cce4e\ntest    rcx, rcx                                                       ; +0x186, 0x1800cce56\njz      short loc_1800CCE9F                                            ; +0x189, 0x1800cce59\nmov     dword ptr [rbx+13Ch], 3F800000h                                ; +0x18b, 0x1800cce5b\nmov     [rbx+150h], rbp                                                ; +0x195, 0x1800cce65\nmov     dword ptr [rbx+140h], 3F800000h                                ; +0x19c, 0x1800cce6c\nmov     [rbx+158h], rbp                                                ; +0x1a6, 0x1800cce76\nmov     dword ptr [rbx+144h], 3F800000h                                ; +0x1ad, 0x1800cce7d\nmov     [rbx+160h], rbp                                                ; +0x1b7, 0x1800cce87\nmov     dword ptr [rbx+148h], 3F800000h                                ; +0x1be, 0x1800cce8e\nmov     [rbx+168h], rbp                                                ; +0x1c8, 0x1800cce98\nmov     [rbx+128h], rbp                                                ; +0x1cf, 0x1800cce9f\nmov     [rbx+130h], rbp                                                ; +0x1d6, 0x1800ccea6\nmov     [rbx+138h], bpl                                                ; +0x1dd, 0x1800ccead\nmov     rcx, [rbx+60h]                                                 ; +0x1e4, 0x1800cceb4\nmov     r8b, 1                                                         ; +0x1e8, 0x1800cceb8\nxor     edx, edx                                                       ; +0x1eb, 0x1800ccebb\ncall    sub_18009B6A0                                                  ; +0x1ed, 0x1800ccebd\ntest    eax, eax                                                       ; +0x1f2, 0x1800ccec2\njnz     short loc_1800CCF3B                                            ; +0x1f4, 0x1800ccec4\ntest    dil, dil                                                       ; +0x1f6, 0x1800ccec6\njz      short loc_1800CCF2B                                            ; +0x1f9, 0x1800ccec9\nmov     rcx, [rbx+60h]                                                 ; +0x1fb, 0x1800ccecb\nlea     r9d, [rax+4]                                                   ; +0x1ff, 0x1800ccecf\nxor     r8d, r8d                                                       ; +0x203, 0x1800cced3\nxor     edx, edx                                                       ; +0x206, 0x1800cced6\ncall    sub_180096490                                                  ; +0x208, 0x1800cced8\ntest    eax, eax                                                       ; +0x20d, 0x1800ccedd\njnz     short loc_1800CCF3B                                            ; +0x20f, 0x1800ccedf\nmov     rcx, [rbx+70h]                                                 ; +0x211, 0x1800ccee1\ncall    sub_180068B10                                                  ; +0x215, 0x1800ccee5\ntest    eax, eax                                                       ; +0x21a, 0x1800cceea\njnz     short loc_1800CCF3B                                            ; +0x21c, 0x1800cceec\nmov     rcx, [rbx+20h]                                                 ; +0x21e, 0x1800cceee\nlea     r8, [rsp+38h+arg_0]                                            ; +0x222, 0x1800ccef2\nmov     edx, 0FFFFFFFDh                                                ; +0x227, 0x1800ccef7\nmov     rax, [rcx]                                                     ; +0x22c, 0x1800ccefc\ncall    qword ptr [rax+120h]                                           ; +0x22f, 0x1800cceff\ntest    eax, eax                                                       ; +0x235, 0x1800ccf05\njnz     short loc_1800CCF3B                                            ; +0x237, 0x1800ccf07\nmov     rdx, [rbx+60h]                                                 ; +0x239, 0x1800ccf09\nxor     r9d, r9d                                                       ; +0x23d, 0x1800ccf0d\nmov     rcx, [rsp+38h+arg_0]                                           ; +0x240, 0x1800ccf10\nxor     r8d, r8d                                                       ; +0x245, 0x1800ccf15\nmov     [rsp+38h+var_10], rbp                                          ; +0x248, 0x1800ccf18\nmov     [rsp+38h+var_18], bpl                                          ; +0x24d, 0x1800ccf1d\ncall    sub_1800923A0                                                  ; +0x252, 0x1800ccf22\ntest    eax, eax                                                       ; +0x257, 0x1800ccf27\njnz     short loc_1800CCF3B                                            ; +0x259, 0x1800ccf29\nmov     rcx, [rbx+1D8h]                                                ; +0x25b, 0x1800ccf2b\nmov     rdx, rsi                                                       ; +0x262, 0x1800ccf32\nmov     rax, [rcx]                                                     ; +0x265, 0x1800ccf35\ncall    qword ptr [rax+20h]                                            ; +0x268, 0x1800ccf38\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x26b, 0x1800ccf3b\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x270, 0x1800ccf40\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x275, 0x1800ccf45\nadd     rsp, 30h                                                       ; +0x27a, 0x1800ccf4a\npop     rdi                                                            ; +0x27e, 0x1800ccf4e\nretn                                                                   ; +0x27f, 0x1800ccf4f", "xrefs": ["sub_1800CE1D0 @ 0x1800ce2b8", "<???> @ 0x1801fe70c"], "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"}