; ; CustomizeObjectLayer::onPaste from 0x1400a8070 to 0x1400a81c0 (336 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::init @ 0x1400a7a3e ; > @ 0x1406c777c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x1400a8070 mov [rsp+arg_10], rbp ; +0x5, 0x1400a8075 push rsi ; +0xa, 0x1400a807a push rdi ; +0xb, 0x1400a807b push r14 ; +0xc, 0x1400a807c sub rsp, 20h ; +0xe, 0x1400a807e mov rsi, rcx ; +0x12, 0x1400a8082 mov r14, cs:qword_1406C2ED8 ; +0x15, 0x1400a8085 test r14, r14 ; +0x1c, 0x1400a808c jnz short loc_1400A80C0 ; +0x1f, 0x1400a808f mov ecx, 668h; Size ; +0x21, 0x1400a8091 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x26, 0x1400a8096 mov [rsp+38h+arg_0], rax ; +0x2b, 0x1400a809b mov rcx, rax ; +0x30, 0x1400a80a0 call sub_14017AB00 ; +0x33, 0x1400a80a3 nop ; +0x38, 0x1400a80a8 mov cs:qword_1406C2ED8, rax ; +0x39, 0x1400a80a9 mov rdx, [rax] ; +0x40, 0x1400a80b0 mov rcx, rax ; +0x43, 0x1400a80b3 call qword ptr [rdx+48h] ; +0x46, 0x1400a80b6 mov r14, cs:qword_1406C2ED8 ; +0x49, 0x1400a80b9 mov rax, [rsi+2A0h] ; +0x50, 0x1400a80c0 mov rbx, [rsi+298h] ; +0x57, 0x1400a80c7 mov r14, [r14+210h] ; +0x5e, 0x1400a80ce mov rdx, [r14+3820h] ; +0x65, 0x1400a80d5 test rdx, rdx ; +0x6c, 0x1400a80dc jz short loc_1400A813E ; +0x6f, 0x1400a80df test rbx, rbx ; +0x71, 0x1400a80e1 jz short loc_1400A80F7 ; +0x74, 0x1400a80e4 mov rcx, rbx ; +0x76, 0x1400a80e6 call GameObject__duplicateColorMode ; +0x79, 0x1400a80e9 mov byte ptr [rbx+484h], 1 ; +0x7e, 0x1400a80ee jmp short loc_1400A813E ; +0x85, 0x1400a80f5 test rax, rax ; +0x87, 0x1400a80f7 jz short loc_1400A813E ; +0x8a, 0x1400a80fa mov rbx, [rax+38h] ; +0x8c, 0x1400a80fc mov eax, [rbx] ; +0x90, 0x1400a8100 test eax, eax ; +0x92, 0x1400a8102 jz short loc_1400A813E ; +0x94, 0x1400a8104 mov rbx, [rbx+10h] ; +0x96, 0x1400a8106 lea rbp, [rax-1] ; +0x9a, 0x1400a810a lea rbp, [rbx+rbp*8] ; +0x9e, 0x1400a810e cmp rbx, rbp ; +0xa2, 0x1400a8112 ja short loc_1400A813E ; +0xa5, 0x1400a8115 mov rdi, [rbx] ; +0xa7, 0x1400a8117 test rdi, rdi ; +0xaa, 0x1400a811a jz short loc_1400A813E ; +0xad, 0x1400a811d mov rdx, [r14+3820h] ; +0xaf, 0x1400a811f mov rcx, rdi ; +0xb6, 0x1400a8126 call GameObject__duplicateColorMode ; +0xb9, 0x1400a8129 mov byte ptr [rdi+484h], 1 ; +0xbe, 0x1400a812e add rbx, 8 ; +0xc5, 0x1400a8135 cmp rbx, rbp ; +0xc9, 0x1400a8139 jbe short loc_1400A8117 ; +0xcc, 0x1400a813c mov rcx, rsi ; +0xce, 0x1400a813e call CustomizeObjectLayer__updateCurrentSelection ; +0xd1, 0x1400a8141 mov rcx, rsi ; +0xd6, 0x1400a8146 call CustomizeObjectLayer__updateColorSprite ; +0xd9, 0x1400a8149 mov dl, 1 ; +0xde, 0x1400a814e mov rcx, rsi ; +0xe0, 0x1400a8150 call CustomizeObjectLayer__getActiveMode ; +0xe3, 0x1400a8153 cmp eax, 3E8h ; +0xe8, 0x1400a8158 jl short loc_1400A816B ; +0xed, 0x1400a815d mov ecx, eax ; +0xef, 0x1400a815f call GJSpecialColorSelect__textForColorIdx ; +0xf1, 0x1400a8161 mov rdx, rax ; +0xf6, 0x1400a8166 jmp short loc_1400A8193 ; +0xf9, 0x1400a8169 test eax, eax ; +0xfb, 0x1400a816b jle short loc_1400A818C ; +0xfd, 0x1400a816d mov edx, eax ; +0xff, 0x1400a816f lea rcx, aI_11; "%i" ; +0x101, 0x1400a8171 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x108, 0x1400a8178 mov rcx, rax ; +0x10e, 0x1400a817e call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x111, 0x1400a8181 mov rdx, rax ; +0x117, 0x1400a8187 jmp short loc_1400A8193 ; +0x11a, 0x1400a818a lea rdx, asc_140518984; " " ; +0x11c, 0x1400a818c mov rcx, [rsi+310h] ; +0x123, 0x1400a8193 add rcx, 168h ; +0x12a, 0x1400a819a mov rax, [rcx] ; +0x131, 0x1400a81a1 call qword ptr [rax] ; +0x134, 0x1400a81a4 mov rcx, rsi ; +0x136, 0x1400a81a6 mov rbx, [rsp+38h+arg_8] ; +0x139, 0x1400a81a9 mov rbp, [rsp+38h+arg_10] ; +0x13e, 0x1400a81ae add rsp, 20h ; +0x143, 0x1400a81b3 pop r14 ; +0x147, 0x1400a81b7 pop rdi ; +0x149, 0x1400a81b9 pop rsi ; +0x14a, 0x1400a81ba jmp CustomizeObjectLayer__updateHSVButtons ; +0x14b, 0x1400a81bb