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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcf10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6d4
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
call fcn.004f266a
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x100
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x20], eax
push 0x100
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x360]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x360]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x34], ecx
cmp eax, ecx
jge 0x4eb08d
mov dl, byte [ebp + eax - 0x360]
cmp dl, 0x5c
mov byte [ebp + eax - 0x160], dl
je 0x4eb08d
inc eax
jmp 0x4eb073
mov byte [ebp + eax - 0x15f], 0
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x460]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x460]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 0x28], 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 dword [ebp - 0x14], eax
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]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x38]
push ecx
push closesocket
push eax
mov eax, str.SYSTEMCurrentControlSetServices
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4eb619
push str.begin....
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x38]
push 0
mov eax, 0x100
push 0
push 0
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
push 0
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
cmp edi, 0x103
mov dword [ebp - 0x48], edi
je 0x4eb5fd
push ebx
call fcn.004fa6c0
push eax
push str.SYSTEMCurrentControlSetServices_sParameters
push esi
call fcn.004f175f
push ebx
call fcn.004fa6c0
mov edx, dword [ebp - 0x40]
push eax
push str.SYSTEMCurrentControlSetServices_s
push edx
call fcn.004f175f
add esp, 0x20
lea eax, [ebp - 0x30]
push eax
push closesocket
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [ebp - 0x24], 1
jne 0x4eb5f3
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x148]
push ecx
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push edx
push eax
push 0
push str.ServiceDll
push ecx
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4eb5e3
mov edi, dword [ebp - 0x3c]
or ecx, 0xffffffff
inc edi
mov dword [ebp - 0x3c], edi
lea edi, [ebp - 0x148]
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x148]
not ecx
dec ecx
cmp al, 0x22
mov ebx, ecx
jne 0x4eb242
xor eax, eax
cmp eax, ebx
jge 0x4eb23a
mov dl, byte [ebp + eax - 0x147]
mov byte [ebp + eax - 0x148], dl
inc eax
jmp 0x4eb225
mov byte [ebp + ebx - 0x14a], 0
cmp byte [ebp - 0x148], 0x25
jne 0x4eb4c3
cmp byte [ebp - 0x147], 0x50
jne 0x4eb288
lea eax, [ebx + 1]
test eax, eax
jle 0x4eb270
mov cl, byte [ebp + eax - 0x148]
mov byte [ebp + eax - 0x146], cl
dec eax
jmp 0x4eb25b
xor eax, eax
cmp eax, 0x10
jge 0x4eb288
mov dl, byte [ebp + eax - 0x460]
mov byte [ebp + eax - 0x148], dl
inc eax
jmp 0x4eb272
cmp byte [ebp - 0x147], 0x70
jne 0x4eb2c1
lea eax, [ebx + 1]
test eax, eax
jle 0x4eb2a9
mov cl, byte [ebp + eax - 0x148]
mov byte [ebp + eax - 0x146], cl
dec eax
jmp 0x4eb294
xor eax, eax
cmp eax, 0x10
jge 0x4eb2c1
mov dl, byte [ebp + eax - 0x460]
mov byte [ebp + eax - 0x148], dl
inc eax
jmp 0x4eb2ab
cmp byte [ebp - 0x147], 0x53
jne 0x4eb32a
xor ecx, ecx
mov eax, 0xc
lea edx, [ebx + 1]
cmp eax, edx
jg 0x4eb2ea
mov dl, byte [ebp + eax - 0x148]
inc ecx
mov byte [ebp + eax - 0x26c], dl
inc eax
jmp 0x4eb2d1
mov esi, dword [ebp - 0x34]
xor eax, eax
cmp eax, esi
jge 0x4eb304
mov dl, byte [ebp + eax - 0x360]
mov byte [ebp + eax - 0x148], dl
inc eax
jmp 0x4eb2ef
xor eax, eax
cmp eax, ecx
jge 0x4eb31e
mov dl, byte [ebp + eax - 0x260]
lea edi, [esi + eax]
inc eax
mov byte [ebp + edi - 0x148], dl
jmp 0x4eb306
add ecx, esi
mov byte [ebp + ecx - 0x148], 0
jmp 0x4eb32d
mov esi, dword [ebp - 0x34]
cmp byte [ebp - 0x147], 0x73
jne 0x4eb391
xor ecx, ecx
mov eax, 0xc
lea edx, [ebx + 1]
cmp eax, edx
jg 0x4eb356
mov dl, byte [ebp + eax - 0x148]
inc ecx
mov byte [ebp + eax - 0x22c], dl
inc eax
jmp 0x4eb33d
xor eax, eax
cmp eax, esi
jge 0x4eb36d
mov dl, byte [ebp + eax - 0x360]
mov byte [ebp + eax - 0x148], dl
inc eax
jmp 0x4eb358
xor eax, eax
cmp eax, ecx
jge 0x4eb387
mov dl, byte [ebp + eax - 0x220]
lea edi, [esi + eax]
inc eax
mov byte [ebp + edi - 0x148], dl
jmp 0x4eb36f
add ecx, esi
mov byte [ebp + ecx - 0x148], 0
cmp byte [ebp - 0x147], 0x77
jne 0x4eb417
xor eax, eax
lea ecx, [ebx - 8]
cmp eax, ecx
jge 0x4eb3b4
mov dl, byte [ebp + eax - 0x140]
mov byte [ebp + eax - 0x1a0], dl
inc eax
jmp 0x4eb39c
lea eax, [ebp - 0x1a0]
lea ecx, [ebp - 0x360]
push eax
push ecx
mov byte [ebp + ebx - 0x1a8], 0
mov byte [ebp - 0x148], 0
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x5e0]
push eax
push 0x50e0ec
push edx
call fcn.004f175f
lea edi, [ebp - 0x5e0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x148]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x147], 0x57
jne 0x4eb49d
xor eax, eax
lea ecx, [ebx - 8]
cmp eax, ecx
jge 0x4eb43a
mov dl, byte [ebp + eax - 0x140]
mov byte [ebp + eax - 0x1e0], dl
inc eax
jmp 0x4eb422
lea eax, [ebp - 0x1e0]
lea ecx, [ebp - 0x360]
push eax
push ecx
mov byte [ebp + ebx - 0x1e8], 0
mov byte [ebp - 0x148], 0
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x6e0]
push eax
push 0x50e0ec
push edx
call fcn.004f175f
lea edi, [ebp - 0x6e0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x148]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x148]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x149]
mov cl, byte [ebp + ecx - 0x149]
cmp cl, 0x5c
jne 0x4eb4c3
mov byte [eax], 0
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov ebx, edi
lea edx, [ebp - 0x148]
shl ebx, 8
push edx
lea esi, [ebx + ecx]
call fcn.004fa6c0
push eax
push 0x50d39c
push esi
call fcn.004f175f
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004fa6c0
mov edx, dword [ebp + 0xc]
push eax
shl edi, 7
add edi, edx
push 0x50d39c
push edi
call fcn.004f175f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 4
jle 0x4eb5e3
push 0x51ed84
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4eb548
push 0x51ed80
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4eb5e3
push 0x518c30
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4eb5e3
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4eb5da
lea ecx, [esi - 0x100]
push ecx
push esi
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4eb5e3
mov ecx, dword [ebp + 8]
lea edx, [ebx + edi]
cmp byte [edx + ecx - 4], 0x2e
je 0x4eb59c
xor eax, eax
cmp eax, edi
jge 0x4eb595
cmp byte [esi + eax], 0x2e
je 0x4eb595
inc eax
jmp 0x4eb588
add ebx, eax
mov byte [ebx + ecx + 4], 0
lea eax, [ebp - 0x4e0]
push eax
push esi
call fcn.004d9590
movsx eax, ax
add esp, 8
cmp eax, 1
jle 0x4eb5e3
lea ecx, [ebp - 0x4e0]
push str.Microsoft
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4eb5e3
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0x40
mov dword [ebp - 0x14], eax
je 0x4eb619
jmp 0x4eb5e3
inc eax
cmp eax, 0x40
mov dword [ebp - 0x14], eax
je 0x4eb619
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
add eax, 2
cmp eax, 0x400
mov dword [ebp - 0x18], eax
je 0x4eb619
cmp edi, 0x103
jne 0x4eb145
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
push edx
mov dword [eax], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004f265f
mov ecx, dword [ebp - 0x20]
add esp, 4
push ecx
call fcn.004f265f
mov edx, dword [ebp - 0x40]
add esp, 4
push edx
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