{"type": "func", "start": 6443277776, "end": 6443277934, "name": "sub_1800C9DD0", "pseudocode": "// \n// sub_1800C9DD0 from 0x1800c9dd0 to 0x1800c9e6e (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c638\n// > <???> @ 0x1801fe40c\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_1800C9DD0(__int64 a1, unsigned int a2, unsigned int a3)\n{\n  __int64 result; // rax\n\n  if ( !*(_QWORD *)(a1 + 192) )\n    return 30;\n  if ( (unsigned int)sub_1800C7B30(a1, a2, a3) )\n    return 0;\n  if ( (*(unsigned int (__fastcall **)(_QWORD, _QWORD, __int64, _QWORD, int))(**(_QWORD **)(a1 + 40) + 312LL))(\n         *(_QWORD *)(a1 + 40),\n         a2,\n         2,\n         a2 + a3 - 1,\n         2) )\n  {\n    return 0;\n  }\n  if ( (*(_DWORD *)(*(_QWORD *)(a1 + 40) + 88LL) & 0x80u) == 0 )\n    return 0;\n  result = (*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD))(**(_QWORD **)(a1 + 192) + 136LL))(\n             *(_QWORD *)(a1 + 192),\n             a2,\n             a3);\n  if ( !(_DWORD)result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_1800C9DD0 from 0x1800c9dd0 to 0x1800c9e6e (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c638\n; > <???> @ 0x1801fe40c\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, 0x1800c9dd0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800c9dd5\npush    rdi                                                            ; +0xa, 0x1800c9dda\nsub     rsp, 30h                                                       ; +0xb, 0x1800c9ddb\ncmp     qword ptr [rcx+0C0h], 0                                        ; +0xf, 0x1800c9ddf\nmov     esi, r8d                                                       ; +0x17, 0x1800c9de7\nmov     edi, edx                                                       ; +0x1a, 0x1800c9dea\nmov     rbx, rcx                                                       ; +0x1c, 0x1800c9dec\njnz     short loc_1800C9E06                                            ; +0x1f, 0x1800c9def\nmov     eax, 1Eh                                                       ; +0x21, 0x1800c9df1\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x26, 0x1800c9df6\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x2b, 0x1800c9dfb\nadd     rsp, 30h                                                       ; +0x30, 0x1800c9e00\npop     rdi                                                            ; +0x34, 0x1800c9e04\nretn                                                                   ; +0x35, 0x1800c9e05\ncall    sub_1800C7B30                                                  ; +0x36, 0x1800c9e06\ntest    eax, eax                                                       ; +0x3b, 0x1800c9e0b\njnz     short loc_1800C9E5C                                            ; +0x3d, 0x1800c9e0d\nmov     rcx, [rbx+28h]                                                 ; +0x3f, 0x1800c9e0f\nlea     r9d, [rsi-1]                                                   ; +0x43, 0x1800c9e13\nadd     r9d, edi                                                       ; +0x47, 0x1800c9e17\nmov     [rsp+38h+var_18], 2                                            ; +0x4a, 0x1800c9e1a\nmov     r8d, 2                                                         ; +0x52, 0x1800c9e22\nmov     edx, edi                                                       ; +0x58, 0x1800c9e28\nmov     rax, [rcx]                                                     ; +0x5a, 0x1800c9e2a\ncall    qword ptr [rax+138h]                                           ; +0x5d, 0x1800c9e2d\ntest    eax, eax                                                       ; +0x63, 0x1800c9e33\njnz     short loc_1800C9E5C                                            ; +0x65, 0x1800c9e35\nmov     rax, [rbx+28h]                                                 ; +0x67, 0x1800c9e37\nmov     ecx, [rax+58h]                                                 ; +0x6b, 0x1800c9e3b\nnop                                                                    ; +0x6e, 0x1800c9e3e\ntest    cl, cl                                                         ; +0x6f, 0x1800c9e3f\njns     short loc_1800C9E5C                                            ; +0x71, 0x1800c9e41\nmov     rcx, [rbx+0C0h]                                                ; +0x73, 0x1800c9e43\nmov     r8d, esi                                                       ; +0x7a, 0x1800c9e4a\nmov     edx, edi                                                       ; +0x7d, 0x1800c9e4d\nmov     rax, [rcx]                                                     ; +0x7f, 0x1800c9e4f\ncall    qword ptr [rax+88h]                                            ; +0x82, 0x1800c9e52\ntest    eax, eax                                                       ; +0x88, 0x1800c9e58\njnz     short loc_1800C9E5E                                            ; +0x8a, 0x1800c9e5a\nxor     eax, eax                                                       ; +0x8c, 0x1800c9e5c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8e, 0x1800c9e5e\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x93, 0x1800c9e63\nadd     rsp, 30h                                                       ; +0x98, 0x1800c9e68\npop     rdi                                                            ; +0x9c, 0x1800c9e6c\nretn                                                                   ; +0x9d, 0x1800c9e6d", "xrefs": ["<???> @ 0x18016c638", "<???> @ 0x1801fe40c"], "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"}