{"type": "func", "start": 6443279472, "end": 6443279644, "name": "sub_1800CA470", "pseudocode": "// \n// sub_1800CA470 from 0x1800ca470 to 0x1800ca51c (172 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x18016c5e0\n// > <???> @ 0x18018b1c0\n// > <???> @ 0x18018b1d8\n// > <???> @ 0x18018b1e8\n// > <???> @ 0x1801fe460\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:07 +0000\n// \n\n__int64 __fastcall sub_1800CA470(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 result; // rax\n  __int64 v4; // rbx\n  char v5; // si\n  unsigned int v6; // edi\n\n  v2 = *(_QWORD *)(a1 + 192);\n  if ( !v2 )\n    return 30;\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 48LL))(v2);\n  if ( !(_DWORD)result )\n  {\n    v4 = *(_QWORD *)(a1 + 8);\n    v5 = 0;\n    if ( v4 )\n    {\n      sub_1801021C0(v4, 8);\n      v5 = 1;\n    }\n    v6 = sub_1800C7D30(a1);\n    if ( v6 )\n    {\n      if ( v5 )\n      {\n        if ( v4 )\n          sub_180102300(v4, 8);\n      }\n      return v6;\n    }\n    else\n    {\n      if ( v5 && v4 )\n        sub_180102300(v4, 8);\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800CA470 from 0x1800ca470 to 0x1800ca51c (172 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x18016c5e0\n; > <???> @ 0x18018b1c0\n; > <???> @ 0x18018b1d8\n; > <???> @ 0x18018b1e8\n; > <???> @ 0x1801fe460\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:07 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800ca470\nsub     rsp, 20h                                                       ; +0x2, 0x1800ca472\nmov     rdi, rcx                                                       ; +0x6, 0x1800ca476\nmov     rcx, [rcx+0C0h]                                                ; +0x9, 0x1800ca479\ntest    rcx, rcx                                                       ; +0x10, 0x1800ca480\njnz     short loc_1800CA48E                                            ; +0x13, 0x1800ca483\nlea     eax, [rcx+1Eh]                                                 ; +0x15, 0x1800ca485\nadd     rsp, 20h                                                       ; +0x18, 0x1800ca488\npop     rdi                                                            ; +0x1c, 0x1800ca48c\nretn                                                                   ; +0x1d, 0x1800ca48d\nmov     rax, [rcx]                                                     ; +0x1e, 0x1800ca48e\ncall    qword ptr [rax+30h]                                            ; +0x21, 0x1800ca491\ntest    eax, eax                                                       ; +0x24, 0x1800ca494\njnz     short loc_1800CA516                                            ; +0x26, 0x1800ca496\nmov     [rsp+28h+arg_0], rbx                                           ; +0x28, 0x1800ca498\nmov     rbx, [rdi+8]                                                   ; +0x2d, 0x1800ca49d\nmov     [rsp+28h+arg_8], rsi                                           ; +0x31, 0x1800ca4a1\nxor     sil, sil                                                       ; +0x36, 0x1800ca4a6\ntest    rbx, rbx                                                       ; +0x39, 0x1800ca4a9\njz      short loc_1800CA4BC                                            ; +0x3c, 0x1800ca4ac\nlea     edx, [rax+8]                                                   ; +0x3e, 0x1800ca4ae\nmov     rcx, rbx                                                       ; +0x41, 0x1800ca4b1\ncall    sub_1801021C0                                                  ; +0x44, 0x1800ca4b4\nmov     sil, 1                                                         ; +0x49, 0x1800ca4b9\nmov     rcx, rdi                                                       ; +0x4c, 0x1800ca4bc\ncall    sub_1800C7D30                                                  ; +0x4f, 0x1800ca4bf\nmov     edi, eax                                                       ; +0x54, 0x1800ca4c4\ntest    eax, eax                                                       ; +0x56, 0x1800ca4c6\njz      short loc_1800CA4F3                                            ; +0x58, 0x1800ca4c8\ntest    sil, sil                                                       ; +0x5a, 0x1800ca4ca\njz      short loc_1800CA4E1                                            ; +0x5d, 0x1800ca4cd\ntest    rbx, rbx                                                       ; +0x5f, 0x1800ca4cf\njz      short loc_1800CA4E1                                            ; +0x62, 0x1800ca4d2\nmov     edx, 8                                                         ; +0x64, 0x1800ca4d4\nmov     rcx, rbx                                                       ; +0x69, 0x1800ca4d9\ncall    sub_180102300                                                  ; +0x6c, 0x1800ca4dc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x71, 0x1800ca4e1\nmov     eax, edi                                                       ; +0x76, 0x1800ca4e6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x78, 0x1800ca4e8\nadd     rsp, 20h                                                       ; +0x7d, 0x1800ca4ed\npop     rdi                                                            ; +0x81, 0x1800ca4f1\nretn                                                                   ; +0x82, 0x1800ca4f2\ntest    sil, sil                                                       ; +0x83, 0x1800ca4f3\njz      short loc_1800CA50A                                            ; +0x86, 0x1800ca4f6\ntest    rbx, rbx                                                       ; +0x88, 0x1800ca4f8\njz      short loc_1800CA50A                                            ; +0x8b, 0x1800ca4fb\nmov     edx, 8                                                         ; +0x8d, 0x1800ca4fd\nmov     rcx, rbx                                                       ; +0x92, 0x1800ca502\ncall    sub_180102300                                                  ; +0x95, 0x1800ca505\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9a, 0x1800ca50a\nxor     eax, eax                                                       ; +0x9f, 0x1800ca50f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa1, 0x1800ca511\nadd     rsp, 20h                                                       ; +0xa6, 0x1800ca516\npop     rdi                                                            ; +0xaa, 0x1800ca51a\nretn                                                                   ; +0xab, 0x1800ca51b", "xrefs": ["<???> @ 0x18016c5e0", "<???> @ 0x18018b1c0", "<???> @ 0x18018b1d8", "<???> @ 0x18018b1e8", "<???> @ 0x1801fe460"], "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"}