{"type": "func", "start": 6443196320, "end": 6443196669, "name": "sub_1800B5FA0", "pseudocode": "// \n// sub_1800B5FA0 from 0x1800b5fa0 to 0x1800b60fd (349 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016e7f0\n// > <???> @ 0x1801fd044\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_1800B5FA0(__int64 a1, __int64 a2, _DWORD *a3, __int64 a4)\n{\n  char v4; // bp\n  unsigned int i; // ecx\n  void *v10; // rax\n  int v11; // edi\n  void (__fastcall *v12)(__int64, _QWORD); // rax\n  void (__fastcall *v13)(__int64, _QWORD); // r8\n\n  v4 = a4;\n  *(_QWORD *)a2 = *(_QWORD *)(a1 + 552);\n  if ( !*(_QWORD *)(a1 + 536) && (*(_QWORD *)(a1 + 520) || !*(_QWORD *)(*(_QWORD *)(a1 + 408) + 70144LL)) )\n  {\n    i = (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD, __int64))(*(_QWORD *)a1 + 48LL))(\n          a1,\n          *(_QWORD *)(a2 + 32),\n          *(unsigned int *)(a2 + 12),\n          a2 + 40);\n    goto LABEL_5;\n  }\n  v10 = sub_1800B5F80;\n  v11 = 46;\n  *(_DWORD *)(a1 + 476) = 46;\n  if ( !(_BYTE)a4 )\n    v10 = sub_1800B5F70;\n  *(_QWORD *)(a2 + 48) = v10;\n  v12 = *(void (__fastcall **)(__int64, _QWORD))(a1 + 536);\n  if ( v12 )\n  {\n    v12(a2, *(_QWORD *)(a1 + 560));\n  }\n  else\n  {\n    v13 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 408) + 70144LL);\n    if ( v13 )\n      v13(a2, *(_QWORD *)(a1 + 560));\n  }\n  if ( v4 )\n  {\n    if ( *(_QWORD *)(a1 + 496) )\n    {\n      sub_1800C1520();\n      i = *(_DWORD *)(a1 + 476);\n    }\n    else\n    {\n      for ( i = *(_DWORD *)(a1 + 476); i == 46; v11 = i )\n      {\n        i = v11;\n        if ( *(_BYTE *)(a1 + 60) )\n          break;\n        FMOD_OS_Time_Sleep(10, a2, v13, a4);\n        i = *(_DWORD *)(a1 + 476);\n      }\n    }\n    goto LABEL_5;\n  }\n  i = *(_DWORD *)(a1 + 476);\n  if ( i != 46 )\n  {\nLABEL_5:\n    *a3 = *(_DWORD *)(a2 + 40);\n    return i;\n  }\n  return 46;\n}", "assembly": "; \n; sub_1800B5FA0 from 0x1800b5fa0 to 0x1800b60fd (349 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016e7f0\n; > <???> @ 0x1801fd044\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, 0x1800b5fa0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800b5fa5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800b5faa\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800b5faf\npush    r14                                                            ; +0x14, 0x1800b5fb4\nsub     rsp, 20h                                                       ; +0x16, 0x1800b5fb6\nmov     rax, [rcx+228h]                                                ; +0x1a, 0x1800b5fba\nmovzx   ebp, r9b                                                       ; +0x21, 0x1800b5fc1\nmov     [rdx], rax                                                     ; +0x25, 0x1800b5fc5\nmov     r14, r8                                                        ; +0x28, 0x1800b5fc8\ncmp     qword ptr [rcx+218h], 0                                        ; +0x2b, 0x1800b5fcb\nmov     rsi, rdx                                                       ; +0x33, 0x1800b5fd3\nmov     rbx, rcx                                                       ; +0x36, 0x1800b5fd6\njnz     short loc_1800B602D                                            ; +0x39, 0x1800b5fd9\ncmp     qword ptr [rcx+208h], 0                                        ; +0x3b, 0x1800b5fdb\njnz     short loc_1800B5FF6                                            ; +0x43, 0x1800b5fe3\nmov     rax, [rcx+198h]                                                ; +0x45, 0x1800b5fe5\ncmp     qword ptr [rax+11200h], 0                                      ; +0x4c, 0x1800b5fec\njnz     short loc_1800B602D                                            ; +0x54, 0x1800b5ff4\nmov     r8d, [rdx+0Ch]                                                 ; +0x56, 0x1800b5ff6\nlea     r9, [rdx+28h]                                                  ; +0x5a, 0x1800b5ffa\nmov     rax, [rcx]                                                     ; +0x5e, 0x1800b5ffe\nmov     rdx, [rdx+20h]                                                 ; +0x61, 0x1800b6001\ncall    qword ptr [rax+30h]                                            ; +0x65, 0x1800b6005\nmov     ecx, eax                                                       ; +0x68, 0x1800b6008\nmov     eax, [rsi+28h]                                                 ; +0x6a, 0x1800b600a\nmov     [r14], eax                                                     ; +0x6d, 0x1800b600d\nmov     eax, ecx                                                       ; +0x70, 0x1800b6010\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x72, 0x1800b6012\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x77, 0x1800b6017\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x7c, 0x1800b601c\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x81, 0x1800b6021\nadd     rsp, 20h                                                       ; +0x86, 0x1800b6026\npop     r14                                                            ; +0x8a, 0x1800b602a\nretn                                                                   ; +0x8c, 0x1800b602c\ntest    bpl, bpl                                                       ; +0x8d, 0x1800b602d\nlea     rax, sub_1800B5F80                                             ; +0x90, 0x1800b6030\nmov     edi, 2Eh ; '.'                                                 ; +0x97, 0x1800b6037\nmov     [rcx+1DCh], edi                                                ; +0x9c, 0x1800b603c\nlea     rcx, sub_1800B5F70                                             ; +0xa2, 0x1800b6042\ncmovz   rax, rcx                                                       ; +0xa9, 0x1800b6049\nmov     [rdx+30h], rax                                                 ; +0xad, 0x1800b604d\nmov     rax, [rbx+218h]                                                ; +0xb1, 0x1800b6051\ntest    rax, rax                                                       ; +0xb8, 0x1800b6058\njz      short loc_1800B606B                                            ; +0xbb, 0x1800b605b\nmov     rdx, [rbx+230h]                                                ; +0xbd, 0x1800b605d\nmov     rcx, rsi                                                       ; +0xc4, 0x1800b6064\ncall    rax                                                            ; +0xc7, 0x1800b6067\njmp     short loc_1800B608B                                            ; +0xc9, 0x1800b6069\nmov     rax, [rbx+198h]                                                ; +0xcb, 0x1800b606b\nmov     r8, [rax+11200h]                                               ; +0xd2, 0x1800b6072\ntest    r8, r8                                                         ; +0xd9, 0x1800b6079\njz      short loc_1800B608B                                            ; +0xdc, 0x1800b607c\nmov     rdx, [rbx+230h]                                                ; +0xde, 0x1800b607e\nmov     rcx, rsi                                                       ; +0xe5, 0x1800b6085\ncall    r8                                                             ; +0xe8, 0x1800b6088\ntest    bpl, bpl                                                       ; +0xeb, 0x1800b608b\njz      short loc_1800B60E8                                            ; +0xee, 0x1800b608e\nmov     rcx, [rbx+1F0h]                                                ; +0xf0, 0x1800b6090\ntest    rcx, rcx                                                       ; +0xf7, 0x1800b6097\njz      short loc_1800B60AC                                            ; +0xfa, 0x1800b609a\ncall    sub_1800C1520                                                  ; +0xfc, 0x1800b609c\nmov     ecx, [rbx+1DCh]                                                ; +0x101, 0x1800b60a1\njmp     loc_1800B600A                                                  ; +0x107, 0x1800b60a7\nmov     ecx, [rbx+1DCh]                                                ; +0x10c, 0x1800b60ac\ncmp     ecx, edi                                                       ; +0x112, 0x1800b60b2\njnz     loc_1800B600A                                                  ; +0x114, 0x1800b60b4\nnop     word ptr [rax+rax+00h]                                         ; +0x11a, 0x1800b60ba\ncmp     byte ptr [rbx+3Ch], 0                                          ; +0x120, 0x1800b60c0\nmov     ecx, edi                                                       ; +0x124, 0x1800b60c4\njnz     loc_1800B600A                                                  ; +0x126, 0x1800b60c6\nmov     ecx, 0Ah                                                       ; +0x12c, 0x1800b60cc\ncall    FMOD_OS_Time_Sleep                                             ; +0x131, 0x1800b60d1\nmov     ecx, [rbx+1DCh]                                                ; +0x136, 0x1800b60d6\nmov     edi, ecx                                                       ; +0x13c, 0x1800b60dc\ncmp     ecx, 2Eh ; '.'                                                 ; +0x13e, 0x1800b60de\njz      short loc_1800B60C0                                            ; +0x141, 0x1800b60e1\njmp     loc_1800B600A                                                  ; +0x143, 0x1800b60e3\nmov     ecx, [rbx+1DCh]                                                ; +0x148, 0x1800b60e8\ncmp     ecx, edi                                                       ; +0x14e, 0x1800b60ee\njnz     loc_1800B600A                                                  ; +0x150, 0x1800b60f0\nmov     eax, edi                                                       ; +0x156, 0x1800b60f6\njmp     loc_1800B6012                                                  ; +0x158, 0x1800b60f8", "xrefs": ["<???> @ 0x18016e7f0", "<???> @ 0x1801fd044"], "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"}