; ; CharacterColorPage::updateIconColors from 0x1400a2e80 to 0x1400a3095 (533 bytes) ; ; 4 xrefs: ; > CharacterColorPage::init @ 0x1400a1291 ; > CharacterColorPage::toggleGlow @ 0x1400a16ff ; > CharacterColorPage::onPlayerColor @ 0x1400a296d ; > @ 0x1409130f4 ; ; 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:26:07 +0000 ; push rbx ; +0x0, 0x1400a2e80 push rbp ; +0x2, 0x1400a2e82 push rsi ; +0x3, 0x1400a2e83 push rdi ; +0x4, 0x1400a2e84 sub rsp, 28h ; +0x5, 0x1400a2e85 mov rsi, rcx ; +0x9, 0x1400a2e89 mov rcx, cs:qword_14090BFD0 ; +0xc, 0x1400a2e8c test rcx, rcx ; +0x13, 0x1400a2e93 jnz short loc_1400A2ECA ; +0x16, 0x1400a2e96 mov ecx, 6E8h; Size ; +0x18, 0x1400a2e98 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1d, 0x1400a2e9d mov [rsp+48h+arg_18], rax ; +0x22, 0x1400a2ea2 mov rcx, rax ; +0x27, 0x1400a2ea7 call GameManager__GameManager ; +0x2a, 0x1400a2eaa nop ; +0x2f, 0x1400a2eaf mov cs:qword_14090BFD0, rax ; +0x30, 0x1400a2eb0 mov rcx, [rax] ; +0x37, 0x1400a2eb7 mov rdx, [rcx+48h] ; +0x3a, 0x1400a2eba mov rcx, rax ; +0x3e, 0x1400a2ebe call rdx ; +0x41, 0x1400a2ec1 mov rcx, cs:qword_14090BFD0 ; +0x43, 0x1400a2ec3 movzx ebp, byte ptr [rcx+3B0h] ; +0x4a, 0x1400a2eca mov r8d, [rcx+34Ch] ; +0x51, 0x1400a2ed1 sub r8d, [rcx+350h] ; +0x58, 0x1400a2ed8 lea rdx, [rsp+48h+arg_8] ; +0x5f, 0x1400a2edf call GameManager__colorForIdx ; +0x64, 0x1400a2ee4 mov rcx, cs:qword_14090BFD0 ; +0x69, 0x1400a2ee9 test rcx, rcx ; +0x70, 0x1400a2ef0 jnz short loc_1400A2F27 ; +0x73, 0x1400a2ef3 mov ecx, 6E8h; Size ; +0x75, 0x1400a2ef5 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x7a, 0x1400a2efa mov [rsp+48h+arg_18], rax ; +0x7f, 0x1400a2eff mov rcx, rax ; +0x84, 0x1400a2f04 call GameManager__GameManager ; +0x87, 0x1400a2f07 nop ; +0x8c, 0x1400a2f0c mov cs:qword_14090BFD0, rax ; +0x8d, 0x1400a2f0d mov rcx, [rax] ; +0x94, 0x1400a2f14 mov rdx, [rcx+48h] ; +0x97, 0x1400a2f17 mov rcx, rax ; +0x9b, 0x1400a2f1b call rdx ; +0x9e, 0x1400a2f1e mov rcx, cs:qword_14090BFD0 ; +0xa0, 0x1400a2f20 mov r8d, [rcx+358h] ; +0xa7, 0x1400a2f27 sub r8d, [rcx+35Ch] ; +0xae, 0x1400a2f2e lea rdx, [rsp+48h+arg_10] ; +0xb5, 0x1400a2f35 call GameManager__colorForIdx ; +0xba, 0x1400a2f3a mov rcx, cs:qword_14090BFD0 ; +0xbf, 0x1400a2f3f test rcx, rcx ; +0xc6, 0x1400a2f46 jnz short loc_1400A2F7D ; +0xc9, 0x1400a2f49 mov ecx, 6E8h; Size ; +0xcb, 0x1400a2f4b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xd0, 0x1400a2f50 mov [rsp+48h+arg_18], rax ; +0xd5, 0x1400a2f55 mov rcx, rax ; +0xda, 0x1400a2f5a call GameManager__GameManager ; +0xdd, 0x1400a2f5d nop ; +0xe2, 0x1400a2f62 mov cs:qword_14090BFD0, rax ; +0xe3, 0x1400a2f63 mov rcx, [rax] ; +0xea, 0x1400a2f6a mov rdx, [rcx+48h] ; +0xed, 0x1400a2f6d mov rcx, rax ; +0xf1, 0x1400a2f71 call rdx ; +0xf4, 0x1400a2f74 mov rcx, cs:qword_14090BFD0 ; +0xf6, 0x1400a2f76 mov r8d, [rcx+364h] ; +0xfd, 0x1400a2f7d sub r8d, [rcx+368h] ; +0x104, 0x1400a2f84 lea rdx, [rsp+48h+arg_0] ; +0x10b, 0x1400a2f8b call GameManager__colorForIdx ; +0x110, 0x1400a2f90 xor edi, edi ; +0x115, 0x1400a2f95 mov rcx, [rsi+2A8h] ; +0x117, 0x1400a2f97 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x11e, 0x1400a2f9e test eax, eax ; +0x124, 0x1400a2fa4 jz loc_1400A308C ; +0x126, 0x1400a2fa6 nop dword ptr [rax+00h] ; +0x12c, 0x1400a2fac mov edx, edi ; +0x130, 0x1400a2fb0 mov rcx, [rsi+2A8h] ; +0x132, 0x1400a2fb2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x139, 0x1400a2fb9 mov rbx, rax ; +0x13f, 0x1400a2fbf lea rcx, [rax+140h] ; +0x142, 0x1400a2fc2 mov rax, [rcx] ; +0x149, 0x1400a2fc9 lea rdx, [rsp+48h+arg_8] ; +0x14c, 0x1400a2fcc call qword ptr [rax] ; +0x151, 0x1400a2fd1 mov rcx, [rbx+260h] ; +0x153, 0x1400a2fd3 add rcx, 140h ; +0x15a, 0x1400a2fda mov rax, [rcx] ; +0x161, 0x1400a2fe1 lea rdx, [rsp+48h+arg_10] ; +0x164, 0x1400a2fe4 call qword ptr [rax] ; +0x169, 0x1400a2fe9 mov rcx, rbx ; +0x16b, 0x1400a2feb call SimplePlayer__updateColors ; +0x16e, 0x1400a2fee mov [rbx+294h], bpl ; +0x173, 0x1400a2ff3 mov rcx, cs:qword_14090BFD0 ; +0x17a, 0x1400a2ffa test rcx, rcx ; +0x181, 0x1400a3001 jnz short loc_1400A3038 ; +0x184, 0x1400a3004 mov ecx, 6E8h; Size ; +0x186, 0x1400a3006 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x18b, 0x1400a300b mov [rsp+48h+arg_18], rax ; +0x190, 0x1400a3010 mov rcx, rax ; +0x195, 0x1400a3015 call GameManager__GameManager ; +0x198, 0x1400a3018 nop ; +0x19d, 0x1400a301d mov cs:qword_14090BFD0, rax ; +0x19e, 0x1400a301e mov rcx, [rax] ; +0x1a5, 0x1400a3025 mov rdx, [rcx+48h] ; +0x1a8, 0x1400a3028 mov rcx, rax ; +0x1ac, 0x1400a302c call rdx ; +0x1af, 0x1400a302f mov rcx, cs:qword_14090BFD0 ; +0x1b1, 0x1400a3031 mov eax, [rcx+364h] ; +0x1b8, 0x1400a3038 cmp eax, [rcx+368h] ; +0x1be, 0x1400a303e js short loc_1400A3066 ; +0x1c4, 0x1400a3044 mov byte ptr [rbx+29Ch], 1 ; +0x1c6, 0x1400a3046 movzx eax, [rsp+48h+arg_0] ; +0x1cd, 0x1400a304d mov [rbx+29Dh], ax ; +0x1d2, 0x1400a3052 movzx eax, [rsp+48h+arg_2] ; +0x1d9, 0x1400a3059 mov [rbx+29Fh], al ; +0x1de, 0x1400a305e jmp short loc_1400A306D ; +0x1e4, 0x1400a3064 mov byte ptr [rbx+29Ch], 0 ; +0x1e6, 0x1400a3066 mov rcx, rbx ; +0x1ed, 0x1400a306d call SimplePlayer__updateColors ; +0x1f0, 0x1400a3070 inc edi ; +0x1f5, 0x1400a3075 mov rcx, [rsi+2A8h] ; +0x1f7, 0x1400a3077 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1fe, 0x1400a307e cmp edi, eax ; +0x204, 0x1400a3084 jb loc_1400A2FB0 ; +0x206, 0x1400a3086 add rsp, 28h ; +0x20c, 0x1400a308c pop rdi ; +0x210, 0x1400a3090 pop rsi ; +0x211, 0x1400a3091 pop rbp ; +0x212, 0x1400a3092 pop rbx ; +0x213, 0x1400a3093 retn ; +0x214, 0x1400a3094