Function at 0x4b8cb0
Capabilities:
Check for outputdebugstring error
Check if file exists
Check os version
Create service
Print debug messages
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x20a
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x41c]
push 0
push eax
mov dword [ebp - 0x424], ebx
call fcn.004dcc10
add esp, 0xc
or edi, 0xffffffff
push ebx
lea esi, [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov edx, str..Global_s
mov ecx, str.._s
lea eax, [ebp - 0x41c]
cmovae ecx, edx
push ecx
push 0x104
push eax
call fcn.0048cbf0
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004dcc10
add esp, 0x1c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x4b8d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_Return_Error__d
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0048cbf0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x424]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x420]
push 0
push 1
push 1
push 0xf01ff
push eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
push 0x534b98
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push 0x534d78
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0048cbf0
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x420], 0
jne 0x4b8ece
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push str.CreateService_Return_Error__d
push 0x105
push eax
call fcn.0048cbf0
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xf01ff
push dword [ebp - 0x424]
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push str.OpenService
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
push eax
push 0x534d78
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0048cbf0
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x420], 0
jne 0x4b8ece
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push str.OpenService_Return_Error__d
push 0x105
push eax
call fcn.0048cbf0
add esp, 0x10
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push str.StartService
mov dword [ebp - 0x424], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
push eax
push 0x534d78
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0048cbf0
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x424], 0
jne 0x4b8f50
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push str.StartService_Return_Error__d
push 0x105
push eax
call fcn.0048cbf0
add esp, 0x10
nop
push 0x12c
mov ecx, 0x54e028
call fcn.004af310
test eax, eax
jne 0x4b8f93
push eax
push 0x80
push 3
push eax
push 1
push 0xc0000000
lea eax, [ebp - 0x41c]
dec esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b8fd5
call ebx
cmp eax, 2
jne 0x4b8fd5
test esi, esi
jg 0x4b8f50
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x420]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4b8fac
push eax
call esi
push dword [ebp - 0x42c]
call esi
cmp edi, 0xffffffff
je 0x4b8fc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 8
mov ebx, 1
jmp 0x4b8f99