Function at 0x458660
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5864e1
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x5f01b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xf8], ebx
mov byte [ebp - 0xe1], 0
call fcn.0046b8a8
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4586ca
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xf0], eax
mov dword [ebp - 4], edi
call fcn.0046b8a8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4586f9
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xe0], eax
push esi
lea ecx, [ebp - 0xe8]
push 0x5f8fe8
push ecx
mov byte [ebp - 4], 1
call fcn.00404de0
add esp, 0xc
push eax
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.00402070
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45875a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
push ecx
push 0x20019
push edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xec], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x45878d
xor eax, eax
mov dword [ebp - 0xec], eax
jmp 0x458793
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xe8], eax
cmp eax, edi
je 0x45891a
xor esi, esi
add ebx, 0x148
lea esp, [esp]
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x32
or eax, edx
jge 0x4587db
push 0x32
lea ecx, [ebp - 0xe0]
call fcn.00401e80
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xf4], 0x32
test ecx, ecx
je 0x4588e4
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0xe8]
push 0
push 0
push 0
lea edx, [ebp - 0xf4]
push edx
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4588de
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax - 8]
push ecx
push eax
inc edi
call fcn.0055e0e1
add esp, 8
test eax, eax
js 0x4588d4
mov ecx, dword [ebp - 0xe0]
cmp eax, dword [ecx - 8]
jg 0x4588d4
push 0xc8
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0xe0]
lea edx, [ebp - 0xdc]
push 0
push edx
mov byte [eax + ecx], 0
call fcn.005610a0
mov edx, dword [ebp - 0xfc]
add esp, 0xc
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, dword [ebp - 0x100]
push edx
call fcn.00458990
cmp al, 1
jne 0x4587b0
cmp esi, 0xf
jae 0x4587b0
push 0xc8
push 0xc8
lea eax, [ebp - 0xdc]
push eax
push ebx
call fcn.005609b0
mov ecx, dword [ebp - 0xf8]
lea eax, [esi + 1]
add esp, 0x10
mov dword [ecx + 0x144], eax
mov esi, eax
add ebx, 0xc8
mov byte [ebp - 0xe1], 1
jmp 0x4587b0
push 0x80070057
call fcn.004020e0
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.0055e0e1
add esp, 8
test eax, eax
js 0x4588d4
mov ecx, dword [ebp - 0xe0]
cmp eax, dword [ecx - 8]
jg 0x4588d4
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0xe0]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xe0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458940
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xf0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458969
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xe1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055db96
mov esp, ebp
pop ebp
ret 4