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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov rsi, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x14001a0a9
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.14000b960
nop
cmp byte [r8 + rdx + 1], 0
je 0x14001a0ef
lea rdx, str.Waiting_for_the_pending_service_stop...
lea rbx, [0x1402a6fe0]
mov rcx, rbx
call fcn.140012600
mov rax, qword [0x1402a6fe0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140013c50
movzx edx, al
mov rcx, rbx
call fcn.140013a90
mov rcx, rbx
call fcn.1400118c0
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov edi, eax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x60]
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
xor r14d, r14d
test eax, eax
jne 0x14001a1a8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.140005480
mov qword [rbp + 0x38], r14
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r14w
lea rdx, str.Cannot_query_service_state_0x
lea rcx, [rsp + 0x40]
call fcn.140009120
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
and dword [rsp + rdx + 0x58], 0xfffff9ff
or dword [rsp + rdx + 0x58], 0x800
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14001bb40
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x58], 0xfffff3ff
or dword [rsp + rcx + 0x58], 0x200
lea rcx, [rsp + 0x40]
call fcn.14000cb50
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba70
cmp dword [rbp + 0x64], 1
je 0x14001a2b4
mov eax, 0xcccccccd
mul dword [rbp + 0x78]
shr edx, 3
mov ecx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x60]
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14001a277
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.140005480
mov qword [rbp + 0x38], r14
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r14w
lea rdx, str.Cannot_query_service_state_0x
lea rcx, [rsp + 0x40]
call fcn.140009120
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
and dword [rsp + rdx + 0x58], 0xfffff9ff
or dword [rsp + rdx + 0x58], 0x800
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14001bb40
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x58], 0xfffff3ff
or dword [rsp + rcx + 0x58], 0x200
lea rcx, [rsp + 0x40]
call fcn.14000cb50
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba70
test ebx, ebx
jne 0x14001a291
cmp dword [rbp + 0x64], 1
je 0x14001a2a8
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x14001a295
jmp 0x14001a1a8
mov eax, ebx
jmp 0x14001a2b6
lea rcx, str.Service_stop_timed_out._n
call fcn.1400185d0
mov eax, 0x41d
jmp 0x14001a2b6
lea rcx, str.Service_stopped_successfully._n
call fcn.1400185d0
xor eax, eax
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.140199a10
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret