; ; ColorSelectPopup::closeColorSelect from 0x14012a480 to 0x14012a71e (670 bytes) ; ; 3 xrefs: ; > ColorSelectPopup::keyBackClicked @ 0x14012a729 ; > ColorSelectPopup::init @ 0x140126e2c ; > @ 0x140916b80 ; ; 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:00 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x14012a480 mov [rsp+arg_10], rsi ; +0x5, 0x14012a485 push rdi ; +0xa, 0x14012a48a sub rsp, 20h ; +0xb, 0x14012a48b mov rbx, rcx ; +0xf, 0x14012a48f mov rax, [rcx+470h] ; +0x12, 0x14012a492 xor edi, edi ; +0x19, 0x14012a499 test rax, rax ; +0x1b, 0x14012a49b jz short loc_14012A4B9 ; +0x1e, 0x14012a49e mov [rax+258h], rdi ; +0x20, 0x14012a4a0 mov rcx, [rcx+470h] ; +0x27, 0x14012a4a7 mov rax, [rcx] ; +0x2e, 0x14012a4ae xor edx, edx ; +0x31, 0x14012a4b1 call qword ptr [rax+408h] ; +0x33, 0x14012a4b3 mov rax, [rbx+4C0h] ; +0x39, 0x14012a4b9 test rax, rax ; +0x40, 0x14012a4c0 jz short loc_14012A4DE ; +0x43, 0x14012a4c3 mov [rax+258h], rdi ; +0x45, 0x14012a4c5 mov rcx, [rbx+4C0h] ; +0x4c, 0x14012a4cc mov rax, [rcx] ; +0x53, 0x14012a4d3 xor edx, edx ; +0x56, 0x14012a4d6 call qword ptr [rax+408h] ; +0x58, 0x14012a4d8 mov rax, [rbx+4B8h] ; +0x5e, 0x14012a4de mov [rax+258h], rdi ; +0x65, 0x14012a4e5 mov rcx, [rbx+4B8h] ; +0x6c, 0x14012a4ec mov rax, [rcx] ; +0x73, 0x14012a4f3 xor edx, edx ; +0x76, 0x14012a4f6 call qword ptr [rax+408h] ; +0x78, 0x14012a4f8 mov rax, [rbx+4E0h] ; +0x7e, 0x14012a4fe mov [rax+258h], rdi ; +0x85, 0x14012a505 mov rcx, [rbx+4E0h] ; +0x8c, 0x14012a50c mov rax, [rcx] ; +0x93, 0x14012a513 xor edx, edx ; +0x96, 0x14012a516 call qword ptr [rax+408h] ; +0x98, 0x14012a518 mov rax, [rbx+4E8h] ; +0x9e, 0x14012a51e mov [rax+258h], rdi ; +0xa5, 0x14012a525 mov rcx, [rbx+4E8h] ; +0xac, 0x14012a52c mov rax, [rcx] ; +0xb3, 0x14012a533 xor edx, edx ; +0xb6, 0x14012a536 call qword ptr [rax+408h] ; +0xb8, 0x14012a538 mov rax, [rbx+4F0h] ; +0xbe, 0x14012a53e mov [rax+258h], rdi ; +0xc5, 0x14012a545 mov rcx, [rbx+4F0h] ; +0xcc, 0x14012a54c mov rax, [rcx] ; +0xd3, 0x14012a553 xor edx, edx ; +0xd6, 0x14012a556 call qword ptr [rax+408h] ; +0xd8, 0x14012a558 mov rax, [rbx+4F8h] ; +0xde, 0x14012a55e mov [rax+258h], rdi ; +0xe5, 0x14012a565 mov rcx, [rbx+4F8h] ; +0xec, 0x14012a56c mov rax, [rcx] ; +0xf3, 0x14012a573 xor edx, edx ; +0xf6, 0x14012a576 call qword ptr [rax+408h] ; +0xf8, 0x14012a578 mov rcx, [rbx+490h] ; +0xfe, 0x14012a57e cmp [rcx+188h], dil ; +0x105, 0x14012a585 jnz loc_14012A629 ; +0x10c, 0x14012a58c movups xmm0, xmmword ptr [rcx+178h] ; +0x112, 0x14012a592 movups xmmword ptr [rbx+498h], xmm0 ; +0x119, 0x14012a599 mov rax, [rbx+2A8h] ; +0x120, 0x14012a5a0 test rax, rax ; +0x127, 0x14012a5a7 jz short loc_14012A5BC ; +0x12a, 0x14012a5aa movups xmm0, xmmword ptr [rcx+178h] ; +0x12c, 0x14012a5ac movups xmmword ptr [rax+65Ch], xmm0 ; +0x133, 0x14012a5b3 jmp short loc_14012A629 ; +0x13a, 0x14012a5ba mov rax, [rbx+2B0h] ; +0x13c, 0x14012a5bc test rax, rax ; +0x143, 0x14012a5c3 jz short loc_14012A612 ; +0x146, 0x14012a5c6 mov rcx, rax ; +0x148, 0x14012a5c8 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x14b, 0x14012a5cb test eax, eax ; +0x151, 0x14012a5d1 jz short loc_14012A629 ; +0x153, 0x14012a5d3 nop word ptr [rax+rax+00000000h] ; +0x155, 0x14012a5d5 mov edx, edi ; +0x160, 0x14012a5e0 mov rcx, [rbx+2B0h] ; +0x162, 0x14012a5e2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x169, 0x14012a5e9 movups xmm0, xmmword ptr [rbx+498h] ; +0x16f, 0x14012a5ef movups xmmword ptr [rax+65Ch], xmm0 ; +0x176, 0x14012a5f6 inc edi ; +0x17d, 0x14012a5fd mov rcx, [rbx+2B0h] ; +0x17f, 0x14012a5ff call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x186, 0x14012a606 cmp edi, eax ; +0x18c, 0x14012a60c jb short loc_14012A5E0 ; +0x18e, 0x14012a60e jmp short loc_14012A629 ; +0x190, 0x14012a610 mov rax, [rbx+468h] ; +0x192, 0x14012a612 test rax, rax ; +0x199, 0x14012a619 jz short loc_14012A629 ; +0x19c, 0x14012a61c movups xmm0, xmmword ptr [rcx+178h] ; +0x19e, 0x14012a61e movups xmmword ptr [rax+68h], xmm0 ; +0x1a5, 0x14012a625 cmp cs:qword_14090BFD0, 0 ; +0x1a9, 0x14012a629 jnz short loc_14012A65E ; +0x1b1, 0x14012a631 mov ecx, 6E8h; Size ; +0x1b3, 0x14012a633 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1b8, 0x14012a638 mov [rsp+28h+arg_0], rax ; +0x1bd, 0x14012a63d mov rcx, rax ; +0x1c2, 0x14012a642 call GameManager__GameManager ; +0x1c5, 0x14012a645 nop ; +0x1ca, 0x14012a64a mov cs:qword_14090BFD0, rax ; +0x1cb, 0x14012a64b mov rcx, [rax] ; +0x1d2, 0x14012a652 mov rdx, [rcx+48h] ; +0x1d5, 0x14012a655 mov rcx, rax ; +0x1d9, 0x14012a659 call rdx ; +0x1dc, 0x14012a65c mov rax, [rbx+2B0h] ; +0x1de, 0x14012a65e mov rcx, [rbx+2A8h] ; +0x1e5, 0x14012a665 test rcx, rcx ; +0x1ec, 0x14012a66c jz short loc_14012A690 ; +0x1ef, 0x14012a66f cmp byte ptr [rcx+4EFh], 0 ; +0x1f1, 0x14012a671 jz short loc_14012A6DE ; +0x1f8, 0x14012a678 add rcx, 718h ; +0x1fa, 0x14012a67a lea rdx, dword_14090AF10 ; +0x201, 0x14012a681 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x208, 0x14012a688 jmp short loc_14012A6DE ; +0x20e, 0x14012a68e test rax, rax ; +0x210, 0x14012a690 jz short loc_14012A6DE ; +0x213, 0x14012a693 mov rdi, [rax+38h] ; +0x215, 0x14012a695 mov eax, [rdi] ; +0x219, 0x14012a699 test eax, eax ; +0x21b, 0x14012a69b jz short loc_14012A6DE ; +0x21d, 0x14012a69d mov rdi, [rdi+10h] ; +0x21f, 0x14012a69f lea rsi, [rax-1] ; +0x223, 0x14012a6a3 lea rsi, [rdi+rsi*8] ; +0x227, 0x14012a6a7 cmp rdi, rsi ; +0x22b, 0x14012a6ab ja short loc_14012A6DE ; +0x22e, 0x14012a6ae mov rcx, [rdi] ; +0x230, 0x14012a6b0 test rcx, rcx ; +0x233, 0x14012a6b3 jz short loc_14012A6DE ; +0x236, 0x14012a6b6 cmp byte ptr [rcx+4EFh], 0 ; +0x238, 0x14012a6b8 jz short loc_14012A6D5 ; +0x23f, 0x14012a6bf add rcx, 718h ; +0x241, 0x14012a6c1 lea rdx, dword_14090AF10 ; +0x248, 0x14012a6c8 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x24f, 0x14012a6cf add rdi, 8 ; +0x255, 0x14012a6d5 cmp rdi, rsi ; +0x259, 0x14012a6d9 jbe short loc_14012A6B0 ; +0x25c, 0x14012a6dc mov rax, [rbx] ; +0x25e, 0x14012a6de xor edx, edx ; +0x261, 0x14012a6e1 mov rcx, rbx ; +0x263, 0x14012a6e3 call qword ptr [rax+3E0h] ; +0x266, 0x14012a6e6 mov rcx, [rbx+450h] ; +0x26c, 0x14012a6ec test rcx, rcx ; +0x273, 0x14012a6f3 jz short loc_14012A700 ; +0x276, 0x14012a6f6 mov rax, [rcx] ; +0x278, 0x14012a6f8 mov rdx, rbx ; +0x27b, 0x14012a6fb call qword ptr [rax] ; +0x27e, 0x14012a6fe mov rax, [rbx] ; +0x280, 0x14012a700 mov dl, 1 ; +0x283, 0x14012a703 mov rcx, rbx ; +0x285, 0x14012a705 mov rbx, [rsp+28h+arg_8] ; +0x288, 0x14012a708 mov rsi, [rsp+28h+arg_10] ; +0x28d, 0x14012a70d add rsp, 20h ; +0x292, 0x14012a712 pop rdi ; +0x296, 0x14012a716 jmp qword ptr [rax+208h] ; +0x297, 0x14012a717