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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov ebx, dword [edi]
mov eax, dword [edi + 4]
lea edx, [ebx + 0x254]
mov dword [ebp - 0x9c], eax
mov dword [esp + 4], edx
mov dword [esp + 8], 0x7c
mov dword [ebp - 0xa0], edx
mov dword [esp], 0x4162f4
call fcn.00401600
mov edx, dword [ebp - 0xa0]
test eax, eax
jne 0x407ba8
mov dword [esp + 8], 0x1f8
mov dword [esp + 4], ebx
mov dword [esp], 0x4160a0
call fcn.00401600
test eax, eax
jne 0x407b68
lea esi, [ebx + 0x1f8]
mov dword [esp + 8], 0x5c
mov dword [esp + 4], esi
mov dword [esp], 0x416298
call fcn.00401600
test eax, eax
jne 0x407af0
mov eax, dword [ebx + 0x34c]
cmp eax, dword [0x416370]
je 0x407a27
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 [0x416370], eax
mov eax, dword [ebx + 0x350]
cmp eax, dword [0x416374]
je 0x407a64
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 [0x416374], eax
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
test eax, eax
je 0x407ae0
mov eax, dword [eax + 8]
call fcn.00406750
lea eax, [ebp - 0x94]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x411d60
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x407d60
mov ebx, dword [ebp - 0x9c]
mov eax, dword [ebx + 4]
test eax, eax
je 0x407ae0
mov edx, dword [eax + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp fcn.00406690
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
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 [0x416298], xmm0
movdqu xmm1, xmmword [esi + 0x10]
movups xmmword [0x4162a8], xmm1
movdqu xmm2, xmmword [esi + 0x20]
movups xmmword [0x4162b8], xmm2
movdqu xmm3, xmmword [esi + 0x30]
movups xmmword [0x4162c8], xmm3
movdqu xmm4, xmmword [esi + 0x40]
movups xmmword [0x4162d8], xmm4
movdqu xmm5, xmmword [esi + 0x4c]
movups xmmword [0x4162e4], xmm5
jmp 0x4079ea
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, 0x4160a0
mov ecx, 0x7e
mov edi, eax
sub esp, 0x10
rep movsd dword es:[edi], dword [esi]
jmp 0x4079c4
mov dword [ebp - 0x94], 0
lea esi, [ebp - 0x94]
mov eax, 1
lea esi, [esi]
mov dword [esi + eax*4], eax
lea ecx, [eax + 1]
add eax, 2
mov dword [esi + ecx*4], ecx
cmp eax, 0x1f
jne 0x407bc0
mov dword [esp + 8], edx
mov dword [ebp - 0xa0], edx
mov dword [esp + 4], esi
mov dword [esp], 0x1f
call dword [sym.imp.USER32.dll_SetSysColors]
lea eax, [ebp - 0x98]
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 - 0xa0]
sub esp, 0x24
test eax, eax
mov edi, eax
jne 0x407cf8
lea esi, [esi]
mov eax, dword [ebx + edi*4 + 0x254]
mov dword [esp + 4], 0x411564
mov dword [esp], esi
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 0x407cd4
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 eax, dword [edi*4 + 0x410100]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
add edi, 1
cmp edi, 0x1f
jne 0x407c58
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xa0]
sub esp, 4
movdqu xmm0, xmmword [ebx + 0x254]
movups xmmword [0x4162f4], xmm0
movdqu xmm1, xmmword [edx + 0x10]
movups xmmword [0x416304], xmm1
movdqu xmm2, xmmword [edx + 0x20]
movups xmmword [0x416314], xmm2
movdqu xmm3, xmmword [edx + 0x30]
movups xmmword [0x416324], xmm3
movdqu xmm4, xmmword [edx + 0x40]
movups xmmword [0x416334], xmm4
movdqu xmm5, xmmword [edx + 0x50]
movups xmmword [0x416344], xmm5
movdqu xmm6, xmmword [edx + 0x60]
movups xmmword [0x416354], xmm6
movdqu xmm7, xmmword [edx + 0x6c]
movups xmmword [0x416360], xmm7
jmp 0x4079a4
mov dword [esp + 4], str.Current
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x94]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x9c]
sub esp, 4
mov eax, dword [ebx + 4]
test eax, eax
jne 0x407abf
jmp 0x407ae0