; ; CharacterColorPage::updateIconColors from 0x14008a590 to 0x14008a7a2 (530 bytes) ; ; 4 xrefs: ; > CharacterColorPage::init @ 0x140088a09 ; > CharacterColorPage::toggleGlow @ 0x140088e8c ; > CharacterColorPage::onPlayerColor @ 0x14008a07e ; > @ 0x1406c6d2c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x14008a590 push rbp ; +0x2, 0x14008a592 push rsi ; +0x3, 0x14008a593 push rdi ; +0x4, 0x14008a594 sub rsp, 28h ; +0x5, 0x14008a595 mov rsi, rcx ; +0x9, 0x14008a599 mov rcx, cs:qword_1406C2ED8 ; +0xc, 0x14008a59c test rcx, rcx ; +0x13, 0x14008a5a3 jnz short loc_14008A5D7 ; +0x16, 0x14008a5a6 mov ecx, 668h; Size ; +0x18, 0x14008a5a8 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1d, 0x14008a5ad mov [rsp+48h+arg_18], rax ; +0x22, 0x14008a5b2 mov rcx, rax ; +0x27, 0x14008a5b7 call sub_14017AB00 ; +0x2a, 0x14008a5ba nop ; +0x2f, 0x14008a5bf mov cs:qword_1406C2ED8, rax ; +0x30, 0x14008a5c0 mov rdx, [rax] ; +0x37, 0x14008a5c7 mov rcx, rax ; +0x3a, 0x14008a5ca call qword ptr [rdx+48h] ; +0x3d, 0x14008a5cd mov rcx, cs:qword_1406C2ED8 ; +0x40, 0x14008a5d0 movzx ebp, byte ptr [rcx+388h] ; +0x47, 0x14008a5d7 mov r8d, [rcx+324h] ; +0x4e, 0x14008a5de sub r8d, [rcx+328h] ; +0x55, 0x14008a5e5 lea rdx, [rsp+48h+arg_8] ; +0x5c, 0x14008a5ec call GameManager__colorForIdx ; +0x61, 0x14008a5f1 mov rcx, cs:qword_1406C2ED8 ; +0x66, 0x14008a5f6 test rcx, rcx ; +0x6d, 0x14008a5fd jnz short loc_14008A631 ; +0x70, 0x14008a600 mov ecx, 668h; Size ; +0x72, 0x14008a602 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x77, 0x14008a607 mov [rsp+48h+arg_18], rax ; +0x7c, 0x14008a60c mov rcx, rax ; +0x81, 0x14008a611 call sub_14017AB00 ; +0x84, 0x14008a614 nop ; +0x89, 0x14008a619 mov cs:qword_1406C2ED8, rax ; +0x8a, 0x14008a61a mov rdx, [rax] ; +0x91, 0x14008a621 mov rcx, rax ; +0x94, 0x14008a624 call qword ptr [rdx+48h] ; +0x97, 0x14008a627 mov rcx, cs:qword_1406C2ED8 ; +0x9a, 0x14008a62a mov r8d, [rcx+330h] ; +0xa1, 0x14008a631 sub r8d, [rcx+334h] ; +0xa8, 0x14008a638 lea rdx, [rsp+48h+arg_10] ; +0xaf, 0x14008a63f call GameManager__colorForIdx ; +0xb4, 0x14008a644 mov rcx, cs:qword_1406C2ED8 ; +0xb9, 0x14008a649 test rcx, rcx ; +0xc0, 0x14008a650 jnz short loc_14008A684 ; +0xc3, 0x14008a653 mov ecx, 668h; Size ; +0xc5, 0x14008a655 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xca, 0x14008a65a mov [rsp+48h+arg_18], rax ; +0xcf, 0x14008a65f mov rcx, rax ; +0xd4, 0x14008a664 call sub_14017AB00 ; +0xd7, 0x14008a667 nop ; +0xdc, 0x14008a66c mov cs:qword_1406C2ED8, rax ; +0xdd, 0x14008a66d mov rdx, [rax] ; +0xe4, 0x14008a674 mov rcx, rax ; +0xe7, 0x14008a677 call qword ptr [rdx+48h] ; +0xea, 0x14008a67a mov rcx, cs:qword_1406C2ED8 ; +0xed, 0x14008a67d mov r8d, [rcx+33Ch] ; +0xf4, 0x14008a684 sub r8d, [rcx+340h] ; +0xfb, 0x14008a68b lea rdx, [rsp+48h+arg_0] ; +0x102, 0x14008a692 call GameManager__colorForIdx ; +0x107, 0x14008a697 xor edi, edi ; +0x10c, 0x14008a69c mov rcx, [rsi+288h] ; +0x10e, 0x14008a69e call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x115, 0x14008a6a5 test eax, eax ; +0x11b, 0x14008a6ab jz loc_14008A799 ; +0x11d, 0x14008a6ad nop dword ptr [rax+00h] ; +0x123, 0x14008a6b3 nop word ptr [rax+rax+00000000h] ; +0x127, 0x14008a6b7 mov edx, edi ; +0x130, 0x14008a6c0 mov rcx, [rsi+288h] ; +0x132, 0x14008a6c2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x139, 0x14008a6c9 mov rbx, rax ; +0x13f, 0x14008a6cf lea rcx, [rax+140h] ; +0x142, 0x14008a6d2 mov rax, [rcx] ; +0x149, 0x14008a6d9 lea rdx, [rsp+48h+arg_8] ; +0x14c, 0x14008a6dc call qword ptr [rax] ; +0x151, 0x14008a6e1 mov rcx, [rbx+260h] ; +0x153, 0x14008a6e3 add rcx, 140h ; +0x15a, 0x14008a6ea mov rax, [rcx] ; +0x161, 0x14008a6f1 lea rdx, [rsp+48h+arg_10] ; +0x164, 0x14008a6f4 call qword ptr [rax] ; +0x169, 0x14008a6f9 mov rcx, rbx ; +0x16b, 0x14008a6fb call SimplePlayer__updateColors ; +0x16e, 0x14008a6fe mov [rbx+294h], bpl ; +0x173, 0x14008a703 mov rcx, cs:qword_1406C2ED8 ; +0x17a, 0x14008a70a test rcx, rcx ; +0x181, 0x14008a711 jnz short loc_14008A745 ; +0x184, 0x14008a714 mov ecx, 668h; Size ; +0x186, 0x14008a716 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x18b, 0x14008a71b mov [rsp+48h+arg_18], rax ; +0x190, 0x14008a720 mov rcx, rax ; +0x195, 0x14008a725 call sub_14017AB00 ; +0x198, 0x14008a728 nop ; +0x19d, 0x14008a72d mov cs:qword_1406C2ED8, rax ; +0x19e, 0x14008a72e mov rdx, [rax] ; +0x1a5, 0x14008a735 mov rcx, rax ; +0x1a8, 0x14008a738 call qword ptr [rdx+48h] ; +0x1ab, 0x14008a73b mov rcx, cs:qword_1406C2ED8 ; +0x1ae, 0x14008a73e mov eax, [rcx+33Ch] ; +0x1b5, 0x14008a745 cmp eax, [rcx+340h] ; +0x1bb, 0x14008a74b js short loc_14008A773 ; +0x1c1, 0x14008a751 mov byte ptr [rbx+29Ch], 1 ; +0x1c3, 0x14008a753 movzx eax, [rsp+48h+arg_0] ; +0x1ca, 0x14008a75a mov [rbx+29Dh], ax ; +0x1cf, 0x14008a75f movzx eax, [rsp+48h+arg_2] ; +0x1d6, 0x14008a766 mov [rbx+29Fh], al ; +0x1db, 0x14008a76b jmp short loc_14008A77A ; +0x1e1, 0x14008a771 mov byte ptr [rbx+29Ch], 0 ; +0x1e3, 0x14008a773 mov rcx, rbx ; +0x1ea, 0x14008a77a call SimplePlayer__updateColors ; +0x1ed, 0x14008a77d inc edi ; +0x1f2, 0x14008a782 mov rcx, [rsi+288h] ; +0x1f4, 0x14008a784 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1fb, 0x14008a78b cmp edi, eax ; +0x201, 0x14008a791 jb loc_14008A6C0 ; +0x203, 0x14008a793 add rsp, 28h ; +0x209, 0x14008a799 pop rdi ; +0x20d, 0x14008a79d pop rsi ; +0x20e, 0x14008a79e pop rbp ; +0x20f, 0x14008a79f pop rbx ; +0x210, 0x14008a7a0 retn ; +0x211, 0x14008a7a1