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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
push 0xf003f
push 0
push 0
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x43a8da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.00408440
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
push 0x2c
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x43a918
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d__n
call fcn.00408440
add esp, 8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x43a948
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00408440
add esp, 8
jmp 0x43aa5b
mov eax, dword [ebp - 0x24]
cmp eax, 1
jne 0x43a95a
push str.Service_is_already_stopped._n
jmp 0x43aa53
cmp eax, 3
jne 0x43a9ce
nop
push str.Service_stop_pending..._n
call fcn.00408440
mov eax, 0xcccccccd
add esp, 4
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x43a987
mov edx, 0x3e8
jmp 0x43a995
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
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 0x43a92f
cmp dword [ebp - 0x24], 1
je 0x43aa06
call edi
sub eax, ebx
cmp eax, 0x7530
ja 0x43a9ff
cmp dword [ebp - 0x24], 3
je 0x43a960
mov ecx, dword [ebp - 0x2c]
mov edx, esi
call fcn.0043a6b0
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x43aa0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d__n
call fcn.00408440
add esp, 8
jmp 0x43aa5b
push str.Service_stop_timed_out._n
jmp 0x43aa53
push str.Service_stopped_successfully._n
jmp 0x43aa53
cmp dword [ebp - 0x24], 1
je 0x43aa4e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
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 0x43a92f
cmp dword [ebp - 0x24], 1
je 0x43aa4e
call edi
sub eax, ebx
cmp eax, 0x7530
ja 0x43aa7a
cmp dword [ebp - 0x24], 1
jne 0x43aa13
push str.Service_stopped_successfully_n
call fcn.00408440
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x2c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
push str.Wait_timed_out_n
jmp 0x43aa53