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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ce110]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [0x1400d1898], rax
test rax, rax
jne 0x14000b21a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call qword [sym.imp.MSVCR120.dll_printf]
jmp 0x14000b3e6
mov r8d, 0x2c
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [0x1400d18a0], rax
test rax, rax
jne 0x14000b252
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call qword [sym.imp.MSVCR120.dll_printf]
jmp 0x14000b3d9
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
mov qword [rsp + 0x20], rcx
mov rcx, rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000b40a
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14000b28f
lea rcx, str.Service_is_already_stopped._n
jmp 0x14000b3c6
cmp eax, 3
jne 0x14000b31e
mov edi, 0x2710
nop dword [rax]
lea rcx, str.Service_stop_pending..._n
call qword [sym.imp.MSVCR120.dll_printf]
mov eax, 0xcccccccd
mul dword [rsp + 0x50]
shr edx, 3
cmp edx, 0x3e8
jae 0x14000b2c8
mov edx, 0x3e8
jmp 0x14000b2cd
cmp edx, edi
cmova edx, edi
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1400d18a0]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000b40a
cmp dword [rsp + 0x3c], 1
je 0x14000b35e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x14000b355
cmp dword [rsp + 0x3c], 3
je 0x14000b2a0
call fcn.14000b520
mov rcx, qword [0x1400d18a0]
lea r8, [rsp + 0x38]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000b367
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ControlService_failed___d__n
mov edx, eax
call qword [sym.imp.MSVCR120.dll_printf]
jmp 0x14000b3cc
lea rcx, str.Service_stop_timed_out._n
jmp 0x14000b3c6
lea rcx, str.Service_stopped_successfully._n
jmp 0x14000b3c6
cmp dword [rsp + 0x3c], 1
je 0x14000b3bf
nop
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1400d18a0]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000b40a
cmp dword [rsp + 0x3c], 1
je 0x14000b3bf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x14000b401
cmp dword [rsp + 0x3c], 1
jne 0x14000b370
lea rcx, str.Service_stopped_successfully_n
call qword [sym.imp.MSVCR120.dll_printf]
mov rcx, qword [0x1400d18a0]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [0x1400d1898]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000bf30
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
lea rcx, str.Wait_timed_out_n
jmp 0x14000b3c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.QueryServiceStatusEx_failed___d__n
mov edx, eax
call qword [sym.imp.MSVCR120.dll_printf]
jmp 0x14000b3cc