Function at 0x5158f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x725996
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x420], edi
lea eax, [ebp - 0x414]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SoftwareNeteaseNeteasePlugin_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], 0x3e8
mov dword [ebp - 0x414], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5159cb
mov esi, dword [ebp - 0x414]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x3f8]
mov dword [ebp - 0x420], esi
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x414], 0x3e8
push eax
push 0
push str.InstDir
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5159cb
mov eax, dword [ebp - 0x41c]
cmp eax, 1
je 0x5159af
cmp eax, 2
jne 0x5159cb
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x515ab0
cmp byte [ebp + eax - 0x3f9], 0
je 0x515ab7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0
push eax
push 0x20219
push 0
push str.SoftwareNeteaseNeteasePlugin_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x515a71
test esi, esi
je 0x515a02
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x414]
mov dword [ebp - 0x420], esi
test eax, eax
jne 0x515a71
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push str.InstDir
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x515a71
mov eax, dword [ebp - 0x41c]
cmp eax, 1
je 0x515a55
cmp eax, 2
jne 0x515a71
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x515b47
cmp byte [ebp + eax - 0x3f9], 0
je 0x515b4e
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
test esi, esi
je 0x515a93
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x3f8], 0
lea ecx, [ebp - 0x3f8]
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x400], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3fc], 0xf
mov byte [ebp - 0x410], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x515ae5
sub ecx, edx
lea eax, [ebp - 0x3f8]
push ecx
push eax
lea ecx, [ebp - 0x410]
call fcn.0044f130
mov byte [ebp - 4], 1
push 1
push 0x73b06c
lea ecx, [ebp - 0x410]
call fcn.0044ef80
movups xmm0, xmmword [ebp - 0x410]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x400]
movq qword [edi + 0x10], xmm0
jmp 0x515a88
mov byte [ebp - 0x3f8], 0
lea ecx, [ebp - 0x3f8]
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x400], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3fc], 0xf
mov byte [ebp - 0x410], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x515b80
sub ecx, edx
lea eax, [ebp - 0x3f8]
push ecx
push eax
lea ecx, [ebp - 0x410]
call fcn.0044f130
mov byte [ebp - 4], 2
jmp 0x515b05