; ; CCMenuItemSpriteExtra::selected from 0x140044ec0 to 0x1400450d6 (534 bytes) ; ; 4 xrefs: ; > @ 0x14052ec80 ; > @ 0x1405539c0 ; > @ 0x140580eb8 ; > @ 0x1406c4698 ; ; 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, 0x140044ec0 mov [rsp+arg_18], rsi ; +0x5, 0x140044ec5 push rdi ; +0xa, 0x140044eca sub rsp, 50h ; +0xb, 0x140044ecb mov rsi, rcx ; +0xf, 0x140044ecf cmp byte ptr [rcx+159h], 0 ; +0x12, 0x140044ed2 jz loc_1400450C6 ; +0x19, 0x140044ed9 call cs:__imp_?selected@CCMenuItemSprite@cocos2d@@UEAAXXZ; cocos2d::CCMenuItemSprite::selected(void) ; +0x1f, 0x140044edf cmp qword ptr [rsi+1D0h], 0 ; +0x25, 0x140044ee5 jz loc_140044FA2 ; +0x2d, 0x140044eed lea rax, [rsp+58h+var_28] ; +0x33, 0x140044ef3 mov [rsp+58h+arg_0], rax ; +0x38, 0x140044ef8 lea rdx, [rsi+1C0h] ; +0x3d, 0x140044efd cmp qword ptr [rdx+18h], 0Fh ; +0x44, 0x140044f04 jbe short loc_140044F0E ; +0x49, 0x140044f09 mov rdx, [rdx] ; +0x4b, 0x140044f0b xorps xmm0, xmm0 ; +0x4e, 0x140044f0e movups [rsp+58h+var_28], xmm0 ; +0x51, 0x140044f11 xor eax, eax ; +0x56, 0x140044f16 mov [rsp+58h+var_18], rax ; +0x58, 0x140044f18 mov [rsp+58h+var_10], rax ; +0x5d, 0x140044f1d mov r8, 0FFFFFFFFFFFFFFFFh ; +0x62, 0x140044f22 nop dword ptr [rax+00000000h] ; +0x69, 0x140044f29 inc r8 ; +0x70, 0x140044f30 cmp [rdx+r8], al ; +0x73, 0x140044f33 jnz short loc_140044F30 ; +0x77, 0x140044f37 lea rcx, [rsp+58h+var_28] ; +0x79, 0x140044f39 call sub_14003A930 ; +0x7e, 0x140044f3e nop ; +0x83, 0x140044f43 mov rcx, cs:qword_1406C2E88 ; +0x84, 0x140044f44 test rcx, rcx ; +0x8b, 0x140044f4b jnz short loc_140044F7F ; +0x8e, 0x140044f4e mov ecx, 888h; Size ; +0x90, 0x140044f50 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x95, 0x140044f55 mov [rsp+58h+arg_8], rax ; +0x9a, 0x140044f5a mov rcx, rax ; +0x9f, 0x140044f5f call FMODAudioEngine__FMODAudioEngine ; +0xa2, 0x140044f62 nop ; +0xa7, 0x140044f67 mov cs:qword_1406C2E88, rax ; +0xa8, 0x140044f68 mov rdx, [rax] ; +0xaf, 0x140044f6f mov rcx, rax ; +0xb2, 0x140044f72 call qword ptr [rdx+48h] ; +0xb5, 0x140044f75 mov rcx, cs:qword_1406C2E88 ; +0xb8, 0x140044f78 movss xmm0, dword ptr [rsi+19Ch] ; +0xbf, 0x140044f7f movss [rsp+58h+var_38], xmm0 ; +0xc7, 0x140044f87 xorps xmm3, xmm3 ; +0xcd, 0x140044f8d movss xmm2, cs:flt_140622C24 ; +0xd0, 0x140044f90 lea rdx, [rsp+58h+var_28] ; +0xd8, 0x140044f98 call FMODAudioEngine__playEffect ; +0xdd, 0x140044f9d cmp byte ptr [rsi+199h], 0 ; +0xe2, 0x140044fa2 jz short loc_140044FF2 ; +0xe9, 0x140044fa9 movss xmm0, dword ptr [rsi+1E0h] ; +0xeb, 0x140044fab mulss xmm0, cs:dword_140623418 ; +0xf3, 0x140044fb3 cvttss2si ecx, xmm0 ; +0xfb, 0x140044fbb mov byte ptr [rsp+58h+arg_0], cl ; +0xff, 0x140044fbf mov byte ptr [rsp+58h+arg_0+1], cl ; +0x103, 0x140044fc3 movzx eax, word ptr [rsp+58h+arg_0] ; +0x107, 0x140044fc7 mov word ptr [rsp+58h+arg_0], ax ; +0x10c, 0x140044fcc mov byte ptr [rsp+58h+arg_0+2], cl ; +0x111, 0x140044fd1 mov rax, [rsi] ; +0x115, 0x140044fd5 mov rcx, rsi ; +0x118, 0x140044fd8 call qword ptr [rax+3A8h] ; +0x11b, 0x140044fdb lea rcx, [rax+140h] ; +0x121, 0x140044fe1 mov rax, [rcx] ; +0x128, 0x140044fe8 lea rdx, [rsp+58h+arg_0] ; +0x12b, 0x140044feb call qword ptr [rax] ; +0x130, 0x140044ff0 cmp byte ptr [rsi+198h], 0 ; +0x132, 0x140044ff2 jz loc_1400450C6 ; +0x139, 0x140044ff9 mov eax, [rsi+1F4h] ; +0x13f, 0x140044fff test eax, eax ; +0x145, 0x140045005 jnz short loc_14004504F ; +0x147, 0x140045007 xor edx, edx ; +0x149, 0x140045009 mov rcx, rsi ; +0x14b, 0x14004500b call cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x14e, 0x14004500e movss xmm1, dword ptr [rsi+194h] ; +0x154, 0x140045014 mulss xmm1, dword ptr [rsi+190h] ; +0x15c, 0x14004501c movss xmm0, dword ptr [rsi+1ECh] ; +0x164, 0x140045024 call cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0x16c, 0x14004502c mov rcx, rax ; +0x172, 0x140045032 call cs:?create@CCEaseBounceOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@@Z; cocos2d::CCEaseBounceOut::create(cocos2d::CCActionInterval *) ; +0x175, 0x140045035 mov rbx, rax ; +0x17b, 0x14004503b mov r8, [rax] ; +0x17e, 0x14004503e xor edx, edx ; +0x181, 0x140045041 mov rcx, rax ; +0x183, 0x140045043 call qword ptr [r8+40h] ; +0x186, 0x140045046 mov rcx, rsi ; +0x18a, 0x14004504a jmp short loc_1400450BD ; +0x18d, 0x14004504d cmp eax, 1 ; +0x18f, 0x14004504f jnz short loc_1400450C6 ; +0x192, 0x140045052 mov rax, [rsi] ; +0x194, 0x140045054 mov rcx, rsi ; +0x197, 0x140045057 call qword ptr [rax+3A8h] ; +0x19a, 0x14004505a mov rdi, rax ; +0x1a0, 0x140045060 xor edx, edx ; +0x1a3, 0x140045063 mov rcx, rax ; +0x1a5, 0x140045065 call cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x1a8, 0x140045068 lea r8, [rsi+1E4h] ; +0x1ae, 0x14004506e lea rcx, [rsi+1F8h] ; +0x1b5, 0x140045075 lea rdx, [rsp+58h+arg_0] ; +0x1bc, 0x14004507c call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x1c1, 0x140045081 lea rdx, [rsp+58h+arg_0] ; +0x1c7, 0x140045087 movss xmm0, dword ptr [rsi+1ECh] ; +0x1cc, 0x14004508c call cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0x1d4, 0x140045094 movss xmm1, cs:dword_140622D04 ; +0x1da, 0x14004509a mov rcx, rax ; +0x1e2, 0x1400450a2 call cs:?create@CCEaseInOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0x1e5, 0x1400450a5 mov rbx, rax ; +0x1eb, 0x1400450ab mov r8, [rax] ; +0x1ee, 0x1400450ae xor edx, edx ; +0x1f1, 0x1400450b1 mov rcx, rax ; +0x1f3, 0x1400450b3 call qword ptr [r8+40h] ; +0x1f6, 0x1400450b6 mov rcx, rdi ; +0x1fa, 0x1400450ba mov rdx, rbx ; +0x1fd, 0x1400450bd call cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x200, 0x1400450c0 mov rbx, [rsp+58h+arg_10] ; +0x206, 0x1400450c6 mov rsi, [rsp+58h+arg_18] ; +0x20b, 0x1400450cb add rsp, 50h ; +0x210, 0x1400450d0 pop rdi ; +0x214, 0x1400450d4 retn ; +0x215, 0x1400450d5