Function at 0x140006a08
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rcx, qword [0x14014dd40]
lea r12, [0x14014dd40]
cmp rcx, r12
je 0x140006a6b
test byte [rcx + 0x1c], 1
je 0x140006a6b
cmp byte [rcx + 0x19], 5
jb 0x140006a6b
mov rax, qword [rdx]
mov r9, r15
mov rcx, qword [rcx + 0x10]
mov dword [r11 - 0x30], r8d
mov qword [r11 - 0x38], rax
call fcn.140005794
mov rcx, qword [0x14014dd40]
xor ebp, ebp
cmp rcx, r12
je 0x140006ac4
test byte [rcx + 0x1c], 2
je 0x140006a98
cmp byte [rcx + 0x19], 5
jb 0x140006a98
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x2c]
lea r8, [0x14011a3d8]
call fcn.140003614
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x140006ac4
test byte [rcx + 0x1c], 2
je 0x140006ac4
cmp byte [rcx + 0x19], 5
jb 0x140006ac4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14011a3d8]
mov edx, 0x2d
mov r9d, 0x1f4
call fcn.1400036d4
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x140006afc
test byte [rcx + 0x1c], 2
je 0x140006afc
cmp byte [rcx + 0x19], 5
jb 0x140006afc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14011a3d8]
mov edx, 0x2e
call fcn.140003614
mov rdx, qword [r14]
mov r8d, 1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140006b51
mov edi, 1
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x140006b46
test byte [rcx + 0x1c], 2
je 0x140006b46
cmp byte [rcx + 0x19], 5
jb 0x140006b46
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x2e]
lea r8, [0x14011a3d8]
call fcn.140003614
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140006b7e
xor edi, edi
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x140006b7e
test byte [rcx + 0x1c], 2
je 0x140006b7e
cmp byte [rcx + 0x19], 5
jb 0x140006b7e
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x14011a3d8]
call fcn.140003614
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0xea60
ja 0x140006b9e
mov rcx, qword [0x14014dd40]
test edi, edi
jne 0x140006a98
jmp 0x140006bf3
mov ebp, 0x5b4
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x140006c2c
test byte [rcx + 0x1c], 2
je 0x140006bf3
cmp byte [rcx + 0x19], 2
jb 0x140006bf3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14014dd40]
lea r8, [0x14011a3d8]
mov edx, 0x31
mov dword [rsp + 0x28], 0xea60
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.1400053f0
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x140006c2c
test byte [rcx + 0x1c], 1
je 0x140006c2c
movzx r9d, byte [rcx + 0x19]
mov eax, ebp
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x140006c2c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14011a3d8]
mov edx, 0x32
mov r9d, ebp
call fcn.1400036d4
mov rsi, qword [r14]
or ecx, 0xffffffff
lock xadd dword [rsi - 8], ecx
sub ecx, 1
jg 0x140006c59
mov rdi, qword [rsi - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov rbx, qword [rsp + 0x60]
mov eax, ebp
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret