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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xd8
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
lea edx, [ebx + 0x254]
mov dword [ebp - 0xac], eax
mov dword [esp + 4], edx
mov dword [esp + 8], 0x7c
mov dword [ebp - 0xb0], edx
mov dword [esp], 0x4132f4
call fcn.004014b0
mov edx, dword [ebp - 0xb0]
test eax, eax
jne 0x4077c8
mov dword [esp + 8], 0x1f8
mov dword [esp + 4], ebx
mov dword [esp], 0x4130a0
call fcn.004014b0
test eax, eax
jne 0x407788
lea esi, [ebx + 0x1f8]
mov dword [esp + 8], 0x5c
mov dword [esp + 4], esi
mov dword [esp], 0x413298
call fcn.004014b0
test eax, eax
jne 0x407700
mov eax, dword [ebx + 0x34c]
cmp eax, dword [0x413370]
je 0x407627
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_SystemParametersInfoW]
mov eax, dword [ebx + 0x34c]
sub esp, 0x10
mov dword [0x413370], eax
mov eax, dword [ebx + 0x350]
cmp eax, dword [0x413374]
je 0x407664
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1023
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebx + 0x350]
sub esp, 0x10
mov dword [0x413374], eax
mov eax, dword [ebp - 0xac]
mov eax, dword [eax]
test eax, eax
je 0x4076ef
mov eax, dword [eax + 8]
lea edi, [ebp - 0xa4]
call fcn.004063a0
mov dword [esp + 0x10], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40ec20
mov dword [esp], 0x80000001
call ebx
sub esp, 0x14
test eax, eax
je 0x407980
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 4]
test eax, eax
je 0x4076ef
mov esi, dword [eax + 8]
mov eax, dword [edx]
mov eax, dword [eax + 8]
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 4], str._s_s
mov dword [esp + 0xc], eax
mov dword [esp], edi
call dword [sym.imp.USER32.dll_wsprintfW]
cmp eax, 0x29
jg 0x4079c8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 3
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5c
mov dword [esp], 0x22
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
movdqu xmm0, xmmword [ebx + 0x1f8]
sub esp, 0x10
movups xmmword [0x413298], xmm0
movdqu xmm1, xmmword [ebx + 0x208]
movups xmmword [0x4132a8], xmm1
movdqu xmm2, xmmword [ebx + 0x218]
movups xmmword [0x4132b8], xmm2
movdqu xmm3, xmmword [ebx + 0x228]
movups xmmword [0x4132c8], xmm3
movdqu xmm4, xmmword [ebx + 0x238]
movups xmmword [0x4132d8], xmm4
movdqu xmm5, xmmword [ebx + 0x244]
movups xmmword [0x4132e4], xmm5
jmp 0x4075ea
mov dword [esp + 0xc], 3
mov esi, ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1f8
mov dword [esp], 0x2a
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, 0x4130a0
mov ecx, 0x7e
mov edi, eax
sub esp, 0x10
rep movsd dword es:[edi], dword [esi]
jmp 0x4075c4
mov dword [ebp - 0xa4], 0
lea edi, [ebp - 0xa4]
mov eax, 1
lea esi, [esi]
mov dword [edi + eax*4], eax
lea ecx, [eax + 1]
add eax, 2
mov dword [edi + ecx*4], ecx
cmp eax, 0x1f
jne 0x4077e0
mov dword [esp + 8], edx
mov dword [ebp - 0xb0], edx
mov dword [esp + 4], edi
mov dword [esp], 0x1f
call dword [sym.imp.USER32.dll_SetSysColors]
lea eax, [ebp - 0xa8]
sub esp, 0xc
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_RegCreateKeyExW]
mov edx, dword [ebp - 0xb0]
sub esp, 0x24
test eax, eax
mov esi, eax
jne 0x407918
lea esi, [esi]
mov eax, dword [ebx + esi*4 + 0x254]
mov dword [esp + 4], 0x40e544
mov dword [esp], edi
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x10], ecx
movzx ecx, ah
movzx eax, al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfW]
cmp eax, 4
jle 0x4078f4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esp, 4
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [esi*4 + 0x40d100]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
add esi, 1
cmp esi, 0x1f
jne 0x407878
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xb0]
sub esp, 4
movdqu xmm0, xmmword [ebx + 0x254]
movups xmmword [0x4132f4], xmm0
movdqu xmm1, xmmword [edx + 0x10]
movups xmmword [0x413304], xmm1
movdqu xmm2, xmmword [edx + 0x20]
movups xmmword [0x413314], xmm2
movdqu xmm3, xmmword [edx + 0x30]
movups xmmword [0x413324], xmm3
movdqu xmm4, xmmword [edx + 0x40]
movups xmmword [0x413334], xmm4
movdqu xmm5, xmmword [edx + 0x50]
movups xmmword [0x413344], xmm5
movdqu xmm6, xmmword [edx + 0x60]
movups xmmword [0x413354], xmm6
movdqu xmm7, xmmword [edx + 0x6c]
movups xmmword [0x413360], xmm7
jmp 0x4075a4
mov dword [esp + 4], str.Current
mov eax, dword [ebp - 0xa4]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0xa4]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xac]
sub esp, 4
mov eax, dword [edx + 4]
test eax, eax
jne 0x4076c1
jmp 0x4076ef
lea eax, [ebp - 0xa8]
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 0x4076ef
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esp, 4
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedSize
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
jmp 0x4076ef