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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [ebp - 0x38], ecx
xor esi, esi
mov dword [ebp - 0x30], 0
call ebx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
test eax, eax
jne 0x42a71b
mov edi, 0x57
jmp 0x42a8f3
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x42a73b
lea edi, [eax + 0x6e]
jmp 0x42a8f3
lea eax, [ebp - 0x3c]
test eax, eax
je 0x42a711
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x38]
push 0x12c
add eax, 4
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42a775
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x42a8f3
jmp 0x42a777
xor edi, edi
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42a8df
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x42a8d0
mov edi, 1
cmp eax, 3
jne 0x42a84b
lea esp, [esp]
push str.Service_stop_pending..._n
call fcn.00469ff0
mov eax, 0xcccccccd
add esp, 4
mul dword [ebp - 0x14]
shr edx, 3
cmp edx, 0x3e8
jae 0x42a7d7
mov edx, 0x3e8
jmp 0x42a7e5
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42a837
cmp dword [ebp - 0x28], edi
je 0x42a830
call ebx
sub eax, dword [ebp - 0x34]
cmp eax, 0x7530
ja 0x42a81c
cmp dword [ebp - 0x28], 3
je 0x42a7b0
jmp 0x42a84b
push str.Service_stop_timed_out._n
call fcn.00469ff0
add esp, 4
mov edi, 0x5b4
jmp 0x42a84b
xor edi, edi
jmp 0x42a8f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00469ff0
add esp, 8
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
call fcn.0042ace0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42a8c0
cmp dword [ebp - 0x28], 1
je 0x42a8f3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42a8df
cmp dword [ebp - 0x28], 1
je 0x42a830
call ebx
sub eax, dword [ebp - 0x34]
cmp eax, 0x7530
ja 0x42a8ac
cmp dword [ebp - 0x28], 1
jne 0x42a872
jmp 0x42a8f3
push str.Wait_timed_out_n
call fcn.00469ff0
add esp, 4
mov edi, 0x5b4
jmp 0x42a8f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.ControlService_failed___d__n
jmp 0x42a8eb
push str.Service_is_already_stopped._n
call fcn.00469ff0
add esp, 4
jmp 0x42a8f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00469ff0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x30]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 4