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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0xc], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x42e5cd
cmp dword [ebp + 0x10], 0
je 0x42e5c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x42e5b1
jmp 0x42e71d
push 0xf01ff
mov ecx, dword [ebp - 0x38]
add ecx, 4
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42e60e
cmp dword [ebp + 0x10], 0
je 0x42e603
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x42e5f2
jmp 0x42e71d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42e645
cmp dword [ebp + 0x10], 0
je 0x42e63a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x42e629
jmp 0x42e71d
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42e678
cmp dword [ebp + 0x10], 0
je 0x42e66d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
xor eax, eax
test eax, eax
jne 0x42e65c
jmp 0x42e71d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x24], 2
jne 0x42e707
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, 0xa
div ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3e8
jae 0x42e6ae
mov dword [ebp - 0x30], 0x3e8
jmp 0x42e6be
cmp dword [ebp - 0x30], 0x2710
jbe 0x42e6be
mov dword [ebp - 0x30], 0x2710
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42e6dc
jmp 0x42e707
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x2c]
jbe 0x42e6f5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x42e705
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jbe 0x42e705
jmp 0x42e707
jmp 0x42e687
xor ecx, ecx
cmp dword [ebp - 0x24], 4
sete cl
mov dword [ebp - 8], ecx
xor edx, edx
test edx, edx
jne 0x42e599
cmp dword [ebp - 0xc], 0
je 0x42e72d
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x34], 0
je 0x42e73d
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc