Function at 0x403020
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
mov esi, edx
push ebx
sub esp, 0x74
lea ebx, [esp + 0x2b]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 0x28
jg 0x401d58
add esp, 0x74
pop ebx
pop esi
ret
lea eax, [esp + 0x24]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x401d4d
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedSize
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
add esp, 0x74
pop ebx
pop esi
ret
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
mov esi, dword [esp + 0xe0]
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], 0x74
mov dword [esp], 0x4131b0
lea edi, [esi + 0x190]
mov dword [esp + 0x3c], eax
mov dword [esp + 4], edi
call fcn.00401250
mov ebx, eax
test eax, eax
jne 0x403250
mov dword [esp + 8], 0x154
mov dword [esp + 4], esi
mov dword [esp], 0x413020
call fcn.00401250
test eax, eax
jne 0x403220
lea edi, [esi + 0x154]
mov dword [esp + 8], 0x3c
mov dword [esp + 4], edi
mov dword [esp], 0x413174
call fcn.00401250
test eax, eax
jne 0x4031e0
mov eax, dword [esi + 0x208]
cmp eax, dword [0x413228]
jne 0x403100
test ebx, ebx
jne 0x403131
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x403198
mov eax, dword [eax]
test eax, eax
je 0x403198
mov eax, dword [eax + 8]
call fcn.00401c90
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4033b8
mov edx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
jmp 0x401d20
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1009
call ebx
mov eax, dword [esi + 0x208]
sub esp, 0x10
mov dword [0x413228], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40e428
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4030bc
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], str.Current
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
push esi
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
jmp 0x4030bc
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelAppearanceClassicSchemes
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x403388
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 3
mov dword [esp + 8], edi
mov dword [esp + 4], 0x3c
mov dword [esp], 0x22
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoA]
call ebx
mov eax, dword [esi + 0x208]
sub esp, 0x10
cmp dword [0x413228], eax
je 0x403131
jmp 0x403106
mov dword [esp + 0xc], 3
mov dword [esp + 8], esi
mov dword [esp + 4], 0x154
mov dword [esp], 0x2a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ebx, 1
sub esp, 0x10
jmp 0x403084
lea ebx, [esp + 0x4c]
mov eax, 1
mov dword [ebx], 0
nop
lea edx, [eax + 1]
mov dword [ebx + eax*4], eax
add eax, 2
mov dword [ebx + edx*4], edx
cmp eax, 0x1d
jne 0x403260
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], 0x1d
call dword [sym.imp.USER32.dll_SetSysColors]
sub esp, 0xc
lea eax, [esp + 0x48]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelColors
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
mov ebp, eax
test eax, eax
jne 0x40337a
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [esi]
mov eax, dword [esi + ebp*4 + 0x190]
mov dword [esp + 4], str._d__d__d
mov edx, eax
mov dword [esp], ebx
shr edx, 0x10
and edx, 0xff
mov dword [esp + 0x10], edx
movzx edx, ah
and eax, 0xff
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call edi
cmp eax, 4
jle 0x403366
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp*4 + 0x40d0e0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
inc ebp
cmp ebp, 0x1d
jne 0x4032f0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
mov ebx, 1
jmp 0x403064
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], str.SelectedScheme
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push ecx
push ecx
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x3c]
lea ebx, [esp + 0x4c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 0x28
jle 0x4031d0
lea eax, [esp + 0x48]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4031d0
mov eax, dword [esp + 0x48]
mov dword [esp + 4], str.SelectedSize
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
push eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
jmp 0x4031d0