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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x40b36c
push esi
push edi
mov esi, 0x78
lea edi, [ebx + 0x254]
mov dword [ebp - 8], edi
mov edx, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404c49
add ecx, 4
add edx, 4
sub esi, 4
jae 0x404c34
xor eax, eax
jmp 0x404c70
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x404c6b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x404c6b
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x404c6b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x404c6b
xor eax, eax
jmp 0x404c70
sbb eax, eax
or eax, 1
test eax, eax
je 0x404d74
movaps xmm0, xmmword [0x409970]
mov eax, 0x10
movups xmmword [ebp - 0xa0], xmm0
movaps xmm0, xmmword [0x409980]
movups xmmword [ebp - 0x90], xmm0
movaps xmm0, xmmword [0x409990]
movups xmmword [ebp - 0x80], xmm0
movaps xmm0, xmmword [0x4099a0]
movups xmmword [ebp - 0x70], xmm0
nop
mov dword [ebp + eax*4 - 0xa0], eax
inc eax
cmp eax, 0x1f
jl 0x404cb0
push edi
lea eax, [ebp - 0xa0]
push eax
push 0x1f
call dword [sym.imp.USER32.dll_SetSysColors]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
push str.Control_PanelColors
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404d66
mov esi, 0x40b080
lea ebx, [eax + 0x1f]
sub esi, edi
nop dword [eax + eax]
movzx eax, byte [edi + 2]
movzx ecx, word [edi]
push eax
mov eax, ecx
shr eax, 8
push eax
movzx eax, cl
push eax
lea eax, [ebp - 0x20]
push str._d__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp eax, 5
jl 0x404d4f
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push dword [esi + edi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add edi, 4
sub ebx, 1
jne 0x404d00
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov esi, edi
mov ecx, 0x1f
mov edi, 0x40b36c
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x40b118
mov edx, ebx
mov esi, 0x1f4
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404d93
add ecx, 4
add edx, 4
sub esi, 4
jae 0x404d80
jmp 0x404db1
push 3
push ebx
push 0x1f8
push 0x2a
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, 0x7e
mov esi, ebx
mov edi, 0x40b118
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x1f8]
mov ecx, 0x40b310
mov edx, edi
mov esi, 0x58
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404dd6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x404dc3
jmp 0x404df1
push 3
push edi
push 0x5c
push 0x22
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, edi
mov ecx, 0x17
mov edi, 0x40b310
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x34c]
cmp eax, dword [0x40b3e8]
je 0x404e1a
push 3
push eax
push 0
push 0x1009
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebx + 0x34c]
mov dword [0x40b3e8], eax
mov eax, dword [ebx + 0x350]
cmp eax, dword [0x40b3ec]
je 0x404e43
push 3
push eax
push 0
push 0x1023
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebx + 0x350]
mov dword [0x40b3ec], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x404f6c
mov ebx, dword [eax + 8]
lea eax, [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 2
push 0
push str.Control_PanelAppearanceClassicSchemes
push 0x80000001
call esi
test eax, eax
jne 0x404e9c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.SelectedStyle
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 8]
push eax
push 2
push 0
push str.Control_PanelAppearance
push 0x80000001
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x404ed7
push str.Current
push dword [ebp + 8]
call ebx
push str.NewCurrent
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 8]
push eax
push 2
push 0
push str.Control_PanelAppearanceNew_Schemes
push 0x80000001
call esi
test eax, eax
jne 0x404f02
push str.SelectedStyle
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi + 4]
test eax, eax
je 0x404f6c
mov ebx, dword [eax + 8]
mov eax, dword [edi]
push dword [eax + 8]
lea eax, [ebp - 0xac]
push str.Control_PanelAppearanceClassicSchemes
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp eax, 0x2a
jl 0x404f6c
lea eax, [ebp + 8]
push eax
push 2
push 0
lea eax, [ebp - 0xac]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x404f6c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.SelectedSize
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret