; ; EditorUI::getEditColorTargets from 0x1401bdef0 to 0x1401be17d (653 bytes) ; ; 4 xrefs: ; > EditorUI::updateEditColorButton @ 0x1401bddc9 ; > EditorUI::editColor @ 0x1401be1ab ; > EditorUI::editHSV @ 0x1401be4c9 ; > @ 0x14091a4a4 ; ; 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:28:01 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401bdef0 mov [rsp+arg_10], rsi ; +0x5, 0x1401bdef5 push rdi ; +0xa, 0x1401bdefa push r14 ; +0xb, 0x1401bdefb push r15 ; +0xd, 0x1401bdefd sub rsp, 20h ; +0xf, 0x1401bdeff mov r14, r8 ; +0x13, 0x1401bdf03 mov r15, rdx ; +0x16, 0x1401bdf06 mov rsi, rcx ; +0x19, 0x1401bdf09 mov edi, 0FFFFFFFFh ; +0x1c, 0x1401bdf0c mov ebx, edi ; +0x21, 0x1401bdf11 mov rax, [rcx+620h] ; +0x23, 0x1401bdf13 test rax, rax ; +0x2a, 0x1401bdf1a jz short loc_1401BDF8F ; +0x2d, 0x1401bdf1d cmp dword ptr [rax+4E8h], 1 ; +0x2f, 0x1401bdf1f jnz short loc_1401BDF45 ; +0x36, 0x1401bdf26 cmp byte ptr [rax+4EEh], 0 ; +0x38, 0x1401bdf28 jnz short loc_1401BDF3D ; +0x3f, 0x1401bdf2f cmp dword ptr [rax+40Ch], 3EEh ; +0x41, 0x1401bdf31 jnz short loc_1401BDF45 ; +0x4b, 0x1401bdf3b mov [r9], rax ; +0x4d, 0x1401bdf3d jmp loc_1401BE151 ; +0x50, 0x1401bdf40 mov rdx, [rax+450h] ; +0x55, 0x1401bdf45 mov ecx, [rdx+4] ; +0x5c, 0x1401bdf4c test ecx, ecx ; +0x5f, 0x1401bdf4f jz short loc_1401BDF5F ; +0x61, 0x1401bdf51 mov edi, [rdx] ; +0x63, 0x1401bdf53 cmp ecx, edi ; +0x65, 0x1401bdf55 jz short loc_1401BDF5D ; +0x67, 0x1401bdf57 test edi, edi ; +0x69, 0x1401bdf59 jnz short loc_1401BDF5F ; +0x6b, 0x1401bdf5b mov edi, ecx ; +0x6d, 0x1401bdf5d mov rcx, [rax+458h] ; +0x6f, 0x1401bdf5f test rcx, rcx ; +0x76, 0x1401bdf66 jz loc_1401BE08D ; +0x79, 0x1401bdf69 mov eax, [rcx+4] ; +0x7f, 0x1401bdf6f test eax, eax ; +0x82, 0x1401bdf72 jz loc_1401BE08D ; +0x84, 0x1401bdf74 mov ebx, [rcx] ; +0x8a, 0x1401bdf7a cmp eax, ebx ; +0x8c, 0x1401bdf7c jz short loc_1401BDF88 ; +0x8e, 0x1401bdf7e test ebx, ebx ; +0x90, 0x1401bdf80 jnz loc_1401BE08D ; +0x92, 0x1401bdf82 mov ebx, eax ; +0x98, 0x1401bdf88 jmp loc_1401BE08D ; +0x9a, 0x1401bdf8a mov rcx, [rcx+3B0h] ; +0x9f, 0x1401bdf8f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa6, 0x1401bdf96 test eax, eax ; +0xac, 0x1401bdf9c jz loc_1401BE151 ; +0xae, 0x1401bdf9e mov edi, 0FFFFFFFEh ; +0xb4, 0x1401bdfa4 mov ebx, edi ; +0xb9, 0x1401bdfa9 xor r9b, r9b ; +0xbb, 0x1401bdfab mov rax, [rsi+3B0h] ; +0xbe, 0x1401bdfae test rax, rax ; +0xc5, 0x1401bdfb5 jz loc_1401BE151 ; +0xc8, 0x1401bdfb8 mov r8, [rax+38h] ; +0xce, 0x1401bdfbe mov eax, [r8] ; +0xd2, 0x1401bdfc2 test eax, eax ; +0xd5, 0x1401bdfc5 jz loc_1401BE151 ; +0xd7, 0x1401bdfc7 mov r8, [r8+10h] ; +0xdd, 0x1401bdfcd lea r10, [rax-1] ; +0xe1, 0x1401bdfd1 lea r10, [r8+r10*8] ; +0xe5, 0x1401bdfd5 cmp r8, r10 ; +0xe9, 0x1401bdfd9 ja loc_1401BE151 ; +0xec, 0x1401bdfdc mov r11d, 1 ; +0xf2, 0x1401bdfe2 nop dword ptr [rax+rax+00000000h] ; +0xf8, 0x1401bdfe8 mov rcx, [r8] ; +0x100, 0x1401bdff0 test rcx, rcx ; +0x103, 0x1401bdff3 jz loc_1401BE08D ; +0x106, 0x1401bdff6 mov rax, [rcx+450h] ; +0x10c, 0x1401bdffc mov edx, [rax+4] ; +0x113, 0x1401be003 test edx, edx ; +0x116, 0x1401be006 jnz short loc_1401BE028 ; +0x118, 0x1401be008 mov rax, [rcx+458h] ; +0x11a, 0x1401be00a test rax, rax ; +0x121, 0x1401be011 jz loc_1401BE151 ; +0x124, 0x1401be014 cmp [rax+4], edx ; +0x12a, 0x1401be01a jz loc_1401BE151 ; +0x12d, 0x1401be01d mov ecx, [rax+4] ; +0x133, 0x1401be023 jmp short loc_1401BE05A ; +0x136, 0x1401be026 mov eax, [rax] ; +0x138, 0x1401be028 cmp edx, eax ; +0x13a, 0x1401be02a jz short loc_1401BE032 ; +0x13c, 0x1401be02c test eax, eax ; +0x13e, 0x1401be02e jnz short loc_1401BE034 ; +0x140, 0x1401be030 mov eax, edx ; +0x142, 0x1401be032 cmp edi, 0FFFFFFFEh ; +0x144, 0x1401be034 jnz short loc_1401BE03D ; +0x147, 0x1401be037 mov edi, eax ; +0x149, 0x1401be039 jmp short loc_1401BE047 ; +0x14b, 0x1401be03b movzx r9d, r9b ; +0x14d, 0x1401be03d cmp edi, eax ; +0x151, 0x1401be041 cmovnz r9d, r11d ; +0x153, 0x1401be043 mov rax, [rcx+458h] ; +0x157, 0x1401be047 test rax, rax ; +0x15e, 0x1401be04e jz short loc_1401BE077 ; +0x161, 0x1401be051 mov ecx, [rax+4] ; +0x163, 0x1401be053 test ecx, ecx ; +0x166, 0x1401be056 jz short loc_1401BE077 ; +0x168, 0x1401be058 mov eax, [rax] ; +0x16a, 0x1401be05a cmp ecx, eax ; +0x16c, 0x1401be05c jz short loc_1401BE064 ; +0x16e, 0x1401be05e test eax, eax ; +0x170, 0x1401be060 jnz short loc_1401BE066 ; +0x172, 0x1401be062 mov eax, ecx ; +0x174, 0x1401be064 cmp ebx, 0FFFFFFFEh ; +0x176, 0x1401be066 jnz short loc_1401BE06F ; +0x179, 0x1401be069 mov ebx, eax ; +0x17b, 0x1401be06b jmp short loc_1401BE077 ; +0x17d, 0x1401be06d cmp ebx, eax ; +0x17f, 0x1401be06f jnz loc_1401BE151 ; +0x181, 0x1401be071 test r9b, r9b ; +0x187, 0x1401be077 jnz loc_1401BE151 ; +0x18a, 0x1401be07a add r8, 8 ; +0x190, 0x1401be080 cmp r8, r10 ; +0x194, 0x1401be084 jbe loc_1401BDFF0 ; +0x197, 0x1401be087 test edi, edi ; +0x19d, 0x1401be08d js short loc_1401BE0EF ; +0x19f, 0x1401be08f mov rax, cs:qword_14090BFD0 ; +0x1a1, 0x1401be091 test rax, rax ; +0x1a8, 0x1401be098 jnz short loc_1401BE0D0 ; +0x1ab, 0x1401be09b mov ecx, 6E8h; Size ; +0x1ad, 0x1401be09d call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1b2, 0x1401be0a2 mov [rsp+38h+arg_0], rax ; +0x1b7, 0x1401be0a7 mov rcx, rax ; +0x1bc, 0x1401be0ac call GameManager__GameManager ; +0x1bf, 0x1401be0af nop ; +0x1c4, 0x1401be0b4 mov cs:qword_14090BFD0, rax ; +0x1c5, 0x1401be0b5 mov rcx, [rax] ; +0x1cc, 0x1401be0bc mov r8, [rcx+48h] ; +0x1cf, 0x1401be0bf mov rcx, rax ; +0x1d3, 0x1401be0c3 call r8 ; +0x1d6, 0x1401be0c6 mov rax, cs:qword_14090BFD0 ; +0x1d9, 0x1401be0c9 mov rax, [rax+238h] ; +0x1e0, 0x1401be0d0 mov rcx, [rax+0DC8h] ; +0x1e7, 0x1401be0d7 mov edx, edi ; +0x1ee, 0x1401be0de mov rcx, [rcx+140h] ; +0x1f0, 0x1401be0e0 call GJEffectManager__getColorAction ; +0x1f7, 0x1401be0e7 mov [r15], rax ; +0x1fc, 0x1401be0ec test ebx, ebx ; +0x1ff, 0x1401be0ef js short loc_1401BE151 ; +0x201, 0x1401be0f1 mov rax, cs:qword_14090BFD0 ; +0x203, 0x1401be0f3 test rax, rax ; +0x20a, 0x1401be0fa jnz short loc_1401BE132 ; +0x20d, 0x1401be0fd mov ecx, 6E8h; Size ; +0x20f, 0x1401be0ff call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x214, 0x1401be104 mov [rsp+38h+arg_0], rax ; +0x219, 0x1401be109 mov rcx, rax ; +0x21e, 0x1401be10e call GameManager__GameManager ; +0x221, 0x1401be111 nop ; +0x226, 0x1401be116 mov cs:qword_14090BFD0, rax ; +0x227, 0x1401be117 mov rcx, [rax] ; +0x22e, 0x1401be11e mov r8, [rcx+48h] ; +0x231, 0x1401be121 mov rcx, rax ; +0x235, 0x1401be125 call r8 ; +0x238, 0x1401be128 mov rax, cs:qword_14090BFD0 ; +0x23b, 0x1401be12b mov rax, [rax+238h] ; +0x242, 0x1401be132 mov rcx, [rax+0DC8h] ; +0x249, 0x1401be139 mov edx, ebx ; +0x250, 0x1401be140 mov rcx, [rcx+140h] ; +0x252, 0x1401be142 call GJEffectManager__getColorAction ; +0x259, 0x1401be149 mov [r14], rax ; +0x25e, 0x1401be14e cmp qword ptr [r15], 0 ; +0x261, 0x1401be151 jnz short loc_1401BE169 ; +0x265, 0x1401be155 mov rax, [r14] ; +0x267, 0x1401be157 test rax, rax ; +0x26a, 0x1401be15a jz short loc_1401BE169 ; +0x26d, 0x1401be15d mov [r15], rax ; +0x26f, 0x1401be15f mov qword ptr [r14], 0 ; +0x272, 0x1401be162 mov rbx, [rsp+38h+arg_8] ; +0x279, 0x1401be169 mov rsi, [rsp+38h+arg_10] ; +0x27e, 0x1401be16e add rsp, 20h ; +0x283, 0x1401be173 pop r15 ; +0x287, 0x1401be177 pop r14 ; +0x289, 0x1401be179 pop rdi ; +0x28b, 0x1401be17b retn ; +0x28c, 0x1401be17c