{"type": "func", "start": 6443391824, "end": 6443392080, "name": "sub_1800E5B50", "pseudocode": "// \n// sub_1800E5B50 from 0x1800e5b50 to 0x1800e5c50 (256 bytes)\n// \n// 6 xrefs:\n// > FMOD::System::loadGeometry @ 0x1800af855\n// > <???> @ 0x18018dabc\n// > <???> @ 0x18018dacc\n// > <???> @ 0x18018dae0\n// > <???> @ 0x18018daf0\n// > <???> @ 0x1801ffcb4\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_1800E5B50(__int64 a1, __int64 a2, int a3, __int64 *a4)\n{\n  __int64 result; // rax\n  void *v9; // rax\n  __int64 v10; // rdx\n  _QWORD *v11; // rcx\n\n  if ( !a2 || !a4 )\n    return 31;\n  result = sub_1800D11B0(a1 + 73264, a1);\n  if ( !(_DWORD)result )\n  {\n    v9 = sub_1800B6530(\n           *((_QWORD *)off_1801AED20 + 52),\n           320,\n           \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_systemi.cpp\",\n           5827,\n           0,\n           0,\n           1);\n    *a4 = (__int64)v9;\n    if ( v9 )\n    {\n      sub_1800D1740((__int64)v9, a1 + 73264);\n      result = sub_1800D2630(*a4, a2, a3);\n      if ( !(_DWORD)result )\n      {\n        v10 = *(_QWORD *)(a1 + 73256);\n        if ( v10 )\n        {\n          v11 = (_QWORD *)*a4;\n          v11[1] = *(_QWORD *)(v10 + 8);\n          *v11 = v10;\n          *(_QWORD *)(v10 + 8) = v11;\n          *(_QWORD *)v11[1] = v11;\n        }\n        *(_QWORD *)(a1 + 73256) = *a4;\n        return 0;\n      }\n    }\n    else\n    {\n      return 38;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800E5B50 from 0x1800e5b50 to 0x1800e5c50 (256 bytes)\n; \n; 6 xrefs:\n; > FMOD::System::loadGeometry @ 0x1800af855\n; > <???> @ 0x18018dabc\n; > <???> @ 0x18018dacc\n; > <???> @ 0x18018dae0\n; > <???> @ 0x18018daf0\n; > <???> @ 0x1801ffcb4\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_8], rbx                                               ; +0x0, 0x1800e5b50\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800e5b55\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x1800e5b5a\npush    r14                                                            ; +0xf, 0x1800e5b5f\nsub     rsp, 40h                                                       ; +0x11, 0x1800e5b61\nmov     rbx, r9                                                        ; +0x15, 0x1800e5b65\nmov     r14d, r8d                                                      ; +0x18, 0x1800e5b68\nmov     rsi, rdx                                                       ; +0x1b, 0x1800e5b6b\nmov     rdi, rcx                                                       ; +0x1e, 0x1800e5b6e\ntest    rdx, rdx                                                       ; +0x21, 0x1800e5b71\njz      loc_1800E5C49                                                  ; +0x24, 0x1800e5b74\ntest    rbx, rbx                                                       ; +0x2a, 0x1800e5b7a\njz      loc_1800E5C49                                                  ; +0x2d, 0x1800e5b7d\nmov     rdx, rcx                                                       ; +0x33, 0x1800e5b83\nmov     [rsp+48h+arg_0], rbp                                           ; +0x36, 0x1800e5b86\nadd     rcx, 11E30h                                                    ; +0x3b, 0x1800e5b8b\ncall    sub_1800D11B0                                                  ; +0x42, 0x1800e5b92\ntest    eax, eax                                                       ; +0x47, 0x1800e5b97\njnz     short loc_1800E5BDA                                            ; +0x49, 0x1800e5b99\nmov     rcx, cs:off_1801AED20                                          ; +0x4b, 0x1800e5b9b\nlea     r8, aCBuildagent1Wo_64; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x52, 0x1800e5ba2\nmov     [rsp+48h+var_18], 1                                            ; +0x59, 0x1800e5ba9\nmov     r9d, 16C3h                                                     ; +0x5e, 0x1800e5bae\nmov     [rsp+48h+var_20], al                                           ; +0x64, 0x1800e5bb4\nmov     edx, 140h                                                      ; +0x68, 0x1800e5bb8\nmov     [rsp+48h+var_28], eax                                          ; +0x6d, 0x1800e5bbd\nmov     rcx, [rcx+1A0h]                                                ; +0x71, 0x1800e5bc1\ncall    sub_1800B6530                                                  ; +0x78, 0x1800e5bc8\nmov     [rbx], rax                                                     ; +0x7d, 0x1800e5bcd\ntest    rax, rax                                                       ; +0x80, 0x1800e5bd0\njnz     short loc_1800E5BF5                                            ; +0x83, 0x1800e5bd3\nmov     eax, 26h ; '&'                                                 ; +0x85, 0x1800e5bd5\nmov     rbp, [rsp+48h+arg_0]                                           ; +0x8a, 0x1800e5bda\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x8f, 0x1800e5bdf\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x94, 0x1800e5be4\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x99, 0x1800e5be9\nadd     rsp, 40h                                                       ; +0x9e, 0x1800e5bee\npop     r14                                                            ; +0xa2, 0x1800e5bf2\nretn                                                                   ; +0xa4, 0x1800e5bf4\nlea     rdx, [rdi+11E30h]                                              ; +0xa5, 0x1800e5bf5\nmov     rcx, rax                                                       ; +0xac, 0x1800e5bfc\ncall    sub_1800D1740                                                  ; +0xaf, 0x1800e5bff\nmov     rcx, [rbx]                                                     ; +0xb4, 0x1800e5c04\nmov     r8d, r14d                                                      ; +0xb7, 0x1800e5c07\nmov     rdx, rsi                                                       ; +0xba, 0x1800e5c0a\ncall    sub_1800D2630                                                  ; +0xbd, 0x1800e5c0d\ntest    eax, eax                                                       ; +0xc2, 0x1800e5c12\njnz     short loc_1800E5BDA                                            ; +0xc4, 0x1800e5c14\nmov     rdx, [rdi+11E28h]                                              ; +0xc6, 0x1800e5c16\ntest    rdx, rdx                                                       ; +0xcd, 0x1800e5c1d\njz      short loc_1800E5C3B                                            ; +0xd0, 0x1800e5c20\nmov     rcx, [rbx]                                                     ; +0xd2, 0x1800e5c22\nmov     rax, [rdx+8]                                                   ; +0xd5, 0x1800e5c25\nmov     [rcx+8], rax                                                   ; +0xd9, 0x1800e5c29\nmov     [rcx], rdx                                                     ; +0xdd, 0x1800e5c2d\nmov     [rdx+8], rcx                                                   ; +0xe0, 0x1800e5c30\nmov     rax, [rcx+8]                                                   ; +0xe4, 0x1800e5c34\nmov     [rax], rcx                                                     ; +0xe8, 0x1800e5c38\nmov     rax, [rbx]                                                     ; +0xeb, 0x1800e5c3b\nmov     [rdi+11E28h], rax                                              ; +0xee, 0x1800e5c3e\nxor     eax, eax                                                       ; +0xf5, 0x1800e5c45\njmp     short loc_1800E5BDA                                            ; +0xf7, 0x1800e5c47\nmov     eax, 1Fh                                                       ; +0xf9, 0x1800e5c49\njmp     short loc_1800E5BDF                                            ; +0xfe, 0x1800e5c4e", "xrefs": ["FMOD::System::loadGeometry @ 0x1800af855", "<???> @ 0x18018dabc", "<???> @ 0x18018dacc", "<???> @ 0x18018dae0", "<???> @ 0x18018daf0", "<???> @ 0x1801ffcb4"], "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"}