Function at 0x4589c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de326
mov eax, dword fs:[0]
push eax
mov eax, 0x4258
call fcn.004b4f50
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 0x4244], eax
call fcn.0044bf8c
push str.userprofile
lea ecx, [ebp - 0x421c]
call fcn.0044bc85
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0x421c]
push eax
mov ecx, ebx
call fcn.004575a2
mov ecx, eax
call fcn.00446840
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x421c]
call fcn.0040d610
lea ecx, [ebp - 0x4234]
call fcn.0040c7d0
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push dword [esi]
lea eax, [ebp - 0x4234]
push str._sEnvironment
push eax
call fcn.0040e3f0
add esp, 0xc
lea eax, [ebp - 0x4238]
push eax
push 0x20019
push 0
push dword [ebp - 0x4234]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x458aab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4234]
call fcn.0040d610
mov eax, edi
jmp 0x458d22
lea ecx, [ebp - 0x4264]
call fcn.00457579
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x4220]
push ecx
lea ecx, [ebp - 0x4218]
push ecx
lea ecx, [ebp - 0x423c]
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0x4240]
push ecx
lea ecx, [ebp - 0x218]
push ecx
mov esi, 0x104
mov dword [ebp - 0x421c], eax
push eax
jmp 0x458bff
cmp dword [ebp - 0x423c], 1
jne 0x458b5f
mov eax, dword [ebp - 0x4220]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x4218], cx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004b5c17
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x422c]
call fcn.0044bc85
mov byte [ebp - 4], 3
lea eax, [ebp - 0x422c]
push eax
mov ecx, ebx
call fcn.004575a2
lea ecx, [ebp - 0x4218]
push ecx
mov ecx, eax
call fcn.00428d50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x422c]
jmp 0x458bc9
cmp dword [ebp - 0x423c], 2
jne 0x458bce
mov eax, dword [ebp - 0x4220]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x4218], cx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004b5c17
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4224]
call fcn.0044bc85
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4224]
push eax
lea ecx, [ebp - 0x4264]
call fcn.004575a2
lea ecx, [ebp - 0x4218]
push ecx
mov ecx, eax
call fcn.00428d50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4224]
call fcn.0040d610
inc dword [ebp - 0x421c]
lea eax, [ebp - 0x4220]
push eax
lea eax, [ebp - 0x4218]
push eax
lea eax, [ebp - 0x423c]
push eax
push 0
lea eax, [ebp - 0x4240]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x421c]
push dword [ebp - 0x4238]
mov dword [ebp - 0x4240], esi
mov dword [ebp - 0x4220], 0x3ffe
call edi
test eax, eax
je 0x458af7
push dword [ebp - 0x4238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x424c]
mov eax, dword [eax]
lea ecx, [ebp - 0x4264]
push ecx
push eax
lea ecx, [ebp - 0x4230]
call fcn.004424c1
mov eax, dword [ebp - 0x4230]
mov dword [ebp - 0x4228], eax
mov eax, dword [ebp - 0x422c]
mov dword [ebp - 0x4224], eax
jmp 0x458ccf
lea ecx, [ebp - 0x421c]
call fcn.0040c7d0
mov byte [ebp - 4], 5
push ebx
push dword [ebp - 0x4244]
lea eax, [ebp - 0x421c]
push eax
lea ecx, [ebp - 0x4228]
call fcn.00478005
add eax, 4
push eax
call fcn.004473e8
add esp, 0x10
lea ecx, [ebp - 0x4228]
call fcn.00478005
push eax
mov ecx, ebx
call fcn.004575a2
lea ecx, [ebp - 0x421c]
push ecx
mov ecx, eax
call fcn.004453ce
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x421c]
call fcn.0040d610
lea ecx, [ebp - 0x4228]
call fcn.004766da
lea eax, [ebp - 0x4264]
push eax
push dword [ebp - 0x424c]
lea ecx, [ebp - 0x4230]
call fcn.004424c1
lea eax, [ebp - 0x4230]
push eax
lea ecx, [ebp - 0x4228]
call fcn.0043cc0e
test al, al
je 0x458c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4264]
call fcn.00455fce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4234]
call fcn.0040d610
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b48bf
leave
ret 0x10