Function at 0x407720
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
lea eax, [esp + 0x40]
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 4], str.Control_PanelAppearanceClassicSchemes
mov dword [esp], 0x80000001
mov dword [esp + 0x2c], eax
call eax
sub esp, 0x14
test eax, eax
jne 0x407958
xor ebp, ebp
mov dword [esp + 0x34], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
nop
lea eax, [esp + 0x48]
mov dword [esp + 4], ebp
mov dword [esp + 0xc], eax
lea eax, [esp + 0x63]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 0x48], 0x1d
call edi
inc ebp
sub esp, 0x20
test eax, eax
jne 0x407920
lea eax, [esp + 0x44]
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], eax
lea eax, [esp + 0x63]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x2c]
call eax
sub esp, 0x14
test eax, eax
jne 0x407920
lea eax, [esp + 0x63]
mov dword [esp], eax
call fcn.004076a0
mov dword [esp + 0x3c], eax
test eax, eax
je 0x40790c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], 0
xor ebx, ebx
lea esi, [esp + 0x54]
nop
lea eax, [esp + 0x50]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 0x50], 0xe
call edi
inc ebx
sub esp, 0x20
test eax, eax
jne 0x4078e8
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x20000
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [esp + 0x2c]
call eax
sub esp, 0x14
test eax, eax
jne 0x4078e8
mov dword [esp], esi
call fcn.004076a0
mov edx, eax
test eax, eax
je 0x4078d1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x407948
mov eax, dword [esp + 0x30]
mov dword [eax], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
jmp 0x407838
cmp eax, 0x103
jne 0x407838
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov dword [eax + 4], ecx
je 0x407970
mov edx, dword [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [eax], edx
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
jmp 0x407778
cmp eax, 0x103
jne 0x407778
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, dword [esp + 0x34]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x38], edx
jmp 0x4078d1
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x3c]
lea esi, [esi]
mov dword [esp + 0x54], ebx
mov eax, esi
mov ebx, dword [ebx]
call fcn.00406170
test ebx, ebx
jne 0x407978
jmp 0x40790c