; ; CustomizeObjectLayer::onUpdateCustomColor from 0x1401436e0 to 0x1401437ab (203 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::init @ 0x1401408ec ; > @ 0x140917408 ; ; 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 ; push rbx ; +0x0, 0x1401436e0 sub rsp, 20h ; +0x2, 0x1401436e2 mov byte ptr [rcx+39Ah], 1 ; +0x6, 0x1401436e6 mov rbx, rcx ; +0xd, 0x1401436ed mov rax, [rdx] ; +0x10, 0x1401436f0 mov rcx, rdx ; +0x13, 0x1401436f3 call qword ptr [rax+38h] ; +0x16, 0x1401436f6 mov edx, 1 ; +0x19, 0x1401436f9 mov ecx, 0FFFFFFFFh ; +0x1e, 0x1401436fe cmp eax, edx ; +0x23, 0x140143703 cmovnz edx, ecx ; +0x25, 0x140143705 mov ecx, [rbx+2ECh] ; +0x28, 0x140143708 add ecx, edx ; +0x2e, 0x14014370e cmp ecx, 0Ah ; +0x30, 0x140143710 jge short loc_14014371C ; +0x33, 0x140143713 mov ecx, 0Ah ; +0x35, 0x140143715 jmp short loc_140143725 ; +0x3a, 0x14014371a mov eax, 3E7h ; +0x3c, 0x14014371c cmp ecx, eax ; +0x41, 0x140143721 jg short loc_140143727 ; +0x43, 0x140143723 mov eax, ecx ; +0x45, 0x140143725 mov rcx, rbx ; +0x47, 0x140143727 mov [rbx+2ECh], eax ; +0x4a, 0x14014372a call CustomizeObjectLayer__updateCustomColorLabels ; +0x50, 0x140143730 mov edx, [rbx+2ECh] ; +0x55, 0x140143735 mov rcx, rbx ; +0x5b, 0x14014373b call CustomizeObjectLayer__updateSelected ; +0x5e, 0x14014373e mov rcx, rbx ; +0x63, 0x140143743 mov byte ptr [rbx+39Ah], 0 ; +0x66, 0x140143746 call CustomizeObjectLayer__updateColorSprite ; +0x6d, 0x14014374d mov edx, [rbx+2ECh] ; +0x72, 0x140143752 cmp edx, 3E8h ; +0x78, 0x140143758 jl short loc_14014376C ; +0x7e, 0x14014375e mov ecx, edx ; +0x80, 0x140143760 call GJSpecialColorSelect__textForColorIdx ; +0x82, 0x140143762 mov rdx, rax ; +0x87, 0x140143767 jmp short loc_140143792 ; +0x8a, 0x14014376a test edx, edx ; +0x8c, 0x14014376c jle short loc_14014378B ; +0x8e, 0x14014376e lea rcx, word_1406ED6F8 ; +0x90, 0x140143770 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x97, 0x140143777 mov rcx, rax ; +0x9d, 0x14014377d call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa0, 0x140143780 mov rdx, rax ; +0xa6, 0x140143786 jmp short loc_140143792 ; +0xa9, 0x140143789 lea rdx, asc_1406ED6E4; " " ; +0xab, 0x14014378b mov rcx, [rbx+328h] ; +0xb2, 0x140143792 add rcx, 168h ; +0xb9, 0x140143799 mov rax, [rcx] ; +0xc0, 0x1401437a0 add rsp, 20h ; +0xc3, 0x1401437a3 pop rbx ; +0xc7, 0x1401437a7 jmp qword ptr [rax] ; +0xc8, 0x1401437a8