Function at 0x4040e0
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 + 0x28], eax
call eax
sub esp, 0x14
test eax, eax
jne 0x404340
mov dword [esp + 0x3c], 0
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 0x4042f8
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 + 0x28]
call eax
sub esp, 0x14
test eax, eax
jne 0x4042f8
lea eax, [esp + 0x63]
mov dword [esp], eax
call fcn.00403450
mov dword [esp + 0x38], eax
test eax, eax
je 0x404378
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 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 + 0x24]
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 0x4042b0
mov eax, dword [esp + 0x24]
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 + 0x28]
call eax
sub esp, 0x14
test eax, eax
jne 0x4042b0
mov dword [esp], esi
call fcn.00403450
mov edx, eax
test eax, eax
je 0x404299
mov eax, dword [esp + 0x30]
test eax, eax
je 0x404320
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
jmp 0x404200
cmp eax, 0x103
jne 0x404200
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [eax + 4], ecx
je 0x404358
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x404330
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov dword [edx], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
jmp 0x404140
cmp eax, 0x103
jne 0x404140
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 + 0x30], edx
jmp 0x404299
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
jmp 0x4042e0
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 + 0x38]
lea esi, [esi]
mov dword [esp + 0x54], ebx
mov ebx, dword [ebx]
mov dword [esp], esi
call fcn.00403ef0
test ebx, ebx
jne 0x404360
lea esi, [esi]
mov dword [esp + 0x3c], 0
jmp 0x4042e0