Function at 0x509960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5997f3
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.004ab3b0
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 0x509c41
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.00554193
mov edi, eax
add esp, 4
test edi, edi
je 0x509a39
push dword [ebp - 0x58]
push 0
push edi
call fcn.00556180
add esp, 0xc
jmp 0x509a3b
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.00554193
mov esi, eax
add esp, 4
test esi, esi
je 0x509a72
push dword [ebp - 0x58]
push 0
push esi
call fcn.00556180
add esp, 0xc
jmp 0x509a74
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 0x509bbb
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 0x509aee
mov ecx, dword [ebp - 0x5c]
call fcn.004ab3b0
test esi, esi
je 0x509ad1
push esi
call fcn.00469710
add esp, 4
test edi, edi
je 0x509ade
push edi
call fcn.00469710
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.004a5a00
mov eax, dword [ebp - 0x5c]
jmp 0x509c56
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x509aff
cmp eax, 2
jne 0x509bb2
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 0x509b30
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 0x509b70
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.00508760
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.0042eec0
mov ecx, dword [ebp - 0x58]
inc ecx
jmp 0x509a7d
test esi, esi
je 0x509bc8
push esi
call fcn.00469710
add esp, 4
test edi, edi
je 0x509bd5
push edi
call fcn.00469710
add esp, 4
mov esi, dword [ebp - 0x5c]
jmp 0x509c3a
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.004ab2c0
lea ecx, [ebp - 0x4c]
call fcn.004a5a00
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.00553cca
mov esp, ebp
pop ebp
ret 4