; ; cocos2d::CCLayerColor::initWithColor from 0x180051f10 to 0x180052043 (307 bytes) ; ; 6 xrefs: ; > @ 0x1800f3e88 ; > @ 0x1800f4410 ; > @ 0x1801414f8 ; > @ 0x180141508 ; > @ 0x18014cf68 ; > @ 0x1801bc1e4 ; ; 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:45 +0000 ; mov [rsp+arg_8], rsi ; +0x0, 0x180051f10 push rdi ; +0x5, 0x180051f15 sub rsp, 50h ; +0x6, 0x180051f16 movaps [rsp+58h+var_18], xmm6 ; +0xa, 0x180051f1a mov rsi, rdx ; +0xf, 0x180051f1f movaps [rsp+58h+var_28], xmm7 ; +0x12, 0x180051f22 movaps xmm6, xmm3 ; +0x17, 0x180051f27 movaps xmm7, xmm2 ; +0x1a, 0x180051f2a mov rdi, rcx ; +0x1d, 0x180051f2d call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x180051f30 test rax, rax ; +0x25, 0x180051f35 jz loc_18005202C ; +0x28, 0x180051f38 mov [rsp+58h+arg_0], rbx ; +0x2e, 0x180051f3e lea rdx, [rsp+58h+var_38] ; +0x33, 0x180051f43 mov rbx, [rdi] ; +0x38, 0x180051f48 mov rcx, rax ; +0x3b, 0x180051f4b call ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x3e, 0x180051f4e mov rdx, rax ; +0x43, 0x180051f53 mov rcx, rdi ; +0x46, 0x180051f56 call qword ptr [rbx+138h] ; +0x49, 0x180051f59 mov word ptr [rdi+168h], 0 ; +0x4f, 0x180051f5f mov rcx, rdi ; +0x58, 0x180051f68 mov dword ptr [rdi+218h], 302h ; +0x5b, 0x180051f6b mov dword ptr [rdi+21Ch], 303h ; +0x65, 0x180051f75 movzx eax, byte ptr [rsi] ; +0x6f, 0x180051f7f mov [rdi+1A5h], al ; +0x72, 0x180051f82 mov [rdi+1A2h], al ; +0x78, 0x180051f88 movzx eax, byte ptr [rsi+1] ; +0x7e, 0x180051f8e mov [rdi+1A6h], al ; +0x82, 0x180051f92 mov [rdi+1A3h], al ; +0x88, 0x180051f98 movzx eax, byte ptr [rsi+2] ; +0x8e, 0x180051f9e mov [rdi+1A7h], al ; +0x92, 0x180051fa2 mov [rdi+1A4h], al ; +0x98, 0x180051fa8 movzx eax, byte ptr [rsi+3] ; +0x9e, 0x180051fae mov [rdi+1A1h], al ; +0xa2, 0x180051fb2 mov [rdi+1A0h], al ; +0xa8, 0x180051fb8 xor eax, eax ; +0xae, 0x180051fbe mov [rdi+1B8h], rax ; +0xb0, 0x180051fc0 mov [rdi+1C0h], rax ; +0xb7, 0x180051fc7 mov [rdi+1C8h], rax ; +0xbe, 0x180051fce mov [rdi+1D0h], rax ; +0xc5, 0x180051fd5 mov rax, [rdi] ; +0xcc, 0x180051fdc call qword ptr [rax+418h] ; +0xcf, 0x180051fdf mov rbx, [rdi] ; +0xd5, 0x180051fe5 lea rcx, [rsp+58h+var_38] ; +0xd8, 0x180051fe8 movaps xmm2, xmm6 ; +0xdd, 0x180051fed movaps xmm1, xmm7 ; +0xe0, 0x180051ff0 call kmVec2Fill ; +0xe3, 0x180051ff3 mov rdx, rax ; +0xe8, 0x180051ff8 mov rcx, rdi ; +0xeb, 0x180051ffb call qword ptr [rbx+138h] ; +0xee, 0x180051ffe mov rbx, [rdi] ; +0xf4, 0x180052004 call ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0xf7, 0x180052007 mov rcx, rax; this ; +0xfc, 0x18005200c lea rdx, aShaderposition_1; "ShaderPositionColor" ; +0xff, 0x18005200f call ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x106, 0x180052016 mov rdx, rax ; +0x10b, 0x18005201b mov rcx, rdi ; +0x10e, 0x18005201e call qword ptr [rbx+290h] ; +0x111, 0x180052021 mov rbx, [rsp+58h+arg_0] ; +0x117, 0x180052027 mov rsi, [rsp+58h+arg_8] ; +0x11c, 0x18005202c mov al, 1 ; +0x121, 0x180052031 movaps xmm6, [rsp+58h+var_18] ; +0x123, 0x180052033 movaps xmm7, [rsp+58h+var_28] ; +0x128, 0x180052038 add rsp, 50h ; +0x12d, 0x18005203d pop rdi ; +0x131, 0x180052041 retn ; +0x132, 0x180052042