; ; GJChestSprite::setColor from 0x140567020 to 0x1405670e0 (192 bytes) ; ; 2 xrefs: ; > @ 0x1407db1a0 ; > @ 0x14092c57c ; ; 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:34:17 +0000 ; push rbx ; +0x0, 0x140567020 sub rsp, 20h ; +0x2, 0x140567022 cmp byte ptr [rcx+120h], 0 ; +0x6, 0x140567026 lea rbx, [rcx-140h] ; +0xd, 0x14056702d movzx eax, word ptr [rdx] ; +0x14, 0x140567034 movzx r8d, byte ptr [rdx+2] ; +0x17, 0x140567037 mov [rsp+28h+arg_0], ax ; +0x1c, 0x14056703c mov [rsp+28h+arg_2], r8b ; +0x21, 0x140567041 jz short loc_140567092 ; +0x26, 0x140567046 movss xmm1, cs:dword_140834EDC ; +0x28, 0x140567048 movzx eax, al ; +0x30, 0x140567050 movd xmm0, eax ; +0x33, 0x140567053 cvtdq2ps xmm0, xmm0 ; +0x37, 0x140567057 mulss xmm0, xmm1 ; +0x3a, 0x14056705a cvttss2si eax, xmm0 ; +0x3e, 0x14056705e mov byte ptr [rsp+28h+arg_0], al ; +0x42, 0x140567062 movzx eax, byte ptr [rsp+28h+arg_0+1] ; +0x46, 0x140567066 movd xmm0, eax ; +0x4b, 0x14056706b cvtdq2ps xmm0, xmm0 ; +0x4f, 0x14056706f mulss xmm0, xmm1 ; +0x52, 0x140567072 cvttss2si eax, xmm0 ; +0x56, 0x140567076 movd xmm0, r8d ; +0x5a, 0x14056707a cvtdq2ps xmm0, xmm0 ; +0x5f, 0x14056707f mov byte ptr [rsp+28h+arg_0+1], al ; +0x62, 0x140567082 mulss xmm0, xmm1 ; +0x66, 0x140567086 cvttss2si eax, xmm0 ; +0x6a, 0x14056708a mov [rsp+28h+arg_2], al ; +0x6e, 0x14056708e lea rdx, [rsp+28h+arg_0] ; +0x72, 0x140567092 call cs:__imp_?setColor@CCSprite@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const &) ; +0x77, 0x140567097 mov rax, [rbx] ; +0x7d, 0x14056709d mov rcx, rbx ; +0x80, 0x1405670a0 call qword ptr [rax+1E0h] ; +0x83, 0x1405670a3 mov rbx, rax ; +0x89, 0x1405670a9 test rax, rax ; +0x8c, 0x1405670ac jz short loc_1405670DA ; +0x8f, 0x1405670af mov rcx, rax ; +0x91, 0x1405670b1 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x94, 0x1405670b4 test eax, eax ; +0x9a, 0x1405670ba jz short loc_1405670DA ; +0x9c, 0x1405670bc xor edx, edx ; +0x9e, 0x1405670be mov rcx, rbx ; +0xa0, 0x1405670c0 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa3, 0x1405670c3 lea rdx, [rsp+28h+arg_0] ; +0xa9, 0x1405670c9 lea rcx, [rax+140h] ; +0xae, 0x1405670ce mov rax, [rcx] ; +0xb5, 0x1405670d5 call qword ptr [rax] ; +0xb8, 0x1405670d8 add rsp, 20h ; +0xba, 0x1405670da pop rbx ; +0xbe, 0x1405670de retn ; +0xbf, 0x1405670df