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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1010f16c]
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
mov byte [ebp - 0x29], dl
call edi
push 0xf003f
push 0
push 0
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x10068b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.10005c70
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret
push 0x10024
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10068bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d__n
call fcn.10005c70
add esp, 8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100908e7
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 0x10068bf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.10005c70
add esp, 8
jmp 0x10068d08
mov eax, dword [ebp - 0x24]
cmp eax, 1
jne 0x10068c04
push str.Service_is_already_stopped._n
jmp 0x10068d00
cmp eax, 3
jne 0x10068c7e
nop dword [eax]
push str.Service_stop_pending..._n
call fcn.10005c70
mov eax, 0xcccccccd
add esp, 4
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x10068c37
mov edx, 0x3e8
jmp 0x10068c45
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 0x10068bd9
cmp dword [ebp - 0x24], 1
je 0x10068cac
call edi
sub eax, ebx
cmp eax, 0x7530
ja 0x10068ca5
cmp dword [ebp - 0x24], 3
je 0x10068c10
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10068cb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d__n
call fcn.10005c70
add esp, 8
jmp 0x10068d08
push str.Service_stop_timed_out._n
jmp 0x10068d00
push str.Service_stopped_successfully._n
jmp 0x10068d00
cmp dword [ebp - 0x24], 1
je 0x10068cfb
nop dword [eax]
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 0x10068bd9
cmp dword [ebp - 0x24], 1
je 0x10068cfb
call edi
sub eax, ebx
cmp eax, 0x7530
ja 0x10068d41
cmp dword [ebp - 0x24], 1
jne 0x10068cc0
push str.Service_stopped_successfully_n
call fcn.10005c70
add esp, 4
cmp dword [ebp - 0x24], 1
jne 0x10068d1b
cmp byte [ebp - 0x29], 0
je 0x10068d1b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x24], 1
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.100908e7
mov esp, ebp
pop ebp
ret
push str.Wait_timed_out_n
jmp 0x10068d00