Function at 0x4421f0
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 [0x511070]
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
call fcn.004a83c0
or edi, 0xffffffff
mov dword [ebp - 0x428], 0
add esp, 0xc
lea esi, [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
lea eax, [ebp - 0x41c]
push ebx
jb 0x442250
push str..Global_s
jmp 0x442255
push str.._s
push 0x104
push eax
call fcn.004385e0
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call fcn.004a83c0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x4422c7
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.004385e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x420]
push 0
push 1
push 1
push 0xf01ff
push ebx
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
push str.CreateService
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f0bac
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004385e0
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x420], 0
jne 0x44241f
push dword [ebp - 0x424]
lea eax, [ebp - 0x210]
push str.CreateService_Return_Error__d
push 0x105
push eax
call fcn.004385e0
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xf01ff
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.OpenService
mov dword [ebp - 0x420], eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f0bac
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004385e0
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call ebx
cmp dword [ebp - 0x420], 0
jne 0x44241f
push dword [ebp - 0x424]
lea eax, [ebp - 0x210]
push str.OpenService_Return_Error__d
push 0x105
push eax
call fcn.004385e0
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x42c]
call esi
cmp edi, 0xffffffff
je 0x442406
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x428]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a578d
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]
mov ebx, eax
push str.StartService
mov dword [ebp - 0x428], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f0bac
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004385e0
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
jne 0x4424a0
push dword [ebp - 0x424]
lea eax, [ebp - 0x210]
push str.StartService_Return_Error__d
push 0x105
push eax
call fcn.004385e0
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov eax, dword [0x5153f0]
test eax, eax
je 0x4424bf
push 0x12c
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4424fd
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x41c]
dec esi
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x4424f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4424f3
test esi, esi
jg 0x4424a6
jmp 0x4424fd
mov dword [ebp - 0x428], 1
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4423ec
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
jmp 0x4423f2