Function at 0x5099f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599c43
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x61094c]
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 dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x60], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x64], esi
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call fcn.004ab430
push 0
push 0
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x50], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [edi]
mov dword [ebp - 0x54], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x509cd1
inc dword [ebp - 0x54]
xor ecx, ecx
mov eax, dword [ebp - 0x54]
mov esi, 2
inc dword [ebp - 0x50]
mul esi
mov byte [ebp - 4], 1
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x58], ecx
call fcn.005541f3
mov edi, eax
add esp, 4
test edi, edi
je 0x509ac9
push dword [ebp - 0x58]
push 0
push edi
call fcn.005561e0
add esp, 0xc
jmp 0x509acb
xor edi, edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x50]
xor ecx, ecx
mul esi
mov byte [ebp - 4], 2
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x58], ecx
call fcn.005541f3
mov esi, eax
add esp, 4
test esi, esi
je 0x509b02
push dword [ebp - 0x58]
push 0
push esi
call fcn.005561e0
add esp, 0xc
jmp 0x509b04
xor esi, esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [ebp - 0x58], ecx
cmp ecx, dword [ebp - 0x18]
jae 0x509c4b
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x60]
push esi
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x509b7e
mov ecx, dword [ebp - 0x5c]
call fcn.004ab430
test esi, esi
je 0x509b61
push esi
call fcn.00469760
add esp, 4
test edi, edi
je 0x509b6e
push edi
call fcn.00469760
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.004a5a70
mov eax, dword [ebp - 0x5c]
jmp 0x509ce6
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x509b8f
cmp eax, 2
jne 0x509c42
mov ecx, esi
mov dword [ebp - 0x98], 0
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x509bc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x98]
call fcn.00425790
mov ecx, edi
mov dword [ebp - 0x80], 0
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x509c00
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x80]
call fcn.00425790
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x4c]
call fcn.005087f0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.0042eee0
mov ecx, dword [ebp - 0x58]
inc ecx
jmp 0x509b0d
test esi, esi
je 0x509c58
push esi
call fcn.00469760
add esp, 4
test edi, edi
je 0x509c65
push edi
call fcn.00469760
add esp, 4
mov esi, dword [ebp - 0x5c]
jmp 0x509cca
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.004ab340
lea ecx, [ebp - 0x4c]
call fcn.004a5a70
mov eax, esi
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.00553d2a
mov esp, ebp
pop ebp
ret 4