Function at 0x4b9460
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 [0x550144]
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.004e0230
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.0048d050
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004e0230
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 0x4b9532
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.0048d050
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
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 0x538cc8
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 0x538ea8
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0048d050
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x420], 0
jne 0x4b967e
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push str.CreateService_Return_Error__d
push 0x105
push eax
call fcn.0048d050
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 0x538ea8
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0048d050
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x420], 0
jne 0x4b967e
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push str.OpenService_Return_Error__d
push 0x105
push eax
call fcn.0048d050
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.004de46d
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 0x538ea8
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0048d050
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x424], 0
jne 0x4b9700
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push str.StartService_Return_Error__d
push 0x105
push eax
call fcn.0048d050
add esp, 0x10
nop
push 0x12c
mov ecx, 0x553028
call fcn.004af720
test eax, eax
jne 0x4b9743
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 0x4b9785
call ebx
cmp eax, 2
jne 0x4b9785
test esi, esi
jg 0x4b9700
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x420]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4b975c
push eax
call esi
push dword [ebp - 0x42c]
call esi
cmp edi, 0xffffffff
je 0x4b9770
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.004de46d
mov esp, ebp
pop ebp
ret 8
mov ebx, 1
jmp 0x4b9749