{"type": "func", "start": 6443380656, "end": 6443380916, "name": "sub_1800E2FB0", "pseudocode": "// \n// sub_1800E2FB0 from 0x1800e2fb0 to 0x1800e30b4 (260 bytes)\n// \n// 6 xrefs:\n// > FMOD::System::createGeometry @ 0x1800ac213\n// > <???> @ 0x18018da2c\n// > <???> @ 0x18018da3c\n// > <???> @ 0x18018da50\n// > <???> @ 0x18018da60\n// > <???> @ 0x1801ffa50\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_1800E2FB0(__int64 a1, int 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 ( !a4 || a2 <= 0 || a3 <= 0 )\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           5691,\n           0,\n           0,\n           1);\n    *a4 = (__int64)v9;\n    if ( v9 )\n    {\n      sub_1800D1740((__int64)v9, a1 + 73264);\n      result = sub_1800D19B0(*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_1800E2FB0 from 0x1800e2fb0 to 0x1800e30b4 (260 bytes)\n; \n; 6 xrefs:\n; > FMOD::System::createGeometry @ 0x1800ac213\n; > <???> @ 0x18018da2c\n; > <???> @ 0x18018da3c\n; > <???> @ 0x18018da50\n; > <???> @ 0x18018da60\n; > <???> @ 0x1801ffa50\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, 0x1800e2fb0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800e2fb5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800e2fba\npush    rdi                                                            ; +0xf, 0x1800e2fbf\nsub     rsp, 40h                                                       ; +0x10, 0x1800e2fc0\nmov     rdi, r9                                                        ; +0x14, 0x1800e2fc4\nmov     esi, r8d                                                       ; +0x17, 0x1800e2fc7\nmov     ebp, edx                                                       ; +0x1a, 0x1800e2fca\nmov     rbx, rcx                                                       ; +0x1c, 0x1800e2fcc\ntest    r9, r9                                                         ; +0x1f, 0x1800e2fcf\njz      loc_1800E30AD                                                  ; +0x22, 0x1800e2fd2\ntest    edx, edx                                                       ; +0x28, 0x1800e2fd8\njle     loc_1800E30AD                                                  ; +0x2a, 0x1800e2fda\ntest    r8d, r8d                                                       ; +0x30, 0x1800e2fe0\njle     loc_1800E30AD                                                  ; +0x33, 0x1800e2fe3\nmov     rdx, rcx                                                       ; +0x39, 0x1800e2fe9\nmov     [rsp+48h+arg_0], r14                                           ; +0x3c, 0x1800e2fec\nadd     rcx, 11E30h                                                    ; +0x41, 0x1800e2ff1\ncall    sub_1800D11B0                                                  ; +0x48, 0x1800e2ff8\ntest    eax, eax                                                       ; +0x4d, 0x1800e2ffd\njnz     short loc_1800E3040                                            ; +0x4f, 0x1800e2fff\nmov     rcx, cs:off_1801AED20                                          ; +0x51, 0x1800e3001\nlea     r8, aCBuildagent1Wo_64; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x58, 0x1800e3008\nmov     [rsp+48h+var_18], 1                                            ; +0x5f, 0x1800e300f\nmov     r9d, 163Bh                                                     ; +0x64, 0x1800e3014\nmov     [rsp+48h+var_20], al                                           ; +0x6a, 0x1800e301a\nmov     edx, 140h                                                      ; +0x6e, 0x1800e301e\nmov     [rsp+48h+var_28], eax                                          ; +0x73, 0x1800e3023\nmov     rcx, [rcx+1A0h]                                                ; +0x77, 0x1800e3027\ncall    sub_1800B6530                                                  ; +0x7e, 0x1800e302e\nmov     [rdi], rax                                                     ; +0x83, 0x1800e3033\ntest    rax, rax                                                       ; +0x86, 0x1800e3036\njnz     short loc_1800E305A                                            ; +0x89, 0x1800e3039\nmov     eax, 26h ; '&'                                                 ; +0x8b, 0x1800e303b\nmov     r14, [rsp+48h+arg_0]                                           ; +0x90, 0x1800e3040\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x95, 0x1800e3045\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x9a, 0x1800e304a\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x9f, 0x1800e304f\nadd     rsp, 40h                                                       ; +0xa4, 0x1800e3054\npop     rdi                                                            ; +0xa8, 0x1800e3058\nretn                                                                   ; +0xa9, 0x1800e3059\nlea     rdx, [rbx+11E30h]                                              ; +0xaa, 0x1800e305a\nmov     rcx, rax                                                       ; +0xb1, 0x1800e3061\ncall    sub_1800D1740                                                  ; +0xb4, 0x1800e3064\nmov     rcx, [rdi]                                                     ; +0xb9, 0x1800e3069\nmov     r8d, esi                                                       ; +0xbc, 0x1800e306c\nmov     edx, ebp                                                       ; +0xbf, 0x1800e306f\ncall    sub_1800D19B0                                                  ; +0xc1, 0x1800e3071\ntest    eax, eax                                                       ; +0xc6, 0x1800e3076\njnz     short loc_1800E3040                                            ; +0xc8, 0x1800e3078\nmov     rdx, [rbx+11E28h]                                              ; +0xca, 0x1800e307a\ntest    rdx, rdx                                                       ; +0xd1, 0x1800e3081\njz      short loc_1800E309F                                            ; +0xd4, 0x1800e3084\nmov     rcx, [rdi]                                                     ; +0xd6, 0x1800e3086\nmov     rax, [rdx+8]                                                   ; +0xd9, 0x1800e3089\nmov     [rcx+8], rax                                                   ; +0xdd, 0x1800e308d\nmov     [rcx], rdx                                                     ; +0xe1, 0x1800e3091\nmov     [rdx+8], rcx                                                   ; +0xe4, 0x1800e3094\nmov     rax, [rcx+8]                                                   ; +0xe8, 0x1800e3098\nmov     [rax], rcx                                                     ; +0xec, 0x1800e309c\nmov     rax, [rdi]                                                     ; +0xef, 0x1800e309f\nmov     [rbx+11E28h], rax                                              ; +0xf2, 0x1800e30a2\nxor     eax, eax                                                       ; +0xf9, 0x1800e30a9\njmp     short loc_1800E3040                                            ; +0xfb, 0x1800e30ab\nmov     eax, 1Fh                                                       ; +0xfd, 0x1800e30ad\njmp     short loc_1800E3045                                            ; +0x102, 0x1800e30b2", "xrefs": ["FMOD::System::createGeometry @ 0x1800ac213", "<???> @ 0x18018da2c", "<???> @ 0x18018da3c", "<???> @ 0x18018da50", "<???> @ 0x18018da60", "<???> @ 0x1801ffa50"], "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"}