Function at 0x4eaa30
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcf00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x630
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], esi
mov ebx, str.SYSTEMCurrentControlSetServices
mov dword [ebp - 0x24], esi
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2bc]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x2bc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x34], edx
cmp eax, edx
jge 0x4eaab2
mov cl, byte [ebp + eax - 0x2bc]
cmp cl, 0x5c
mov byte [ebp + eax - 0x17c], cl
je 0x4eaab2
inc eax
jmp 0x4eaa98
mov byte [ebp + eax - 0x17b], 0
lea edi, [ebp - 0x17c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x63c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x63c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 0x14], eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.Program_Files
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x28]
mov ecx, edx
push eax
push closesocket
and ecx, 3
push 0
push ebx
push closesocket
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4eafa2
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push 0
push ecx
push esi
mov edi, 0x80
push edx
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov dword [ebp - 0x38], eax
je 0x4eaf88
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push ecx
push closesocket
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push ecx
push edx
push 0
mov ebx, 1
push str.ObjectName
push eax
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x4eaf7b
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x43c]
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push str.DisplayName
push ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
call esi
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x13c]
push edx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push str.ImagePath
push edx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 0x100
call esi
test eax, eax
jne 0x4eae20
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x13c]
mov byte [ebp - 4], bl
not ecx
dec ecx
cmp al, 0x22
mov edi, ecx
jne 0x4eac44
xor eax, eax
cmp eax, edi
jge 0x4eac3c
mov cl, byte [ebp + eax - 0x13b]
mov byte [ebp + eax - 0x13c], cl
inc eax
jmp 0x4eac27
mov byte [ebp + edi - 0x13e], 0
cmp byte [ebp - 0x13c], 0x25
jne 0x4eadb9
cmp byte [ebp - 0x13b], 0x50
jne 0x4eac8a
lea eax, [edi + 1]
test eax, eax
jle 0x4eac72
mov dl, byte [ebp + eax - 0x13c]
mov byte [ebp + eax - 0x13a], dl
dec eax
jmp 0x4eac5d
xor eax, eax
cmp eax, 0x10
jge 0x4eac8a
mov cl, byte [ebp + eax - 0x63c]
mov byte [ebp + eax - 0x13c], cl
inc eax
jmp 0x4eac74
cmp byte [ebp - 0x13b], 0x70
jne 0x4eacc3
lea eax, [edi + 1]
test eax, eax
jle 0x4eacab
mov dl, byte [ebp + eax - 0x13c]
mov byte [ebp + eax - 0x13a], dl
dec eax
jmp 0x4eac96
xor eax, eax
cmp eax, 0x10
jge 0x4eacc3
mov cl, byte [ebp + eax - 0x63c]
mov byte [ebp + eax - 0x13c], cl
inc eax
jmp 0x4eacad
cmp byte [ebp - 0x13b], 0x53
jne 0x4ead2c
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x4eacec
mov cl, byte [ebp + eax - 0x13c]
inc edx
mov byte [ebp + eax - 0x188], cl
inc eax
jmp 0x4eacd3
xor eax, eax
mov esi, dword [ebp - 0x34]
cmp eax, esi
jge 0x4ead06
mov cl, byte [ebp + eax - 0x2bc]
mov byte [ebp + eax - 0x13c], cl
inc eax
jmp 0x4eacee
xor eax, eax
cmp eax, edx
jge 0x4ead20
mov bl, byte [ebp + eax - 0x17c]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x13c], bl
jmp 0x4ead08
add edx, esi
mov byte [ebp + edx - 0x13c], 0
jmp 0x4ead2f
mov esi, dword [ebp - 0x34]
cmp byte [ebp - 0x13b], 0x73
jne 0x4ead93
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x4ead58
mov cl, byte [ebp + eax - 0x13c]
inc edx
mov byte [ebp + eax - 0x1c8], cl
inc eax
jmp 0x4ead3f
xor eax, eax
cmp eax, esi
jge 0x4ead6f
mov cl, byte [ebp + eax - 0x2bc]
mov byte [ebp + eax - 0x13c], cl
inc eax
jmp 0x4ead5a
xor eax, eax
cmp eax, edx
jge 0x4ead89
mov bl, byte [ebp + eax - 0x1bc]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x13c], bl
jmp 0x4ead71
add edx, esi
mov byte [ebp + edx - 0x13c], 0
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x13d]
mov cl, byte [ebp + ecx - 0x13d]
cmp cl, 0x5c
jne 0x4eadb9
mov byte [eax], 0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
shl ebx, 8
lea ecx, [ebp - 0x13c]
lea eax, [ebx + edx]
push ecx
mov dword [ebp - 0x2c], eax
call fcn.004fa6c0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [ebp - 0x30]
mov edx, ecx
mov esi, edi
mov edi, dword [ebp - 0x2c]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004fa6c0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
shl ecx, 7
push eax
add ecx, esi
push 0x50d39c
push ecx
call fcn.004f175f
add esp, 0x14
mov dword [ebp - 4], 0
jmp 0x4eae6e
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
shl ebx, 8
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
add edx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.NULL
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x50d39c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [ebp - 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
shl ecx, 7
add ecx, esi
push ecx
call fcn.004f175f
add esp, 0xc
mov esi, dword [ebp - 0x2c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 4
jle 0x4eaf7b
push 0x50dc3c
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4eaf7b
push str.lsass
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4eaf7b
push 0x518c30
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4eaf7b
push 0x520a48
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4eaf7b
push 0x520a40
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4eaf7b
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4eaf72
lea edx, [esi - 0x100]
push edx
push esi
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4eaf7b
mov ecx, dword [ebp + 8]
lea eax, [ebx + edi]
cmp byte [eax + ecx - 4], 0x2e
je 0x4eaf34
xor eax, eax
cmp eax, edi
jge 0x4eaf2d
cmp byte [esi + eax], 0x2e
je 0x4eaf2d
inc eax
jmp 0x4eaf20
add ebx, eax
mov byte [ebx + ecx + 4], 0
lea ecx, [ebp - 0x33c]
push ecx
push esi
call fcn.004d9590
movsx eax, ax
add esp, 8
cmp eax, 1
jle 0x4eaf7b
lea edx, [ebp - 0x33c]
push str.Microsoft
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4eaf7b
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0x40
mov dword [ebp - 0x14], eax
je 0x4eafa2
jmp 0x4eaf7b
inc eax
cmp eax, 0x40
mov dword [ebp - 0x14], eax
je 0x4eafa2
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
inc ecx
cmp ecx, 0x100
mov dword [ebp - 0x24], ecx
je 0x4eafa2
cmp eax, 0x103
jne 0x4eab35
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
push eax
mov dword [ecx], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004f265f
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret