; ; CustomizeObjectLayer::updateColorSprite from 0x1400a8530 to 0x1400a8734 (516 bytes) ; ; 9 xrefs: ; > CustomizeObjectLayer::onPaste @ 0x1400a8149 ; > CustomizeObjectLayer::colorSetupClosed @ 0x1400a8417 ; > CustomizeObjectLayer::colorSelectClosed @ 0x1400a8747 ; > CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f8b ; > CustomizeObjectLayer::onSelectMode @ 0x1400a9184 ; > CustomizeObjectLayer::onUpdateCustomColor @ 0x1400a9619 ; > CustomizeObjectLayer::textChanged @ 0x1400a9931 ; > CustomizeObjectLayer::onSelectColor @ 0x1400a9cfa ; > @ 0x1406c77b8 ; ; 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, 0x1400a8530 mov [rsp+arg_10], rbp ; +0x5, 0x1400a8535 mov [rsp+arg_18], rsi ; +0xa, 0x1400a853a push rdi ; +0xf, 0x1400a853f sub rsp, 20h ; +0x10, 0x1400a8540 mov rsi, rcx ; +0x14, 0x1400a8544 xor edi, edi ; +0x17, 0x1400a8547 cmp dword ptr [rcx+2D0h], 3 ; +0x19, 0x1400a8549 jz loc_1400A86C0 ; +0x20, 0x1400a8550 mov dl, 1 ; +0x26, 0x1400a8556 call CustomizeObjectLayer__getActiveMode ; +0x28, 0x1400a8558 mov edi, eax ; +0x2d, 0x1400a855d test eax, eax ; +0x2f, 0x1400a855f jle loc_1400A865E ; +0x31, 0x1400a8561 mov rax, cs:qword_1406C2ED8 ; +0x37, 0x1400a8567 test rax, rax ; +0x3e, 0x1400a856e jnz short loc_1400A85A2 ; +0x41, 0x1400a8571 mov ecx, 668h; Size ; +0x43, 0x1400a8573 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x48, 0x1400a8578 mov [rsp+28h+arg_0], rax ; +0x4d, 0x1400a857d mov rcx, rax ; +0x52, 0x1400a8582 call sub_14017AB00 ; +0x55, 0x1400a8585 nop ; +0x5a, 0x1400a858a mov cs:qword_1406C2ED8, rax ; +0x5b, 0x1400a858b mov rdx, [rax] ; +0x62, 0x1400a8592 mov rcx, rax ; +0x65, 0x1400a8595 call qword ptr [rdx+48h] ; +0x68, 0x1400a8598 mov rax, cs:qword_1406C2ED8 ; +0x6b, 0x1400a859b mov edx, edi ; +0x72, 0x1400a85a2 mov ecx, 44Dh ; +0x74, 0x1400a85a4 cmp edi, ecx ; +0x79, 0x1400a85a9 cmovg edx, ecx ; +0x7b, 0x1400a85ab mov rax, [rax+210h] ; +0x7e, 0x1400a85ae mov rcx, [rax+0DB0h] ; +0x85, 0x1400a85b5 mov rcx, [rcx+140h] ; +0x8c, 0x1400a85bc movsxd rdx, edx ; +0x93, 0x1400a85c3 mov rax, [rcx+2E0h] ; +0x96, 0x1400a85c6 cmp qword ptr [rax+rdx*8], 0 ; +0x9d, 0x1400a85cd jz loc_1400A865E ; +0xa2, 0x1400a85d2 mov edx, edi ; +0xa8, 0x1400a85d8 call GJEffectManager__getColorAction ; +0xaa, 0x1400a85da mov rbp, rax ; +0xaf, 0x1400a85df mov rbx, [rsi+368h] ; +0xb2, 0x1400a85e2 test rax, rax ; +0xb9, 0x1400a85e9 jz short loc_1400A8665 ; +0xbc, 0x1400a85ec movzx r8d, byte ptr [rax+7Eh] ; +0xbe, 0x1400a85ee mov edx, [rax+78h] ; +0xc3, 0x1400a85f3 mov rcx, rbx ; +0xc6, 0x1400a85f6 call ColorChannelSprite__updateCopyLabel ; +0xc9, 0x1400a85f9 movss xmm1, dword ptr [rbp+60h] ; +0xce, 0x1400a85fe mov rcx, rbx ; +0xd3, 0x1400a8603 call ColorChannelSprite__updateOpacity ; +0xd6, 0x1400a8606 movzx edx, byte ptr [rbp+54h] ; +0xdb, 0x1400a860b mov rcx, rbx ; +0xdf, 0x1400a860f call ColorChannelSprite__updateBlending ; +0xe2, 0x1400a8612 movzx eax, word ptr [rbp+48h] ; +0xe7, 0x1400a8617 mov word ptr [rsp+28h+arg_0], ax ; +0xeb, 0x1400a861b movzx eax, byte ptr [rbp+4Ah] ; +0xf0, 0x1400a8620 mov byte ptr [rsp+28h+arg_0+2], al ; +0xf4, 0x1400a8624 cmp dword ptr [rbp+78h], 0 ; +0xf8, 0x1400a8628 jz short loc_1400A864B ; +0xfc, 0x1400a862c cmp byte ptr [rbp+7Eh], 0 ; +0xfe, 0x1400a862e jnz short loc_1400A864B ; +0x102, 0x1400a8632 movzx eax, cs:word_140529AA4 ; +0x104, 0x1400a8634 mov word ptr [rsp+28h+arg_0], ax ; +0x10b, 0x1400a863b movzx eax, cs:byte_140529AA6 ; +0x110, 0x1400a8640 mov byte ptr [rsp+28h+arg_0+2], al ; +0x117, 0x1400a8647 lea rcx, [rbx+140h] ; +0x11b, 0x1400a864b mov rax, [rcx] ; +0x122, 0x1400a8652 lea rdx, [rsp+28h+arg_0] ; +0x125, 0x1400a8655 call qword ptr [rax] ; +0x12a, 0x1400a865a jmp short loc_1400A86C0 ; +0x12c, 0x1400a865c mov rbx, [rsi+368h] ; +0x12e, 0x1400a865e lea rcx, [rbx+140h] ; +0x135, 0x1400a8665 mov rax, [rcx] ; +0x13c, 0x1400a866c lea rdx, word_140529AB0 ; +0x13f, 0x1400a866f call qword ptr [rax] ; +0x146, 0x1400a8676 cmp qword ptr [rbx+258h], 0 ; +0x148, 0x1400a8678 jz short loc_1400A8694 ; +0x150, 0x1400a8680 mov rcx, [rbx+258h] ; +0x152, 0x1400a8682 mov rax, [rcx] ; +0x159, 0x1400a8689 xor edx, edx ; +0x15c, 0x1400a868c call qword ptr [rax+140h] ; +0x15e, 0x1400a868e movss xmm1, cs:flt_140622C24 ; +0x164, 0x1400a8694 mov rcx, rbx ; +0x16c, 0x1400a869c call ColorChannelSprite__updateOpacity ; +0x16f, 0x1400a869f cmp qword ptr [rbx+268h], 0 ; +0x174, 0x1400a86a4 jz short loc_1400A86C0 ; +0x17c, 0x1400a86ac mov rcx, [rbx+268h] ; +0x17e, 0x1400a86ae mov rax, [rcx] ; +0x185, 0x1400a86b5 xor edx, edx ; +0x188, 0x1400a86b8 call qword ptr [rax+140h] ; +0x18a, 0x1400a86ba cmp edi, 1 ; +0x190, 0x1400a86c0 setl dl ; +0x193, 0x1400a86c3 add edi, 0FFFFFC13h; switch 8 cases ; +0x196, 0x1400a86c6 cmp edi, 7 ; +0x19c, 0x1400a86cc ja short def_1400A86E6; jumptable 00000001400A86E6 default case, cases 1008,1009 ; +0x19f, 0x1400a86cf movsxd rax, edi ; +0x1a1, 0x1400a86d1 lea r8, cs:140000000h ; +0x1a4, 0x1400a86d4 mov ecx, ds:(jpt_1400A86E6 - 140000000h)[r8+rax*4] ; +0x1ab, 0x1400a86db add rcx, r8 ; +0x1b3, 0x1400a86e3 jmp rcx; switch jump ; +0x1b6, 0x1400a86e6 mov dl, 1; jumptable 00000001400A86E6 cases 1005-1007,1010-1012 ; +0x1b8, 0x1400a86e8 mov rcx, [rsi+370h]; jumptable 00000001400A86E6 default case, cases 1008,1009 ; +0x1ba, 0x1400a86ea mov rax, [rcx] ; +0x1c1, 0x1400a86f1 xor dl, 1 ; +0x1c4, 0x1400a86f4 mov rbx, [rsp+28h+arg_8] ; +0x1c7, 0x1400a86f7 mov rbp, [rsp+28h+arg_10] ; +0x1cc, 0x1400a86fc mov rsi, [rsp+28h+arg_18] ; +0x1d1, 0x1400a8701 add rsp, 20h ; +0x1d6, 0x1400a8706 pop rdi ; +0x1da, 0x1400a870a jmp qword ptr [rax+140h] ; +0x1db, 0x1400a870b align 4 ; +0x1e2, 0x1400a8712 dd offset loc_1400A86E8 - 140000000h; jump table for switch statement ; +0x1e4, 0x1400a8714