; ; CCLightStrip::draw from 0x140043d20 to 0x140043edc (444 bytes) ; ; 4 xrefs: ; > @ 0x14052e478 ; > @ 0x140662748 ; > @ 0x140662758 ; > @ 0x1406c45a8 ; ; 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 ; push rbx ; +0x0, 0x140043d20 sub rsp, 90h ; +0x2, 0x140043d22 mov rax, cs:__security_cookie ; +0x9, 0x140043d29 xor rax, rsp ; +0x10, 0x140043d30 mov [rsp+98h+var_38], rax ; +0x13, 0x140043d33 mov rax, [rcx] ; +0x18, 0x140043d38 mov rbx, rcx ; +0x1b, 0x140043d3b call qword ptr [rax+148h] ; +0x1e, 0x140043d3e test al, al ; +0x24, 0x140043d44 jz loc_140043EC6 ; +0x26, 0x140043d46 movaps [rsp+98h+var_18], xmm6 ; +0x2c, 0x140043d4c mov edx, 1 ; +0x34, 0x140043d54 mov ecx, 302h ; +0x39, 0x140043d59 movaps [rsp+98h+var_28], xmm7 ; +0x3e, 0x140043d5e call cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x43, 0x140043d63 cvttss2si r9d, dword ptr [rbx+154h] ; +0x49, 0x140043d69 movzx r8d, byte ptr [rbx+152h] ; +0x52, 0x140043d72 movzx edx, byte ptr [rbx+151h] ; +0x5a, 0x140043d7a movzx ecx, byte ptr [rbx+150h] ; +0x61, 0x140043d81 call cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x68, 0x140043d88 movss xmm0, dword ptr [rbx+140h] ; +0x6e, 0x140043d8e lea rcx, [rsp+98h+var_58] ; +0x76, 0x140043d96 movss xmm6, dword ptr [rbx+158h] ; +0x7b, 0x140043d9b xorps xmm2, xmm2 ; +0x83, 0x140043da3 movss xmm7, cs:dword_140622B08 ; +0x86, 0x140043da6 subss xmm6, xmm0 ; +0x8e, 0x140043dae mulss xmm6, cs:dword_140622A88 ; +0x92, 0x140043db2 addss xmm6, xmm0 ; +0x9a, 0x140043dba movaps xmm1, xmm6 ; +0x9e, 0x140043dbe xorps xmm1, cs:xmmword_1406243F0 ; +0xa1, 0x140043dc1 mulss xmm1, xmm7 ; +0xa8, 0x140043dc8 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xac, 0x140043dcc mulss xmm6, xmm7 ; +0xb2, 0x140043dd2 lea rcx, [rsp+98h+var_50] ; +0xb6, 0x140043dd6 xorps xmm2, xmm2 ; +0xbb, 0x140043ddb movaps xmm1, xmm6 ; +0xbe, 0x140043dde call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xc1, 0x140043de1 movss xmm1, dword ptr [rbx+158h] ; +0xc7, 0x140043de7 lea rcx, [rsp+98h+var_48] ; +0xcf, 0x140043def movss xmm2, dword ptr [rbx+15Ch] ; +0xd4, 0x140043df4 mulss xmm1, xmm7 ; +0xdc, 0x140043dfc call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe0, 0x140043e00 movss xmm1, dword ptr [rbx+158h] ; +0xe6, 0x140043e06 lea rcx, [rsp+98h+var_40] ; +0xee, 0x140043e0e xorps xmm1, cs:xmmword_1406243F0 ; +0xf3, 0x140043e13 movss xmm2, dword ptr [rbx+15Ch] ; +0xfa, 0x140043e1a mulss xmm1, xmm7 ; +0x102, 0x140043e22 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x106, 0x140043e26 movss xmm3, cs:dword_140623418 ; +0x10c, 0x140043e2c lea r8, [rsp+98h+var_68] ; +0x114, 0x140043e34 movzx eax, word ptr [rbx+150h] ; +0x119, 0x140043e39 lea rcx, [rsp+98h+var_58] ; +0x120, 0x140043e40 movss xmm0, dword ptr [rbx+154h] ; +0x125, 0x140043e45 mov edx, 4 ; +0x12d, 0x140043e4d mov [rsp+98h+var_78], ax ; +0x132, 0x140043e52 movzx eax, al ; +0x137, 0x140043e57 divss xmm0, xmm3 ; +0x13a, 0x140043e5a movd xmm4, eax ; +0x13e, 0x140043e5e movzx eax, byte ptr [rsp+98h+var_78+1] ; +0x142, 0x140043e62 cvtdq2ps xmm4, xmm4 ; +0x147, 0x140043e67 movd xmm2, eax ; +0x14a, 0x140043e6a movzx eax, byte ptr [rbx+152h] ; +0x14e, 0x140043e6e cvtdq2ps xmm2, xmm2 ; +0x155, 0x140043e75 movd xmm1, eax ; +0x158, 0x140043e78 cvtdq2ps xmm1, xmm1 ; +0x15c, 0x140043e7c divss xmm4, xmm3 ; +0x15f, 0x140043e7f divss xmm1, xmm3 ; +0x163, 0x140043e83 divss xmm2, xmm3 ; +0x167, 0x140043e87 movss [rsp+98h+var_60], xmm1 ; +0x16b, 0x140043e8b movss [rsp+98h+var_68], xmm4 ; +0x171, 0x140043e91 movss [rsp+98h+var_64], xmm2 ; +0x177, 0x140043e97 movss [rsp+98h+var_5C], xmm0 ; +0x17d, 0x140043e9d call cs:?ccDrawSolidPoly@cocos2d@@YAXPEBVCCPoint@1@IU_ccColor4F@1@@Z; cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const *,uint,cocos2d::_ccColor4F) ; +0x183, 0x140043ea3 mov edx, 303h ; +0x189, 0x140043ea9 mov ecx, 1 ; +0x18e, 0x140043eae call cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x193, 0x140043eb3 movaps xmm7, [rsp+98h+var_28] ; +0x199, 0x140043eb9 movaps xmm6, [rsp+98h+var_18] ; +0x19e, 0x140043ebe mov rcx, [rsp+98h+var_38] ; +0x1a6, 0x140043ec6 xor rcx, rsp; StackCookie ; +0x1ab, 0x140043ecb call __security_check_cookie ; +0x1ae, 0x140043ece add rsp, 90h ; +0x1b3, 0x140043ed3 pop rbx ; +0x1ba, 0x140043eda retn ; +0x1bb, 0x140043edb