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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10030034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x38], edx
test eax, eax
jne 0x10001222
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 4
push 0x14
xor edi, edi
push edx
push eax
mov dword [ebp - 0x2c], edi
lea esi, [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x10001258
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x38]
mov edi, eax
push edi
push str.Failed_to_call_OpenService__Error___d__lpszDriverName___s.
call fcn.10019db0
add esp, 0xc
jmp 0x100013cb
lea eax, [ebp - 0x3c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1000128e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_QueryServiceStatusEx__Error___d.
mov dword [ebp - 0x2c], eax
call fcn.10019db0
add esp, 8
or esi, 0xffffffff
jmp 0x1000133c
mov eax, dword [ebp - 0x24]
cmp eax, 3
je 0x1000129f
cmp eax, 1
jne 0x10001331
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
cmp eax, 3
jne 0x10001331
mov ecx, 0x2710
lea ecx, [ecx]
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x100012da
mov edx, 0x3e8
jmp 0x100012e3
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1000138a
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x14], eax
jbe 0x1000131a
call esi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
jmp 0x10001324
call esi
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
ja 0x10001373
mov eax, dword [ebp - 0x24]
mov ecx, 0x2710
cmp eax, 3
je 0x100012c0
mov esi, eax
cmp eax, 4
je 0x100013c4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100013a8
call edi
push dword [ebp - 0x38]
mov edi, eax
mov eax, 4
cmp edi, 0x420
push edi
push str.Failed_to_call_StartService__Error___d__lpszDriverName___s.
cmove esi, eax
call fcn.10019db0
jmp 0x100013c1
push str.start
push str.Timeout_waiting_for_service_to__s.
call fcn.10019db0
add esp, 8
or esi, 0xffffffff
jmp 0x1000133c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.Failed_to_call_QueryServiceStatusEx__Error___d.
mov dword [ebp - 0x2c], eax
call fcn.10019db0
add esp, 8
or esi, 0xffffffff
jmp 0x10001342
lea eax, [ebp - 0x2c]
push eax
push 0
push 4
mov edx, 2
mov ecx, ebx
call fcn.100010a0
mov edi, dword [ebp - 0x2c]
mov esi, eax
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 4
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b732
mov esp, ebp
pop ebp
ret 4