{"type": "func", "start": 6443272560, "end": 6443272683, "name": "sub_1800C8970", "pseudocode": "// \n// sub_1800C8970 from 0x1800c8970 to 0x1800c89eb (123 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c568\n// > <???> @ 0x1801fe250\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_1800C8970(_QWORD *a1, _DWORD *a2)\n{\n  _DWORD *v4; // rcx\n\n  if ( !a2 )\n    return 31;\n  v4 = (_DWORD *)a1[93];\n  if ( !v4 )\n  {\n    v4 = (_DWORD *)a1[92];\n    if ( !v4 )\n    {\n      if ( !a1[83] )\n        return sub_1800C7A30((__int64)a1, a2);\n      v4 = a1 + 14;\n      if ( a1 == (_QWORD *)-112LL )\n        return sub_1800C7A30((__int64)a1, a2);\n    }\n  }\n  if ( v4[154] <= v4[155] )\n    *a2 = v4[152];\n  else\n    *a2 = v4[153];\n  return 0;\n}", "assembly": "; \n; sub_1800C8970 from 0x1800c8970 to 0x1800c89eb (123 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c568\n; > <???> @ 0x1801fe250\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\nsub     rsp, 28h                                                       ; +0x0, 0x1800c8970\nmov     rax, rcx                                                       ; +0x4, 0x1800c8974\ntest    rdx, rdx                                                       ; +0x7, 0x1800c8977\njnz     short loc_1800C8984                                            ; +0xa, 0x1800c897a\nlea     eax, [rdx+1Fh]                                                 ; +0xc, 0x1800c897c\nadd     rsp, 28h                                                       ; +0xf, 0x1800c897f\nretn                                                                   ; +0x13, 0x1800c8983\nmov     rcx, [rcx+2E8h]                                                ; +0x14, 0x1800c8984\ntest    rcx, rcx                                                       ; +0x1b, 0x1800c898b\njnz     short loc_1800C89AE                                            ; +0x1e, 0x1800c898e\nmov     rcx, [rax+2E0h]                                                ; +0x20, 0x1800c8990\ntest    rcx, rcx                                                       ; +0x27, 0x1800c8997\njnz     short loc_1800C89AE                                            ; +0x2a, 0x1800c899a\ncmp     [rax+298h], rcx                                                ; +0x2c, 0x1800c899c\njz      short loc_1800C89DA                                            ; +0x33, 0x1800c89a3\nlea     rcx, [rax+70h]                                                 ; +0x35, 0x1800c89a5\ntest    rcx, rcx                                                       ; +0x39, 0x1800c89a9\njz      short loc_1800C89DA                                            ; +0x3c, 0x1800c89ac\nmov     eax, [rcx+26Ch]                                                ; +0x3e, 0x1800c89ae\ncmp     [rcx+268h], eax                                                ; +0x44, 0x1800c89b4\njbe     short loc_1800C89CB                                            ; +0x4a, 0x1800c89ba\nmov     eax, [rcx+264h]                                                ; +0x4c, 0x1800c89bc\nmov     [rdx], eax                                                     ; +0x52, 0x1800c89c2\nxor     eax, eax                                                       ; +0x54, 0x1800c89c4\nadd     rsp, 28h                                                       ; +0x56, 0x1800c89c6\nretn                                                                   ; +0x5a, 0x1800c89ca\nmov     eax, [rcx+260h]                                                ; +0x5b, 0x1800c89cb\nmov     [rdx], eax                                                     ; +0x61, 0x1800c89d1\nxor     eax, eax                                                       ; +0x63, 0x1800c89d3\nadd     rsp, 28h                                                       ; +0x65, 0x1800c89d5\nretn                                                                   ; +0x69, 0x1800c89d9\nmov     rcx, rax                                                       ; +0x6a, 0x1800c89da\ncall    sub_1800C7A30                                                  ; +0x6d, 0x1800c89dd\ntest    eax, eax                                                       ; +0x72, 0x1800c89e2\njnz     short $+2                                                      ; +0x74, 0x1800c89e4\nadd     rsp, 28h                                                       ; +0x76, 0x1800c89e6\nretn                                                                   ; +0x7a, 0x1800c89ea", "xrefs": ["<???> @ 0x18016c568", "<???> @ 0x1801fe250"], "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"}