{"type": "func", "start": 6443274192, "end": 6443274422, "name": "sub_1800C8FD0", "pseudocode": "// \n// sub_1800C8FD0 from 0x1800c8fd0 to 0x1800c90b6 (230 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c548\n// > <???> @ 0x1801fe2ec\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:06 +0000\n// \n\n__int64 __fastcall sub_1800C8FD0(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rsi\n  __int64 result; // rax\n  __int64 v6; // r9\n  __int64 v7; // rax\n  unsigned int v8; // edx\n  __int64 v9; // rcx\n  char v10; // r8\n  unsigned int v11; // [rsp+3Ch] [rbp+14h]\n\n  v11 = HIDWORD(a2);\n  v4 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 96LL);\n  result = sub_1800C7D00(a1, a2);\n  if ( !(_DWORD)result )\n  {\n    v7 = *(_QWORD *)(a1 + 40);\n    if ( v7 )\n    {\n      if ( (*(_BYTE *)(a1 + 56) & 1) != 0 || !*(_DWORD *)(a1 + 84) )\n        v8 = *(_DWORD *)(v7 + 68) - 1;\n      else\n        v8 = *(_DWORD *)(a1 + 92) + *(_DWORD *)(a1 + 88) - 1;\n    }\n    else\n    {\n      v8 = -1;\n    }\n    if ( v11 > v8 )\n      return 32;\n    if ( (*(_DWORD *)(*(_QWORD *)(a1 + 24) + 72LL) & 0x40000) != 0 && a2 )\n      *(_DWORD *)(a1 + 60) |= 0x20000u;\n    v9 = *(_QWORD *)(a1 + 744);\n    if ( v9 )\n      goto LABEL_17;\n    v9 = *(_QWORD *)(a1 + 48);\n    if ( !v9 )\n    {\n      if ( *(_QWORD *)(a1 + 664) )\n      {\n        v9 = a1 + 112;\nLABEL_17:\n        LOBYTE(v6) = 1;\n        v10 = 0;\n        return sub_18009C2B0(v9, a2, v10, v6);\n      }\n      v9 = *(_QWORD *)(a1 + 736);\n      if ( !v9 )\n        v9 = v4;\n    }\n    LOBYTE(v6) = 1;\n    v10 = 1;\n    return sub_18009C2B0(v9, a2, v10, v6);\n  }\n  return result;\n}", "assembly": "; \n; sub_1800C8FD0 from 0x1800c8fd0 to 0x1800c90b6 (230 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c548\n; > <???> @ 0x1801fe2ec\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:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800c8fd0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800c8fd5\nmov     [rsp+arg_8], rdx                                               ; +0xa, 0x1800c8fda\npush    rdi                                                            ; +0xf, 0x1800c8fdf\nsub     rsp, 20h                                                       ; +0x10, 0x1800c8fe0\nmov     rax, [rcx+18h]                                                 ; +0x14, 0x1800c8fe4\nmov     rbx, rdx                                                       ; +0x18, 0x1800c8fe8\nmov     rdi, rcx                                                       ; +0x1b, 0x1800c8feb\nmov     rsi, [rax+60h]                                                 ; +0x1e, 0x1800c8fee\ncall    sub_1800C7D00                                                  ; +0x22, 0x1800c8ff2\ntest    eax, eax                                                       ; +0x27, 0x1800c8ff7\njnz     loc_1800C90A6                                                  ; +0x29, 0x1800c8ff9\nmov     rax, [rdi+28h]                                                 ; +0x2f, 0x1800c8fff\ntest    rax, rax                                                       ; +0x33, 0x1800c9003\njz      short loc_1800C9025                                            ; +0x36, 0x1800c9006\ntest    byte ptr [rdi+38h], 1                                          ; +0x38, 0x1800c9008\njnz     short loc_1800C901E                                            ; +0x3c, 0x1800c900c\ncmp     dword ptr [rdi+54h], 0                                         ; +0x3e, 0x1800c900e\njz      short loc_1800C901E                                            ; +0x42, 0x1800c9012\nmov     edx, [rdi+58h]                                                 ; +0x44, 0x1800c9014\ndec     edx                                                            ; +0x47, 0x1800c9017\nadd     edx, [rdi+5Ch]                                                 ; +0x49, 0x1800c9019\njmp     short loc_1800C902A                                            ; +0x4c, 0x1800c901c\nmov     edx, [rax+44h]                                                 ; +0x4e, 0x1800c901e\ndec     edx                                                            ; +0x51, 0x1800c9021\njmp     short loc_1800C902A                                            ; +0x53, 0x1800c9023\nmov     edx, 0FFFFFFFFh                                                ; +0x55, 0x1800c9025\ncmp     dword ptr [rsp+28h+arg_8+4], edx                               ; +0x5a, 0x1800c902a\njbe     short loc_1800C9045                                            ; +0x5e, 0x1800c902e\nmov     eax, 20h ; ' '                                                 ; +0x60, 0x1800c9030\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x65, 0x1800c9035\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6a, 0x1800c903a\nadd     rsp, 20h                                                       ; +0x6f, 0x1800c903f\npop     rdi                                                            ; +0x73, 0x1800c9043\nretn                                                                   ; +0x74, 0x1800c9044\nmov     rax, [rdi+18h]                                                 ; +0x75, 0x1800c9045\ntest    dword ptr [rax+48h], 40000h                                    ; +0x79, 0x1800c9049\njz      short loc_1800C905E                                            ; +0x80, 0x1800c9050\ntest    rbx, rbx                                                       ; +0x82, 0x1800c9052\njz      short loc_1800C905E                                            ; +0x85, 0x1800c9055\nor      dword ptr [rdi+3Ch], 20000h                                    ; +0x87, 0x1800c9057\nmov     rcx, [rdi+2E8h]                                                ; +0x8e, 0x1800c905e\ntest    rcx, rcx                                                       ; +0x95, 0x1800c9065\njnz     short loc_1800C9080                                            ; +0x98, 0x1800c9068\nmov     rcx, [rdi+30h]                                                 ; +0x9a, 0x1800c906a\ntest    rcx, rcx                                                       ; +0x9e, 0x1800c906e\njnz     short loc_1800C9097                                            ; +0xa1, 0x1800c9071\ncmp     [rdi+298h], rcx                                                ; +0xa3, 0x1800c9073\njz      short loc_1800C9088                                            ; +0xaa, 0x1800c907a\nlea     rcx, [rdi+70h]                                                 ; +0xac, 0x1800c907c\nmov     r9b, 1                                                         ; +0xb0, 0x1800c9080\nxor     r8d, r8d                                                       ; +0xb3, 0x1800c9083\njmp     short loc_1800C909E                                            ; +0xb6, 0x1800c9086\nmov     rcx, [rdi+2E0h]                                                ; +0xb8, 0x1800c9088\ntest    rcx, rcx                                                       ; +0xbf, 0x1800c908f\njnz     short loc_1800C9097                                            ; +0xc2, 0x1800c9092\nmov     rcx, rsi                                                       ; +0xc4, 0x1800c9094\nmov     r9b, 1                                                         ; +0xc7, 0x1800c9097\nmovzx   r8d, r9b                                                       ; +0xca, 0x1800c909a\nmov     rdx, rbx                                                       ; +0xce, 0x1800c909e\ncall    sub_18009C2B0                                                  ; +0xd1, 0x1800c90a1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd6, 0x1800c90a6\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xdb, 0x1800c90ab\nadd     rsp, 20h                                                       ; +0xe0, 0x1800c90b0\npop     rdi                                                            ; +0xe4, 0x1800c90b4\nretn                                                                   ; +0xe5, 0x1800c90b5", "xrefs": ["<???> @ 0x18016c548", "<???> @ 0x1801fe2ec"], "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"}