{"type": "func", "start": 6443380384, "end": 6443380650, "name": "sub_1800E2EA0", "pseudocode": "// \n// sub_1800E2EA0 from 0x1800e2ea0 to 0x1800e2faa (266 bytes)\n// \n// 8 xrefs:\n// > sub_180018DF0 @ 0x180019b23\n// > sub_180018DF0 @ 0x180019d49\n// > sub_180018DF0 @ 0x180019f40\n// > sub_180018DF0 @ 0x18001bb07\n// > FMOD::System::createDSPByType @ 0x1800ac0d9\n// > sub_1800C8B40 @ 0x1800c8b6d\n// > sub_1800C8B40 @ 0x1800c8b93\n// > <???> @ 0x1801ffa44\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:54:16 +0000\n// \n\n__int64 __fastcall sub_1800E2EA0(__int64 a1, int a2, __int64 *a3)\n{\n  __int64 result; // rax\n  __int64 v6; // rcx\n  _QWORD v7[3]; // [rsp+30h] [rbp-48h] BYREF\n  int v8; // [rsp+48h] [rbp-30h]\n  __int64 v9; // [rsp+4Ch] [rbp-2Ch]\n  __int64 v10; // [rsp+54h] [rbp-24h]\n  __int64 v11; // [rsp+5Ch] [rbp-1Ch]\n  __int64 v12; // [rsp+64h] [rbp-14h]\n  int v13; // [rsp+6Ch] [rbp-Ch]\n  __int128 *v14; // [rsp+80h] [rbp+8h] BYREF\n\n  if ( !*(_QWORD *)(a1 + 69128) )\n    return 67;\n  if ( !a3 )\n    return 31;\n  *a3 = 0;\n  if ( !a2 || a2 >= 37 )\n    return 31;\n  if ( a2 == 1 )\n  {\n    v7[0] = 0;\n    v7[2] = 0;\n    v9 = 0;\n    v10 = 0;\n    v11 = 0;\n    v12 = 0;\n    v13 = 0;\n    v8 = 1;\n    v7[1] = \"FMOD Mixer unit\";\n    result = sub_1800FC620(a1, (unsigned int)v7, 0, (_DWORD)a3, 1);\n    if ( (_DWORD)result )\n      return result;\n    return 0;\n  }\n  v6 = *(_QWORD *)(a1 + 69128);\n  v14 = nullptr;\n  result = sub_1800D7BE0(v6, a2, &v14);\n  if ( !(_DWORD)result )\n  {\n    result = sub_1800D7620(*(_QWORD *)(a1 + 69128), v14, 0, a3);\n    if ( !(_DWORD)result )\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800E2EA0 from 0x1800e2ea0 to 0x1800e2faa (266 bytes)\n; \n; 8 xrefs:\n; > sub_180018DF0 @ 0x180019b23\n; > sub_180018DF0 @ 0x180019d49\n; > sub_180018DF0 @ 0x180019f40\n; > sub_180018DF0 @ 0x18001bb07\n; > FMOD::System::createDSPByType @ 0x1800ac0d9\n; > sub_1800C8B40 @ 0x1800c8b6d\n; > sub_1800C8B40 @ 0x1800c8b93\n; > <???> @ 0x1801ffa44\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:54:16 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800e2ea0\npush    rdi                                                            ; +0x5, 0x1800e2ea5\nsub     rsp, 70h                                                       ; +0x6, 0x1800e2ea6\ncmp     qword ptr [rcx+10E08h], 0                                      ; +0xa, 0x1800e2eaa\nmov     rbx, r8                                                        ; +0x12, 0x1800e2eb2\nmov     rdi, rcx                                                       ; +0x15, 0x1800e2eb5\njnz     short loc_1800E2ECD                                            ; +0x18, 0x1800e2eb8\nmov     eax, 43h ; 'C'                                                 ; +0x1a, 0x1800e2eba\nmov     rbx, [rsp+78h+arg_8]                                           ; +0x1f, 0x1800e2ebf\nadd     rsp, 70h                                                       ; +0x27, 0x1800e2ec7\npop     rdi                                                            ; +0x2b, 0x1800e2ecb\nretn                                                                   ; +0x2c, 0x1800e2ecc\ntest    rbx, rbx                                                       ; +0x2d, 0x1800e2ecd\njz      loc_1800E2F97                                                  ; +0x30, 0x1800e2ed0\nxor     eax, eax                                                       ; +0x36, 0x1800e2ed6\nmov     [r8], rax                                                      ; +0x38, 0x1800e2ed8\ntest    edx, edx                                                       ; +0x3b, 0x1800e2edb\njz      loc_1800E2F97                                                  ; +0x3d, 0x1800e2edd\ncmp     edx, 25h ; '%'                                                 ; +0x43, 0x1800e2ee3\njge     loc_1800E2F97                                                  ; +0x46, 0x1800e2ee6\ncmp     edx, 1                                                         ; +0x4c, 0x1800e2eec\njnz     short loc_1800E2F49                                            ; +0x4f, 0x1800e2eef\nmov     [rsp+78h+var_48], rax                                          ; +0x51, 0x1800e2ef1\nmov     r9, rbx                                                        ; +0x56, 0x1800e2ef6\nmov     [rsp+78h+var_38], rax                                          ; +0x59, 0x1800e2ef9\nxor     r8d, r8d                                                       ; +0x5e, 0x1800e2efe\nmov     [rsp+78h+var_2C], rax                                          ; +0x61, 0x1800e2f01\nmov     [rsp+78h+var_24], rax                                          ; +0x66, 0x1800e2f06\nmov     [rsp+78h+var_1C], rax                                          ; +0x6b, 0x1800e2f0b\nmov     [rsp+78h+var_14], rax                                          ; +0x70, 0x1800e2f10\nmov     [rsp+78h+var_C], eax                                           ; +0x75, 0x1800e2f15\nlea     rax, aFmodMixerUnit; \"FMOD Mixer unit\"                         ; +0x79, 0x1800e2f19\nmov     [rsp+78h+var_30], edx                                          ; +0x80, 0x1800e2f20\nmov     [rsp+78h+var_58], dl                                           ; +0x84, 0x1800e2f24\nlea     rdx, [rsp+78h+var_48]                                          ; +0x88, 0x1800e2f28\nmov     [rsp+78h+var_40], rax                                          ; +0x8d, 0x1800e2f2d\ncall    sub_1800FC620                                                  ; +0x92, 0x1800e2f32\ntest    eax, eax                                                       ; +0x97, 0x1800e2f37\njz      short loc_1800E2F87                                            ; +0x99, 0x1800e2f39\nmov     rbx, [rsp+78h+arg_8]                                           ; +0x9b, 0x1800e2f3b\nadd     rsp, 70h                                                       ; +0xa3, 0x1800e2f43\npop     rdi                                                            ; +0xa7, 0x1800e2f47\nretn                                                                   ; +0xa8, 0x1800e2f48\nmov     rcx, [rcx+10E08h]                                              ; +0xa9, 0x1800e2f49\nlea     r8, [rsp+78h+arg_0]                                            ; +0xb0, 0x1800e2f50\nmov     [rsp+78h+arg_0], rax                                           ; +0xb8, 0x1800e2f58\ncall    sub_1800D7BE0                                                  ; +0xc0, 0x1800e2f60\ntest    eax, eax                                                       ; +0xc5, 0x1800e2f65\njnz     short loc_1800E2F9C                                            ; +0xc7, 0x1800e2f67\nmov     rdx, [rsp+78h+arg_0]                                           ; +0xc9, 0x1800e2f69\nmov     r9, rbx                                                        ; +0xd1, 0x1800e2f71\nmov     rcx, [rdi+10E08h]                                              ; +0xd4, 0x1800e2f74\nxor     r8d, r8d                                                       ; +0xdb, 0x1800e2f7b\ncall    sub_1800D7620                                                  ; +0xde, 0x1800e2f7e\ntest    eax, eax                                                       ; +0xe3, 0x1800e2f83\njnz     short loc_1800E2F9C                                            ; +0xe5, 0x1800e2f85\nxor     eax, eax                                                       ; +0xe7, 0x1800e2f87\nmov     rbx, [rsp+78h+arg_8]                                           ; +0xe9, 0x1800e2f89\nadd     rsp, 70h                                                       ; +0xf1, 0x1800e2f91\npop     rdi                                                            ; +0xf5, 0x1800e2f95\nretn                                                                   ; +0xf6, 0x1800e2f96\nmov     eax, 1Fh                                                       ; +0xf7, 0x1800e2f97\nmov     rbx, [rsp+78h+arg_8]                                           ; +0xfc, 0x1800e2f9c\nadd     rsp, 70h                                                       ; +0x104, 0x1800e2fa4\npop     rdi                                                            ; +0x108, 0x1800e2fa8\nretn                                                                   ; +0x109, 0x1800e2fa9", "xrefs": ["sub_180018DF0 @ 0x180019b23", "sub_180018DF0 @ 0x180019d49", "sub_180018DF0 @ 0x180019f40", "sub_180018DF0 @ 0x18001bb07", "FMOD::System::createDSPByType @ 0x1800ac0d9", "sub_1800C8B40 @ 0x1800c8b6d", "sub_1800C8B40 @ 0x1800c8b93", "<???> @ 0x1801ffa44"], "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"}