Function at 0x458360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58539e
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5f01b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0xff
lea eax, [ebp - 0x10f]
mov edi, ecx
mov dword [ebp - 0x130], ebx
push ebx
push eax
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x114], ebx
mov byte [ebp - 0x110], bl
call fcn.005610a0
add esp, 0xc
mov dword [ebp - 0x128], 0x100
call fcn.0046b8a8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4583e5
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0x5bfe04
lea ecx, [ebp - 0x124]
push 0x5f8fd4
mov dword [ebp - 4], ebx
mov edi, 1
push ecx
mov dword [ebp - 0x130], edi
call fcn.00404ea0
push 0x5f8fd8
push eax
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 4], edi
call fcn.00404de0
push 0x5bfe04
push eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 2
call fcn.00404ea0
push esi
push eax
lea ecx, [ebp - 0x118]
push ecx
mov byte [ebp - 4], 3
call fcn.00404de0
add esp, 0x30
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45847d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4584a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4584c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x458549
mov edx, dword [0x5f8fdc]
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
push ecx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45853c
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x458520
sub eax, edx
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x11c]
call fcn.00401f50
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45856e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055db96
mov esp, ebp
pop ebp
ret