Function at 0x407e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6ec
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelAppearanceSchemes
mov dword [esp], 0x80000001
call ebx
sub esp, 0x14
test eax, eax
je 0x407ee0
add esp, 0x6ec
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x154]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40e788
mov dword [esp], 0x80000001
call ebx
sub esp, 0x14
test eax, eax
je 0x4080e8
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x4f], 0
lea ebx, [esp + 0x25c]
mov dword [esp + 0x2c], eax
xor ebp, ebp
nop
lea eax, [esp + 0x44]
mov dword [esp + 4], ebp
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x154]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 0x40], 0x105
mov dword [esp + 0x44], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc ebp
sub esp, 0x20
test eax, eax
jne 0x4080c0
cmp dword [esp + 0x48], 3
jne 0x407f30
cmp dword [esp + 0x44], 0x208
jne 0x407f30
cmp byte [esp + 0x25c], 4
mov byte [esp + 0x258], 0
jne 0x407f30
lea eax, [esp + 0x260]
mov dword [esp + 8], 0x154
mov dword [esp + 4], eax
lea eax, [esp + 0x464]
mov dword [esp], eax
lea esi, [esp + 0x3b4]
call fcn.00401430
lea eax, [esp + 0x5b8]
mov edi, eax
mov ecx, 0xf
lea eax, [esp + 0x5f4]
mov dword [esp + 0x464], 0x154
rep movsd dword es:[edi], dword [esi]
mov edi, eax
lea esi, [esp + 0x3f0]
mov ecx, 0x1d
mov eax, 1
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x660]
cmp dword [esp + 0x5fc], edx
jne 0x408035
mov eax, dword [esp + 0x664]
cmp dword [esp + 0x600], eax
setne al
and eax, 0xff
mov dword [esp + 0x6dc], eax
lea eax, [esp + 0x154]
mov dword [esp + 4], eax
lea eax, [esp + 0x464]
mov dword [esp], eax
call fcn.00407990
test eax, eax
je 0x407f30
lea eax, [esp + 0x154]
mov dword [esp + 8], 0x40e47c
mov dword [esp + 4], eax
lea eax, [esp + 0x464]
mov dword [esp], eax
call fcn.00407b20
test eax, eax
je 0x407f30
lea eax, [esp + 0x4f]
mov dword [esp + 4], eax
lea eax, [esp + 0x154]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
push edx
push edx
jne 0x407f30
lea eax, [esp + 0x154]
call fcn.00406040
jmp 0x407f30
cmp eax, 0x103
jne 0x407f30
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
call eax
push eax
add esp, 0x6ec
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x4f]
lea ebx, [esp + 0x25c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x464]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0x25c], 0x105
mov dword [esp + 0x14], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Current
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x408158
mov byte [esp + 0x4f], 0
mov eax, dword [esp + 0x154]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], eax
call eax
push ecx
jmp 0x407f2c
cmp dword [esp + 0x464], 1
jne 0x408138
mov byte [esp + 0x153], 0
jmp 0x40813d