Function at 0x4589f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65d25c
mov eax, dword fs:[0]
push eax
sub esp, 0xafc
mov eax, dword [0x70a0c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [0x68040c]
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.005e0c30
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.00462c20
mov dword [ebp - 4], 0
push 0x680410
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0xa64]
call fcn.004600f0
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.004692f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa64]
call fcn.00463340
lea edx, [ebp - 0xac0]
mov dword [ebp - 0xab4], edx
lea eax, [ebp - 0xaa4]
push eax
mov ecx, dword [ebp - 0xab4]
call fcn.00467a50
lea ecx, [ebp - 0xacc]
push ecx
mov ecx, dword [ebp - 0xab4]
call fcn.00468210
jmp 0x458b00
lea ecx, [ebp - 0xaa4]
call fcn.00463b10
lea edx, [ebp - 0xacc]
push edx
lea ecx, [ebp - 0xaa4]
call fcn.004637e0
movzx eax, al
test eax, eax
je 0x458d80
lea ecx, [ebp - 0xaa4]
call fcn.004639f0
push eax
lea ecx, [ebp - 0xa9c]
call fcn.00462c70
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 0x458d54
mov dword [ebp - 0xaa0], 0
jmp 0x458bbb
mov eax, dword [ebp - 0xaa0]
add eax, 1
mov dword [ebp - 0xaa0], eax
mov ecx, dword [ebp - 0xaa0]
cmp ecx, dword [ebp - 0xab8]
jae 0x458d54
mov edx, dword [ebp - 0xaa8]
cmp edx, dword [ebp + 0x10]
jbe 0x458bdd
jmp 0x458d54
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 0x458d4f
push 0x680414
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0xa98]
push ecx
lea edx, [ebp - 0xa48]
push edx
call fcn.004606e0
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.00444aa0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa48]
call fcn.0043cfa0
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 0x458d17
cmp dword [ebp - 0xab0], 0
je 0x458d17
lea eax, [ebp - 0xa30]
push eax
lea ecx, [ebp - 0xab0]
push ecx
lea ecx, [ebp - 0xa80]
call fcn.004600b0
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.004692f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa80]
call fcn.00463340
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xa18]
push edx
call fcn.00460480
add esp, 8
movzx eax, al
test eax, eax
je 0x458d40
lea ecx, [ebp - 0xa30]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.0044f5c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa30]
call fcn.0043cfa0
jmp 0x458bac
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0xa9c]
je 0x458d6c
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.00463340
jmp 0x458af5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac0]
call fcn.004632f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c7840
mov esp, ebp
pop ebp
ret