Function at 0x458310
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659f4c
mov eax, dword fs:[0]
push eax
sub esp, 0xafc
mov eax, dword [0x7060c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [0x67ca64]
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.005ddad0
add esp, 0xc
mov dword [ebp - 0xad0], 0x104
mov dword [ebp - 0xab8], 0
mov dword [ebp - 0xae8], 0x400
mov dword [ebp - 0xaa8], 0
lea ecx, [ebp - 0xac0]
call fcn.00462540
mov dword [ebp - 4], 0
push 0x67ca68
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0xa64]
call fcn.0045fa10
mov dword [ebp - 0xac4], eax
mov eax, dword [ebp - 0xac4]
mov dword [ebp - 0xac8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xac8]
push ecx
lea ecx, [ebp - 0xac0]
call fcn.00468c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa64]
call fcn.00462c60
lea edx, [ebp - 0xac0]
mov dword [ebp - 0xab4], edx
lea eax, [ebp - 0xaa4]
push eax
mov ecx, dword [ebp - 0xab4]
call fcn.00467370
lea ecx, [ebp - 0xacc]
push ecx
mov ecx, dword [ebp - 0xab4]
call fcn.00467b30
jmp 0x458420
lea ecx, [ebp - 0xaa4]
call fcn.00463430
lea edx, [ebp - 0xacc]
push edx
lea ecx, [ebp - 0xaa4]
call fcn.00463100
movzx eax, al
test eax, eax
je 0x4586a0
lea ecx, [ebp - 0xaa4]
call fcn.00463310
push eax
lea ecx, [ebp - 0xa9c]
call fcn.00462590
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb08]
push ecx
lea edx, [ebp - 0xaec]
push edx
lea eax, [ebp - 0xaf0]
push eax
lea ecx, [ebp - 0xaf4]
push ecx
lea edx, [ebp - 0xaf8]
push edx
lea eax, [ebp - 0xafc]
push eax
lea ecx, [ebp - 0xb00]
push ecx
lea edx, [ebp - 0xab8]
push edx
push 0
lea eax, [ebp - 0xad0]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0xa9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0xaac], eax
cmp dword [ebp - 0xaac], 0
jne 0x458674
mov dword [ebp - 0xaa0], 0
jmp 0x4584db
mov eax, dword [ebp - 0xaa0]
add eax, 1
mov dword [ebp - 0xaa0], eax
mov ecx, dword [ebp - 0xaa0]
cmp ecx, dword [ebp - 0xab8]
jae 0x458674
mov edx, dword [ebp - 0xaa8]
cmp edx, dword [ebp + 0x10]
jbe 0x4584fd
jmp 0x458674
mov eax, dword [ebp - 0xaa8]
add eax, 1
mov dword [ebp - 0xaa8], eax
mov dword [ebp - 0xad4], 0x400
lea ecx, [ebp - 0xb08]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0xad4]
push edx
lea eax, [ebp - 0xa18]
push eax
mov ecx, dword [ebp - 0xaa0]
push ecx
mov edx, dword [ebp - 0xa9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0xaac], eax
cmp dword [ebp - 0xaac], 0
jne 0x45866f
push 0x67ca84
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0xa98]
push ecx
lea edx, [ebp - 0xa48]
push edx
call fcn.00460000
add esp, 0xc
mov dword [ebp - 0xad8], eax
mov eax, dword [ebp - 0xad8]
mov dword [ebp - 0xadc], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xadc]
push ecx
lea edx, [ebp - 0xa30]
push edx
call fcn.004443a0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa48]
call fcn.0043c8a0
mov dword [ebp - 0xab0], 0
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa18]
push ecx
mov edx, dword [ebp - 0xa9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x458637
cmp dword [ebp - 0xab0], 0
je 0x458637
lea eax, [ebp - 0xa30]
push eax
lea ecx, [ebp - 0xab0]
push ecx
lea ecx, [ebp - 0xa80]
call fcn.0045f9d0
mov dword [ebp - 0xae0], eax
mov edx, dword [ebp - 0xae0]
mov dword [ebp - 0xae4], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xae4]
push eax
lea ecx, [ebp - 0xac0]
call fcn.00468c10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa80]
call fcn.00462c60
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xa18]
push edx
call fcn.0045fda0
add esp, 8
movzx eax, al
test eax, eax
je 0x458660
lea ecx, [ebp - 0xa30]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.0044eec0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa30]
call fcn.0043c8a0
jmp 0x4584cc
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0xa9c]
je 0x45868c
mov eax, dword [ebp - 0xa9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa9c]
call fcn.00462c60
jmp 0x458415
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac0]
call fcn.00462c10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c4766
mov esp, ebp
pop ebp
ret