Function at 0x1400156b0
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 [0x14027ef78]
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 0x140015719
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.140004bb0
nop
cmp byte [r8 + rdx + 1], 0
je 0x140015740
lea rdx, str.Waiting_for_the_pending_service_stop...
lea rcx, [0x1402868a0]
call fcn.14000e600
lea rcx, [0x1402868a0]
call fcn.14000e9f0
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 0x1400157f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.140005ff0
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.1400104d0
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.1400170a0
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.140006820
nop
lea rcx, [rsp + 0x30]
call fcn.140004cc0
cmp dword [rbp + 0x64], 1
je 0x140015905
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 0x1400158c8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.140005ff0
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.1400104d0
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.1400170a0
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.140006820
nop
lea rcx, [rsp + 0x30]
call fcn.140004cc0
test ebx, ebx
jne 0x1400158e2
cmp dword [rbp + 0x64], 1
je 0x1400158f9
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x1400158e6
jmp 0x1400157f9
mov eax, ebx
jmp 0x140015907
lea rcx, str.Service_stop_timed_out._n
call fcn.140013d70
mov eax, 0x41d
jmp 0x140015907
lea rcx, str.Service_stopped_successfully._n
call fcn.140013d70
xor eax, eax
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.14017e000
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret