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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
mov ebx, dword [esp + 0xe0]
mov dword [esp + 8], 0x74
mov dword [esp], 0x412230
lea eax, [ebx + 0x190]
mov dword [esp + 4], eax
mov dword [esp + 0x3c], eax
call fcn.00401510
test eax, eax
jne 0x4074a0
mov dword [esp + 8], 0x154
mov dword [esp + 4], ebx
mov dword [esp], 0x4120a0
call fcn.00401510
test eax, eax
jne 0x407458
lea esi, [ebx + 0x154]
mov dword [esp + 8], 0x3c
mov dword [esp + 4], esi
mov dword [esp], 0x4121f4
call fcn.00401510
test eax, eax
jne 0x407420
mov eax, dword [ebx + 0x278]
cmp eax, dword [0x4122a4]
je 0x40737e
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1009
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebx + 0x278]
sub esp, 0x10
mov dword [0x4122a4], eax
mov eax, dword [esp + 0xe4]
mov eax, dword [eax]
test eax, eax
je 0x407414
mov eax, dword [eax + 8]
lea edi, [esp + 0x4c]
call fcn.00406040
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40e788
mov dword [esp], 0x80000001
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call ebx
sub esp, 0x14
test eax, eax
je 0x4075e8
mov eax, dword [esp + 0xe4]
mov eax, dword [eax + 4]
test eax, eax
je 0x407414
mov esi, dword [eax + 8]
mov eax, dword [esp + 0xe4]
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], edi
call dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 0x29
jg 0x407628
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], esi
mov dword [esp + 0xc], 3
mov dword [esp + 4], 0x3c
mov dword [esp], 0x22
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, 0x4121f4
mov ecx, 0xf
mov edi, eax
rep movsd dword es:[edi], dword [esi]
sub esp, 0x10
jmp 0x407341
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov dword [esp + 4], 0x154
mov dword [esp], 0x2a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
sub esp, 0x10
mov dword [esp + 8], 0x154
mov dword [esp + 4], ebx
mov dword [esp], 0x4120a0
call fcn.00401430
jmp 0x40731b
lea edi, [esp + 0x4c]
mov eax, 1
mov dword [edi], 0
nop
lea edx, [eax + 1]
mov dword [edi + eax*4], eax
add eax, 2
mov dword [edi + edx*4], edx
cmp eax, 0x1d
jne 0x4074b0
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
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 0x4075ca
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [esi]
mov eax, dword [ebx + ebp*4 + 0x190]
mov dword [esp + 4], str._d__d__d
mov edx, eax
mov dword [esp], edi
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 esi
cmp eax, 4
jle 0x4075b6
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp*4 + 0x40d100]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edi
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 0x407540
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov eax, 0x412230
mov ecx, 0x1d
mov edi, eax
mov esi, dword [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
jmp 0x4072fb
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], str.Current
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 esi
mov eax, dword [esp + 0xe4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4073df
jmp 0x407414
lea eax, [esp + 0x48]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0x80000001
call ebx
sub esp, 0x14
test eax, eax
jne 0x407414
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
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
jmp 0x407414