Function at 0x45dff0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x45e1c6
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x45e19d
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x45e171
push str.StartService____Service_start_pending.
call fcn.0045f520
add esp, 4
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x45e16a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
cmp eax, 2
jne 0x45e0fc
mov ecx, 0x2710
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x45e0aa
mov edx, 0x3e8
jmp 0x45e0b3
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x45e0f9
cmp dword [ebp - 0x14], ebx
jbe 0x45e0e0
call edi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
jmp 0x45e0ea
call edi
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
ja 0x45e0f9
mov eax, dword [ebp - 0x24]
mov ecx, 0x2710
cmp eax, 2
je 0x45e090
jmp 0x45e0fc
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x45e135
push str.StartService____StartService_success
call fcn.0045f520
mov edi, dword [ebp - 0x2c]
add esp, 4
mov ebx, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1c]
push eax
push str.StartService____Service_not_started._Current_State:__d___Exit_Code:__d
call fcn.0045f520
mov edi, dword [ebp - 0x2c]
add esp, 0xc
xor ebx, ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push str.StartService____QueryServiceStatusEx_failed
jmp 0x45e176
push str.StartService____StartService_failed
call fcn.0045f520
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push str.StartService____OpenService_failed
call fcn.0045f520
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push str.StartService____OpenSCManager_failed
call fcn.0045f520
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret