; ; FMODAudioEngine::triggerQueuedMusic from 0x140064620 to 0x14006495b (827 bytes) ; ; 4 xrefs: ; > FMODAudioEngine::loadAudioState @ 0x14005ee8c ; > FMODAudioEngine::updateQueuedMusic @ 0x1400644f0 ; > FMODAudioEngine::activateQueuedMusic @ 0x140064a39 ; > @ 0x140910d0c ; ; 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+arg_10], rbx ; +0x0, 0x140064620 push rbp ; +0x5, 0x140064625 push rsi ; +0x6, 0x140064626 push rdi ; +0x7, 0x140064627 push r12 ; +0x8, 0x140064628 push r13 ; +0xa, 0x14006462a push r14 ; +0xc, 0x14006462c push r15 ; +0xe, 0x14006462e sub rsp, 0A0h ; +0x10, 0x140064630 mov rax, cs:__security_cookie ; +0x17, 0x140064637 xor rax, rsp ; +0x1e, 0x14006463e mov [rsp+0D8h+var_48], rax ; +0x21, 0x140064641 mov rbx, rdx ; +0x29, 0x140064649 mov r15, rcx ; +0x2c, 0x14006464c mov [rsp+0D8h+var_50], rdx ; +0x2f, 0x14006464f cmp byte ptr [rdx+44h], 0 ; +0x37, 0x140064657 jz loc_1400648BE ; +0x3b, 0x14006465b add rdx, 40h ; '@' ; +0x41, 0x140064661 add rcx, 140h ; +0x45, 0x140064665 call sub_140066B50 ; +0x4c, 0x14006466c xor edi, edi ; +0x51, 0x140064671 mov r13, 0CBF29CE484222325h ; +0x53, 0x140064673 mov r12, 100000001B3h ; +0x5d, 0x14006467d test rax, rax ; +0x67, 0x140064687 jz loc_14006474F ; +0x6a, 0x14006468a lea r8, [rbx+40h] ; +0x70, 0x140064690 lea rdx, [rsp+0D8h+var_80] ; +0x74, 0x140064694 lea rcx, [r15+140h] ; +0x79, 0x140064699 call sub_140068620 ; +0x80, 0x1400646a0 mov rcx, [rax] ; +0x85, 0x1400646a5 mov edx, [rcx+18h] ; +0x88, 0x1400646a8 mov [rsp+0D8h+var_88], edx ; +0x8b, 0x1400646ab movzx r8d, dl ; +0x8f, 0x1400646af xor r8, r13 ; +0x93, 0x1400646b3 imul r8, r12 ; +0x96, 0x1400646b6 mov eax, edx ; +0x9a, 0x1400646ba sar eax, 8 ; +0x9c, 0x1400646bc movzx ecx, al ; +0x9f, 0x1400646bf xor r8, rcx ; +0xa2, 0x1400646c2 imul r8, r12 ; +0xa5, 0x1400646c5 mov eax, edx ; +0xa9, 0x1400646c9 sar eax, 10h ; +0xab, 0x1400646cb movzx ecx, al ; +0xae, 0x1400646ce xor r8, rcx ; +0xb1, 0x1400646d1 imul r8, r12 ; +0xb4, 0x1400646d4 mov eax, edx ; +0xb8, 0x1400646d8 sar eax, 18h ; +0xba, 0x1400646da movzx ecx, al ; +0xbd, 0x1400646dd xor r8, rcx ; +0xc0, 0x1400646e0 imul r8, r12 ; +0xc3, 0x1400646e3 and r8, [r15+5F8h] ; +0xc7, 0x1400646e7 mov rcx, [r15+5E0h] ; +0xce, 0x1400646ee mov rax, r8 ; +0xd5, 0x1400646f5 add rax, rax ; +0xd8, 0x1400646f8 mov rax, [rcx+rax*8+8] ; +0xdb, 0x1400646fb cmp rax, [r15+5D0h] ; +0xe0, 0x140064700 jz short loc_140064725 ; +0xe7, 0x140064707 add r8, r8 ; +0xe9, 0x140064709 mov rcx, [rcx+r8*8] ; +0xec, 0x14006470c cmp edx, [rax+10h] ; +0xf0, 0x140064710 jz short loc_140064728 ; +0xf3, 0x140064713 cmp rax, rcx ; +0xf5, 0x140064715 jz short loc_140064725 ; +0xf8, 0x140064718 mov rax, [rax+8] ; +0xfa, 0x14006471a cmp edx, [rax+10h] ; +0xfe, 0x14006471e jnz short loc_140064715 ; +0x101, 0x140064721 jmp short loc_140064728 ; +0x103, 0x140064723 mov rax, rdi ; +0x105, 0x140064725 test rax, rax ; +0x108, 0x140064728 jz short loc_14006474F ; +0x10b, 0x14006472b lea r8, [rsp+0D8h+var_88] ; +0x10d, 0x14006472d lea rdx, [rsp+0D8h+var_80] ; +0x112, 0x140064732 lea rcx, [r15+5C8h] ; +0x117, 0x140064737 call sub_1400688D0 ; +0x11e, 0x14006473e mov rdx, [rax] ; +0x123, 0x140064743 mov eax, [rbx+48h] ; +0x126, 0x140064746 mov [rdx+0D0h], eax ; +0x129, 0x140064749 lea rdx, [rbx+48h] ; +0x12f, 0x14006474f lea rcx, [r15+140h] ; +0x133, 0x140064753 call sub_140066B50 ; +0x13a, 0x14006475a test rax, rax ; +0x13f, 0x14006475f jz loc_140064828 ; +0x142, 0x140064762 lea r8, [rbx+48h] ; +0x148, 0x140064768 lea rdx, [rsp+0D8h+var_70] ; +0x14c, 0x14006476c lea rcx, [r15+140h] ; +0x151, 0x140064771 call sub_140068620 ; +0x158, 0x140064778 mov rcx, [rax] ; +0x15d, 0x14006477d mov edx, [rcx+18h] ; +0x160, 0x140064780 mov [rsp+0D8h+var_88], edx ; +0x163, 0x140064783 mov eax, edx ; +0x167, 0x140064787 sar eax, 8 ; +0x169, 0x140064789 movzx r8d, al ; +0x16c, 0x14006478c movzx eax, dl ; +0x170, 0x140064790 xor rax, r13 ; +0x173, 0x140064793 imul rax, r12 ; +0x176, 0x140064796 xor r8, rax ; +0x17a, 0x14006479a imul r8, r12 ; +0x17d, 0x14006479d mov eax, edx ; +0x181, 0x1400647a1 sar eax, 10h ; +0x183, 0x1400647a3 movzx ecx, al ; +0x186, 0x1400647a6 xor r8, rcx ; +0x189, 0x1400647a9 imul r8, r12 ; +0x18c, 0x1400647ac mov eax, edx ; +0x190, 0x1400647b0 sar eax, 18h ; +0x192, 0x1400647b2 movzx ecx, al ; +0x195, 0x1400647b5 xor r8, rcx ; +0x198, 0x1400647b8 imul r8, r12 ; +0x19b, 0x1400647bb and r8, [r15+5F8h] ; +0x19f, 0x1400647bf mov r9, [r15+5E0h] ; +0x1a6, 0x1400647c6 mov rax, r8 ; +0x1ad, 0x1400647cd add rax, rax ; +0x1b0, 0x1400647d0 mov rcx, [r9+rax*8+8] ; +0x1b3, 0x1400647d3 cmp rcx, [r15+5D0h] ; +0x1b8, 0x1400647d8 jz short loc_140064801 ; +0x1bf, 0x1400647df add r8, r8 ; +0x1c1, 0x1400647e1 mov rax, [r9+r8*8] ; +0x1c4, 0x1400647e4 cmp edx, [rcx+10h] ; +0x1c8, 0x1400647e8 jz short loc_1400647FE ; +0x1cb, 0x1400647eb nop dword ptr [rax] ; +0x1cd, 0x1400647ed cmp rcx, rax ; +0x1d0, 0x1400647f0 jz short loc_140064801 ; +0x1d3, 0x1400647f3 mov rcx, [rcx+8] ; +0x1d5, 0x1400647f5 cmp edx, [rcx+10h] ; +0x1d9, 0x1400647f9 jnz short loc_1400647F0 ; +0x1dc, 0x1400647fc mov rdi, rcx ; +0x1de, 0x1400647fe test rdi, rdi ; +0x1e1, 0x140064801 jz short loc_140064828 ; +0x1e4, 0x140064804 lea r8, [rsp+0D8h+var_88] ; +0x1e6, 0x140064806 lea rdx, [rsp+0D8h+var_60] ; +0x1eb, 0x14006480b lea rcx, [r15+5C8h] ; +0x1f0, 0x140064810 call sub_1400688D0 ; +0x1f7, 0x140064817 mov rcx, [rax] ; +0x1fc, 0x14006481c mov eax, [rbx+40h] ; +0x1ff, 0x14006481f mov [rcx+0D0h], eax ; +0x202, 0x140064822 mov rcx, cs:qword_14090BF60 ; +0x208, 0x140064828 test rcx, rcx ; +0x20f, 0x14006482f jnz short loc_140064866 ; +0x212, 0x140064832 mov ecx, 8A8h; Size ; +0x214, 0x140064834 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x219, 0x140064839 mov [rsp+0D8h+var_80], rax ; +0x21e, 0x14006483e mov rcx, rax ; +0x223, 0x140064843 call FMODAudioEngine__FMODAudioEngine ; +0x226, 0x140064846 nop ; +0x22b, 0x14006484b mov cs:qword_14090BF60, rax ; +0x22c, 0x14006484c mov rcx, [rax] ; +0x233, 0x140064853 mov rdx, [rcx+48h] ; +0x236, 0x140064856 mov rcx, rax ; +0x23a, 0x14006485a call rdx ; +0x23d, 0x14006485d mov rcx, cs:qword_14090BF60 ; +0x23f, 0x14006485f mov edx, [rbx+48h] ; +0x246, 0x140064866 call FMODAudioEngine__stopAndRemoveMusic ; +0x249, 0x140064869 mov rcx, cs:qword_14090BF60 ; +0x24e, 0x14006486e test rcx, rcx ; +0x255, 0x140064875 jnz short loc_1400648AC ; +0x258, 0x140064878 mov ecx, 8A8h; Size ; +0x25a, 0x14006487a call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x25f, 0x14006487f mov [rsp+0D8h+var_80], rax ; +0x264, 0x140064884 mov rcx, rax ; +0x269, 0x140064889 call FMODAudioEngine__FMODAudioEngine ; +0x26c, 0x14006488c nop ; +0x271, 0x140064891 mov cs:qword_14090BF60, rax ; +0x272, 0x140064892 mov rcx, [rax] ; +0x279, 0x140064899 mov rdx, [rcx+48h] ; +0x27c, 0x14006489c mov rcx, rax ; +0x280, 0x1400648a0 call rdx ; +0x283, 0x1400648a3 mov rcx, cs:qword_14090BF60 ; +0x285, 0x1400648a5 mov r8d, [rbx+48h] ; +0x28c, 0x1400648ac mov edx, [rbx+40h] ; +0x290, 0x1400648b0 call FMODAudioEngine__swapMusicIndex ; +0x293, 0x1400648b3 mov eax, [rbx+48h] ; +0x298, 0x1400648b8 mov [rbx+40h], eax ; +0x29b, 0x1400648bb mov rcx, cs:qword_14090BF60 ; +0x29e, 0x1400648be test rcx, rcx ; +0x2a5, 0x1400648c5 jnz short loc_1400648FC ; +0x2a8, 0x1400648c8 mov ecx, 8A8h; Size ; +0x2aa, 0x1400648ca call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2af, 0x1400648cf mov [rsp+0D8h+var_80], rax ; +0x2b4, 0x1400648d4 mov rcx, rax ; +0x2b9, 0x1400648d9 call FMODAudioEngine__FMODAudioEngine ; +0x2bc, 0x1400648dc nop ; +0x2c1, 0x1400648e1 mov cs:qword_14090BF60, rax ; +0x2c2, 0x1400648e2 mov rcx, [rax] ; +0x2c9, 0x1400648e9 mov rdx, [rcx+48h] ; +0x2cc, 0x1400648ec mov rcx, rax ; +0x2d0, 0x1400648f0 call rdx ; +0x2d3, 0x1400648f3 mov rcx, cs:qword_14090BF60 ; +0x2d5, 0x1400648f5 mov [rsp+0D8h+var_A0], 0 ; +0x2dc, 0x1400648fc mov eax, [rbx+40h] ; +0x2e1, 0x140064901 mov [rsp+0D8h+var_A8], eax ; +0x2e4, 0x140064904 movzx eax, byte ptr [rbx+3Ch] ; +0x2e8, 0x140064908 mov [rsp+0D8h+var_B0], al ; +0x2ec, 0x14006490c mov eax, [rbx+38h] ; +0x2f0, 0x140064910 mov [rsp+0D8h+var_B8], eax ; +0x2f3, 0x140064913 mov r9d, [rbx+34h] ; +0x2f7, 0x140064917 mov r8d, [rbx+30h] ; +0x2fb, 0x14006491b mov edx, [rbx+2Ch] ; +0x2ff, 0x14006491f call FMODAudioEngine__startMusic ; +0x302, 0x140064922 nop ; +0x307, 0x140064927 mov rcx, rbx ; +0x308, 0x140064928 call sub_14003D310 ; +0x30b, 0x14006492b mov rcx, [rsp+0D8h+var_48] ; +0x310, 0x140064930 xor rcx, rsp; StackCookie ; +0x318, 0x140064938 call __security_check_cookie ; +0x31b, 0x14006493b mov rbx, [rsp+0D8h+arg_10] ; +0x320, 0x140064940 add rsp, 0A0h ; +0x328, 0x140064948 pop r15 ; +0x32f, 0x14006494f pop r14 ; +0x331, 0x140064951 pop r13 ; +0x333, 0x140064953 pop r12 ; +0x335, 0x140064955 pop rdi ; +0x337, 0x140064957 pop rsi ; +0x338, 0x140064958 pop rbp ; +0x339, 0x140064959 retn ; +0x33a, 0x14006495a