{"type": "func", "start": 6443277440, "end": 6443277572, "name": "sub_1800C9C80", "pseudocode": "// \n// sub_1800C9C80 from 0x1800c9c80 to 0x1800c9d04 (132 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c688\n// > <???> @ 0x1801fe3f4\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_1800C9C80(__int64 a1, _DWORD *a2, char a3)\n{\n  __int64 result; // rax\n  __int64 v5; // r8\n  int v6; // [rsp+38h] [rbp+10h] BYREF\n\n  if ( !a2 || !*(_QWORD *)(a1 + 40) )\n    return 31;\n  if ( (a3 & 2) != 0 )\n  {\n    *a2 = *(_DWORD *)(a1 + 76);\n    return 0;\n  }\n  else if ( (a3 & 0x10) != 0 )\n  {\n    v5 = *(_QWORD *)(a1 + 192);\n    if ( v5 )\n    {\n      result = (*(__int64 (__fastcall **)(_QWORD, int *))(*(_QWORD *)v5 + 128LL))(*(_QWORD *)(a1 + 192), &v6);\n      if ( !(_DWORD)result )\n      {\n        *a2 = v6;\n        return 0;\n      }\n    }\n    else\n    {\n      *a2 = *(_DWORD *)(a1 + 72);\n      return 0;\n    }\n  }\n  else\n  {\n    return sub_1800DD650(*(_QWORD *)(a1 + 40));\n  }\n  return result;\n}", "assembly": "; \n; sub_1800C9C80 from 0x1800c9c80 to 0x1800c9d04 (132 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c688\n; > <???> @ 0x1801fe3f4\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; \npush    rbx                                                            ; +0x0, 0x1800c9c80\nsub     rsp, 20h                                                       ; +0x2, 0x1800c9c82\nmov     rbx, rdx                                                       ; +0x6, 0x1800c9c86\ntest    rdx, rdx                                                       ; +0x9, 0x1800c9c89\njz      short loc_1800C9CF9                                            ; +0xc, 0x1800c9c8c\nmov     rax, [rcx+28h]                                                 ; +0xe, 0x1800c9c8e\ntest    rax, rax                                                       ; +0x12, 0x1800c9c92\njz      short loc_1800C9CF9                                            ; +0x15, 0x1800c9c95\ntest    r8b, 2                                                         ; +0x17, 0x1800c9c97\njz      short loc_1800C9CAA                                            ; +0x1b, 0x1800c9c9b\nmov     eax, [rcx+4Ch]                                                 ; +0x1d, 0x1800c9c9d\nmov     [rdx], eax                                                     ; +0x20, 0x1800c9ca0\nxor     eax, eax                                                       ; +0x22, 0x1800c9ca2\nadd     rsp, 20h                                                       ; +0x24, 0x1800c9ca4\npop     rbx                                                            ; +0x28, 0x1800c9ca8\nretn                                                                   ; +0x29, 0x1800c9ca9\ntest    r8b, 10h                                                       ; +0x2a, 0x1800c9caa\njz      short loc_1800C9CEC                                            ; +0x2e, 0x1800c9cae\nmov     r8, [rcx+0C0h]                                                 ; +0x30, 0x1800c9cb0\ntest    r8, r8                                                         ; +0x37, 0x1800c9cb7\njz      short loc_1800C9CDF                                            ; +0x3a, 0x1800c9cba\nmov     rax, [r8]                                                      ; +0x3c, 0x1800c9cbc\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x3f, 0x1800c9cbf\nmov     rcx, r8                                                        ; +0x44, 0x1800c9cc4\ncall    qword ptr [rax+80h]                                            ; +0x47, 0x1800c9cc7\ntest    eax, eax                                                       ; +0x4d, 0x1800c9ccd\njnz     short loc_1800C9CFE                                            ; +0x4f, 0x1800c9ccf\nmov     eax, [rsp+28h+arg_8]                                           ; +0x51, 0x1800c9cd1\nmov     [rbx], eax                                                     ; +0x55, 0x1800c9cd5\nxor     eax, eax                                                       ; +0x57, 0x1800c9cd7\nadd     rsp, 20h                                                       ; +0x59, 0x1800c9cd9\npop     rbx                                                            ; +0x5d, 0x1800c9cdd\nretn                                                                   ; +0x5e, 0x1800c9cde\nmov     eax, [rcx+48h]                                                 ; +0x5f, 0x1800c9cdf\nmov     [rdx], eax                                                     ; +0x62, 0x1800c9ce2\nxor     eax, eax                                                       ; +0x64, 0x1800c9ce4\nadd     rsp, 20h                                                       ; +0x66, 0x1800c9ce6\npop     rbx                                                            ; +0x6a, 0x1800c9cea\nretn                                                                   ; +0x6b, 0x1800c9ceb\nmov     rcx, rax                                                       ; +0x6c, 0x1800c9cec\nadd     rsp, 20h                                                       ; +0x6f, 0x1800c9cef\npop     rbx                                                            ; +0x73, 0x1800c9cf3\njmp     sub_1800DD650                                                  ; +0x74, 0x1800c9cf4\nmov     eax, 1Fh                                                       ; +0x79, 0x1800c9cf9\nadd     rsp, 20h                                                       ; +0x7e, 0x1800c9cfe\npop     rbx                                                            ; +0x82, 0x1800c9d02\nretn                                                                   ; +0x83, 0x1800c9d03", "xrefs": ["<???> @ 0x18016c688", "<???> @ 0x1801fe3f4"], "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"}