Function at 0x440fc0
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.004a73c0
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 0x441020
push str..Global_s
jmp 0x441025
push str.._s
push 0x104
push eax
call fcn.00438860
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call fcn.004a73c0
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 0x441097
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.00438860
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
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 0x4efb5c
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00438860
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x420], 0
jne 0x4411ef
push dword [ebp - 0x424]
lea eax, [ebp - 0x210]
push str.CreateService_Return_Error__d
push 0x105
push eax
call fcn.00438860
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 0x4efb5c
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00438860
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call ebx
cmp dword [ebp - 0x420], 0
jne 0x4411ef
push dword [ebp - 0x424]
lea eax, [ebp - 0x210]
push str.OpenService_Return_Error__d
push 0x105
push eax
call fcn.00438860
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x42c]
call esi
cmp edi, 0xffffffff
je 0x4411d6
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.004a474b
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 0x4efb5c
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00438860
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
jne 0x441270
push dword [ebp - 0x424]
lea eax, [ebp - 0x210]
push str.StartService_Return_Error__d
push 0x105
push eax
call fcn.00438860
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov eax, dword [0x515370]
test eax, eax
je 0x44128f
push 0x12c
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4412cd
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 0x4412c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4412c3
test esi, esi
jg 0x441276
jmp 0x4412cd
mov dword [ebp - 0x428], 1
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4411bc
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
jmp 0x4411c2