{"type": "func", "start": 6443277648, "end": 6443277764, "name": "sub_1800C9D50", "pseudocode": "// \n// sub_1800C9D50 from 0x1800c9d50 to 0x1800c9dc4 (116 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c640\n// > <???> @ 0x1801fe400\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_1800C9D50(__int64 a1, unsigned int a2)\n{\n  __int64 result; // rax\n\n  if ( !*(_QWORD *)(a1 + 192) )\n    return 30;\n  result = sub_1800C7B20(a1, a2);\n  if ( !(_DWORD)result )\n  {\n    result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 40) + 296LL))(*(_QWORD *)(a1 + 40), a2);\n    if ( !(_DWORD)result )\n    {\n      if ( (*(_DWORD *)(*(_QWORD *)(a1 + 40) + 88LL) & 0x80u) == 0 )\n        return 0;\n      result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 192) + 144LL))(*(_QWORD *)(a1 + 192), a2);\n      if ( !(_DWORD)result )\n        return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800C9D50 from 0x1800c9d50 to 0x1800c9dc4 (116 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c640\n; > <???> @ 0x1801fe400\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, 0x1800c9d50\npush    rdi                                                            ; +0x5, 0x1800c9d55\nsub     rsp, 20h                                                       ; +0x6, 0x1800c9d56\ncmp     qword ptr [rcx+0C0h], 0                                        ; +0xa, 0x1800c9d5a\nmov     edi, edx                                                       ; +0x12, 0x1800c9d62\nmov     rbx, rcx                                                       ; +0x14, 0x1800c9d64\njnz     short loc_1800C9D79                                            ; +0x17, 0x1800c9d67\nmov     eax, 1Eh                                                       ; +0x19, 0x1800c9d69\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1e, 0x1800c9d6e\nadd     rsp, 20h                                                       ; +0x23, 0x1800c9d73\npop     rdi                                                            ; +0x27, 0x1800c9d77\nretn                                                                   ; +0x28, 0x1800c9d78\ncall    sub_1800C7B20                                                  ; +0x29, 0x1800c9d79\ntest    eax, eax                                                       ; +0x2e, 0x1800c9d7e\njnz     short loc_1800C9DB9                                            ; +0x30, 0x1800c9d80\nmov     rcx, [rbx+28h]                                                 ; +0x32, 0x1800c9d82\nmov     edx, edi                                                       ; +0x36, 0x1800c9d86\nmov     rax, [rcx]                                                     ; +0x38, 0x1800c9d88\ncall    qword ptr [rax+128h]                                           ; +0x3b, 0x1800c9d8b\ntest    eax, eax                                                       ; +0x41, 0x1800c9d91\njnz     short loc_1800C9DB9                                            ; +0x43, 0x1800c9d93\nmov     rax, [rbx+28h]                                                 ; +0x45, 0x1800c9d95\nmov     ecx, [rax+58h]                                                 ; +0x49, 0x1800c9d99\nnop                                                                    ; +0x4c, 0x1800c9d9c\ntest    cl, cl                                                         ; +0x4d, 0x1800c9d9d\njns     short loc_1800C9DB7                                            ; +0x4f, 0x1800c9d9f\nmov     rcx, [rbx+0C0h]                                                ; +0x51, 0x1800c9da1\nmov     edx, edi                                                       ; +0x58, 0x1800c9da8\nmov     rax, [rcx]                                                     ; +0x5a, 0x1800c9daa\ncall    qword ptr [rax+90h]                                            ; +0x5d, 0x1800c9dad\ntest    eax, eax                                                       ; +0x63, 0x1800c9db3\njnz     short loc_1800C9DB9                                            ; +0x65, 0x1800c9db5\nxor     eax, eax                                                       ; +0x67, 0x1800c9db7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x69, 0x1800c9db9\nadd     rsp, 20h                                                       ; +0x6e, 0x1800c9dbe\npop     rdi                                                            ; +0x72, 0x1800c9dc2\nretn                                                                   ; +0x73, 0x1800c9dc3", "xrefs": ["<???> @ 0x18016c640", "<???> @ 0x1801fe400"], "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"}