; ; FMOD::Sound::setMode from 0x1800a9db0 to 0x1800a9eaf (255 bytes) ; ; 3 xrefs: ; > FMOD_Sound_SetMode @ 0x1800c67c9 ; > @ 0x180194348 ; > @ 0x1801fbdf0 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_10], rbx ; +0x0, 0x1800a9db0 mov [rsp+arg_18], rsi ; +0x5, 0x1800a9db5 push rdi ; +0xa, 0x1800a9dba sub rsp, 150h ; +0xb, 0x1800a9dbb mov rax, cs:__security_cookie ; +0x12, 0x1800a9dc2 xor rax, rsp ; +0x19, 0x1800a9dc9 mov [rsp+158h+var_18], rax ; +0x1c, 0x1800a9dcc mov edi, edx ; +0x24, 0x1800a9dd4 mov [rsp+158h+var_120], 0 ; +0x26, 0x1800a9dd6 lea rdx, [rsp+158h+var_128] ; +0x2f, 0x1800a9ddf mov rsi, rcx ; +0x34, 0x1800a9de4 lea r8, [rsp+158h+var_120] ; +0x37, 0x1800a9de7 call sub_1800E1460 ; +0x3c, 0x1800a9dec mov ebx, eax ; +0x41, 0x1800a9df1 test eax, eax ; +0x43, 0x1800a9df3 jnz short loc_1800A9E35 ; +0x45, 0x1800a9df5 mov rax, [rsp+158h+var_128] ; +0x47, 0x1800a9df7 mov ecx, [rax+110h] ; +0x4c, 0x1800a9dfc nop ; +0x52, 0x1800a9e02 test ecx, ecx ; +0x53, 0x1800a9e03 jz short loc_1800A9E1F ; +0x55, 0x1800a9e05 mov rax, [rsp+158h+var_128] ; +0x57, 0x1800a9e07 mov ecx, [rax+110h] ; +0x5c, 0x1800a9e0c nop ; +0x62, 0x1800a9e12 cmp ecx, 7 ; +0x63, 0x1800a9e13 jz short loc_1800A9E1F ; +0x66, 0x1800a9e16 mov ebx, 2Eh ; '.' ; +0x68, 0x1800a9e18 jmp short loc_1800A9E35 ; +0x6d, 0x1800a9e1d mov rcx, [rsp+158h+var_128] ; +0x6f, 0x1800a9e1f mov edx, edi ; +0x74, 0x1800a9e24 mov rax, [rcx] ; +0x76, 0x1800a9e26 call qword ptr [rax+118h] ; +0x79, 0x1800a9e29 mov ebx, eax ; +0x7f, 0x1800a9e2f test eax, eax ; +0x81, 0x1800a9e31 jz short loc_1800A9E74 ; +0x83, 0x1800a9e33 mov rax, cs:off_1801AED20 ; +0x85, 0x1800a9e35 test byte ptr [rax+10h], 80h ; +0x8c, 0x1800a9e3c jz short loc_1800A9E74 ; +0x90, 0x1800a9e40 mov r8d, edi ; +0x92, 0x1800a9e42 lea rcx, [rsp+158h+var_118] ; +0x95, 0x1800a9e45 mov edx, 100h ; +0x9a, 0x1800a9e4a call sub_1800F2EF0 ; +0x9f, 0x1800a9e4f lea rax, [rsp+158h+var_118] ; +0xa4, 0x1800a9e54 mov r8, rsi ; +0xa9, 0x1800a9e59 lea r9, aSoundSetmode; "Sound::setMode" ; +0xac, 0x1800a9e5c mov [rsp+158h+var_138], rax ; +0xb3, 0x1800a9e63 mov edx, 5 ; +0xb8, 0x1800a9e68 mov ecx, ebx ; +0xbd, 0x1800a9e6d call sub_1800B20E0 ; +0xbf, 0x1800a9e6f mov rcx, [rsp+158h+var_120] ; +0xc4, 0x1800a9e74 test rcx, rcx ; +0xc9, 0x1800a9e79 jz short loc_1800A9E88 ; +0xcc, 0x1800a9e7c mov edx, 0Ch ; +0xce, 0x1800a9e7e call sub_180102300 ; +0xd3, 0x1800a9e83 mov eax, ebx ; +0xd8, 0x1800a9e88 mov rcx, [rsp+158h+var_18] ; +0xda, 0x1800a9e8a xor rcx, rsp; StackCookie ; +0xe2, 0x1800a9e92 call __security_check_cookie ; +0xe5, 0x1800a9e95 lea r11, [rsp+158h+var_8] ; +0xea, 0x1800a9e9a mov rbx, [r11+20h] ; +0xf2, 0x1800a9ea2 mov rsi, [r11+28h] ; +0xf6, 0x1800a9ea6 mov rsp, r11 ; +0xfa, 0x1800a9eaa pop rdi ; +0xfd, 0x1800a9ead retn ; +0xfe, 0x1800a9eae