Function at 0x491780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0882
mov eax, dword fs:[0]
push eax
mov eax, 0x4260
call fcn.0055f2e0
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4244], edx
lea edx, [ebp - 0x422c]
push edx
push 0x20019
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [ebp - 0x422c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x491b6e
lea eax, [ebp - 0x421d]
push eax
lea ecx, [ebp - 0x421d]
push ecx
lea ecx, [ebp - 0x426c]
call fcn.004968e0
lea edx, [ebp - 0x4228]
push edx
lea eax, [ebp - 0x4218]
push eax
lea ecx, [ebp - 0x4240]
push ecx
push ebx
lea edx, [ebp - 0x4238]
push edx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x422c]
push eax
push ebx
push ecx
mov dword [ebp - 0x4238], 0x104
mov dword [ebp - 0x4228], 0x3ffe
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x491a4d
lea ecx, [ecx]
mov eax, dword [ebp - 0x4240]
cmp eax, 1
jne 0x49198f
mov edx, dword [ebp - 0x4228]
lea ecx, [ebp - 0x218]
shr edx, 1
xor eax, eax
push 0x104
push ecx
mov word [ebp + edx*2 - 0x4218], ax
call fcn.00564615
add esp, 4
mov ecx, esp
mov dword [ebp - 0x4224], esp
push 0x5c8694
call fcn.00426f30
push ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x423c], esp
push edx
call fcn.00426f30
mov byte [ebp - 4], bl
call fcn.00490d00
add esp, 8
cmp eax, ebx
jne 0x4919fe
push ecx
mov ecx, esp
mov dword [ebp - 0x423c], esp
push 0x5c8698
call fcn.00426f30
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x4224], esp
push eax
call fcn.00426f30
mov byte [ebp - 4], bl
call fcn.00490d00
add esp, 8
cmp eax, ebx
jne 0x4919fe
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x421c]
call fcn.00426f30
lea ecx, [ebp - 0x421c]
mov byte [ebp - 4], 3
call fcn.00446840
lea edx, [ebp - 0x4218]
push edx
lea eax, [ebp - 0x421c]
push eax
mov ecx, edi
call fcn.00495700
mov ecx, eax
call fcn.00427020
push ecx
lea edx, [ebp - 0x421c]
mov ecx, esp
mov dword [ebp - 0x423c], esp
push edx
call fcn.00426f00
call fcn.004909c0
add esp, 4
mov dword [ebp - 0x4224], eax
cmp eax, 0xffffffff
je 0x491987
lea eax, [ebp - 0x4218]
push eax
lea ecx, [ebp - 0x4224]
push ecx
mov ecx, dword [ebp - 0x4244]
call fcn.00495a60
mov ecx, eax
call fcn.00427020
lea ecx, [ebp - 0x421c]
jmp 0x4919f6
cmp eax, 2
jne 0x4919fe
mov edx, dword [ebp - 0x4228]
lea ecx, [ebp - 0x218]
shr edx, 1
xor eax, eax
push 0x104
push ecx
mov word [ebp + edx*2 - 0x4218], ax
call fcn.00564615
add esp, 8
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x4230]
call fcn.00426f30
lea eax, [ebp - 0x4218]
push eax
lea ecx, [ebp - 0x4230]
push ecx
lea ecx, [ebp - 0x426c]
mov byte [ebp - 4], 4
call fcn.00495700
mov ecx, eax
call fcn.00427020
lea ecx, [ebp - 0x4230]
mov byte [ebp - 4], bl
call fcn.00426fe0
lea edx, [ebp - 0x4228]
push edx
lea eax, [ebp - 0x4218]
push eax
lea ecx, [ebp - 0x4240]
push ecx
mov ecx, dword [ebp - 0x422c]
push ebx
lea edx, [ebp - 0x4238]
push edx
lea eax, [ebp - 0x218]
push eax
inc esi
push esi
push ecx
mov dword [ebp - 0x4238], 0x104
mov dword [ebp - 0x4228], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x491850
mov edx, dword [ebp - 0x422c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x4254]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x426c]
mov dword [ebp - 0x4234], ecx
mov dword [ebp - 0x4230], eax
mov bl, 5
jmp 0x491a80
mov edx, dword [ebp - 0x4254]
mov eax, dword [ebp - 0x426c]
lea ecx, [ebp - 0x424c]
push ecx
lea ecx, [ebp - 0x4234]
mov dword [ebp - 0x4248], edx
mov dword [ebp - 0x424c], eax
call fcn.00496370
test al, al
je 0x491b5c
lea ecx, [ebp - 0x421c]
call fcn.00426ee0
push edi
lea esi, [ebp - 0x4234]
mov byte [ebp - 4], bl
call fcn.00496300
mov ecx, eax
add ecx, 4
lea edx, [ebp - 0x421c]
call fcn.00490e60
add esp, 4
lea edx, [ebp - 0x421c]
push edx
call fcn.00496300
push eax
mov ecx, edi
call fcn.00495700
mov ecx, eax
call fcn.00427000
call fcn.00496300
push ecx
mov ecx, esp
mov dword [ebp - 0x423c], esp
push eax
call fcn.00426f00
call fcn.004909c0
add esp, 4
mov dword [ebp - 0x4224], eax
cmp eax, 0xffffffff
je 0x491b41
lea eax, [ebp - 0x421c]
push eax
lea ecx, [ebp - 0x4224]
push ecx
mov ecx, dword [ebp - 0x4244]
call fcn.00495a60
mov ecx, eax
call fcn.00427000
lea ecx, [ebp - 0x421c]
call fcn.00426fe0
lea ecx, [ebp - 0x4234]
call fcn.00497820
jmp 0x491a80
lea ecx, [ebp - 0x426c]
mov dword [ebp - 4], 0xffffffff
call fcn.004902c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret