; ; CCLightStrip::draw from 0x1400479a0 to 0x140047b5c (444 bytes) ; ; 4 xrefs: ; > @ 0x140709078 ; > @ 0x1408857f0 ; > @ 0x140885800 ; > @ 0x14090fab8 ; ; 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:31 +0000 ; push rbx ; +0x0, 0x1400479a0 sub rsp, 90h ; +0x2, 0x1400479a2 mov rax, cs:__security_cookie ; +0x9, 0x1400479a9 xor rax, rsp ; +0x10, 0x1400479b0 mov [rsp+98h+var_38], rax ; +0x13, 0x1400479b3 mov rax, [rcx] ; +0x18, 0x1400479b8 mov rbx, rcx ; +0x1b, 0x1400479bb call qword ptr [rax+158h] ; +0x1e, 0x1400479be test al, al ; +0x24, 0x1400479c4 jz loc_140047B46 ; +0x26, 0x1400479c6 movaps [rsp+98h+var_18], xmm6 ; +0x2c, 0x1400479cc mov edx, 1 ; +0x34, 0x1400479d4 mov ecx, 302h ; +0x39, 0x1400479d9 movaps [rsp+98h+var_28], xmm7 ; +0x3e, 0x1400479de call cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x43, 0x1400479e3 cvttss2si r9d, dword ptr [rbx+154h] ; +0x49, 0x1400479e9 movzx r8d, byte ptr [rbx+152h] ; +0x52, 0x1400479f2 movzx edx, byte ptr [rbx+151h] ; +0x5a, 0x1400479fa movzx ecx, byte ptr [rbx+150h] ; +0x61, 0x140047a01 call cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x68, 0x140047a08 movss xmm0, dword ptr [rbx+140h] ; +0x6e, 0x140047a0e lea rcx, [rsp+98h+var_58] ; +0x76, 0x140047a16 movss xmm6, dword ptr [rbx+158h] ; +0x7b, 0x140047a1b xorps xmm2, xmm2 ; +0x83, 0x140047a23 movss xmm7, cs:dword_140834F20 ; +0x86, 0x140047a26 subss xmm6, xmm0 ; +0x8e, 0x140047a2e mulss xmm6, cs:dword_140834E84 ; +0x92, 0x140047a32 addss xmm6, xmm0 ; +0x9a, 0x140047a3a movaps xmm1, xmm6 ; +0x9e, 0x140047a3e xorps xmm1, cs:xmmword_140836CC0 ; +0xa1, 0x140047a41 mulss xmm1, xmm7 ; +0xa8, 0x140047a48 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xac, 0x140047a4c mulss xmm6, xmm7 ; +0xb2, 0x140047a52 lea rcx, [rsp+98h+var_50] ; +0xb6, 0x140047a56 xorps xmm2, xmm2 ; +0xbb, 0x140047a5b movaps xmm1, xmm6 ; +0xbe, 0x140047a5e call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xc1, 0x140047a61 movss xmm1, dword ptr [rbx+158h] ; +0xc7, 0x140047a67 lea rcx, [rsp+98h+var_48] ; +0xcf, 0x140047a6f movss xmm2, dword ptr [rbx+15Ch] ; +0xd4, 0x140047a74 mulss xmm1, xmm7 ; +0xdc, 0x140047a7c call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe0, 0x140047a80 movss xmm1, dword ptr [rbx+158h] ; +0xe6, 0x140047a86 lea rcx, [rsp+98h+var_40] ; +0xee, 0x140047a8e xorps xmm1, cs:xmmword_140836CC0 ; +0xf3, 0x140047a93 movss xmm2, dword ptr [rbx+15Ch] ; +0xfa, 0x140047a9a mulss xmm1, xmm7 ; +0x102, 0x140047aa2 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x106, 0x140047aa6 movss xmm2, cs:dword_140835964 ; +0x10c, 0x140047aac lea r8, [rsp+98h+var_68] ; +0x114, 0x140047ab4 movzx eax, word ptr [rbx+150h] ; +0x119, 0x140047ab9 lea rcx, [rsp+98h+var_58] ; +0x120, 0x140047ac0 mov [rsp+98h+var_78], ax ; +0x125, 0x140047ac5 mov edx, 4 ; +0x12a, 0x140047aca movzx eax, al ; +0x12f, 0x140047acf movd xmm0, eax ; +0x132, 0x140047ad2 movzx eax, byte ptr [rsp+98h+var_78+1] ; +0x136, 0x140047ad6 cvtdq2ps xmm0, xmm0 ; +0x13b, 0x140047adb divss xmm0, xmm2 ; +0x13e, 0x140047ade movss [rsp+98h+var_68], xmm0 ; +0x142, 0x140047ae2 movd xmm0, eax ; +0x148, 0x140047ae8 movzx eax, byte ptr [rbx+152h] ; +0x14c, 0x140047aec cvtdq2ps xmm0, xmm0 ; +0x153, 0x140047af3 movd xmm1, eax ; +0x156, 0x140047af6 divss xmm0, xmm2 ; +0x15a, 0x140047afa cvtdq2ps xmm1, xmm1 ; +0x15e, 0x140047afe movss [rsp+98h+var_64], xmm0 ; +0x161, 0x140047b01 movss xmm0, dword ptr [rbx+154h] ; +0x167, 0x140047b07 divss xmm0, xmm2 ; +0x16f, 0x140047b0f divss xmm1, xmm2 ; +0x173, 0x140047b13 movss [rsp+98h+var_5C], xmm0 ; +0x177, 0x140047b17 movss [rsp+98h+var_60], xmm1 ; +0x17d, 0x140047b1d call cs:?ccDrawSolidPoly@cocos2d@@YAXPEBVCCPoint@1@IU_ccColor4F@1@@Z; cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const *,uint,cocos2d::_ccColor4F) ; +0x183, 0x140047b23 mov edx, 303h ; +0x189, 0x140047b29 mov ecx, 1 ; +0x18e, 0x140047b2e call cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x193, 0x140047b33 movaps xmm7, [rsp+98h+var_28] ; +0x199, 0x140047b39 movaps xmm6, [rsp+98h+var_18] ; +0x19e, 0x140047b3e mov rcx, [rsp+98h+var_38] ; +0x1a6, 0x140047b46 xor rcx, rsp; StackCookie ; +0x1ab, 0x140047b4b call __security_check_cookie ; +0x1ae, 0x140047b4e add rsp, 90h ; +0x1b3, 0x140047b53 pop rbx ; +0x1ba, 0x140047b5a retn ; +0x1bb, 0x140047b5b