; ; EditorUI::editColor from 0x1401be180 to 0x1401be2c9 (329 bytes) ; ; 4 xrefs: ; > EditorUI::onEditColor @ 0x1401bdecb ; > EditorUI::handleEditorAction @ 0x1401c37b8 ; > EditorUI::checkLiveColorSelect @ 0x1401c96fb ; > @ 0x14091a4b0 ; ; 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:02 +0000 ; push rbx ; +0x0, 0x1401be180 push rsi ; +0x2, 0x1401be182 push rdi ; +0x3, 0x1401be183 sub rsp, 20h ; +0x4, 0x1401be184 xor ebx, ebx ; +0x8, 0x1401be188 lea r9, [rsp+38h+arg_18] ; +0xa, 0x1401be18a lea r8, [rsp+38h+arg_8] ; +0xf, 0x1401be18f mov [rsp+38h+arg_10], rbx ; +0x14, 0x1401be194 lea rdx, [rsp+38h+arg_10] ; +0x19, 0x1401be199 mov [rsp+38h+arg_8], rbx ; +0x1e, 0x1401be19e mov [rsp+38h+arg_18], rbx ; +0x23, 0x1401be1a3 mov rdi, rcx ; +0x28, 0x1401be1a8 call EditorUI__getEditColorTargets ; +0x2b, 0x1401be1ab mov rsi, [rsp+38h+arg_18] ; +0x30, 0x1401be1b0 cmp [rsp+38h+arg_10], rbx ; +0x35, 0x1401be1b5 jnz short loc_1401BE1CC ; +0x3a, 0x1401be1ba cmp [rsp+38h+arg_8], rbx ; +0x3c, 0x1401be1bc jnz short loc_1401BE1CC ; +0x41, 0x1401be1c1 test rsi, rsi ; +0x43, 0x1401be1c3 jz loc_1401BE2C1 ; +0x46, 0x1401be1c6 mov rcx, rdi ; +0x4c, 0x1401be1cc call EditorUI__closeLiveColorSelect ; +0x4f, 0x1401be1cf mov rcx, rdi ; +0x54, 0x1401be1d4 call EditorUI__closeLiveHSVSelect ; +0x57, 0x1401be1d7 mov [rdi+650h], rbx ; +0x5c, 0x1401be1dc test rsi, rsi ; +0x63, 0x1401be1e3 jz short loc_1401BE1F1 ; +0x66, 0x1401be1e6 xor edx, edx ; +0x68, 0x1401be1e8 mov r8, rsi ; +0x6a, 0x1401be1ea xor ecx, ecx ; +0x6d, 0x1401be1ed jmp short loc_1401BE1FE ; +0x6f, 0x1401be1ef mov rdx, [rsp+38h+arg_8] ; +0x71, 0x1401be1f1 xor r8d, r8d ; +0x76, 0x1401be1f6 mov rcx, [rsp+38h+arg_10] ; +0x79, 0x1401be1f9 call ColorSelectLiveOverlay__create ; +0x7e, 0x1401be1fe mov [rdi+650h], rax ; +0x83, 0x1401be203 mov rcx, rax ; +0x8a, 0x1401be20a test rdi, rdi ; +0x8d, 0x1401be20d lea rax, [rdi+1A0h] ; +0x90, 0x1401be210 cmovz rax, rbx ; +0x97, 0x1401be217 mov [rcx+2E0h], rax ; +0x9b, 0x1401be21b mov rax, [rdi+650h] ; +0xa2, 0x1401be222 mov [rax+238h], rdi ; +0xa9, 0x1401be229 mov rcx, [rdi+650h] ; +0xb0, 0x1401be230 mov rax, [rcx] ; +0xb7, 0x1401be237 call qword ptr [rax+428h] ; +0xba, 0x1401be23a test rsi, rsi ; +0xc0, 0x1401be240 jnz short loc_1401BE2C1 ; +0xc3, 0x1401be243 mov rcx, [rdi+620h] ; +0xc5, 0x1401be245 test rcx, rcx ; +0xcc, 0x1401be24c jz short loc_1401BE263 ; +0xcf, 0x1401be24f mov [rcx+475h], bl ; +0xd1, 0x1401be251 add rsp, 20h ; +0xd7, 0x1401be257 pop rdi ; +0xdb, 0x1401be25b pop rsi ; +0xdc, 0x1401be25c pop rbx ; +0xdd, 0x1401be25d jmp GameObject__updateObjectEditorColor ; +0xde, 0x1401be25e mov rcx, [rdi+3B0h] ; +0xe3, 0x1401be263 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xea, 0x1401be26a test eax, eax ; +0xf0, 0x1401be270 jz short loc_1401BE2C1 ; +0xf2, 0x1401be272 mov rcx, [rdi+3B0h] ; +0xf4, 0x1401be274 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xfb, 0x1401be27b test eax, eax ; +0x101, 0x1401be281 jz short loc_1401BE2C1 ; +0x103, 0x1401be283 nop word ptr [rax+rax+00000000h] ; +0x105, 0x1401be285 mov rcx, [rdi+3B0h] ; +0x110, 0x1401be290 mov edx, ebx ; +0x117, 0x1401be297 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x119, 0x1401be299 mov rcx, rax ; +0x11f, 0x1401be29f mov byte ptr [rax+475h], 0 ; +0x122, 0x1401be2a2 call GameObject__updateObjectEditorColor ; +0x129, 0x1401be2a9 mov rcx, [rdi+3B0h] ; +0x12e, 0x1401be2ae inc ebx ; +0x135, 0x1401be2b5 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x137, 0x1401be2b7 cmp ebx, eax ; +0x13d, 0x1401be2bd jb short loc_1401BE290 ; +0x13f, 0x1401be2bf add rsp, 20h ; +0x141, 0x1401be2c1 pop rdi ; +0x145, 0x1401be2c5 pop rsi ; +0x146, 0x1401be2c6 pop rbx ; +0x147, 0x1401be2c7 retn ; +0x148, 0x1401be2c8