; ; CustomizeObjectLayer::onSelectColor from 0x140143e40 to 0x140143ef2 (178 bytes) ; ; 4 xrefs: ; > CustomizeObjectLayer::init @ 0x14013fff5 ; > CustomizeObjectLayer::init @ 0x14014029c ; > CustomizeObjectLayer::init @ 0x1401404b2 ; > @ 0x14091745c ; ; 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:27:10 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x140143e40 push rdi ; +0x5, 0x140143e45 sub rsp, 20h ; +0x6, 0x140143e46 mov rax, [rdx] ; +0xa, 0x140143e4a mov rbx, rcx ; +0xd, 0x140143e4d mov rcx, rdx ; +0x10, 0x140143e50 mov rdi, rdx ; +0x13, 0x140143e53 call qword ptr [rax+38h] ; +0x16, 0x140143e56 cmp eax, 3F0h ; +0x19, 0x140143e59 jnz short loc_140143E66 ; +0x1e, 0x140143e5e mov eax, [rbx+2ECh] ; +0x20, 0x140143e60 mov edx, eax ; +0x26, 0x140143e66 mov rcx, rbx ; +0x28, 0x140143e68 call CustomizeObjectLayer__updateSelected ; +0x2b, 0x140143e6b mov rax, [rdi] ; +0x30, 0x140143e70 mov rcx, rdi ; +0x33, 0x140143e73 call qword ptr [rax+3B8h] ; +0x36, 0x140143e76 mov rdx, rax ; +0x3c, 0x140143e7c mov rcx, rbx ; +0x3f, 0x140143e7f call CustomizeObjectLayer__highlightSelected ; +0x42, 0x140143e82 mov rcx, rbx ; +0x47, 0x140143e87 call CustomizeObjectLayer__updateColorSprite ; +0x4a, 0x140143e8a mov dl, 1 ; +0x4f, 0x140143e8f mov rcx, rbx ; +0x51, 0x140143e91 call CustomizeObjectLayer__getActiveMode ; +0x54, 0x140143e94 cmp eax, 3E8h ; +0x59, 0x140143e99 jl short loc_140143EAC ; +0x5e, 0x140143e9e mov ecx, eax ; +0x60, 0x140143ea0 call GJSpecialColorSelect__textForColorIdx ; +0x62, 0x140143ea2 mov rdx, rax ; +0x67, 0x140143ea7 jmp short loc_140143ED4 ; +0x6a, 0x140143eaa test eax, eax ; +0x6c, 0x140143eac jle short loc_140143ECD ; +0x6e, 0x140143eae mov edx, eax ; +0x70, 0x140143eb0 lea rcx, word_1406ED6F8 ; +0x72, 0x140143eb2 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x79, 0x140143eb9 mov rcx, rax ; +0x7f, 0x140143ebf call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x82, 0x140143ec2 mov rdx, rax ; +0x88, 0x140143ec8 jmp short loc_140143ED4 ; +0x8b, 0x140143ecb lea rdx, asc_1406ED6E4; " " ; +0x8d, 0x140143ecd mov rcx, [rbx+328h] ; +0x94, 0x140143ed4 add rcx, 168h ; +0x9b, 0x140143edb mov rax, [rcx] ; +0xa2, 0x140143ee2 mov rbx, [rsp+28h+arg_0] ; +0xa5, 0x140143ee5 add rsp, 20h ; +0xaa, 0x140143eea pop rdi ; +0xae, 0x140143eee jmp qword ptr [rax] ; +0xaf, 0x140143eef