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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbf50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5ac
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 - 0x2c], eax
lea eax, [ebp - 0x2b8]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x2b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x30], edx
cmp eax, edx
jge 0x4b3042
mov cl, byte [ebp + eax - 0x2b8]
cmp cl, 0x5c
mov byte [ebp + eax - 0x178], cl
je 0x4b3042
inc eax
jmp 0x4b3028
mov byte [ebp + eax - 0x177], 0
lea edi, [ebp - 0x178]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x5b8]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x5b8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
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]
mov ecx, edx
lea eax, [ebp - 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push closesocket
push esi
push ebx
push closesocket
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b340f
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
push 0
push 0
mov eax, 0x80
push 0
lea ecx, [ebp - 0x38]
push 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov dword [ebp - 0x34], eax
je 0x4b33fd
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push ecx
push closesocket
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x3b8]
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
push ecx
push edx
push 0
push str.ObjectName
push eax
mov dword [ebp - 0x18], 1
call edi
test eax, eax
jne 0x4b33f0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x3b8]
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push str.DisplayName
push ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0x80
call edi
mov eax, dword [ebp + 8]
lea edx, [esi + esi*2]
shl edx, 7
push ebx
push str.HKLMSYSTEMCurrentControlSetServices_s
lea esi, [edx + eax]
push esi
call fcn.004f175f
add esp, 0xc
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x20]
push edx
push eax
push 0
push str.ImagePath
push ecx
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x1c], 0x100
call edi
test eax, eax
jne 0x4b33b7
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x138]
mov byte [ebp - 4], 1
not ecx
dec ecx
cmp al, 0x22
mov edi, ecx
jne 0x4b31f8
xor eax, eax
cmp eax, edi
jge 0x4b31f0
mov dl, byte [ebp + eax - 0x137]
mov byte [ebp + eax - 0x138], dl
inc eax
jmp 0x4b31db
mov byte [ebp + edi - 0x13a], 0
cmp byte [ebp - 0x138], 0x25
jne 0x4b336d
cmp byte [ebp - 0x137], 0x50
jne 0x4b323e
lea eax, [edi + 1]
test eax, eax
jle 0x4b3226
mov cl, byte [ebp + eax - 0x138]
mov byte [ebp + eax - 0x136], cl
dec eax
jmp 0x4b3211
xor eax, eax
cmp eax, 0x10
jge 0x4b323e
mov dl, byte [ebp + eax - 0x5b8]
mov byte [ebp + eax - 0x138], dl
inc eax
jmp 0x4b3228
cmp byte [ebp - 0x137], 0x70
jne 0x4b3277
lea eax, [edi + 1]
test eax, eax
jle 0x4b325f
mov cl, byte [ebp + eax - 0x138]
mov byte [ebp + eax - 0x136], cl
dec eax
jmp 0x4b324a
xor eax, eax
cmp eax, 0x10
jge 0x4b3277
mov dl, byte [ebp + eax - 0x5b8]
mov byte [ebp + eax - 0x138], dl
inc eax
jmp 0x4b3261
cmp byte [ebp - 0x137], 0x53
jne 0x4b32e0
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x4b32a0
mov cl, byte [ebp + eax - 0x138]
inc edx
mov byte [ebp + eax - 0x184], cl
inc eax
jmp 0x4b3287
xor eax, eax
mov esi, dword [ebp - 0x30]
cmp eax, esi
jge 0x4b32ba
mov cl, byte [ebp + eax - 0x2b8]
mov byte [ebp + eax - 0x138], cl
inc eax
jmp 0x4b32a2
xor eax, eax
cmp eax, edx
jge 0x4b32d4
mov bl, byte [ebp + eax - 0x178]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x138], bl
jmp 0x4b32bc
add edx, esi
mov byte [ebp + edx - 0x138], 0
jmp 0x4b32e3
mov esi, dword [ebp - 0x30]
cmp byte [ebp - 0x137], 0x73
jne 0x4b3347
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x4b330c
mov cl, byte [ebp + eax - 0x138]
inc edx
mov byte [ebp + eax - 0x1c4], cl
inc eax
jmp 0x4b32f3
xor eax, eax
cmp eax, esi
jge 0x4b3323
mov cl, byte [ebp + eax - 0x2b8]
mov byte [ebp + eax - 0x138], cl
inc eax
jmp 0x4b330e
xor eax, eax
cmp eax, edx
jge 0x4b333d
mov bl, byte [ebp + eax - 0x1b8]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x138], bl
jmp 0x4b3325
add edx, esi
mov byte [ebp + edx - 0x138], 0
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x139]
mov cl, byte [ebp + ecx - 0x139]
cmp cl, 0x5c
jne 0x4b336d
mov byte [eax], 0
lea edx, [ebp - 0x138]
push edx
call fcn.004fa6c0
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov edi, eax
xor eax, eax
lea ecx, [edx + edx*2]
add esp, 4
shl ecx, 7
mov dword [ebp - 4], 0
lea ebx, [ecx + esi + 0x80]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4b33e2
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, 0xff
mov dword [ebp - 0x14], edx
mov esi, edx
je 0x4b340f
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
inc edx
cmp eax, 0x103
mov dword [ebp - 0x24], edx
jne 0x4b30c6
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
push eax
mov dword [edx], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2c]
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