Function at 0x405ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x406107
mov eax, dword [eax]
mov dword [ebp - 8], 0
push dword [ecx + 8]
push dword [eax + 8]
lea eax, [ebp - 0xc0]
push str.Control_PanelAppearanceClassicSchemes
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp eax, 0x2c
jl 0x406107
lea eax, [ebp - 8]
push eax
push 1
push 0
lea eax, [ebp - 0xc0]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406107
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push esi
push str.Size_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp eax, 5
jl 0x405f8c
lea eax, [ebp - 4]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405f8c
cmp dword [ebp - 0xc], 4
jne 0x405f8c
cmp dword [ebp - 4], 4
jne 0x405f8c
mov eax, dword [0x40b46c]
mov eax, dword [eax + 0xc]
cmp eax, 0x60
je 0x405f85
push 0x60
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov dword [ebp + 0xc], ecx
jmp 0x405f88
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jns 0x405f9c
push esi
push 0x40b118
call fcn.004058f0
add esp, 8
mov ecx, eax
lea eax, [esi + esi*2]
mov edx, dword [eax*4 + 0x40b008]
mov dword [eax*4 + 0x40b010], ecx
cmp ecx, edx
jl 0x405fbf
mov eax, dword [eax*4 + 0x40b00c]
mov edx, ecx
cmp ecx, eax
cmovg edx, eax
cmp esi, 9
ja case.default.0x405fc4
jmp dword [esi*4 + 0x406110]
mov dword [ebx + 4], edx
inc esi
jmp 0x405f13
mov dword [ebx + 8], edx
inc esi
jmp 0x405f13
mov dword [ebx + 0xc], edx
inc esi
jmp 0x405f13
mov dword [ebx + 0x10], edx
inc esi
jmp 0x405f13
mov dword [ebx + 0x14], edx
inc esi
jmp 0x405f13
mov dword [ebx + 0x74], edx
inc esi
jmp 0x405f13
mov dword [ebx + 0x78], edx
inc esi
jmp 0x405f13
mov dword [ebx + 0xd8], edx
inc esi
jmp 0x405f13
mov dword [ebx + 0xdc], edx
inc esi
jmp 0x405f13
inc esi
cmp esi, 0xa
jl 0x405f13
jmp 0x406034
mov dword [ebx + 0x1f4], edx
mov ebx, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 4], 1
push esi
push dword [ebp + 8]
call fcn.00405880
mov edi, eax
add esp, 8
test edi, edi
je 0x4060e5
push esi
lea eax, [ebp - 0x18]
push str.Font_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp eax, 5
jge 0x406078
push esi
push edi
call fcn.004053a0
add esp, 8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x5c
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4060a5
cmp dword [ebp - 0xc], 3
jne 0x4060a5
cmp dword [ebp + 0xc], 0x5c
je 0x4060af
push esi
push edi
call fcn.004053a0
add esp, 8
mov eax, dword [0x40b46c]
mov eax, dword [eax + 0xc]
cmp eax, 0x60
je 0x4060dd
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x60
push eax
push dword [edi]
call ebx
mov dword [edi], eax
mov eax, dword [0x40b46c]
push 0x60
push dword [eax + 0xc]
push dword [edi + 4]
call ebx
mov dword [edi + 4], eax
mov ebx, dword [ebp - 8]
mov eax, 1
mov edi, dword [ebp - 4]
inc esi
and edi, eax
mov dword [ebp - 4], edi
cmp esi, 6
jl 0x406040
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret