Function at 0x4024e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
movzx ecx, word [ebp + 8]
sub esp, 0x6c
lea eax, [ecx - 4]
cmp eax, 0x23
ja case.default.0x402500
movzx eax, byte [eax + 0x402cb0]
push ebx
push esi
push edi
jmp dword [eax*4 + 0x402c80]
mov eax, dword [0x40b100]
push eax
push 0x4043f0
push eax
mov eax, dword [0x40b46c]
push 0xb
push dword [eax]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x40b100]
push eax
push 0x404910
push eax
mov eax, dword [0x40b46c]
push 0xc
push dword [eax]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401e30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x40b438]
lea eax, [eax + eax*2]
mov edi, dword [eax*8 + 0x409278]
test edi, edi
js case.0x402500.15
mov eax, dword [0x40b430]
add eax, 0xc
push edi
push eax
call fcn.00405880
mov ebx, eax
add esp, 8
test ebx, ebx
je case.0x402500.15
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
push 0
push 0xf0
push 0x1f
push dword [0x40b100]
call esi
dec eax
neg eax
push ebx
sbb eax, eax
and eax, 0xfffffed4
add eax, 0x2bc
push edi
mov dword [ebx + 0x10], eax
push 0x402
jmp 0x402c53
mov eax, dword [0x40b438]
lea eax, [eax + eax*2]
mov edi, dword [eax*8 + 0x409278]
test edi, edi
js case.0x402500.15
mov eax, dword [0x40b430]
add eax, 0xc
push edi
push eax
call fcn.00405880
mov ebx, eax
add esp, 8
test ebx, ebx
je case.0x402500.15
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
push 0
push 0xf0
push 0x20
push dword [0x40b100]
call esi
cmp eax, 1
push ebx
sete al
push edi
mov byte [ebx + 0x14], al
push 0x402
jmp 0x402c53
mov eax, dword [0x40b438]
lea eax, [eax + eax*2]
mov edi, dword [eax*8 + 0x409278]
test edi, edi
js case.0x402500.15
mov eax, dword [0x40b430]
add eax, 0xc
push edi
push eax
call fcn.00405880
mov ebx, eax
add esp, 8
test ebx, ebx
je case.0x402500.15
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
push 0
push 0xf0
push 0x21
push dword [0x40b100]
call esi
cmp eax, 1
push ebx
sete al
push edi
mov byte [ebx + 0x15], al
push 0x402
jmp 0x402c53
mov eax, dword [0x40b438]
mov esi, dword [0x40b430]
movaps xmm0, xmmword [0x409440]
add esi, 0x260
push 0
lea eax, [eax + eax*2]
mov ebx, dword [eax*8 + 0x409270]
lea eax, [ebp + 8]
mov edi, dword [esi + ebx*4]
lea esi, [esi + ebx*4]
push eax
push 0
push 3
push 0
push 0
push 0
push 0x409218
push 0x80000001
mov dword [ebp - 8], esi
movups xmmword [ebp - 0x6c], xmm0
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402705
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x40
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push str.CustomColors
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x40270c
mov dword [ebp + 8], 0
mov eax, dword [0x40b100]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x24
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0x83
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
je 0x402766
mov ecx, dword [ebp - 8]
mov esi, 1
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x402768
xor esi, esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x40278e
push 0x40
lea ecx, [ebp - 0x6c]
push ecx
push 3
push 0
push str.CustomColors
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je case.0x402500.15
xor edx, edx
mov eax, ebx
sub eax, edx
je 0x4027ca
sub eax, 2
je 0x4027b9
sub eax, 1
jne 0x4027ef
push edi
push 0x1c
push 3
call fcn.00401890
add esp, 0xc
mov edx, eax
jmp 0x4027ef
push edi
push 0x1b
push 2
call fcn.00401890
add esp, 0xc
mov edx, eax
jmp 0x4027ef
mov ecx, dword [0x40b430]
mov eax, dword [ecx + 0x260]
cmp eax, dword [ecx + 0x2b0]
je 0x4027ef
push 0
push 0x14
call fcn.00401dd0
add esp, 8
mov edx, 1
mov ecx, dword [0x40b430]
cmp dword [ecx + ebx*4 + 0x260], edi
je 0x40283e
mov eax, dword [ecx + ebx*4 + 0x2dc]
test eax, eax
je 0x402810
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x40b430]
push dword [eax + ebx*4 + 0x260]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [0x40b430]
push ebx
push 0
push 0xf
mov dword [ecx + ebx*4 + 0x2dc], eax
call fcn.00403920
add esp, 0xc
jmp 0x402846
test edx, edx
je case.0x402500.15
mov eax, dword [0x40b430]
add eax, 0xc
push eax
push 1
push 0x403
push 1
push dword [0x40b100]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x402c5d
mov eax, dword [0x40b438]
mov esi, dword [0x40b430]
movaps xmm0, xmmword [0x409440]
add esi, 0x260
push 0
lea eax, [eax + eax*2]
mov ebx, dword [eax*8 + 0x409274]
lea eax, [ebp + 8]
mov edi, dword [esi + ebx*4]
lea esi, [esi + ebx*4]
push eax
push 0
push 3
push 0
push 0
push 0
push 0x409218
push 0x80000001
mov dword [ebp - 4], esi
movups xmmword [ebp - 0x6c], xmm0
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4028eb
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x40
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push str.CustomColors
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x4028f2
mov dword [ebp + 8], 0
mov eax, dword [0x40b100]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x24
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0x83
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
je 0x40294c
mov ecx, dword [ebp - 4]
mov esi, 1
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x40294e
xor esi, esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x402974
push 0x40
lea ecx, [ebp - 0x6c]
push ecx
push 3
push 0
push str.CustomColors
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je case.0x402500.15
xor edx, edx
mov eax, ebx
sub eax, edx
je 0x4029b0
sub eax, 2
je 0x40299f
sub eax, 1
jne 0x4029d5
push edi
push 0x1c
push 3
call fcn.00401890
add esp, 0xc
mov edx, eax
jmp 0x4029d5
push edi
push 0x1b
push 2
call fcn.00401890
add esp, 0xc
mov edx, eax
jmp 0x4029d5
mov ecx, dword [0x40b430]
mov eax, dword [ecx + 0x260]
cmp eax, dword [ecx + 0x2b0]
je 0x4029d5
push 0
push 0x14
call fcn.00401dd0
add esp, 8
mov edx, 1
mov ecx, dword [0x40b430]
cmp dword [ecx + ebx*4 + 0x260], edi
je 0x40283e
mov eax, dword [ecx + ebx*4 + 0x2dc]
test eax, eax
je 0x4029fa
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x40b430]
push dword [eax + ebx*4 + 0x260]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [0x40b430]
push ebx
push 1
push 0x11
mov dword [ecx + ebx*4 + 0x2dc], eax
call fcn.00403920
add esp, 0xc
jmp 0x402846
mov eax, dword [0x40b438]
mov esi, dword [0x40b430]
movaps xmm0, xmmword [0x409440]
add esi, 0x260
push 0
lea eax, [eax + eax*2]
mov ebx, dword [eax*8 + 0x40927c]
lea eax, [ebp + 8]
mov edi, dword [esi + ebx*4]
lea esi, [esi + ebx*4]
push eax
push 0
push 3
push 0
push 0
push 0
push 0x409218
push 0x80000001
mov dword [ebp - 4], esi
movups xmmword [ebp - 0x6c], xmm0
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402aad
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x40
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push str.CustomColors
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x402ab4
mov dword [ebp + 8], 0
mov eax, dword [0x40b100]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x24
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0x83
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
je 0x402b0e
mov ecx, dword [ebp - 4]
mov esi, 1
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x402b10
xor esi, esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x402b36
push 0x40
lea ecx, [ebp - 0x6c]
push ecx
push 3
push 0
push str.CustomColors
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je case.0x402500.15
xor edx, edx
mov eax, ebx
sub eax, edx
je 0x402b72
sub eax, 2
je 0x402b61
sub eax, 1
jne 0x402b97
push edi
push 0x1c
push 3
call fcn.00401890
add esp, 0xc
mov edx, eax
jmp 0x402b97
push edi
push 0x1b
push 2
call fcn.00401890
add esp, 0xc
mov edx, eax
jmp 0x402b97
mov ecx, dword [0x40b430]
mov eax, dword [ecx + 0x260]
cmp eax, dword [ecx + 0x2b0]
je 0x402b97
push 0
push 0x14
call fcn.00401dd0
add esp, 8
mov edx, 1
mov ecx, dword [0x40b430]
cmp dword [ecx + ebx*4 + 0x260], edi
je 0x40283e
mov eax, dword [ecx + ebx*4 + 0x2dc]
test eax, eax
je 0x402bbc
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x40b430]
push dword [eax + ebx*4 + 0x260]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [0x40b430]
push ebx
push 2
push 0x1a
mov dword [ecx + ebx*4 + 0x2dc], eax
call fcn.00403920
add esp, 0xc
jmp 0x402846
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
push 0
push 0xf0
push ecx
push dword [0x40b100]
call esi
mov ecx, dword [0x40b430]
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [ecx + 0x358], eax
jmp 0x402c43
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
push 0
push 0xf0
push ecx
push dword [0x40b100]
call esi
mov ecx, dword [0x40b430]
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [ecx + 0x35c], eax
mov eax, dword [0x40b430]
add eax, 0xc
push eax
push 1
push 0x403
push 1
push dword [0x40b100]
call esi
mov eax, dword [0x40b46c]
push 0
push dword [0x40b100]
push 0x468
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret