; ; CustomizeObjectLayer::onLiveEdit from 0x140141fa0 to 0x1401420a3 (259 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::init @ 0x140140d0c ; > @ 0x140917324 ; ; 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:10 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x140141fa0 mov [rsp+arg_8], rbp ; +0x5, 0x140141fa5 mov [rsp+arg_18], rsi ; +0xa, 0x140141faa push rdi ; +0xf, 0x140141faf sub rsp, 20h ; +0x10, 0x140141fb0 mov rbx, rcx ; +0x14, 0x140141fb4 mov dl, 1 ; +0x17, 0x140141fb7 call CustomizeObjectLayer__getActiveMode ; +0x19, 0x140141fb9 mov ebp, eax ; +0x1e, 0x140141fbe xor edx, edx ; +0x20, 0x140141fc0 mov rcx, rbx ; +0x22, 0x140141fc2 call CustomizeObjectLayer__onClose ; +0x25, 0x140141fc5 mov rax, cs:qword_14090BFD0 ; +0x2a, 0x140141fca test rax, rax ; +0x31, 0x140141fd1 jnz short loc_140142008 ; +0x34, 0x140141fd4 mov ecx, 6E8h; Size ; +0x36, 0x140141fd6 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x3b, 0x140141fdb mov [rsp+28h+arg_10], rax ; +0x40, 0x140141fe0 mov rcx, rax ; +0x45, 0x140141fe5 call GameManager__GameManager ; +0x48, 0x140141fe8 nop ; +0x4d, 0x140141fed mov cs:qword_14090BFD0, rax ; +0x4e, 0x140141fee mov rcx, [rax] ; +0x55, 0x140141ff5 mov rdx, [rcx+48h] ; +0x58, 0x140141ff8 mov rcx, rax ; +0x5c, 0x140141ffc call rdx ; +0x5f, 0x140141fff mov rax, cs:qword_14090BFD0 ; +0x61, 0x140142001 mov rax, [rax+238h] ; +0x68, 0x140142008 mov rsi, [rax+3A38h] ; +0x6f, 0x14014200f mov rcx, [rsi+620h] ; +0x76, 0x140142016 test rcx, rcx ; +0x7d, 0x14014201d jz short loc_140142030 ; +0x80, 0x140142020 mov byte ptr [rcx+475h], 0 ; +0x82, 0x140142022 call GameObject__updateObjectEditorColor ; +0x89, 0x140142029 jmp short loc_140142085 ; +0x8e, 0x14014202e mov rcx, [rsi+3B0h] ; +0x90, 0x140142030 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x97, 0x140142037 test eax, eax ; +0x9d, 0x14014203d jz short loc_140142085 ; +0x9f, 0x14014203f mov rax, [rsi+3B0h] ; +0xa1, 0x140142041 test rax, rax ; +0xa8, 0x140142048 jz short loc_140142085 ; +0xab, 0x14014204b mov rbx, [rax+38h] ; +0xad, 0x14014204d mov eax, [rbx] ; +0xb1, 0x140142051 test eax, eax ; +0xb3, 0x140142053 jz short loc_140142085 ; +0xb5, 0x140142055 mov rbx, [rbx+10h] ; +0xb7, 0x140142057 lea rdi, [rax-1] ; +0xbb, 0x14014205b lea rdi, [rbx+rdi*8] ; +0xbf, 0x14014205f cmp rbx, rdi ; +0xc3, 0x140142063 ja short loc_140142085 ; +0xc6, 0x140142066 mov rcx, [rbx] ; +0xc8, 0x140142068 test rcx, rcx ; +0xcb, 0x14014206b jz short loc_140142085 ; +0xce, 0x14014206e mov byte ptr [rcx+475h], 0 ; +0xd0, 0x140142070 call GameObject__updateObjectEditorColor ; +0xd7, 0x140142077 add rbx, 8 ; +0xdc, 0x14014207c cmp rbx, rdi ; +0xe0, 0x140142080 jbe short loc_140142068 ; +0xe3, 0x140142083 mov edx, ebp ; +0xe5, 0x140142085 mov rcx, rsi ; +0xe7, 0x140142087 mov rbx, [rsp+28h+arg_0] ; +0xea, 0x14014208a mov rbp, [rsp+28h+arg_8] ; +0xef, 0x14014208f mov rsi, [rsp+28h+arg_18] ; +0xf4, 0x140142094 add rsp, 20h ; +0xf9, 0x140142099 pop rdi ; +0xfd, 0x14014209d jmp EditorUI__showLiveColorSelectForMode ; +0xfe, 0x14014209e