; ; ColorSelectPopup::onDefault from 0x140129e50 to 0x14012a11c (716 bytes) ; ; 2 xrefs: ; > ColorSelectPopup::init @ 0x1401276cd ; > @ 0x140916af0 ; ; 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:00 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x140129e50 mov [rsp+arg_8], rbp ; +0x5, 0x140129e55 mov [rsp+arg_18], rsi ; +0xa, 0x140129e5a push rdi ; +0xf, 0x140129e5f sub rsp, 70h ; +0x10, 0x140129e60 mov rsi, rcx ; +0x14, 0x140129e64 mov rdx, cs:qword_14090BFD0 ; +0x17, 0x140129e67 test rdx, rdx ; +0x1e, 0x140129e6e jnz short loc_140129EA8 ; +0x21, 0x140129e71 mov ecx, 6E8h; Size ; +0x23, 0x140129e73 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x28, 0x140129e78 mov [rsp+78h+arg_10], rax ; +0x2d, 0x140129e7d mov rcx, rax ; +0x35, 0x140129e85 call GameManager__GameManager ; +0x38, 0x140129e88 nop ; +0x3d, 0x140129e8d mov cs:qword_14090BFD0, rax ; +0x3e, 0x140129e8e mov rcx, [rax] ; +0x45, 0x140129e95 mov rdx, [rcx+48h] ; +0x48, 0x140129e98 mov rcx, rax ; +0x4c, 0x140129e9c call rdx ; +0x4f, 0x140129e9f mov rdx, cs:qword_14090BFD0 ; +0x51, 0x140129ea1 mov rcx, [rdx+238h] ; +0x58, 0x140129ea8 test rcx, rcx ; +0x5f, 0x140129eaf jz loc_14012A106 ; +0x62, 0x140129eb2 mov rax, [rsi+2A8h] ; +0x68, 0x140129eb8 test rax, rax ; +0x6f, 0x140129ebf jz loc_140129F71 ; +0x72, 0x140129ec2 mov rcx, [rcx+0DC8h] ; +0x78, 0x140129ec8 mov edx, [rax+408h] ; +0x7f, 0x140129ecf mov rcx, [rcx+140h] ; +0x85, 0x140129ed5 call GJEffectManager__getColorAction ; +0x8c, 0x140129edc mov rbx, rax ; +0x91, 0x140129ee1 test rax, rax ; +0x94, 0x140129ee4 jz loc_14012A106 ; +0x97, 0x140129ee7 movzx ecx, word ptr [rax+48h] ; +0x9d, 0x140129eed mov word ptr [rsp+78h+arg_10], cx ; +0xa1, 0x140129ef1 movzx ecx, byte ptr [rax+4Ah] ; +0xa9, 0x140129ef9 mov byte ptr [rsp+78h+arg_10+2], cl ; +0xad, 0x140129efd mov rcx, [rsi+3F8h] ; +0xb4, 0x140129f04 mov rdx, [rcx] ; +0xbb, 0x140129f0b mov r8, [rdx+468h] ; +0xbe, 0x140129f0e lea rdx, [rsp+78h+arg_10] ; +0xc5, 0x140129f15 call r8 ; +0xcd, 0x140129f1d movzx eax, byte ptr [rbx+54h] ; +0xd0, 0x140129f20 cmp [rsi+460h], eax ; +0xd4, 0x140129f24 jz short loc_140129F36 ; +0xda, 0x140129f2a xor edx, edx ; +0xdc, 0x140129f2c mov rcx, rsi ; +0xde, 0x140129f2e call ColorSelectPopup__onToggleTintMode ; +0xe1, 0x140129f31 mov eax, [rbx+60h] ; +0xe6, 0x140129f36 mov [rsi+464h], eax ; +0xe9, 0x140129f39 mov rcx, rsi ; +0xef, 0x140129f3f call ColorSelectPopup__updateOpacity ; +0xf2, 0x140129f42 mov rcx, rsi ; +0xf7, 0x140129f47 call ColorSelectPopup__updateOpacityLabel ; +0xfa, 0x140129f4a mov rcx, [rsi+418h] ; +0xff, 0x140129f4f test rcx, rcx ; +0x106, 0x140129f56 jz loc_14012A106 ; +0x109, 0x140129f59 movss xmm1, dword ptr [rsi+464h] ; +0x10f, 0x140129f5f call Slider__setValue ; +0x117, 0x140129f67 jmp loc_14012A106 ; +0x11c, 0x140129f6c mov rax, [rsi+2B0h] ; +0x121, 0x140129f71 test rax, rax ; +0x128, 0x140129f78 jz loc_14012A106 ; +0x12b, 0x140129f7b mov rdi, [rax+38h] ; +0x131, 0x140129f81 mov eax, [rdi] ; +0x135, 0x140129f85 test eax, eax ; +0x137, 0x140129f87 jz loc_14012A055 ; +0x139, 0x140129f89 mov rdi, [rdi+10h] ; +0x13f, 0x140129f8f lea rbp, [rax-1] ; +0x143, 0x140129f93 lea rbp, [rdi+rbp*8] ; +0x147, 0x140129f97 cmp rdi, rbp ; +0x14b, 0x140129f9b ja loc_14012A055 ; +0x14e, 0x140129f9e mov rbx, [rdi] ; +0x154, 0x140129fa4 test rbx, rbx ; +0x157, 0x140129fa7 jz loc_14012A055 ; +0x15a, 0x140129faa test rdx, rdx ; +0x160, 0x140129fb0 jnz short loc_140129FEA ; +0x163, 0x140129fb3 mov ecx, 6E8h; Size ; +0x165, 0x140129fb5 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x16a, 0x140129fba mov [rsp+78h+arg_10], rax ; +0x16f, 0x140129fbf mov rcx, rax ; +0x177, 0x140129fc7 call GameManager__GameManager ; +0x17a, 0x140129fca nop ; +0x17f, 0x140129fcf mov cs:qword_14090BFD0, rax ; +0x180, 0x140129fd0 mov rcx, [rax] ; +0x187, 0x140129fd7 mov rdx, [rcx+48h] ; +0x18a, 0x140129fda mov rcx, rax ; +0x18e, 0x140129fde call rdx ; +0x191, 0x140129fe1 mov rdx, cs:qword_14090BFD0 ; +0x193, 0x140129fe3 mov rax, [rdx+238h] ; +0x19a, 0x140129fea mov rcx, [rax+0DC8h] ; +0x1a1, 0x140129ff1 mov edx, [rbx+408h] ; +0x1a8, 0x140129ff8 mov rcx, [rcx+140h] ; +0x1ae, 0x140129ffe call GJEffectManager__getColorAction ; +0x1b5, 0x14012a005 test rax, rax ; +0x1ba, 0x14012a00a jz short loc_14012A040 ; +0x1bd, 0x14012a00d movzx ecx, word ptr [rax+48h] ; +0x1bf, 0x14012a00f mov [rbx+5B9h], cx ; +0x1c3, 0x14012a013 movzx ecx, byte ptr [rax+4Ah] ; +0x1ca, 0x14012a01a mov [rbx+5BBh], cl ; +0x1ce, 0x14012a01e movzx ecx, byte ptr [rax+54h] ; +0x1d4, 0x14012a024 mov [rbx+5DFh], cl ; +0x1d8, 0x14012a028 mov ecx, [rax+60h] ; +0x1de, 0x14012a02e mov [rbx+5C0h], ecx ; +0x1e1, 0x14012a031 mov eax, [rax+60h] ; +0x1e7, 0x14012a037 mov [rsi+464h], eax ; +0x1ea, 0x14012a03a add rdi, 8 ; +0x1f0, 0x14012a040 cmp rdi, rbp ; +0x1f4, 0x14012a044 ja short loc_14012A055 ; +0x1f7, 0x14012a047 mov rdx, cs:qword_14090BFD0 ; +0x1f9, 0x14012a049 jmp loc_140129FA4 ; +0x200, 0x14012a050 lea rax, [rsp+78h+var_28] ; +0x205, 0x14012a055 mov [rsp+78h+arg_10], rax ; +0x20a, 0x14012a05a xorps xmm0, xmm0 ; +0x212, 0x14012a062 movups [rsp+78h+var_28], xmm0 ; +0x215, 0x14012a065 mov [rsp+78h+var_18], 0 ; +0x21a, 0x14012a06a mov [rsp+78h+var_10], 0Fh ; +0x223, 0x14012a073 mov byte ptr [rsp+78h+var_28], 0 ; +0x22c, 0x14012a07c mov [rsp+78h+var_38], 0Fh ; +0x231, 0x14012a081 mov [rsp+78h+var_30], 0Fh ; +0x23a, 0x14012a08a movsd xmm0, cs:qword_140734280 ; +0x243, 0x14012a093 movsd qword ptr [rsp+78h+var_48], xmm0 ; +0x24b, 0x14012a09b mov eax, cs:dword_140734288 ; +0x251, 0x14012a0a1 mov dword ptr [rsp+78h+var_48+8], eax ; +0x257, 0x14012a0a7 movzx eax, cs:word_14073428C ; +0x25b, 0x14012a0ab mov word ptr [rsp+78h+var_48+0Ch], ax ; +0x262, 0x14012a0b2 movzx eax, cs:byte_14073428E ; +0x267, 0x14012a0b7 mov [rsp+78h+var_48+0Eh], al ; +0x26e, 0x14012a0be mov [rsp+78h+var_48+0Fh], 0 ; +0x272, 0x14012a0c2 mov rbx, [rsi] ; +0x277, 0x14012a0c7 lea rax, [rsp+78h+var_28] ; +0x27a, 0x14012a0ca mov [rsp+78h+var_58], rax ; +0x27f, 0x14012a0cf mov r9d, 96h ; +0x284, 0x14012a0d4 movss xmm2, cs:dword_140834F64 ; +0x28a, 0x14012a0da movss xmm1, cs:dword_140834F20 ; +0x292, 0x14012a0e2 lea rcx, [rsp+78h+var_48] ; +0x29a, 0x14012a0ea call TextAlertPopup__create ; +0x29f, 0x14012a0ef mov rdx, rax ; +0x2a4, 0x14012a0f4 mov r8d, 64h ; 'd' ; +0x2a7, 0x14012a0f7 mov rcx, rsi ; +0x2ad, 0x14012a0fd call qword ptr [rbx+1C8h] ; +0x2b0, 0x14012a100 lea r11, [rsp+78h+var_8] ; +0x2b6, 0x14012a106 mov rbx, [r11+10h] ; +0x2bb, 0x14012a10b mov rbp, [r11+18h] ; +0x2bf, 0x14012a10f mov rsi, [r11+28h] ; +0x2c3, 0x14012a113 mov rsp, r11 ; +0x2c7, 0x14012a117 pop rdi ; +0x2ca, 0x14012a11a retn ; +0x2cb, 0x14012a11b