{"type": "func", "start": 6443205984, "end": 6443206277, "name": "sub_1800B8560", "pseudocode": "// \n// sub_1800B8560 from 0x1800b8560 to 0x1800b8685 (293 bytes)\n// \n// 11 xrefs:\n// > sub_1800B3900 @ 0x1800b3930\n// > sub_1800B3C40 @ 0x1800b3c97\n// > sub_1800BDE20 @ 0x1800bde30\n// > sub_1800BDE20 @ 0x1800bde41\n// > sub_1800C7170 @ 0x1800c71cb\n// > sub_1800D0FF0 @ 0x1800d100e\n// > sub_1800E2620 @ 0x1800e27a2\n// > sub_1801128D0 @ 0x1801128e6\n// > sub_1801128D0 @ 0x1801128f6\n// > sub_18011BEC0 @ 0x18011c090\n// > <???> @ 0x1801fd2cc\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:59 +0000\n// \n\n__int64 __fastcall sub_1800B8560(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 result; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rcx\n  void (__fastcall *v6)(__int64, __int64, _QWORD, __int64, __int64); // r10\n  __int64 v7; // rax\n\n  if ( !*(_BYTE *)(a1 + 280) )\n    return 0;\n  if ( *(_BYTE *)(a1 + 281) )\n    *(_BYTE *)(a1 + 280) = 0;\n  v2 = *(_QWORD *)(a1 + 296);\n  if ( !v2 || (result = sub_1800C14F0(v2), !(_DWORD)result) )\n  {\n    result = sub_1800C1520(*(_QWORD *)(a1 + 304));\n    if ( !(_DWORD)result )\n    {\n      if ( *(_QWORD *)(a1 + 296) )\n      {\n        result = ((__int64 (*)(void))sub_1800C14D0)();\n        if ( (_DWORD)result )\n          return result;\n        *(_QWORD *)(a1 + 296) = 0;\n      }\n      result = sub_1800C14D0(*(_QWORD *)(a1 + 304));\n      if ( !(_DWORD)result )\n      {\n        v4 = *(_QWORD *)(a1 + 264);\n        *(_QWORD *)(a1 + 304) = 0;\n        result = FMOD_OS_Thread_Destroy(v4);\n        if ( !(_DWORD)result )\n        {\n          v5 = *(_QWORD *)(a1 + 312);\n          if ( v5 )\n          {\n            v6 = *(void (__fastcall **)(__int64, __int64, _QWORD, __int64, __int64))(v5 + 70192);\n            if ( !v6 || (*(_DWORD *)(v5 + 70200) & 0x200) == 0 )\n              goto LABEL_20;\n            v7 = *(_QWORD *)(v5 + 69736);\n          }\n          else\n          {\n            v6 = *((void (__fastcall **)(__int64, __int64, _QWORD, __int64, __int64))off_1801AED20 + 1);\n            if ( !v6 || (*((_DWORD *)off_1801AED20 + 4) & 0x200) == 0 )\n              goto LABEL_20;\n            v7 = *((_QWORD *)off_1801AED20 + 3);\n            v5 = 0;\n          }\n          v6(v5, 512, *(_QWORD *)(a1 + 264), a1 + 8, v7);\nLABEL_20:\n          *(_QWORD *)(a1 + 264) = 0;\n          *(_QWORD *)(a1 + 272) = 0;\n          return 0;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800B8560 from 0x1800b8560 to 0x1800b8685 (293 bytes)\n; \n; 11 xrefs:\n; > sub_1800B3900 @ 0x1800b3930\n; > sub_1800B3C40 @ 0x1800b3c97\n; > sub_1800BDE20 @ 0x1800bde30\n; > sub_1800BDE20 @ 0x1800bde41\n; > sub_1800C7170 @ 0x1800c71cb\n; > sub_1800D0FF0 @ 0x1800d100e\n; > sub_1800E2620 @ 0x1800e27a2\n; > sub_1801128D0 @ 0x1801128e6\n; > sub_1801128D0 @ 0x1801128f6\n; > sub_18011BEC0 @ 0x18011c090\n; > <???> @ 0x1801fd2cc\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:59 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b8560\npush    rdi                                                            ; +0x5, 0x1800b8565\nsub     rsp, 30h                                                       ; +0x6, 0x1800b8566\nmovzx   eax, byte ptr [rcx+118h]                                       ; +0xa, 0x1800b856a\nmov     rbx, rcx                                                       ; +0x11, 0x1800b8571\ntest    al, al                                                         ; +0x14, 0x1800b8574\njz      loc_1800B8678                                                  ; +0x16, 0x1800b8576\ncmp     byte ptr [rcx+119h], 0                                         ; +0x1c, 0x1800b857c\njz      short loc_1800B858C                                            ; +0x23, 0x1800b8583\nmov     byte ptr [rcx+118h], 0                                         ; +0x25, 0x1800b8585\nmov     rcx, [rcx+128h]                                                ; +0x2c, 0x1800b858c\ntest    rcx, rcx                                                       ; +0x33, 0x1800b8593\njz      short loc_1800B85A5                                            ; +0x36, 0x1800b8596\ncall    sub_1800C14F0                                                  ; +0x38, 0x1800b8598\ntest    eax, eax                                                       ; +0x3d, 0x1800b859d\njnz     loc_1800B867A                                                  ; +0x3f, 0x1800b859f\nmov     rcx, [rbx+130h]                                                ; +0x45, 0x1800b85a5\ncall    sub_1800C1520                                                  ; +0x4c, 0x1800b85ac\ntest    eax, eax                                                       ; +0x51, 0x1800b85b1\njnz     loc_1800B867A                                                  ; +0x53, 0x1800b85b3\nmov     rcx, [rbx+128h]                                                ; +0x59, 0x1800b85b9\nxor     edi, edi                                                       ; +0x60, 0x1800b85c0\ntest    rcx, rcx                                                       ; +0x62, 0x1800b85c2\njz      short loc_1800B85DB                                            ; +0x65, 0x1800b85c5\ncall    sub_1800C14D0                                                  ; +0x67, 0x1800b85c7\ntest    eax, eax                                                       ; +0x6c, 0x1800b85cc\njnz     loc_1800B867A                                                  ; +0x6e, 0x1800b85ce\nmov     [rbx+128h], rdi                                                ; +0x74, 0x1800b85d4\nmov     rcx, [rbx+130h]                                                ; +0x7b, 0x1800b85db\ncall    sub_1800C14D0                                                  ; +0x82, 0x1800b85e2\ntest    eax, eax                                                       ; +0x87, 0x1800b85e7\njnz     loc_1800B867A                                                  ; +0x89, 0x1800b85e9\nmov     rcx, [rbx+108h]                                                ; +0x8f, 0x1800b85ef\nmov     [rbx+130h], rdi                                                ; +0x96, 0x1800b85f6\ncall    FMOD_OS_Thread_Destroy                                         ; +0x9d, 0x1800b85fd\ntest    eax, eax                                                       ; +0xa2, 0x1800b8602\njnz     short loc_1800B867A                                            ; +0xa4, 0x1800b8604\nmov     rcx, [rbx+138h]                                                ; +0xa6, 0x1800b8606\ntest    rcx, rcx                                                       ; +0xad, 0x1800b860d\njz      short loc_1800B8633                                            ; +0xb0, 0x1800b8610\nmov     r10, [rcx+11230h]                                              ; +0xb2, 0x1800b8612\ntest    r10, r10                                                       ; +0xb9, 0x1800b8619\njz      short loc_1800B866A                                            ; +0xbc, 0x1800b861c\ntest    dword ptr [rcx+11238h], 200h                                   ; +0xbe, 0x1800b861e\njz      short loc_1800B866A                                            ; +0xc8, 0x1800b8628\nmov     rax, [rcx+11068h]                                              ; +0xca, 0x1800b862a\njmp     short loc_1800B8652                                            ; +0xd1, 0x1800b8631\nmov     rax, cs:off_1801AED20                                          ; +0xd3, 0x1800b8633\nmov     r10, [rax+8]                                                   ; +0xda, 0x1800b863a\ntest    r10, r10                                                       ; +0xde, 0x1800b863e\njz      short loc_1800B866A                                            ; +0xe1, 0x1800b8641\ntest    dword ptr [rax+10h], 200h                                      ; +0xe3, 0x1800b8643\njz      short loc_1800B866A                                            ; +0xea, 0x1800b864a\nmov     rax, [rax+18h]                                                 ; +0xec, 0x1800b864c\nxor     ecx, ecx                                                       ; +0xf0, 0x1800b8650\nmov     r8, [rbx+108h]                                                 ; +0xf2, 0x1800b8652\nlea     r9, [rbx+8]                                                    ; +0xf9, 0x1800b8659\nmov     edx, 200h                                                      ; +0xfd, 0x1800b865d\nmov     [rsp+38h+var_18], rax                                          ; +0x102, 0x1800b8662\ncall    r10                                                            ; +0x107, 0x1800b8667\nmov     [rbx+108h], rdi                                                ; +0x10a, 0x1800b866a\nmov     [rbx+110h], rdi                                                ; +0x111, 0x1800b8671\nxor     eax, eax                                                       ; +0x118, 0x1800b8678\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x11a, 0x1800b867a\nadd     rsp, 30h                                                       ; +0x11f, 0x1800b867f\npop     rdi                                                            ; +0x123, 0x1800b8683\nretn                                                                   ; +0x124, 0x1800b8684", "xrefs": ["sub_1800B3900 @ 0x1800b3930", "sub_1800B3C40 @ 0x1800b3c97", "sub_1800BDE20 @ 0x1800bde30", "sub_1800BDE20 @ 0x1800bde41", "sub_1800C7170 @ 0x1800c71cb", "sub_1800D0FF0 @ 0x1800d100e", "sub_1800E2620 @ 0x1800e27a2", "sub_1801128D0 @ 0x1801128e6", "sub_1801128D0 @ 0x1801128f6", "sub_18011BEC0 @ 0x18011c090", "<???> @ 0x1801fd2cc"], "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"}