{"type": "func", "start": 6443141904, "end": 6443142087, "name": "FMOD::Sound::getSystemObject", "pseudocode": "// \n// FMOD::Sound::getSystemObject from 0x1800a8b10 to 0x1800a8bc7 (183 bytes)\n// \n// 3 xrefs:\n// > FMOD_Sound_GetSystemObject @ 0x1800c66f9\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fbbd4\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 FMOD::Sound::getSystemObject(__int64 a1, __int64 a2)\n{\n  int v3; // esi\n  unsigned int v4; // ebx\n  __int64 result; // rax\n  __int64 v6; // [rsp+30h] [rbp-128h] BYREF\n  _BYTE v7[256]; // [rsp+40h] [rbp-118h] BYREF\n\n  v3 = a1;\n  v4 = sub_1800E1460(a1, &v6, 0);\n  if ( v4 || (result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 32LL))(v6, a2), (v4 = result) != 0) )\n  {\n    if ( *((char *)off_1801AED20 + 16) < 0 )\n    {\n      sub_1800F3230(v7, 256, a2);\n      sub_1800B20E0(v4, 5, v3, (unsigned int)\"Sound::getSystemObject\", (__int64)v7);\n    }\n    return v4;\n  }\n  return result;\n}", "assembly": "; \n; FMOD::Sound::getSystemObject from 0x1800a8b10 to 0x1800a8bc7 (183 bytes)\n; \n; 3 xrefs:\n; > FMOD_Sound_GetSystemObject @ 0x1800c66f9\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fbbd4\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], rbx                                              ; +0x0, 0x1800a8b10\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800a8b15\npush    rdi                                                            ; +0xa, 0x1800a8b1a\nsub     rsp, 150h                                                      ; +0xb, 0x1800a8b1b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1800a8b22\nxor     rax, rsp                                                       ; +0x19, 0x1800a8b29\nmov     [rsp+158h+var_18], rax                                         ; +0x1c, 0x1800a8b2c\nmov     rdi, rdx                                                       ; +0x24, 0x1800a8b34\nxor     r8d, r8d                                                       ; +0x27, 0x1800a8b37\nlea     rdx, [rsp+158h+var_128]                                        ; +0x2a, 0x1800a8b3a\nmov     rsi, rcx                                                       ; +0x2f, 0x1800a8b3f\ncall    sub_1800E1460                                                  ; +0x32, 0x1800a8b42\nmov     ebx, eax                                                       ; +0x37, 0x1800a8b47\ntest    eax, eax                                                       ; +0x39, 0x1800a8b49\njnz     short loc_1800A8B61                                            ; +0x3b, 0x1800a8b4b\nmov     rcx, [rsp+158h+var_128]                                        ; +0x3d, 0x1800a8b4d\nmov     rdx, rdi                                                       ; +0x42, 0x1800a8b52\nmov     rax, [rcx]                                                     ; +0x45, 0x1800a8b55\ncall    qword ptr [rax+20h]                                            ; +0x48, 0x1800a8b58\nmov     ebx, eax                                                       ; +0x4b, 0x1800a8b5b\ntest    eax, eax                                                       ; +0x4d, 0x1800a8b5d\njz      short loc_1800A8BA2                                            ; +0x4f, 0x1800a8b5f\nmov     rax, cs:off_1801AED20                                          ; +0x51, 0x1800a8b61\ntest    byte ptr [rax+10h], 80h                                        ; +0x58, 0x1800a8b68\njz      short loc_1800A8BA0                                            ; +0x5c, 0x1800a8b6c\nmov     r8, rdi                                                        ; +0x5e, 0x1800a8b6e\nlea     rcx, [rsp+158h+var_118]                                        ; +0x61, 0x1800a8b71\nmov     edx, 100h                                                      ; +0x66, 0x1800a8b76\ncall    sub_1800F3230                                                  ; +0x6b, 0x1800a8b7b\nlea     rax, [rsp+158h+var_118]                                        ; +0x70, 0x1800a8b80\nmov     r8, rsi                                                        ; +0x75, 0x1800a8b85\nlea     r9, aSoundGetsystem; \"Sound::getSystemObject\"                  ; +0x78, 0x1800a8b88\nmov     [rsp+158h+var_138], rax                                        ; +0x7f, 0x1800a8b8f\nmov     edx, 5                                                         ; +0x84, 0x1800a8b94\nmov     ecx, ebx                                                       ; +0x89, 0x1800a8b99\ncall    sub_1800B20E0                                                  ; +0x8b, 0x1800a8b9b\nmov     eax, ebx                                                       ; +0x90, 0x1800a8ba0\nmov     rcx, [rsp+158h+var_18]                                         ; +0x92, 0x1800a8ba2\nxor     rcx, rsp; StackCookie                                          ; +0x9a, 0x1800a8baa\ncall    __security_check_cookie                                        ; +0x9d, 0x1800a8bad\nlea     r11, [rsp+158h+var_8]                                          ; +0xa2, 0x1800a8bb2\nmov     rbx, [r11+20h]                                                 ; +0xaa, 0x1800a8bba\nmov     rsi, [r11+28h]                                                 ; +0xae, 0x1800a8bbe\nmov     rsp, r11                                                       ; +0xb2, 0x1800a8bc2\npop     rdi                                                            ; +0xb5, 0x1800a8bc5\nretn                                                                   ; +0xb6, 0x1800a8bc6", "xrefs": ["FMOD_Sound_GetSystemObject @ 0x1800c66f9", "<???> @ 0x180194348", "<???> @ 0x1801fbbd4"], "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"}