; ; ColorChannelSprite::create from 0x140362d80 to 0x140362e3f (191 bytes) ; ; 10 xrefs: ; > CharacterColorPage::createColorMenu @ 0x1400a18f2 ; > CustomizeObjectLayer::init @ 0x140140af4 ; > GJColorSetupLayer::init @ 0x14035eedd ; > LevelSettingsLayer::init @ 0x1404580b6 ; > LevelSettingsLayer::init @ 0x140458137 ; > LevelSettingsLayer::init @ 0x1404581b4 ; > LevelSettingsLayer::init @ 0x140458230 ; > LevelSettingsLayer::init @ 0x1404582ac ; > LevelSettingsLayer::init @ 0x140458328 ; > @ 0x1409214ac ; ; 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:30:53 +0000 ; push rbx ; +0x0, 0x140362d80 sub rsp, 20h ; +0x2, 0x140362d82 mov ecx, 270h; Size ; +0x6, 0x140362d86 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xb, 0x140362d8b mov rbx, rax ; +0x10, 0x140362d90 mov [rsp+28h+arg_0], rax ; +0x13, 0x140362d93 mov rcx, rax ; +0x18, 0x140362d98 call cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x1b, 0x140362d9b lea rax, ??_7ColorChannelSprite@@6B@; const ColorChannelSprite::`vftable' ; +0x21, 0x140362da1 mov [rbx], rax ; +0x28, 0x140362da8 lea rax, ??_7ColorChannelSprite@@6B@_0; const ColorChannelSprite::`vftable' ; +0x2b, 0x140362dab mov [rbx+140h], rax ; +0x32, 0x140362db2 lea rax, ??_7ColorChannelSprite@@6B@_1; const ColorChannelSprite::`vftable' ; +0x39, 0x140362db9 mov [rbx+158h], rax ; +0x40, 0x140362dc0 mov qword ptr [rbx+258h], 0 ; +0x47, 0x140362dc7 mov qword ptr [rbx+260h], 0 ; +0x52, 0x140362dd2 mov qword ptr [rbx+268h], 0 ; +0x5d, 0x140362ddd mov rax, cs:off_14076D5B0 ; +0x68, 0x140362de8 lea rcx, ColorChannelSprite__init ; +0x6f, 0x140362def cmp rax, rcx ; +0x76, 0x140362df6 mov rcx, rbx ; +0x79, 0x140362df9 jnz short loc_140362E0D ; +0x7c, 0x140362dfc lea rdx, aGjColorbtn001P; "GJ_colorBtn_001.png" ; +0x7e, 0x140362dfe call cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x85, 0x140362e05 jmp short loc_140362E0F ; +0x8b, 0x140362e0b call rax ; ColorChannelSprite__init ; +0x8d, 0x140362e0d test al, al ; +0x8f, 0x140362e0f jz short loc_140362E25 ; +0x91, 0x140362e11 mov rcx, rbx ; +0x93, 0x140362e13 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x96, 0x140362e16 mov rax, rbx ; +0x9c, 0x140362e1c add rsp, 20h ; +0x9f, 0x140362e1f pop rbx ; +0xa3, 0x140362e23 retn ; +0xa4, 0x140362e24 mov rcx, [rbx] ; +0xa5, 0x140362e25 mov r8, [rcx+8] ; +0xa8, 0x140362e28 mov edx, 1 ; +0xac, 0x140362e2c mov rcx, rbx ; +0xb1, 0x140362e31 call r8 ; +0xb4, 0x140362e34 xor eax, eax ; +0xb7, 0x140362e37 add rsp, 20h ; +0xb9, 0x140362e39 pop rbx ; +0xbd, 0x140362e3d retn ; +0xbe, 0x140362e3e