; ; FMODAudioEngine::channelUnlinkSound from 0x140057e50 to 0x1400580d1 (641 bytes) ; ; 2 xrefs: ; > FMODAudioEngine::unregisterChannel @ 0x140057e3b ; > @ 0x1406c5124 ; ; 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, 0x140057e50 mov [rsp+arg_18], rbp ; +0x5, 0x140057e55 push rsi ; +0xa, 0x140057e5a push rdi ; +0xb, 0x140057e5b push r14 ; +0xc, 0x140057e5c sub rsp, 70h ; +0xe, 0x140057e5e mov rax, cs:__security_cookie ; +0x12, 0x140057e62 xor rax, rsp ; +0x19, 0x140057e69 mov [rsp+88h+var_20], rax ; +0x1c, 0x140057e6c mov rdi, rcx ; +0x21, 0x140057e71 mov [rsp+88h+var_68], edx ; +0x24, 0x140057e74 mov r9d, edx ; +0x28, 0x140057e78 shr r9d, 18h ; +0x2b, 0x140057e7b mov eax, edx ; +0x2f, 0x140057e7f shr eax, 10h ; +0x31, 0x140057e81 movzx r8d, al ; +0x34, 0x140057e84 mov eax, edx ; +0x38, 0x140057e88 shr eax, 8 ; +0x3a, 0x140057e8a movzx ecx, al ; +0x3d, 0x140057e8d movzx eax, dl ; +0x40, 0x140057e90 mov r14, 0CBF29CE484222325h ; +0x43, 0x140057e93 xor rax, r14 ; +0x4d, 0x140057e9d mov rbp, 100000001B3h ; +0x50, 0x140057ea0 imul rax, rbp ; +0x5a, 0x140057eaa xor rax, rcx ; +0x5e, 0x140057eae imul rax, rbp ; +0x61, 0x140057eb1 xor rax, r8 ; +0x65, 0x140057eb5 imul rax, rbp ; +0x68, 0x140057eb8 xor rax, r9 ; +0x6c, 0x140057ebc imul rax, rbp ; +0x6f, 0x140057ebf mov rcx, [rdi+780h] ; +0x73, 0x140057ec3 and rcx, rax ; +0x7a, 0x140057eca shl rcx, 4 ; +0x7d, 0x140057ecd add rcx, [rdi+768h] ; +0x81, 0x140057ed1 mov rax, [rcx+8] ; +0x88, 0x140057ed8 xor ebx, ebx ; +0x8c, 0x140057edc cmp rax, [rdi+758h] ; +0x8e, 0x140057ede jz short loc_140057F00 ; +0x95, 0x140057ee5 mov rcx, [rcx] ; +0x97, 0x140057ee7 cmp edx, [rax+10h] ; +0x9a, 0x140057eea jz short loc_140057F03 ; +0x9d, 0x140057eed nop ; +0x9f, 0x140057eef cmp rax, rcx ; +0xa0, 0x140057ef0 jz short loc_140057F00 ; +0xa3, 0x140057ef3 mov rax, [rax+8] ; +0xa5, 0x140057ef5 cmp edx, [rax+10h] ; +0xa9, 0x140057ef9 jnz short loc_140057EF0 ; +0xac, 0x140057efc jmp short loc_140057F03 ; +0xae, 0x140057efe mov rax, rbx ; +0xb0, 0x140057f00 test rax, rax ; +0xb3, 0x140057f03 jz loc_1400580AF ; +0xb6, 0x140057f06 lea rcx, [rdi+750h] ; +0xbc, 0x140057f0c lea r8, [rsp+88h+var_68] ; +0xc3, 0x140057f13 lea rdx, [rsp+88h+var_50] ; +0xc8, 0x140057f18 call sub_1400608D0 ; +0xcd, 0x140057f1d mov rdx, [rax] ; +0xd2, 0x140057f22 add rdx, 18h ; +0xd5, 0x140057f25 lea rcx, [rsp+88h+var_40] ; +0xd9, 0x140057f29 call sub_14003BDB0 ; +0xde, 0x140057f2e nop ; +0xe3, 0x140057f33 lea rdx, [rsp+88h+var_40] ; +0xe4, 0x140057f34 cmp [rsp+88h+var_28], 0Fh ; +0xe9, 0x140057f39 cmova rdx, [rsp+88h+var_40] ; +0xef, 0x140057f3f mov r9, r14 ; +0xf5, 0x140057f45 mov rcx, rbx ; +0xf8, 0x140057f48 mov r8, [rsp+88h+var_30] ; +0xfb, 0x140057f4b test r8, r8 ; +0x100, 0x140057f50 jz short loc_140057F73 ; +0x103, 0x140057f53 nop word ptr [rax+rax+00000000h] ; +0x105, 0x140057f55 movzx eax, byte ptr [rcx+rdx] ; +0x110, 0x140057f60 xor r9, rax ; +0x114, 0x140057f64 imul r9, rbp ; +0x117, 0x140057f67 inc rcx ; +0x11b, 0x140057f6b cmp rcx, r8 ; +0x11e, 0x140057f6e jb short loc_140057F60 ; +0x121, 0x140057f71 lea r8, [rsp+88h+var_40] ; +0x123, 0x140057f73 lea rdx, [rsp+88h+var_60] ; +0x128, 0x140057f78 lea rcx, [rdi+180h] ; +0x12d, 0x140057f7d call sub_140063040 ; +0x134, 0x140057f84 cmp qword ptr [rax+8], 0 ; +0x139, 0x140057f89 jz loc_1400580A5 ; +0x13e, 0x140057f8e lea r8, [rsp+88h+var_40] ; +0x144, 0x140057f94 lea rdx, [rsp+88h+var_60] ; +0x149, 0x140057f99 lea rcx, [rdi+180h] ; +0x14e, 0x140057f9e call sub_1400612C0 ; +0x155, 0x140057fa5 mov rcx, [rax] ; +0x15a, 0x140057faa dec dword ptr [rcx+5Ch] ; +0x15d, 0x140057fad mov edx, [rsp+88h+var_68] ; +0x160, 0x140057fb0 movzx r8d, dl ; +0x164, 0x140057fb4 xor r8, r14 ; +0x168, 0x140057fb8 imul r8, rbp ; +0x16b, 0x140057fbb movzx eax, byte ptr [rsp+88h+var_68+1] ; +0x16f, 0x140057fbf xor r8, rax ; +0x174, 0x140057fc4 imul r8, rbp ; +0x177, 0x140057fc7 movzx eax, byte ptr [rsp+88h+var_68+2] ; +0x17b, 0x140057fcb xor r8, rax ; +0x180, 0x140057fd0 imul r8, rbp ; +0x183, 0x140057fd3 movzx eax, byte ptr [rsp+88h+var_68+3] ; +0x187, 0x140057fd7 xor r8, rax ; +0x18c, 0x140057fdc imul r8, rbp ; +0x18f, 0x140057fdf mov rcx, [rdi+780h] ; +0x193, 0x140057fe3 and rcx, r8 ; +0x19a, 0x140057fea shl rcx, 4 ; +0x19d, 0x140057fed add rcx, [rdi+768h] ; +0x1a1, 0x140057ff1 mov rax, [rcx+8] ; +0x1a8, 0x140057ff8 cmp rax, [rdi+758h] ; +0x1ac, 0x140057ffc jz short loc_140058021 ; +0x1b3, 0x140058003 mov rcx, [rcx] ; +0x1b5, 0x140058005 cmp edx, [rax+10h] ; +0x1b8, 0x140058008 jz short loc_14005801E ; +0x1bb, 0x14005800b nop dword ptr [rax] ; +0x1bd, 0x14005800d cmp rax, rcx ; +0x1c0, 0x140058010 jz short loc_140058021 ; +0x1c3, 0x140058013 mov rax, [rax+8] ; +0x1c5, 0x140058015 cmp edx, [rax+10h] ; +0x1c9, 0x140058019 jnz short loc_140058010 ; +0x1cc, 0x14005801c mov rbx, rax ; +0x1ce, 0x14005801e test rbx, rbx ; +0x1d1, 0x140058021 jz short loc_1400580A5 ; +0x1d4, 0x140058024 mov rcx, [rdi+780h] ; +0x1d6, 0x140058026 and rcx, r8 ; +0x1dd, 0x14005802d add rcx, rcx ; +0x1e0, 0x140058030 mov rax, [rdi+768h] ; +0x1e3, 0x140058033 lea rdx, [rax+rcx*8] ; +0x1ea, 0x14005803a lea r8, [rax+rcx*8] ; +0x1ee, 0x14005803e mov rax, [rdx] ; +0x1f2, 0x140058042 cmp [r8+8], rbx ; +0x1f5, 0x140058045 jnz short loc_14005806A ; +0x1f9, 0x140058049 cmp rax, rbx ; +0x1fb, 0x14005804b jnz short loc_140058060 ; +0x1fe, 0x14005804e mov rax, [rdi+758h] ; +0x200, 0x140058050 mov [rdx], rax ; +0x207, 0x140058057 mov [r8+8], rax ; +0x20a, 0x14005805a jmp short loc_140058075 ; +0x20e, 0x14005805e mov rax, [rbx+8] ; +0x210, 0x140058060 mov [r8+8], rax ; +0x214, 0x140058064 jmp short loc_140058075 ; +0x218, 0x140058068 cmp rax, rbx ; +0x21a, 0x14005806a jnz short loc_140058075 ; +0x21d, 0x14005806d mov rax, [rbx] ; +0x21f, 0x14005806f mov [rdx], rax ; +0x222, 0x140058072 mov rdx, [rbx] ; +0x225, 0x140058075 dec qword ptr [rdi+760h] ; +0x228, 0x140058078 mov rax, [rbx+8] ; +0x22f, 0x14005807f mov [rax], rdx ; +0x233, 0x140058083 mov rax, [rbx+8] ; +0x236, 0x140058086 mov [rdx+8], rax ; +0x23a, 0x14005808a lea rcx, [rbx+18h] ; +0x23e, 0x14005808e call sub_14003A830 ; +0x242, 0x140058092 mov edx, 38h ; '8' ; +0x247, 0x140058097 mov rcx, rbx; Block ; +0x24c, 0x14005809c call j_j_free ; +0x24f, 0x14005809f nop ; +0x254, 0x1400580a4 lea rcx, [rsp+88h+var_40] ; +0x255, 0x1400580a5 call sub_14003A830 ; +0x25a, 0x1400580aa mov rcx, [rsp+88h+var_20] ; +0x25f, 0x1400580af xor rcx, rsp; StackCookie ; +0x264, 0x1400580b4 call __security_check_cookie ; +0x267, 0x1400580b7 lea r11, [rsp+88h+var_18] ; +0x26c, 0x1400580bc mov rbx, [r11+30h] ; +0x271, 0x1400580c1 mov rbp, [r11+38h] ; +0x275, 0x1400580c5 mov rsp, r11 ; +0x279, 0x1400580c9 pop r14 ; +0x27c, 0x1400580cc pop rdi ; +0x27e, 0x1400580ce pop rsi ; +0x27f, 0x1400580cf retn ; +0x280, 0x1400580d0