Function at 0x509a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599cc3
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.004ab4a0
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 0x509d51
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.00554273
mov edi, eax
add esp, 4
test edi, edi
je 0x509b49
push dword [ebp - 0x58]
push 0
push edi
call fcn.00556260
add esp, 0xc
jmp 0x509b4b
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.00554273
mov esi, eax
add esp, 4
test esi, esi
je 0x509b82
push dword [ebp - 0x58]
push 0
push esi
call fcn.00556260
add esp, 0xc
jmp 0x509b84
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 0x509ccb
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 0x509bfe
mov ecx, dword [ebp - 0x5c]
call fcn.004ab4a0
test esi, esi
je 0x509be1
push esi
call fcn.004697f0
add esp, 4
test edi, edi
je 0x509bee
push edi
call fcn.004697f0
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.004a5af0
mov eax, dword [ebp - 0x5c]
jmp 0x509d66
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x509c0f
cmp eax, 2
jne 0x509cc2
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 0x509c40
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x98]
call fcn.00425810
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 0x509c80
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x80]
call fcn.00425810
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00508870
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.0042ef50
mov ecx, dword [ebp - 0x58]
inc ecx
jmp 0x509b8d
test esi, esi
je 0x509cd8
push esi
call fcn.004697f0
add esp, 4
test edi, edi
je 0x509ce5
push edi
call fcn.004697f0
add esp, 4
mov esi, dword [ebp - 0x5c]
jmp 0x509d4a
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.004ab3b0
lea ecx, [ebp - 0x4c]
call fcn.004a5af0
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.00553daa
mov esp, ebp
pop ebp
ret 4