{"type": "func", "start": 6443392880, "end": 6443393107, "name": "sub_1800E5F70", "pseudocode": "// \n// sub_1800E5F70 from 0x1800e5f70 to 0x1800e6053 (227 bytes)\n// \n// 2 xrefs:\n// > FMOD::System::playDSP @ 0x1800afd88\n// > <???> @ 0x1801ffd44\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_1800E5F70(__int64 a1, __int64 a2, __int64 a3, char a4, _QWORD *a5)\n{\n  __int64 result; // rax\n  _QWORD *v10; // rbx\n  unsigned int v11; // edi\n  __int64 v12; // [rsp+58h] [rbp+10h] BYREF\n\n  v12 = 0;\n  if ( !a2 )\n    return 31;\n  v10 = a5;\n  if ( a5 )\n    *a5 = 0;\n  result = sub_1800FAF10(a1, 0xFFFFFFFFLL, a2, &v12);\n  if ( !(_DWORD)result )\n  {\n    result = sub_1800FD2E0(a1, a2);\n    if ( !(_DWORD)result )\n    {\n      v11 = sub_1800CE1D0(v12, a2, a3, a4, 1, 0);\n      if ( v11 )\n      {\n        sub_1800CFDB0(v12, 82);\n        return v11;\n      }\n      else\n      {\n        result = sub_1800D04F0(v12);\n        if ( !(_DWORD)result )\n        {\n          result = sub_1800CE750(v12, 1);\n          if ( !(_DWORD)result )\n          {\n            if ( v10 )\n              *v10 = *(_QWORD *)(v12 + 80);\n            return 0;\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800E5F70 from 0x1800e5f70 to 0x1800e6053 (227 bytes)\n; \n; 2 xrefs:\n; > FMOD::System::playDSP @ 0x1800afd88\n; > <???> @ 0x1801ffd44\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_10], rbp                                              ; +0x0, 0x1800e5f70\npush    rsi                                                            ; +0x5, 0x1800e5f75\npush    rdi                                                            ; +0x6, 0x1800e5f76\npush    r14                                                            ; +0x7, 0x1800e5f77\nsub     rsp, 30h                                                       ; +0x9, 0x1800e5f79\nxor     eax, eax                                                       ; +0xd, 0x1800e5f7d\nmovzx   ebp, r9b                                                       ; +0xf, 0x1800e5f7f\nmov     [rsp+48h+arg_8], rax                                           ; +0x13, 0x1800e5f83\nmov     r14, r8                                                        ; +0x18, 0x1800e5f88\nmov     rdi, rdx                                                       ; +0x1b, 0x1800e5f8b\nmov     rsi, rcx                                                       ; +0x1e, 0x1800e5f8e\ntest    rdx, rdx                                                       ; +0x21, 0x1800e5f91\njnz     short loc_1800E5FA7                                            ; +0x24, 0x1800e5f94\nlea     eax, [rdx+1Fh]                                                 ; +0x26, 0x1800e5f96\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x29, 0x1800e5f99\nadd     rsp, 30h                                                       ; +0x2e, 0x1800e5f9e\npop     r14                                                            ; +0x32, 0x1800e5fa2\npop     rdi                                                            ; +0x34, 0x1800e5fa4\npop     rsi                                                            ; +0x35, 0x1800e5fa5\nretn                                                                   ; +0x36, 0x1800e5fa6\nmov     [rsp+48h+arg_0], rbx                                           ; +0x37, 0x1800e5fa7\nmov     rbx, [rsp+48h+arg_20]                                          ; +0x3c, 0x1800e5fac\ntest    rbx, rbx                                                       ; +0x41, 0x1800e5fb1\njz      short loc_1800E5FB9                                            ; +0x44, 0x1800e5fb4\nmov     [rbx], rax                                                     ; +0x46, 0x1800e5fb6\nlea     r9, [rsp+48h+arg_8]                                            ; +0x49, 0x1800e5fb9\nmov     r8, rdi                                                        ; +0x4e, 0x1800e5fbe\nmov     edx, 0FFFFFFFFh                                                ; +0x51, 0x1800e5fc1\ncall    sub_1800FAF10                                                  ; +0x56, 0x1800e5fc6\ntest    eax, eax                                                       ; +0x5b, 0x1800e5fcb\njnz     short loc_1800E6040                                            ; +0x5d, 0x1800e5fcd\nmov     rdx, rdi                                                       ; +0x5f, 0x1800e5fcf\nmov     rcx, rsi                                                       ; +0x62, 0x1800e5fd2\ncall    sub_1800FD2E0                                                  ; +0x65, 0x1800e5fd5\ntest    eax, eax                                                       ; +0x6a, 0x1800e5fda\njnz     short loc_1800E6040                                            ; +0x6c, 0x1800e5fdc\nmov     rcx, [rsp+48h+arg_8]                                           ; +0x6e, 0x1800e5fde\nmovzx   r9d, bpl                                                       ; +0x73, 0x1800e5fe3\nmov     [rsp+48h+var_20], al                                           ; +0x77, 0x1800e5fe7\nmov     r8, r14                                                        ; +0x7b, 0x1800e5feb\nmov     rdx, rdi                                                       ; +0x7e, 0x1800e5fee\nmov     [rsp+48h+var_28], 1                                            ; +0x81, 0x1800e5ff1\ncall    sub_1800CE1D0                                                  ; +0x86, 0x1800e5ff6\nmov     rcx, [rsp+48h+arg_8]                                           ; +0x8b, 0x1800e5ffb\nmov     edi, eax                                                       ; +0x90, 0x1800e6000\ntest    eax, eax                                                       ; +0x92, 0x1800e6002\njz      short loc_1800E6014                                            ; +0x94, 0x1800e6004\nmov     edx, 52h ; 'R'                                                 ; +0x96, 0x1800e6006\ncall    sub_1800CFDB0                                                  ; +0x9b, 0x1800e600b\nmov     eax, edi                                                       ; +0xa0, 0x1800e6010\njmp     short loc_1800E6040                                            ; +0xa2, 0x1800e6012\ncall    sub_1800D04F0                                                  ; +0xa4, 0x1800e6014\ntest    eax, eax                                                       ; +0xa9, 0x1800e6019\njnz     short loc_1800E6040                                            ; +0xab, 0x1800e601b\nmov     rcx, [rsp+48h+arg_8]                                           ; +0xad, 0x1800e601d\nmov     dl, 1                                                          ; +0xb2, 0x1800e6022\ncall    sub_1800CE750                                                  ; +0xb4, 0x1800e6024\ntest    eax, eax                                                       ; +0xb9, 0x1800e6029\njnz     short loc_1800E6040                                            ; +0xbb, 0x1800e602b\ntest    rbx, rbx                                                       ; +0xbd, 0x1800e602d\njz      short loc_1800E603E                                            ; +0xc0, 0x1800e6030\nmov     rax, [rsp+48h+arg_8]                                           ; +0xc2, 0x1800e6032\nmov     rcx, [rax+50h]                                                 ; +0xc7, 0x1800e6037\nmov     [rbx], rcx                                                     ; +0xcb, 0x1800e603b\nxor     eax, eax                                                       ; +0xce, 0x1800e603e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xd0, 0x1800e6040\nmov     rbp, [rsp+48h+arg_10]                                          ; +0xd5, 0x1800e6045\nadd     rsp, 30h                                                       ; +0xda, 0x1800e604a\npop     r14                                                            ; +0xde, 0x1800e604e\npop     rdi                                                            ; +0xe0, 0x1800e6050\npop     rsi                                                            ; +0xe1, 0x1800e6051\nretn                                                                   ; +0xe2, 0x1800e6052", "xrefs": ["FMOD::System::playDSP @ 0x1800afd88", "<???> @ 0x1801ffd44"], "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"}