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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4af6f0]
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 0x468036
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x46800d
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x467fe1
push str.StartService____Service_start_pending.
call fcn.00469390
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 0x467fda
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 0x467f6c
mov ecx, 0x2710
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x467f1a
mov edx, 0x3e8
jmp 0x467f23
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 0x467f69
cmp dword [ebp - 0x14], ebx
jbe 0x467f50
call edi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
jmp 0x467f5a
call edi
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
ja 0x467f69
mov eax, dword [ebp - 0x24]
mov ecx, 0x2710
cmp eax, 2
je 0x467f00
jmp 0x467f6c
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x467fa5
push str.StartService____StartService_success
call fcn.00469390
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.0046ecfa
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.00469390
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.0046ecfa
mov esp, ebp
pop ebp
ret
push str.StartService____QueryServiceStatusEx_failed
jmp 0x467fe6
push str.StartService____StartService_failed
call fcn.00469390
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.0046ecfa
mov esp, ebp
pop ebp
ret
push str.StartService____OpenService_failed
call fcn.00469390
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.0046ecfa
mov esp, ebp
pop ebp
ret
push str.StartService____OpenSCManager_failed
call fcn.00469390
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret