; ; cocos2d::CCMotionStreak::draw from 0x18005ed00 to 0x18005ee3d (317 bytes) ; ; 3 xrefs: ; > @ 0x1800ffbf8 ; > @ 0x18014cf68 ; > @ 0x1801bd3c0 ; ; 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:21:50 +0000 ; push rbx ; +0x0, 0x18005ed00 sub rsp, 30h ; +0x2, 0x18005ed02 cmp dword ptr [rcx+188h], 1 ; +0x6, 0x18005ed06 mov rbx, rcx ; +0xd, 0x18005ed0d jbe loc_18005EE37 ; +0x10, 0x18005ed10 mov ecx, [rcx+0F8h]; this ; +0x16, 0x18005ed16 call ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x1c, 0x18005ed1c mov rax, [rbx] ; +0x21, 0x18005ed21 mov rcx, rbx ; +0x24, 0x18005ed24 call qword ptr [rax+288h] ; +0x27, 0x18005ed27 mov rax, [rbx] ; +0x2d, 0x18005ed2d mov rcx, rbx ; +0x30, 0x18005ed30 call qword ptr [rax+288h] ; +0x33, 0x18005ed33 mov rcx, rax; this ; +0x39, 0x18005ed39 call ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x3c, 0x18005ed3c mov rax, [rbx] ; +0x41, 0x18005ed41 mov rcx, rbx ; +0x44, 0x18005ed44 call qword ptr [rax+288h] ; +0x47, 0x18005ed47 mov rcx, rax; this ; +0x4d, 0x18005ed4d call ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x50, 0x18005ed50 mov ecx, 7; this ; +0x55, 0x18005ed55 call ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x5a, 0x18005ed5a mov edx, [rbx+174h]; dfactor ; +0x5f, 0x18005ed5f mov ecx, [rbx+170h]; sfactor ; +0x65, 0x18005ed65 call ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x6b, 0x18005ed6b mov rcx, [rbx+168h] ; +0x70, 0x18005ed70 mov rax, [rcx] ; +0x77, 0x18005ed77 call qword ptr [rax+60h] ; +0x7a, 0x18005ed7a mov ecx, eax; this ; +0x7d, 0x18005ed7d call ?ccGLBindTexture2D@cocos2d@@YAXI@Z; cocos2d::ccGLBindTexture2D(uint) ; +0x7f, 0x18005ed7f mov rax, cs:__glewVertexAttribPointer ; +0x84, 0x18005ed84 xor r9d, r9d ; +0x8b, 0x18005ed8b mov edx, 2 ; +0x8e, 0x18005ed8e xor ecx, ecx ; +0x93, 0x18005ed93 mov r8d, 1406h ; +0x95, 0x18005ed95 mov r10, [rax] ; +0x9b, 0x18005ed9b mov rax, [rbx+1A0h] ; +0x9e, 0x18005ed9e mov [rsp+38h+var_10], rax ; +0xa5, 0x18005eda5 mov [rsp+38h+var_18], 0 ; +0xaa, 0x18005edaa call r10 ; +0xb2, 0x18005edb2 mov rax, cs:__glewVertexAttribPointer ; +0xb5, 0x18005edb5 mov edx, 2 ; +0xbc, 0x18005edbc xor r9d, r9d ; +0xc1, 0x18005edc1 mov ecx, edx ; +0xc4, 0x18005edc4 mov r8d, 1406h ; +0xc6, 0x18005edc6 mov r10, [rax] ; +0xcc, 0x18005edcc mov rax, [rbx+1B0h] ; +0xcf, 0x18005edcf mov [rsp+38h+var_10], rax ; +0xd6, 0x18005edd6 mov [rsp+38h+var_18], 0 ; +0xdb, 0x18005eddb call r10 ; +0xe3, 0x18005ede3 mov rax, cs:__glewVertexAttribPointer ; +0xe6, 0x18005ede6 mov r9b, 1 ; +0xed, 0x18005eded mov edx, 4 ; +0xf0, 0x18005edf0 mov ecx, 1 ; +0xf5, 0x18005edf5 mov r8d, 1401h ; +0xfa, 0x18005edfa mov r10, [rax] ; +0x100, 0x18005ee00 mov rax, [rbx+1A8h] ; +0x103, 0x18005ee03 mov [rsp+38h+var_10], rax ; +0x10a, 0x18005ee0a mov [rsp+38h+var_18], 0 ; +0x10f, 0x18005ee0f call r10 ; +0x117, 0x18005ee17 mov r8d, [rbx+188h] ; +0x11a, 0x18005ee1a xor edx, edx; first ; +0x121, 0x18005ee21 add r8d, r8d; count ; +0x123, 0x18005ee23 mov ecx, 5; mode ; +0x126, 0x18005ee26 call cs:glDrawArrays ; +0x12b, 0x18005ee2b inc cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws ; +0x131, 0x18005ee31 add rsp, 30h ; +0x137, 0x18005ee37 pop rbx ; +0x13b, 0x18005ee3b retn ; +0x13c, 0x18005ee3c