{"type": "func", "start": 6443196896, "end": 6443197113, "name": "sub_1800B61E0", "pseudocode": "// \n// sub_1800B61E0 from 0x1800b61e0 to 0x1800b62b9 (217 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016e7c8\n// > <???> @ 0x1801fd05c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_1800B61E0(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 (__fastcall *v3)(__int64, __int64, __int64, _QWORD); // rax\n  unsigned int v5; // eax\n  __int64 (__fastcall *v6)(__int64, __int64, __int64, _QWORD); // r10\n  unsigned int v7; // ecx\n  bool v8; // zf\n  __int64 result; // rax\n\n  v3 = *(__int64 (__fastcall **)(__int64, __int64, __int64, _QWORD))(a1 + 504);\n  if ( v3 )\n  {\n    v5 = v3(a2, a3, a1 + 552, *(_QWORD *)(a1 + 560));\n    goto LABEL_5;\n  }\n  v6 = *(__int64 (__fastcall **)(__int64, __int64, __int64, _QWORD))(*(_QWORD *)(a1 + 408) + 70112LL);\n  if ( v6 )\n  {\n    v5 = v6(a2, a3, a1 + 552, *(_QWORD *)(a1 + 560));\nLABEL_5:\n    v7 = v5;\n    if ( v5 )\n      goto LABEL_8;\n  }\n  v7 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 56LL))(a1, 0);\n  if ( v7 == 14 )\n  {\n    *(_DWORD *)(a1 + 404) &= ~1u;\n    v7 = 0;\n  }\nLABEL_8:\n  v8 = *(_QWORD *)(a1 + 536) == 0;\n  *(_QWORD *)(a1 + 496) = 0;\n  if ( v8 && (*(_QWORD *)(a1 + 520) || !*(_QWORD *)(*(_QWORD *)(a1 + 408) + 70144LL)) )\n    return v7;\n  result = sub_1800C1490(a1 + 496);\n  v7 = result;\n  if ( !(_DWORD)result )\n    return v7;\n  return result;\n}", "assembly": "; \n; sub_1800B61E0 from 0x1800b61e0 to 0x1800b62b9 (217 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016e7c8\n; > <???> @ 0x1801fd05c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b61e0\npush    rdi                                                            ; +0x5, 0x1800b61e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800b61e6\nmov     rax, [rcx+1F8h]                                                ; +0xa, 0x1800b61ea\nmov     r11, r8                                                        ; +0x11, 0x1800b61f1\nmov     rdi, rdx                                                       ; +0x14, 0x1800b61f4\nmov     rbx, rcx                                                       ; +0x17, 0x1800b61f7\ntest    rax, rax                                                       ; +0x1a, 0x1800b61fa\njz      short loc_1800B6217                                            ; +0x1d, 0x1800b61fd\nmov     r9, [rcx+230h]                                                 ; +0x1f, 0x1800b61ff\nlea     r8, [rcx+228h]                                                 ; +0x26, 0x1800b6206\nmov     rcx, rdi                                                       ; +0x2d, 0x1800b620d\nmov     rdx, r11                                                       ; +0x30, 0x1800b6210\ncall    rax                                                            ; +0x33, 0x1800b6213\njmp     short loc_1800B6241                                            ; +0x35, 0x1800b6215\nmov     rax, [rcx+198h]                                                ; +0x37, 0x1800b6217\nmov     r10, [rax+111E0h]                                              ; +0x3e, 0x1800b621e\ntest    r10, r10                                                       ; +0x45, 0x1800b6225\njz      short loc_1800B6247                                            ; +0x48, 0x1800b6228\nmov     r9, [rcx+230h]                                                 ; +0x4a, 0x1800b622a\nlea     r8, [rcx+228h]                                                 ; +0x51, 0x1800b6231\nmov     rcx, rdi                                                       ; +0x58, 0x1800b6238\nmov     rdx, r11                                                       ; +0x5b, 0x1800b623b\ncall    r10                                                            ; +0x5e, 0x1800b623e\nmov     ecx, eax                                                       ; +0x61, 0x1800b6241\ntest    eax, eax                                                       ; +0x63, 0x1800b6243\njnz     short loc_1800B626A                                            ; +0x65, 0x1800b6245\nmov     rax, [rbx]                                                     ; +0x67, 0x1800b6247\nxor     edx, edx                                                       ; +0x6a, 0x1800b624a\nmov     rcx, rbx                                                       ; +0x6c, 0x1800b624c\ncall    qword ptr [rax+38h]                                            ; +0x6f, 0x1800b624f\nmov     ecx, eax                                                       ; +0x72, 0x1800b6252\ncmp     eax, 0Eh                                                       ; +0x74, 0x1800b6254\njnz     short loc_1800B626A                                            ; +0x77, 0x1800b6257\nmov     eax, [rbx+194h]                                                ; +0x79, 0x1800b6259\nand     eax, 0FFFFFFFEh                                                ; +0x7f, 0x1800b625f\nmov     [rbx+194h], eax                                                ; +0x82, 0x1800b6262\nxor     ecx, ecx                                                       ; +0x88, 0x1800b6268\ncmp     qword ptr [rbx+218h], 0                                        ; +0x8a, 0x1800b626a\nmov     qword ptr [rbx+1F0h], 0                                        ; +0x92, 0x1800b6272\njnz     short loc_1800B629A                                            ; +0x9d, 0x1800b627d\ncmp     qword ptr [rbx+208h], 0                                        ; +0x9f, 0x1800b627f\njnz     short loc_1800B62AC                                            ; +0xa7, 0x1800b6287\nmov     rax, [rbx+198h]                                                ; +0xa9, 0x1800b6289\ncmp     qword ptr [rax+11200h], 0                                      ; +0xb0, 0x1800b6290\njz      short loc_1800B62AC                                            ; +0xb8, 0x1800b6298\nlea     rcx, [rbx+1F0h]                                                ; +0xba, 0x1800b629a\ncall    sub_1800C1490                                                  ; +0xc1, 0x1800b62a1\nmov     ecx, eax                                                       ; +0xc6, 0x1800b62a6\ntest    eax, eax                                                       ; +0xc8, 0x1800b62a8\njnz     short loc_1800B62AE                                            ; +0xca, 0x1800b62aa\nmov     eax, ecx                                                       ; +0xcc, 0x1800b62ac\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xce, 0x1800b62ae\nadd     rsp, 20h                                                       ; +0xd3, 0x1800b62b3\npop     rdi                                                            ; +0xd7, 0x1800b62b7\nretn                                                                   ; +0xd8, 0x1800b62b8", "xrefs": ["<???> @ 0x18016e7c8", "<???> @ 0x1801fd05c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}