; ; FMODAudioEngine::swapMusicIndex from 0x140064b00 to 0x140064f97 (1175 bytes) ; ; 3 xrefs: ; > FMODAudioEngine::triggerQueuedMusic @ 0x1400648b3 ; > @ 0x140910d18 ; > @ 0x140910d24 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:25:45 +0000 ; mov [rsp-8+arg_18], rbx ; +0x0, 0x140064b00 push rbp ; +0x5, 0x140064b05 push rsi ; +0x6, 0x140064b06 push rdi ; +0x7, 0x140064b07 push r12 ; +0x8, 0x140064b08 push r13 ; +0xa, 0x140064b0a push r14 ; +0xc, 0x140064b0c push r15 ; +0xe, 0x140064b0e lea rbp, [rsp-27h] ; +0x10, 0x140064b10 sub rsp, 0A0h ; +0x15, 0x140064b15 movaps [rsp+0D0h+var_40], xmm6 ; +0x1c, 0x140064b1c mov rax, cs:__security_cookie ; +0x24, 0x140064b24 xor rax, rsp ; +0x2b, 0x140064b2b mov [rbp+57h+var_48], rax ; +0x2e, 0x140064b2e mov rsi, rcx ; +0x32, 0x140064b32 mov [rbp+57h+var_B0], edx ; +0x35, 0x140064b35 mov [rbp+57h+var_A8], r8d ; +0x38, 0x140064b38 lea rdi, [rcx+140h] ; +0x3c, 0x140064b3c lea rdx, [rbp+57h+var_B0] ; +0x43, 0x140064b43 mov rcx, rdi ; +0x47, 0x140064b47 call sub_140066B50 ; +0x4a, 0x140064b4a mov r13, rax ; +0x4f, 0x140064b4f lea rdx, [rbp+57h+var_A8] ; +0x52, 0x140064b52 mov rcx, rdi ; +0x56, 0x140064b56 call sub_140066B50 ; +0x59, 0x140064b59 mov r12, rax ; +0x5e, 0x140064b5e lea r15, [rsi+448h] ; +0x61, 0x140064b61 lea rdx, [rbp+57h+var_B0] ; +0x68, 0x140064b68 mov rcx, r15 ; +0x6c, 0x140064b6c call sub_140066B50 ; +0x6f, 0x140064b6f test rax, rax ; +0x74, 0x140064b74 jnz short loc_140064B93 ; +0x77, 0x140064b77 lea r8, [rbp+57h+var_B0] ; +0x79, 0x140064b79 lea rdx, [rbp+57h+var_A0] ; +0x7d, 0x140064b7d mov rcx, r15 ; +0x81, 0x140064b81 call sub_140067F60 ; +0x84, 0x140064b84 mov rcx, [rax] ; +0x89, 0x140064b89 mov dword ptr [rcx+14h], 3F800000h ; +0x8c, 0x140064b8c lea rdx, [rbp+57h+var_A8] ; +0x93, 0x140064b93 mov rcx, r15 ; +0x97, 0x140064b97 call sub_140066B50 ; +0x9a, 0x140064b9a test rax, rax ; +0x9f, 0x140064b9f jnz short loc_140064BBE ; +0xa2, 0x140064ba2 lea r8, [rbp+57h+var_A8] ; +0xa4, 0x140064ba4 lea rdx, [rbp+57h+var_A0] ; +0xa8, 0x140064ba8 mov rcx, r15 ; +0xac, 0x140064bac call sub_140067F60 ; +0xaf, 0x140064baf mov rcx, [rax] ; +0xb4, 0x140064bb4 mov dword ptr [rcx+14h], 3F800000h ; +0xb7, 0x140064bb7 lea r14, [rsi+488h] ; +0xbe, 0x140064bbe lea rdx, [rbp+57h+var_B0] ; +0xc5, 0x140064bc5 mov rcx, r14 ; +0xc9, 0x140064bc9 call sub_140066B50 ; +0xcc, 0x140064bcc test rax, rax ; +0xd1, 0x140064bd1 jnz short loc_140064BF0 ; +0xd4, 0x140064bd4 lea r8, [rbp+57h+var_B0] ; +0xd6, 0x140064bd6 lea rdx, [rbp+57h+var_A0] ; +0xda, 0x140064bda mov rcx, r14 ; +0xde, 0x140064bde call sub_140067F60 ; +0xe1, 0x140064be1 mov rcx, [rax] ; +0xe6, 0x140064be6 mov dword ptr [rcx+14h], 3F800000h ; +0xe9, 0x140064be9 lea rdx, [rbp+57h+var_A8] ; +0xf0, 0x140064bf0 mov rcx, r14 ; +0xf4, 0x140064bf4 call sub_140066B50 ; +0xf7, 0x140064bf7 test rax, rax ; +0xfc, 0x140064bfc jnz short loc_140064C1B ; +0xff, 0x140064bff lea r8, [rbp+57h+var_A8] ; +0x101, 0x140064c01 lea rdx, [rbp+57h+var_A0] ; +0x105, 0x140064c05 mov rcx, r14 ; +0x109, 0x140064c09 call sub_140067F60 ; +0x10c, 0x140064c0c mov rcx, [rax] ; +0x111, 0x140064c11 mov dword ptr [rcx+14h], 3F800000h ; +0x114, 0x140064c14 add rsi, 4C8h ; +0x11b, 0x140064c1b lea rdx, [rbp+57h+var_B0] ; +0x122, 0x140064c22 mov rcx, rsi ; +0x126, 0x140064c26 call sub_140066B50 ; +0x129, 0x140064c29 test rax, rax ; +0x12e, 0x140064c2e jnz short loc_140064C4D ; +0x131, 0x140064c31 lea r8, [rbp+57h+var_B0] ; +0x133, 0x140064c33 lea rdx, [rbp+57h+var_A0] ; +0x137, 0x140064c37 mov rcx, rsi ; +0x13b, 0x140064c3b call sub_140067F60 ; +0x13e, 0x140064c3e mov rcx, [rax] ; +0x143, 0x140064c43 mov dword ptr [rcx+14h], 3F800000h ; +0x146, 0x140064c46 lea rdx, [rbp+57h+var_A8] ; +0x14d, 0x140064c4d mov rcx, rsi ; +0x151, 0x140064c51 call sub_140066B50 ; +0x154, 0x140064c54 test rax, rax ; +0x159, 0x140064c59 jnz short loc_140064C78 ; +0x15c, 0x140064c5c lea r8, [rbp+57h+var_A8] ; +0x15e, 0x140064c5e lea rdx, [rbp+57h+var_A0] ; +0x162, 0x140064c62 mov rcx, rsi ; +0x166, 0x140064c66 call sub_140067F60 ; +0x169, 0x140064c69 mov rcx, [rax] ; +0x16e, 0x140064c6e mov dword ptr [rcx+14h], 3F800000h ; +0x171, 0x140064c71 lea r8, [rbp+57h+var_B0] ; +0x178, 0x140064c78 lea rdx, [rbp+57h+var_A0] ; +0x17c, 0x140064c7c mov rcx, r15 ; +0x180, 0x140064c80 call sub_140067F60 ; +0x183, 0x140064c83 mov rcx, [rax] ; +0x188, 0x140064c88 movss xmm6, dword ptr [rcx+14h] ; +0x18b, 0x140064c8b lea r8, [rbp+57h+var_A8] ; +0x190, 0x140064c90 lea rdx, [rbp+57h+var_A0] ; +0x194, 0x140064c94 mov rcx, r15 ; +0x198, 0x140064c98 call sub_140067F60 ; +0x19b, 0x140064c9b mov rbx, [rax] ; +0x1a0, 0x140064ca0 lea r8, [rbp+57h+var_B0] ; +0x1a3, 0x140064ca3 lea rdx, [rbp+57h+var_90] ; +0x1a7, 0x140064ca7 mov rcx, r15 ; +0x1ab, 0x140064cab call sub_140067F60 ; +0x1ae, 0x140064cae mov rcx, [rax] ; +0x1b3, 0x140064cb3 mov eax, [rbx+14h] ; +0x1b6, 0x140064cb6 mov [rcx+14h], eax ; +0x1b9, 0x140064cb9 lea r8, [rbp+57h+var_A8] ; +0x1bc, 0x140064cbc lea rdx, [rbp+57h+var_90] ; +0x1c0, 0x140064cc0 mov rcx, r15 ; +0x1c4, 0x140064cc4 call sub_140067F60 ; +0x1c7, 0x140064cc7 mov rcx, [rax] ; +0x1cc, 0x140064ccc movss dword ptr [rcx+14h], xmm6 ; +0x1cf, 0x140064ccf lea r8, [rbp+57h+var_B0] ; +0x1d4, 0x140064cd4 lea rdx, [rbp+57h+var_90] ; +0x1d8, 0x140064cd8 mov rcx, r14 ; +0x1dc, 0x140064cdc call sub_140067F60 ; +0x1df, 0x140064cdf mov rcx, [rax] ; +0x1e4, 0x140064ce4 movss xmm6, dword ptr [rcx+14h] ; +0x1e7, 0x140064ce7 lea r8, [rbp+57h+var_B0] ; +0x1ec, 0x140064cec lea rdx, [rbp+57h+var_90] ; +0x1f0, 0x140064cf0 mov rcx, r14 ; +0x1f4, 0x140064cf4 call sub_140067F60 ; +0x1f7, 0x140064cf7 mov rbx, [rax] ; +0x1fc, 0x140064cfc lea r8, [rbp+57h+var_A8] ; +0x1ff, 0x140064cff lea rdx, [rbp+57h+var_A0] ; +0x203, 0x140064d03 mov rcx, r14 ; +0x207, 0x140064d07 call sub_140067F60 ; +0x20a, 0x140064d0a mov rcx, [rax] ; +0x20f, 0x140064d0f mov eax, [rcx+14h] ; +0x212, 0x140064d12 mov [rbx+14h], eax ; +0x215, 0x140064d15 lea r8, [rbp+57h+var_A8] ; +0x218, 0x140064d18 lea rdx, [rbp+57h+var_90] ; +0x21c, 0x140064d1c mov rcx, r14 ; +0x220, 0x140064d20 call sub_140067F60 ; +0x223, 0x140064d23 mov rcx, [rax] ; +0x228, 0x140064d28 movss dword ptr [rcx+14h], xmm6 ; +0x22b, 0x140064d2b lea r8, [rbp+57h+var_B0] ; +0x230, 0x140064d30 lea rdx, [rbp+57h+var_90] ; +0x234, 0x140064d34 mov rcx, rsi ; +0x238, 0x140064d38 call sub_140067F60 ; +0x23b, 0x140064d3b mov rcx, [rax] ; +0x240, 0x140064d40 movss xmm6, dword ptr [rcx+14h] ; +0x243, 0x140064d43 lea r8, [rbp+57h+var_A8] ; +0x248, 0x140064d48 lea rdx, [rbp+57h+var_90] ; +0x24c, 0x140064d4c mov rcx, rsi ; +0x250, 0x140064d50 call sub_140067F60 ; +0x253, 0x140064d53 mov rbx, [rax] ; +0x258, 0x140064d58 lea r8, [rbp+57h+var_B0] ; +0x25b, 0x140064d5b lea rdx, [rbp+57h+var_A0] ; +0x25f, 0x140064d5f mov rcx, rsi ; +0x263, 0x140064d63 call sub_140067F60 ; +0x266, 0x140064d66 mov rcx, [rax] ; +0x26b, 0x140064d6b mov eax, [rbx+14h] ; +0x26e, 0x140064d6e mov [rcx+14h], eax ; +0x271, 0x140064d71 lea r8, [rbp+57h+var_A8] ; +0x274, 0x140064d74 lea rdx, [rbp+57h+var_90] ; +0x278, 0x140064d78 mov rcx, rsi ; +0x27c, 0x140064d7c call sub_140067F60 ; +0x27f, 0x140064d7f mov rcx, [rax] ; +0x284, 0x140064d84 movss dword ptr [rcx+14h], xmm6 ; +0x287, 0x140064d87 test r13, r13 ; +0x28c, 0x140064d8c jz loc_140064EF2 ; +0x28f, 0x140064d8f lea r8, [rbp+57h+var_B0] ; +0x295, 0x140064d95 lea rdx, [rbp+57h+var_90] ; +0x299, 0x140064d99 mov rcx, rdi ; +0x29d, 0x140064d9d call sub_140068620 ; +0x2a0, 0x140064da0 mov rbx, [rax] ; +0x2a5, 0x140064da5 test r12, r12 ; +0x2a8, 0x140064da8 jz loc_140064EA8 ; +0x2ab, 0x140064dab mov eax, [rbx+18h] ; +0x2b1, 0x140064db1 mov [rbp+57h+var_80], eax ; +0x2b4, 0x140064db4 mov rax, [rbx+20h] ; +0x2b7, 0x140064db7 mov [rbp+57h+var_78], rax ; +0x2bb, 0x140064dbb lea rdx, [rbx+28h] ; +0x2bf, 0x140064dbf lea rcx, [rbp+57h+Src] ; +0x2c3, 0x140064dc3 call sub_14003F4F0 ; +0x2c7, 0x140064dc7 movzx r14d, byte ptr [rbx+48h] ; +0x2cc, 0x140064dcc mov [rbp+57h+var_50], r14b ; +0x2d1, 0x140064dd1 movzx r15d, byte ptr [rbx+49h] ; +0x2d5, 0x140064dd5 mov [rbp+57h+var_4F], r15b ; +0x2da, 0x140064dda lea r8, [rbp+57h+var_A8] ; +0x2de, 0x140064dde lea rdx, [rbp+57h+var_90] ; +0x2e2, 0x140064de2 mov rcx, rdi ; +0x2e6, 0x140064de6 call sub_140068620 ; +0x2e9, 0x140064de9 mov rbx, [rax] ; +0x2ee, 0x140064dee lea r8, [rbp+57h+var_B0] ; +0x2f1, 0x140064df1 lea rdx, [rbp+57h+var_A0] ; +0x2f5, 0x140064df5 mov rcx, rdi ; +0x2f9, 0x140064df9 call sub_140068620 ; +0x2fc, 0x140064dfc mov rsi, [rax] ; +0x301, 0x140064e01 mov eax, [rbx+18h] ; +0x304, 0x140064e04 mov [rsi+18h], eax ; +0x307, 0x140064e07 mov rax, [rbx+20h] ; +0x30a, 0x140064e0a mov [rsi+20h], rax ; +0x30e, 0x140064e0e lea r8, [rbx+28h] ; +0x312, 0x140064e12 lea rcx, [rsi+28h]; void * ; +0x316, 0x140064e16 cmp rcx, r8 ; +0x31a, 0x140064e1a jz short loc_140064E35 ; +0x31d, 0x140064e1d mov rdx, r8 ; +0x31f, 0x140064e1f cmp qword ptr [r8+18h], 0Fh ; +0x322, 0x140064e22 jbe short loc_140064E2C ; +0x327, 0x140064e27 mov rdx, [r8]; Src ; +0x329, 0x140064e29 mov r8, [r8+10h]; Size ; +0x32c, 0x140064e2c call sub_1400405A0 ; +0x330, 0x140064e30 movzx eax, byte ptr [rbx+48h] ; +0x335, 0x140064e35 mov [rsi+48h], al ; +0x339, 0x140064e39 movzx eax, byte ptr [rbx+49h] ; +0x33c, 0x140064e3c mov [rsi+49h], al ; +0x340, 0x140064e40 lea r8, [rbp+57h+var_A8] ; +0x343, 0x140064e43 lea rdx, [rbp+57h+var_90] ; +0x347, 0x140064e47 mov rcx, rdi ; +0x34b, 0x140064e4b call sub_140068620 ; +0x34e, 0x140064e4e mov rbx, [rax] ; +0x353, 0x140064e53 mov eax, [rbp+57h+var_80] ; +0x356, 0x140064e56 mov [rbx+18h], eax ; +0x359, 0x140064e59 mov rax, [rbp+57h+var_78] ; +0x35c, 0x140064e5c mov [rbx+20h], rax ; +0x360, 0x140064e60 lea rcx, [rbx+28h]; void * ; +0x364, 0x140064e64 lea rax, [rbp+57h+Src] ; +0x368, 0x140064e68 cmp rcx, rax ; +0x36c, 0x140064e6c jz short loc_140064E92 ; +0x36f, 0x140064e6f lea rdx, [rbp+57h+Src] ; +0x371, 0x140064e71 cmp [rbp+57h+var_58], 0Fh ; +0x375, 0x140064e75 cmova rdx, [rbp+57h+Src]; Src ; +0x37a, 0x140064e7a mov r8, [rbp+57h+Size]; Size ; +0x37f, 0x140064e7f call sub_1400405A0 ; +0x383, 0x140064e83 movzx r15d, [rbp+57h+var_4F] ; +0x388, 0x140064e88 movzx r14d, [rbp+57h+var_50] ; +0x38d, 0x140064e8d mov [rbx+48h], r14b ; +0x392, 0x140064e92 mov [rbx+49h], r15b ; +0x396, 0x140064e96 lea rcx, [rbp+57h+Src] ; +0x39a, 0x140064e9a call sub_14003D310 ; +0x39e, 0x140064e9e jmp loc_140064F68 ; +0x3a3, 0x140064ea3 lea r8, [rbp+57h+var_A8] ; +0x3a8, 0x140064ea8 lea rdx, [rbp+57h+var_A0] ; +0x3ac, 0x140064eac mov rcx, rdi ; +0x3b0, 0x140064eb0 call sub_140068620 ; +0x3b3, 0x140064eb3 mov rsi, [rax] ; +0x3b8, 0x140064eb8 mov eax, [rbx+18h] ; +0x3bb, 0x140064ebb mov [rsi+18h], eax ; +0x3be, 0x140064ebe mov rax, [rbx+20h] ; +0x3c1, 0x140064ec1 mov [rsi+20h], rax ; +0x3c5, 0x140064ec5 lea r8, [rbx+28h] ; +0x3c9, 0x140064ec9 lea rcx, [rsi+28h]; void * ; +0x3cd, 0x140064ecd cmp rcx, r8 ; +0x3d1, 0x140064ed1 jz short loc_140064EEC ; +0x3d4, 0x140064ed4 mov rdx, r8 ; +0x3d6, 0x140064ed6 cmp qword ptr [r8+18h], 0Fh ; +0x3d9, 0x140064ed9 jbe short loc_140064EE3 ; +0x3de, 0x140064ede mov rdx, [r8]; Src ; +0x3e0, 0x140064ee0 mov r8, [r8+10h]; Size ; +0x3e3, 0x140064ee3 call sub_1400405A0 ; +0x3e7, 0x140064ee7 lea rdx, [rbp+57h+var_B0] ; +0x3ec, 0x140064eec jmp short loc_140064F52 ; +0x3f0, 0x140064ef0 test r12, r12 ; +0x3f2, 0x140064ef2 jz short loc_140064F68 ; +0x3f5, 0x140064ef5 lea r8, [rbp+57h+var_A8] ; +0x3f7, 0x140064ef7 lea rdx, [rbp+57h+var_90] ; +0x3fb, 0x140064efb mov rcx, rdi ; +0x3ff, 0x140064eff call sub_140068620 ; +0x402, 0x140064f02 mov rbx, [rax] ; +0x407, 0x140064f07 lea r8, [rbp+57h+var_B0] ; +0x40a, 0x140064f0a lea rdx, [rbp+57h+var_A0] ; +0x40e, 0x140064f0e mov rcx, rdi ; +0x412, 0x140064f12 call sub_140068620 ; +0x415, 0x140064f15 mov rsi, [rax] ; +0x41a, 0x140064f1a mov eax, [rbx+18h] ; +0x41d, 0x140064f1d mov [rsi+18h], eax ; +0x420, 0x140064f20 mov rax, [rbx+20h] ; +0x423, 0x140064f23 mov [rsi+20h], rax ; +0x427, 0x140064f27 lea r8, [rbx+28h] ; +0x42b, 0x140064f2b lea rcx, [rsi+28h]; void * ; +0x42f, 0x140064f2f cmp rcx, r8 ; +0x433, 0x140064f33 jz short loc_140064F4E ; +0x436, 0x140064f36 mov rdx, r8 ; +0x438, 0x140064f38 cmp qword ptr [r8+18h], 0Fh ; +0x43b, 0x140064f3b jbe short loc_140064F45 ; +0x440, 0x140064f40 mov rdx, [r8]; Src ; +0x442, 0x140064f42 mov r8, [r8+10h]; Size ; +0x445, 0x140064f45 call sub_1400405A0 ; +0x449, 0x140064f49 lea rdx, [rbp+57h+var_A8] ; +0x44e, 0x140064f4e movzx eax, byte ptr [rbx+48h] ; +0x452, 0x140064f52 mov [rsi+48h], al ; +0x456, 0x140064f56 movzx eax, byte ptr [rbx+49h] ; +0x459, 0x140064f59 mov [rsi+49h], al ; +0x45d, 0x140064f5d mov rcx, rdi ; +0x460, 0x140064f60 call sub_140066F10 ; +0x463, 0x140064f63 mov rcx, [rbp+57h+var_48] ; +0x468, 0x140064f68 xor rcx, rsp; StackCookie ; +0x46c, 0x140064f6c call __security_check_cookie ; +0x46f, 0x140064f6f mov rbx, [rsp+0D0h+arg_18] ; +0x474, 0x140064f74 movaps xmm6, [rsp+0D0h+var_40] ; +0x47c, 0x140064f7c add rsp, 0A0h ; +0x484, 0x140064f84 pop r15 ; +0x48b, 0x140064f8b pop r14 ; +0x48d, 0x140064f8d pop r13 ; +0x48f, 0x140064f8f pop r12 ; +0x491, 0x140064f91 pop rdi ; +0x493, 0x140064f93 pop rsi ; +0x494, 0x140064f94 pop rbp ; +0x495, 0x140064f95 retn ; +0x496, 0x140064f96