; ; ColorSelectPopup::onUpdateCustomColor from 0x100807240 to 0x100807311 (209 bytes) ; ; 1 xrefs: ; > ColorSelectPopup::init @ 0x10080554a ; ; 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 12:36:40 +0000 ; push rbp ; +0x0, 0x100807240 mov rbp, rsp ; +0x1, 0x100807241 push r14 ; +0x4, 0x100807244 push rbx ; +0x6, 0x100807246 mov rbx, rdi ; +0x7, 0x100807247 cmp dword ptr [rdi+490h], 3E8h ; +0xa, 0x10080724a jl short loc_100807260 ; +0x14, 0x100807254 mov dword ptr [rbx+490h], 0 ; +0x16, 0x100807256 mov rax, [rsi] ; +0x20, 0x100807260 mov rdi, rsi ; +0x23, 0x100807263 call qword ptr [rax+40h] ; +0x26, 0x100807266 xor ecx, ecx ; +0x29, 0x100807269 cmp eax, 1 ; +0x2b, 0x10080726b setz cl ; +0x2e, 0x10080726e mov eax, [rbx+490h] ; +0x31, 0x100807271 lea eax, [rax+rcx*2] ; +0x37, 0x100807277 dec eax ; +0x3a, 0x10080727a xor ecx, ecx ; +0x3c, 0x10080727c test eax, eax ; +0x3e, 0x10080727e cmovg ecx, eax ; +0x40, 0x100807280 cmp ecx, 3E7h ; +0x43, 0x100807283 mov eax, 3E7h ; +0x49, 0x100807289 cmovl eax, ecx ; +0x4e, 0x10080728e cmp eax, 1 ; +0x51, 0x100807291 adc eax, 0 ; +0x54, 0x100807294 mov [rbx+490h], eax ; +0x57, 0x100807297 mov rcx, [rbx+2A8h] ; +0x5d, 0x10080729d test rcx, rcx ; +0x64, 0x1008072a4 jz short loc_1008072C3 ; +0x67, 0x1008072a7 mov [rcx+400h], eax ; +0x69, 0x1008072a9 mov rdi, rbx ; +0x6f, 0x1008072af call SetupTriggerPopup__updateEditorLabel ; +0x72, 0x1008072b2 mov rdi, rbx ; +0x77, 0x1008072b7 pop rbx ; +0x7a, 0x1008072ba pop r14 ; +0x7b, 0x1008072bb pop rbp ; +0x7d, 0x1008072bd jmp ColorSelectPopup__updateTextInputLabel ; +0x7e, 0x1008072be mov rdi, [rbx+2B0h] ; +0x83, 0x1008072c3 test rdi, rdi ; +0x8a, 0x1008072ca jz short loc_1008072AF ; +0x8d, 0x1008072cd call sub_1007FEF90 ; +0x8f, 0x1008072cf test eax, eax ; +0x94, 0x1008072d4 jz short loc_1008072AF ; +0x96, 0x1008072d6 xor r14d, r14d ; +0x98, 0x1008072d8 nop dword ptr [rax+rax+00h] ; +0x9b, 0x1008072db mov rdi, [rbx+2B0h] ; +0xa0, 0x1008072e0 mov esi, r14d ; +0xa7, 0x1008072e7 call sub_1007FEFE0 ; +0xaa, 0x1008072ea mov ecx, [rbx+490h] ; +0xaf, 0x1008072ef mov [rax+400h], ecx ; +0xb5, 0x1008072f5 inc r14d ; +0xbb, 0x1008072fb mov rdi, [rbx+2B0h] ; +0xbe, 0x1008072fe call sub_1007FEF90 ; +0xc5, 0x100807305 cmp r14d, eax ; +0xca, 0x10080730a jb short loc_1008072E0 ; +0xcd, 0x10080730d jmp short loc_1008072AF ; +0xcf, 0x10080730f