Function at 0x407e30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
lea eax, [esp + 0x44]
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 8], 0
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 0x408090
mov dword [esp + 0x34], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ebp, ebp
lea esi, cs:[esi]
nop
lea eax, [esp + 0x4c]
mov dword [esp + 4], ebp
add ebp, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x76]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], 0x1d
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], eax
call edi
sub esp, 0x20
test eax, eax
jne 0x408050
lea eax, [esp + 0x48]
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], eax
lea eax, [esp + 0x76]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
call eax
sub esp, 0x14
test eax, eax
jne 0x408050
lea eax, [esp + 0x76]
mov dword [esp], eax
call fcn.00407db0
mov dword [esp + 0x3c], eax
test eax, eax
je 0x408038
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 0
xor ebx, ebx
lea esi, [esp + 0x58]
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], eax
lea esi, [esi]
lea eax, [esp + 0x54]
mov dword [esp + 4], ebx
add ebx, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x54], 0xe
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
call edi
sub esp, 0x20
test eax, eax
jne 0x408010
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x50]
mov dword [esp + 4], esi
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], 0x20000
mov dword [esp + 8], 0
call eax
sub esp, 0x14
test eax, eax
jne 0x408010
mov dword [esp], esi
call fcn.00407db0
mov edx, eax
test eax, eax
je 0x407ff3
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408080
mov eax, dword [esp + 0x30]
mov dword [eax], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
jmp 0x407f58
cmp eax, 0x103
jne 0x407f58
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
test ecx, ecx
je 0x4080b0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [eax], edx
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
jmp 0x407e90
cmp eax, 0x103
jne 0x407e90
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [esp + 0x34]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x38], edx
jmp 0x407ff3
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x3c]
lea esi, [esi]
mov dword [esp + 0x58], ebx
mov ebx, dword [ebx]
mov eax, esi
call fcn.004067f0
test ebx, ebx
jne 0x4080b8
jmp 0x408038