Function at 0x404f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x40b46c]
push 0x360
push 8
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
mov dword [0x40b430], eax
test eax, eax
jne 0x404fc1
push eax
push 0x3c
push 0x3e
push eax
call fcn.00401660
add esp, 0x10
mov eax, 2
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea ebx, [eax + 0xc]
xor esi, esi
push edi
lea edi, [ebx + 0x2d0]
nop
push esi
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov dword [edi - 0x7c], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
inc esi
mov dword [edi], eax
lea edi, [edi + 4]
cmp esi, 0x1f
jl 0x404fd0
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push ebx
push 0x1f8
push 0x29
mov dword [ebx], 0x1f8
call esi
push 0
lea eax, [ebx + 0x1f8]
push eax
push 0x5c
push 0x1f
call esi
xor edi, edi
mov esi, 0x40b010
nop word [eax + eax]
push edi
push ebx
call fcn.004058f0
mov dword [esi], eax
add esp, 8
add esi, 0xc
inc edi
cmp esi, 0x40b088
jl 0x405020
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebx + 0x34c]
push 0
push eax
push 0
push 0x1008
call esi
push 0
add ebx, 0x350
push ebx
push 0
push 0x1022
call esi
mov eax, dword [ebp - 8]
mov ecx, 0x1f
mov edi, 0x40b36c
lea esi, [eax + 0x260]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0xc]
mov ecx, 0x7e
mov edi, 0x40b118
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x204]
mov ecx, 0x17
mov edi, 0x40b310
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x358]
mov dword [0x40b3e8], eax
mov eax, dword [ebx]
mov dword [0x40b3ec], eax
mov eax, dword [0x40b430]
cmp dword [eax], 0
je 0x4050bd
push eax
call fcn.004056b0
add esp, 4
call fcn.00405990
mov ecx, dword [0x40b430]
mov dword [ecx], eax
mov eax, dword [0x40b430]
mov ecx, dword [eax]
test ecx, ecx
je 0x4050eb
mov dword [eax + 4], ecx
mov ecx, dword [0x40b430]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ecx + 8], eax
mov eax, dword [0x40b430]
mov esi, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test esi, esi
je 0x405115
mov ebx, dword [ebp + 8]
nop word [eax + eax]
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x405143
mov esi, dword [esi]
test esi, esi
jne 0x405100
mov eax, dword [0x40b430]
xor esi, esi
mov dword [eax + 4], esi
mov eax, dword [0x40b430]
mov esi, dword [eax + 4]
test esi, esi
jne 0x40514a
push eax
mov eax, dword [0x40b46c]
push esi
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0x3c
push 0x514
jmp 0x405381
mov eax, dword [0x40b430]
jmp 0x405117
mov esi, dword [esi + 4]
test esi, esi
je 0x405169
mov ebx, dword [ebp + 0xc]
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x405198
mov esi, dword [esi]
test esi, esi
jne 0x405154
mov eax, dword [0x40b430]
xor esi, esi
mov dword [eax + 8], esi
mov eax, dword [0x40b430]
cmp dword [eax + 8], 0
jne 0x40519f
push eax
mov eax, dword [0x40b46c]
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0x3c
push 0x515
jmp 0x405381
mov eax, dword [0x40b430]
jmp 0x40516b
lea ecx, [eax + 4]
mov dword [ebp - 0x28], ecx
lea ebx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [ebp - 0x24], ebx
test ecx, ecx
je 0x405367
push dword [ecx + 8]
lea eax, [ebp - 0xc4]
push str.Control_PanelAppearanceClassicSchemes
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp eax, 0x2a
jl 0x405362
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20001
push 0
lea eax, [ebp - 0xc4]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405362
mov eax, 0x40b118
lea esi, [ebx + 0x254]
xor edi, edi
sub eax, ebx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov eax, dword [esi]
mov ebx, dword [ebp - 4]
push edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push str.Color_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp eax, 6
jl 0x405276
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebx
test eax, eax
jne 0x40527c
cmp dword [ebp - 0x14], 4
jne 0x40527c
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x405282
jmp 0x40527c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi]
mov dword [esi], eax
cmp eax, dword [ebp - 0x20]
je 0x4052a2
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x405297
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x7c], eax
inc edi
add esi, 4
cmp edi, 0x1f
jl 0x405220
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
lea esi, [edi + 0x34c]
push esi
push eax
push 0
push str.Gradients
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x4052de
cmp dword [ebp - 0xc], 4
je 0x4052e5
mov eax, dword [0x40b3e8]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
lea esi, [edi + 0x350]
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.FlatMenus
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40530a
cmp dword [ebp - 0xc], 4
je 0x405311
mov eax, dword [0x40b3ec]
mov dword [esi], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x28]
push edi
call fcn.00405ea0
add esp, 8
test eax, eax
je 0x405362
mov ecx, dword [0x40b430]
lea eax, [ecx + 4]
push eax
lea eax, [ecx + 0xc]
push eax
call fcn.00404c10
mov eax, dword [0x40b46c]
add esp, 8
push dword [0x40b430]
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x40b430]
push eax
mov eax, dword [0x40b46c]
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0x3c
push 0x516
push 0
call fcn.00401660
add esp, 0x10
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret