{"type": "func", "start": 6442798304, "end": 6442798424, "name": "sub_180054CE0", "pseudocode": "// \n// sub_180054CE0 from 0x180054ce0 to 0x180054d58 (120 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180167190\n// > <???> @ 0x1801f8c4c\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:53:18 +0000\n// \n\n__int64 __fastcall sub_180054CE0(__int64 a1)\n{\n  __int64 v2; // rcx\n  void (__fastcall *v3)(__int64, _QWORD); // r8\n  __int64 v4; // rax\n  __int64 (__fastcall *v5)(__int64); // rdx\n  __int64 result; // rax\n\n  v2 = *(_QWORD *)(a1 + 800);\n  if ( !v2 )\n    return sub_1800985F0(a1);\n  v3 = *(void (__fastcall **)(__int64, _QWORD))(v2 + 264);\n  v4 = v2;\n  if ( v3 && (*(_DWORD *)(v2 + 44) & 0x200) != 0 )\n  {\n    v3(v2, *(_QWORD *)(*(_QWORD *)(a1 + 592) + 176LL));\n    *(_DWORD *)(*(_QWORD *)(a1 + 800) + 44LL) &= ~0x200u;\n    v4 = *(_QWORD *)(a1 + 800);\n  }\n  v5 = *(__int64 (__fastcall **)(__int64))(v4 + 88);\n  if ( !v5 )\n    return sub_1800985F0(a1);\n  result = v5(v4);\n  if ( !(_DWORD)result )\n    return sub_1800985F0(a1);\n  return result;\n}", "assembly": "; \n; sub_180054CE0 from 0x180054ce0 to 0x180054d58 (120 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180167190\n; > <???> @ 0x1801f8c4c\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:53:18 +0000\n; \npush    rbx                                                            ; +0x0, 0x180054ce0\nsub     rsp, 20h                                                       ; +0x2, 0x180054ce2\nmov     rbx, rcx                                                       ; +0x6, 0x180054ce6\nmov     rcx, [rcx+320h]                                                ; +0x9, 0x180054ce9\ntest    rcx, rcx                                                       ; +0x10, 0x180054cf0\njz      short loc_180054D45                                            ; +0x13, 0x180054cf3\nmov     r8, [rcx+108h]                                                 ; +0x15, 0x180054cf5\nmov     rax, rcx                                                       ; +0x1c, 0x180054cfc\ntest    r8, r8                                                         ; +0x1f, 0x180054cff\njz      short loc_180054D33                                            ; +0x22, 0x180054d02\ntest    dword ptr [rcx+2Ch], 200h                                      ; +0x24, 0x180054d04\njz      short loc_180054D33                                            ; +0x2b, 0x180054d0b\nmov     rdx, [rbx+250h]                                                ; +0x2d, 0x180054d0d\nmov     rdx, [rdx+0B0h]                                                ; +0x34, 0x180054d14\ncall    r8                                                             ; +0x3b, 0x180054d1b\nmov     rax, [rbx+320h]                                                ; +0x3e, 0x180054d1e\nand     dword ptr [rax+2Ch], 0FFFFFDFFh                                ; +0x45, 0x180054d25\nmov     rax, [rbx+320h]                                                ; +0x4c, 0x180054d2c\nmov     rdx, [rax+58h]                                                 ; +0x53, 0x180054d33\ntest    rdx, rdx                                                       ; +0x57, 0x180054d37\njz      short loc_180054D45                                            ; +0x5a, 0x180054d3a\nmov     rcx, rax                                                       ; +0x5c, 0x180054d3c\ncall    rdx                                                            ; +0x5f, 0x180054d3f\ntest    eax, eax                                                       ; +0x61, 0x180054d41\njnz     short loc_180054D52                                            ; +0x63, 0x180054d43\nmov     rcx, rbx                                                       ; +0x65, 0x180054d45\nadd     rsp, 20h                                                       ; +0x68, 0x180054d48\npop     rbx                                                            ; +0x6c, 0x180054d4c\njmp     sub_1800985F0                                                  ; +0x6d, 0x180054d4d\nadd     rsp, 20h                                                       ; +0x72, 0x180054d52\npop     rbx                                                            ; +0x76, 0x180054d56\nretn                                                                   ; +0x77, 0x180054d57", "xrefs": ["<???> @ 0x180167190", "<???> @ 0x1801f8c4c"], "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"}