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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbf60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x654
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 - 0x20], esi
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x18], eax
push 0x100
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x100
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x24], 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 edx, ecx
mov dword [ebp - 0x40], edx
cmp eax, edx
jge 0x4b3502
mov cl, byte [ebp + eax - 0x360]
cmp cl, 0x5c
mov byte [ebp + eax - 0x160], cl
je 0x4b3502
inc eax
jmp 0x4b34e8
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
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 edi, edi
push closesocket
push edi
push ebx
push closesocket
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4b39a3
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 dword [ebp - 0x30], edi
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
push 0
push ecx
push ebx
mov esi, 0x100
push edx
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov dword [ebp - 0x48], eax
je 0x4b3987
push ebx
call fcn.004fa6c0
mov ecx, dword [ebp - 0x1c]
push eax
push str.SYSTEMCurrentControlSetServices_sParameters
push ecx
call fcn.004f175f
push ebx
call fcn.004fa6c0
mov edx, dword [ebp - 0x24]
push eax
push str.SYSTEMCurrentControlSetServices_s
push edx
call fcn.004f175f
mov ecx, dword [ebp - 0x1c]
add esp, 0x20
lea eax, [ebp - 0x2c]
push eax
push closesocket
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [ebp - 0x34], 1
jne 0x4b397a
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x148]
push edx
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push eax
push ecx
push 0
push str.ServiceDll
push edx
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b3977
mov edi, dword [ebp - 0x30]
or ecx, 0xffffffff
inc edi
mov dword [ebp - 0x30], 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 0x4b36af
xor eax, eax
cmp eax, ebx
jge 0x4b36a7
mov cl, byte [ebp + eax - 0x147]
mov byte [ebp + eax - 0x148], cl
inc eax
jmp 0x4b3692
mov byte [ebp + ebx - 0x14a], 0
cmp byte [ebp - 0x148], 0x25
jne 0x4b3930
cmp byte [ebp - 0x147], 0x50
jne 0x4b36f5
lea eax, [ebx + 1]
test eax, eax
jle 0x4b36dd
mov dl, byte [ebp + eax - 0x148]
mov byte [ebp + eax - 0x146], dl
dec eax
jmp 0x4b36c8
xor eax, eax
cmp eax, 0x10
jge 0x4b36f5
mov cl, byte [ebp + eax - 0x460]
mov byte [ebp + eax - 0x148], cl
inc eax
jmp 0x4b36df
cmp byte [ebp - 0x147], 0x70
jne 0x4b372e
lea eax, [ebx + 1]
test eax, eax
jle 0x4b3716
mov dl, byte [ebp + eax - 0x148]
mov byte [ebp + eax - 0x146], dl
dec eax
jmp 0x4b3701
xor eax, eax
cmp eax, 0x10
jge 0x4b372e
mov cl, byte [ebp + eax - 0x460]
mov byte [ebp + eax - 0x148], cl
inc eax
jmp 0x4b3718
cmp byte [ebp - 0x147], 0x53
jne 0x4b3797
xor ecx, ecx
mov eax, 0xc
lea edx, [ebx + 1]
cmp eax, edx
jg 0x4b3757
mov dl, byte [ebp + eax - 0x148]
inc ecx
mov byte [ebp + eax - 0x26c], dl
inc eax
jmp 0x4b373e
xor eax, eax
mov esi, dword [ebp - 0x40]
cmp eax, esi
jge 0x4b3771
mov dl, byte [ebp + eax - 0x360]
mov byte [ebp + eax - 0x148], dl
inc eax
jmp 0x4b3759
xor eax, eax
cmp eax, ecx
jge 0x4b378b
mov dl, byte [ebp + eax - 0x260]
lea edi, [esi + eax]
inc eax
mov byte [ebp + edi - 0x148], dl
jmp 0x4b3773
add ecx, esi
mov byte [ebp + ecx - 0x148], 0
jmp 0x4b379a
mov esi, dword [ebp - 0x40]
cmp byte [ebp - 0x147], 0x73
jne 0x4b37fe
xor ecx, ecx
mov eax, 0xc
lea edx, [ebx + 1]
cmp eax, edx
jg 0x4b37c3
mov dl, byte [ebp + eax - 0x148]
inc ecx
mov byte [ebp + eax - 0x22c], dl
inc eax
jmp 0x4b37aa
xor eax, eax
cmp eax, esi
jge 0x4b37da
mov dl, byte [ebp + eax - 0x360]
mov byte [ebp + eax - 0x148], dl
inc eax
jmp 0x4b37c5
xor eax, eax
cmp eax, ecx
jge 0x4b37f4
mov dl, byte [ebp + eax - 0x220]
lea edi, [esi + eax]
inc eax
mov byte [ebp + edi - 0x148], dl
jmp 0x4b37dc
add ecx, esi
mov byte [ebp + ecx - 0x148], 0
cmp byte [ebp - 0x147], 0x77
jne 0x4b3884
xor eax, eax
lea ecx, [ebx - 8]
cmp eax, ecx
jge 0x4b3821
mov dl, byte [ebp + eax - 0x140]
mov byte [ebp + eax - 0x1a0], dl
inc eax
jmp 0x4b3809
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 - 0x560]
push eax
push 0x50e0ec
push edx
call fcn.004f175f
lea edi, [ebp - 0x560]
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 0x4b390a
xor eax, eax
lea ecx, [ebx - 8]
cmp eax, ecx
jge 0x4b38a7
mov dl, byte [ebp + eax - 0x140]
mov byte [ebp + eax - 0x1e0], dl
inc eax
jmp 0x4b388f
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 - 0x660]
push eax
push 0x50e0ec
push edx
call fcn.004f175f
lea edi, [ebp - 0x660]
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 0x4b3930
mov byte [eax], 0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x148]
push ecx
shl esi, 8
call fcn.004fa6c0
mov edx, dword [ebp + 8]
push eax
push 0x50d39c
lea eax, [esi + edx]
push eax
call fcn.004f175f
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
push ecx
add esi, edx
push str.HKLM_s
push esi
call fcn.004f175f
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
add esp, 0x1c
inc eax
mov dword [ebp - 0x14], eax
mov edi, eax
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x20]
inc edx
cmp edi, 0xff
mov dword [ebp - 0x20], edx
jg 0x4b39a6
cmp eax, 0x103
jne 0x4b35b0
jmp 0x4b39a6
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
push edx
mov dword [ecx], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004f265f
mov eax, dword [ebp - 0x1c]
add esp, 4
push eax
call fcn.004f265f
mov ecx, dword [ebp - 0x24]
add esp, 4
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