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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rsi, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x130
mov eax, dword [rcx + rdx]
test al, 1
jne 0x140013d81
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, 0x138
add rcx, rdx
xor eax, eax
mov qword [rcx], rax
call sym.iaStorAfsService.exe_private:_void___cdecl_GlobalLogger::constructor_void____ptr64
lea rcx, [0x1401b3c50]
call fcn.1400ebd30
nop
cmp byte [sym.iaStorAfsService.exe_bool_GlobalLogger::_printOnDebug], 0
je 0x140013da9
lea rdx, str.Waiting_for_the_pending_service_stop...
lea rcx, [0x14022d0e0]
call fcn.14000abf0
lea rcx, [0x14022d0e0]
call fcn.14000e410
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov edi, eax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x38]
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 0x140013e61
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x30]
call fcn.140114650
lea rcx, [rsp + 0x30]
call fcn.14000df10
nop
lea rdx, str.Cannot_query_service_state_0x
lea rcx, [rsp + 0x40]
call fcn.14000abf0
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.140016d60
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.14000e410
nop
lea rcx, [rsp + 0x30]
call fcn.140026a40
cmp dword [rbp + 0x3c], 1
je 0x140013f6f
mov eax, 0xcccccccd
mul dword [rbp + 0x50]
shr edx, 3
mov ecx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x38]
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 0x140013f32
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x30]
call fcn.140114650
lea rcx, [rsp + 0x30]
call fcn.14000df10
nop
lea rdx, str.Cannot_query_service_state_0x
lea rcx, [rsp + 0x40]
call fcn.14000abf0
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.140016d60
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.14000e410
nop
lea rcx, [rsp + 0x30]
call fcn.140026a40
test ebx, ebx
jne 0x140013f4c
cmp dword [rbp + 0x3c], 1
je 0x140013f63
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x140013f50
jmp 0x140013e61
mov eax, ebx
jmp 0x140013f71
lea rcx, str.Service_stop_timed_out._n
call fcn.140011910
mov eax, 0x41d
jmp 0x140013f71
lea rcx, str.Service_stopped_successfully._n
call fcn.140011910
xor eax, eax
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400eb3e0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret