; ; EditorSFXManager::removeSoundAt from 0x1008e3610 to 0x1008e3879 (617 bytes) ; ; 1 xrefs: ; > EditorSFXActionConfigLayer::onDeleteSound @ 0x1008e061b ; ; 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 12:37:47 +0000 ; push rbp ; +0x0, 0x1008e3610 mov rbp, rsp ; +0x1, 0x1008e3611 push r15 ; +0x4, 0x1008e3614 push r14 ; +0x6, 0x1008e3616 push r12 ; +0x8, 0x1008e3618 push rbx ; +0xa, 0x1008e361a sub rsp, 10h ; +0xb, 0x1008e361b mov [rbp+var_24], esi ; +0xf, 0x1008e361f mov r9, [rdi+8] ; +0x12, 0x1008e3622 test r9, r9 ; +0x16, 0x1008e3626 jz loc_1008E386C ; +0x19, 0x1008e3629 mov ebx, edx ; +0x1f, 0x1008e362f movsxd rcx, esi ; +0x21, 0x1008e3631 mov rax, r9 ; +0x24, 0x1008e3634 shr rax, 1 ; +0x27, 0x1008e3637 mov rdx, 5555555555555555h ; +0x2a, 0x1008e363a and rdx, rax ; +0x34, 0x1008e3644 mov rax, r9 ; +0x37, 0x1008e3647 sub rax, rdx ; +0x3a, 0x1008e364a mov rdx, 3333333333333333h ; +0x3d, 0x1008e364d mov r8, rax ; +0x47, 0x1008e3657 and r8, rdx ; +0x4a, 0x1008e365a shr rax, 2 ; +0x4d, 0x1008e365d and rax, rdx ; +0x51, 0x1008e3661 add rax, r8 ; +0x54, 0x1008e3664 mov rdx, rax ; +0x57, 0x1008e3667 shr rdx, 4 ; +0x5a, 0x1008e366a add rdx, rax ; +0x5e, 0x1008e366e mov rax, 0F0F0F0F0F0F0F0Fh ; +0x61, 0x1008e3671 and rax, rdx ; +0x6b, 0x1008e367b mov r11, 101010101010101h ; +0x6e, 0x1008e367e imul r11, rax ; +0x78, 0x1008e3688 shr r11, 38h ; +0x7c, 0x1008e368c cmp r11, 1 ; +0x80, 0x1008e3690 ja short loc_1008E36AE ; +0x84, 0x1008e3694 lea r8, [r9-1] ; +0x86, 0x1008e3696 and r8, rcx ; +0x8a, 0x1008e369a mov rax, [rdi] ; +0x8d, 0x1008e369d mov rax, [rax+r8*8] ; +0x90, 0x1008e36a0 test rax, rax ; +0x94, 0x1008e36a4 jnz short loc_1008E36E1 ; +0x97, 0x1008e36a7 jmp loc_1008E386C ; +0x99, 0x1008e36a9 mov r8, rcx ; +0x9e, 0x1008e36ae cmp r9, rcx ; +0xa1, 0x1008e36b1 ja short loc_1008E36D1 ; +0xa4, 0x1008e36b4 mov rax, rcx ; +0xa6, 0x1008e36b6 or rax, r9 ; +0xa9, 0x1008e36b9 shr rax, 20h ; +0xac, 0x1008e36bc jz loc_1008E3852 ; +0xb0, 0x1008e36c0 mov rax, rcx ; +0xb6, 0x1008e36c6 xor edx, edx ; +0xb9, 0x1008e36c9 div r9 ; +0xbb, 0x1008e36cb mov r8, rdx ; +0xbe, 0x1008e36ce mov rax, [rdi] ; +0xc1, 0x1008e36d1 mov rax, [rax+r8*8] ; +0xc4, 0x1008e36d4 test rax, rax ; +0xc8, 0x1008e36d8 jz loc_1008E386C ; +0xcb, 0x1008e36db mov r10, [rax] ; +0xd1, 0x1008e36e1 test r10, r10 ; +0xd4, 0x1008e36e4 jz loc_1008E386C ; +0xd7, 0x1008e36e7 cmp r11d, 2 ; +0xdd, 0x1008e36ed jnb short loc_1008E3742 ; +0xe1, 0x1008e36f1 dec r9 ; +0xe3, 0x1008e36f3 jmp short loc_1008E3712 ; +0xe6, 0x1008e36f6 align 20h ; +0xe8, 0x1008e36f8 cmp [r10+10h], esi ; +0xf0, 0x1008e3700 jz short loc_1008E377F ; +0xf4, 0x1008e3704 mov r10, [r10] ; +0xf6, 0x1008e3706 test r10, r10 ; +0xf9, 0x1008e3709 jz loc_1008E386C ; +0xfc, 0x1008e370c mov rax, [r10+8] ; +0x102, 0x1008e3712 cmp rax, rcx ; +0x106, 0x1008e3716 jz short loc_1008E3700 ; +0x109, 0x1008e3719 and rax, r9 ; +0x10b, 0x1008e371b cmp rax, r8 ; +0x10e, 0x1008e371e jz short loc_1008E3706 ; +0x111, 0x1008e3721 jmp loc_1008E386C ; +0x113, 0x1008e3723 align 10h ; +0x118, 0x1008e3728 cmp [r10+10h], esi ; +0x120, 0x1008e3730 jz short loc_1008E377F ; +0x124, 0x1008e3734 mov r10, [r10] ; +0x126, 0x1008e3736 test r10, r10 ; +0x129, 0x1008e3739 jz loc_1008E386C ; +0x12c, 0x1008e373c mov rax, [r10+8] ; +0x132, 0x1008e3742 cmp rax, rcx ; +0x136, 0x1008e3746 jz short loc_1008E3730 ; +0x139, 0x1008e3749 cmp rax, r9 ; +0x13b, 0x1008e374b jb short loc_1008E3764 ; +0x13e, 0x1008e374e mov rdx, rax ; +0x140, 0x1008e3750 or rdx, r9 ; +0x143, 0x1008e3753 shr rdx, 20h ; +0x146, 0x1008e3756 jz short loc_1008E376E ; +0x14a, 0x1008e375a xor edx, edx ; +0x14c, 0x1008e375c div r9 ; +0x14e, 0x1008e375e mov rax, rdx ; +0x151, 0x1008e3761 cmp rax, r8 ; +0x154, 0x1008e3764 jz short loc_1008E3736 ; +0x157, 0x1008e3767 jmp loc_1008E386C ; +0x159, 0x1008e3769 xor edx, edx ; +0x15e, 0x1008e376e div r9d ; +0x160, 0x1008e3770 mov eax, edx ; +0x163, 0x1008e3773 cmp rax, r8 ; +0x165, 0x1008e3775 jz short loc_1008E3736 ; +0x168, 0x1008e3778 jmp loc_1008E386C ; +0x16a, 0x1008e377a mov r14, [r10+18h] ; +0x16f, 0x1008e377f test r14, r14 ; +0x173, 0x1008e3783 jz loc_1008E386C ; +0x176, 0x1008e3786 test ebx, ebx ; +0x17c, 0x1008e378c js loc_1008E386C ; +0x17e, 0x1008e378e mov rax, [r14] ; +0x184, 0x1008e3794 test rax, rax ; +0x187, 0x1008e3797 jz loc_1008E386C ; +0x18a, 0x1008e379a mov r15, rdi ; +0x190, 0x1008e37a0 mov rdi, rax ; +0x193, 0x1008e37a3 call sub_1007FEF90 ; +0x196, 0x1008e37a6 cmp eax, ebx ; +0x19b, 0x1008e37ab jle loc_1008E386C ; +0x19d, 0x1008e37ad mov rdi, [r14] ; +0x1a3, 0x1008e37b3 mov esi, ebx ; +0x1a6, 0x1008e37b6 mov edx, 1 ; +0x1a8, 0x1008e37b8 call sub_1007FF150 ; +0x1ad, 0x1008e37bd mov ebx, [r14+0Ch] ; +0x1b2, 0x1008e37c2 mov rdi, [r14] ; +0x1b6, 0x1008e37c6 call sub_1007FEF90 ; +0x1b9, 0x1008e37c9 cmp ebx, eax ; +0x1be, 0x1008e37ce jl short loc_1008E37DA ; +0x1c0, 0x1008e37d0 mov dword ptr [r14+0Ch], 0 ; +0x1c2, 0x1008e37d2 mov rdi, [r14] ; +0x1ca, 0x1008e37da call sub_1007FEF90 ; +0x1cd, 0x1008e37dd test eax, eax ; +0x1d2, 0x1008e37e2 jnz loc_1008E386C ; +0x1d4, 0x1008e37e4 lea rdi, [r15+50h] ; +0x1da, 0x1008e37ea lea rbx, [rbp+var_24] ; +0x1de, 0x1008e37ee mov rsi, rbx ; +0x1e2, 0x1008e37f2 call sub_10001C120 ; +0x1e5, 0x1008e37f5 lea rdi, [r15+28h] ; +0x1ea, 0x1008e37fa mov rsi, rbx ; +0x1ee, 0x1008e37fe call sub_10001C120 ; +0x1f1, 0x1008e3801 mov rdi, [r14] ; +0x1f6, 0x1008e3806 test rdi, rdi ; +0x1f9, 0x1008e3809 jz short loc_1008E381A ; +0x1fc, 0x1008e380c call cocos2d__CCObject__release ; +0x1fe, 0x1008e380e mov qword ptr [r14], 0 ; +0x203, 0x1008e3813 mov rdi, [r14+28h]; __p ; +0x20a, 0x1008e381a test rdi, rdi ; +0x20e, 0x1008e381e jz short loc_1008E382C ; +0x211, 0x1008e3821 mov [r14+30h], rdi ; +0x213, 0x1008e3823 call __ZdlPv; operator delete(void *) ; +0x217, 0x1008e3827 test byte ptr [r14+10h], 1 ; +0x21c, 0x1008e382c jz short loc_1008E383C ; +0x221, 0x1008e3831 mov rdi, [r14+20h]; __p ; +0x223, 0x1008e3833 call __ZdlPv; operator delete(void *) ; +0x227, 0x1008e3837 mov rdi, r14; __p ; +0x22c, 0x1008e383c call __ZdlPv; operator delete(void *) ; +0x22f, 0x1008e383f lea rsi, [rbp+var_24] ; +0x234, 0x1008e3844 mov rdi, r15 ; +0x238, 0x1008e3848 call sub_10001C120 ; +0x23b, 0x1008e384b jmp short loc_1008E386C ; +0x240, 0x1008e3850 mov eax, esi ; +0x242, 0x1008e3852 xor edx, edx ; +0x244, 0x1008e3854 div r9d ; +0x246, 0x1008e3856 mov r8d, edx ; +0x249, 0x1008e3859 mov rax, [rdi] ; +0x24c, 0x1008e385c mov rax, [rax+r8*8] ; +0x24f, 0x1008e385f test rax, rax ; +0x253, 0x1008e3863 jnz loc_1008E36E1 ; +0x256, 0x1008e3866 add rsp, 10h ; +0x25c, 0x1008e386c pop rbx ; +0x260, 0x1008e3870 pop r12 ; +0x261, 0x1008e3871 pop r14 ; +0x263, 0x1008e3873 pop r15 ; +0x265, 0x1008e3875 pop rbp ; +0x267, 0x1008e3877 retn ; +0x268, 0x1008e3878