; ; FMOD::System::unloadPlugin from 0x1800b1eb0 to 0x1800b1f7e (206 bytes) ; ; 3 xrefs: ; > FMOD_System_UnloadPlugin @ 0x1800c6f99 ; > @ 0x180194348 ; > @ 0x1801fcca8 ; ; 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, 0x1800b1eb0 mov [rsp+arg_18], rsi ; +0x5, 0x1800b1eb5 push rdi ; +0xa, 0x1800b1eba sub rsp, 150h ; +0xb, 0x1800b1ebb mov rax, cs:__security_cookie ; +0x12, 0x1800b1ec2 xor rax, rsp ; +0x19, 0x1800b1ec9 mov [rsp+158h+var_18], rax ; +0x1c, 0x1800b1ecc mov edi, edx ; +0x24, 0x1800b1ed4 mov [rsp+158h+var_128], 0 ; +0x26, 0x1800b1ed6 lea rdx, [rsp+158h+var_120] ; +0x2f, 0x1800b1edf mov rsi, rcx ; +0x34, 0x1800b1ee4 lea r8, [rsp+158h+var_128] ; +0x37, 0x1800b1ee7 call ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x3c, 0x1800b1eec mov ebx, eax ; +0x41, 0x1800b1ef1 test eax, eax ; +0x43, 0x1800b1ef3 jnz short loc_1800B1F09 ; +0x45, 0x1800b1ef5 mov rcx, [rsp+158h+var_120] ; +0x47, 0x1800b1ef7 mov edx, edi ; +0x4c, 0x1800b1efc call sub_1800E8400 ; +0x4e, 0x1800b1efe mov ebx, eax ; +0x53, 0x1800b1f03 test eax, eax ; +0x55, 0x1800b1f05 jz short loc_1800B1F48 ; +0x57, 0x1800b1f07 mov rax, cs:off_1801AED20 ; +0x59, 0x1800b1f09 test byte ptr [rax+10h], 80h ; +0x60, 0x1800b1f10 jz short loc_1800B1F48 ; +0x64, 0x1800b1f14 mov r8d, edi ; +0x66, 0x1800b1f16 lea rcx, [rsp+158h+var_118] ; +0x69, 0x1800b1f19 mov edx, 100h ; +0x6e, 0x1800b1f1e call sub_1800F2EF0 ; +0x73, 0x1800b1f23 lea rax, [rsp+158h+var_118] ; +0x78, 0x1800b1f28 mov r8, rsi ; +0x7d, 0x1800b1f2d lea r9, aSystemUnloadpl; "System::unloadPlugin" ; +0x80, 0x1800b1f30 mov [rsp+158h+var_138], rax ; +0x87, 0x1800b1f37 mov edx, 1 ; +0x8c, 0x1800b1f3c mov ecx, ebx ; +0x91, 0x1800b1f41 call sub_1800B20E0 ; +0x93, 0x1800b1f43 mov rcx, [rsp+158h+var_128] ; +0x98, 0x1800b1f48 test rcx, rcx ; +0x9d, 0x1800b1f4d jz short loc_1800B1F57 ; +0xa0, 0x1800b1f50 call sub_180102320 ; +0xa2, 0x1800b1f52 mov eax, ebx ; +0xa7, 0x1800b1f57 mov rcx, [rsp+158h+var_18] ; +0xa9, 0x1800b1f59 xor rcx, rsp; StackCookie ; +0xb1, 0x1800b1f61 call __security_check_cookie ; +0xb4, 0x1800b1f64 lea r11, [rsp+158h+var_8] ; +0xb9, 0x1800b1f69 mov rbx, [r11+20h] ; +0xc1, 0x1800b1f71 mov rsi, [r11+28h] ; +0xc5, 0x1800b1f75 mov rsp, r11 ; +0xc9, 0x1800b1f79 pop rdi ; +0xcc, 0x1800b1f7c retn ; +0xcd, 0x1800b1f7d