Function at 0x4581ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de268
mov eax, dword fs:[0]
push eax
mov eax, 0x4264
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 edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4234], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x4250], edx
lea edx, [ebp - 0x4230]
push edx
push 0x20019
xor ebx, ebx
push ebx
push eax
push ecx
mov dword [ebp - 0x4230], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4585f7
lea ecx, [ebp - 0x4270]
call fcn.00457579
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x4220]
push eax
lea eax, [ebp - 0x4218]
push eax
lea eax, [ebp - 0x4244]
push eax
push ebx
lea eax, [ebp - 0x4240]
push eax
lea eax, [ebp - 0x218]
push eax
mov esi, 0x104
mov dword [ebp - 0x4238], ebx
push ebx
jmp 0x45848e
cmp dword [ebp - 0x4244], 1
jne 0x4583f0
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
mov ecx, esp
mov dword [ebp - 0x4224], esp
push 0x4fb8f8
call fcn.0044bc85
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x4248], esp
push eax
call fcn.0044bc85
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
call fcn.00444922
pop ecx
pop ecx
cmp eax, ebx
jne 0x45845e
push ecx
mov ecx, esp
mov dword [ebp - 0x4248], esp
push 0x4fb8f4
call fcn.0044bc85
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x4224], esp
push eax
call fcn.0044bc85
mov byte [ebp - 4], 4
mov byte [ebp - 4], bl
call fcn.00444922
pop ecx
pop ecx
cmp eax, ebx
jne 0x45845e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x421c]
call fcn.0044bc85
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x421c]
call fcn.00445121
mov ecx, dword [ebp - 0x4234]
lea eax, [ebp - 0x421c]
push eax
call fcn.004575a2
lea ecx, [ebp - 0x4218]
push ecx
mov ecx, eax
call fcn.00428d50
push ecx
lea eax, [ebp - 0x421c]
mov ecx, esp
mov dword [ebp - 0x4248], esp
push eax
call fcn.004420c1
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
call fcn.00443225
pop ecx
mov dword [ebp - 0x4224], eax
cmp eax, 0xffffffff
je 0x4583e5
mov ecx, dword [ebp - 0x4250]
lea eax, [ebp - 0x4224]
push eax
call fcn.00457650
lea ecx, [ebp - 0x4218]
push ecx
mov ecx, eax
call fcn.00428d50
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x421c]
jmp 0x458459
cmp dword [ebp - 0x4244], 2
jne 0x45845e
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 - 0x4228]
call fcn.0044bc85
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4228]
push eax
lea ecx, [ebp - 0x4270]
call fcn.004575a2
lea ecx, [ebp - 0x4218]
push ecx
mov ecx, eax
call fcn.00428d50
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4228]
call fcn.0040d610
inc dword [ebp - 0x4238]
lea eax, [ebp - 0x4220]
push eax
lea eax, [ebp - 0x4218]
push eax
lea eax, [ebp - 0x4244]
push eax
push ebx
lea eax, [ebp - 0x4240]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x4238]
push dword [ebp - 0x4230]
mov dword [ebp - 0x4240], esi
mov dword [ebp - 0x4220], 0x3ffe
call edi
test eax, eax
je 0x4582a6
push dword [ebp - 0x4230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x4258]
mov eax, dword [eax]
lea ecx, [ebp - 0x4270]
push ecx
push eax
lea ecx, [ebp - 0x424c]
call fcn.004424c1
mov eax, dword [ebp - 0x424c]
mov dword [ebp - 0x422c], eax
mov eax, dword [ebp - 0x4248]
mov dword [ebp - 0x4228], eax
jmp 0x4585b6
lea ecx, [ebp - 0x421c]
call fcn.0040c7d0
mov byte [ebp - 4], 8
push dword [ebp - 0x4234]
lea eax, [ebp - 0x421c]
push eax
lea ecx, [ebp - 0x422c]
call fcn.00478005
add eax, 4
push eax
call fcn.004471bf
add esp, 0xc
lea ecx, [ebp - 0x422c]
call fcn.00478005
mov ecx, dword [ebp - 0x4234]
push eax
call fcn.004575a2
lea ecx, [ebp - 0x421c]
push ecx
mov ecx, eax
call fcn.004453ce
lea ecx, [ebp - 0x422c]
call fcn.00478005
push ecx
mov ecx, esp
mov dword [ebp - 0x4248], esp
push eax
call fcn.004420c1
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
call fcn.00443225
pop ecx
mov dword [ebp - 0x4224], eax
cmp eax, 0xffffffff
je 0x45859d
mov ecx, dword [ebp - 0x4250]
lea eax, [ebp - 0x4224]
push eax
call fcn.00457650
lea ecx, [ebp - 0x421c]
push ecx
mov ecx, eax
call fcn.004453ce
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x421c]
call fcn.0040d610
lea ecx, [ebp - 0x422c]
call fcn.004766da
lea eax, [ebp - 0x4270]
push eax
push dword [ebp - 0x4258]
lea ecx, [ebp - 0x423c]
call fcn.004424c1
lea eax, [ebp - 0x423c]
push eax
lea ecx, [ebp - 0x422c]
call fcn.0043cc0e
test al, al
je 0x4584f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4270]
call fcn.00455fce
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