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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r15, rdx
mov r14, rcx
mov rcx, qword [0x14017a048]
lea r13, [0x14017a048]
cmp rcx, r13
je 0x14012ea7a
test byte [rcx + 0x1c], 1
je 0x14012ea7a
cmp byte [rcx + 0x19], 4
jb 0x14012ea7a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168c08]
mov edx, 0x34
call fcn.140006b98
mov rcx, qword [0x14017a048]
xor edi, edi
mov qword [rbp + 0x40], rdi
mov qword [rbp - 0x10], rdi
mov qword [rbp + 0x48], rdi
cmp rcx, r13
je 0x14012eab4
test byte [rcx + 0x1c], 1
je 0x14012eab4
cmp byte [rcx + 0x19], 4
jb 0x14012eab4
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x35]
mov r9, r14
mov qword [rsp + 0x20], r15
lea r8, [0x140168c08]
call fcn.14003d6cc
lea r8, [rbp - 0x10]
mov rcx, r14
lea rdx, [rbp + 0x40]
call fcn.14013cdb8
mov ebx, eax
test eax, eax
jns 0x14012eafb
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14012ed47
test byte [rcx + 0x1c], 1
je 0x14012eced
cmp byte [rcx + 0x19], 2
jb 0x14012eced
mov edx, 0x36
mov r9d, eax
jmp 0x14012ecd6
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rbp + 0x48]
mov rcx, r14
call fcn.14012f4cc
mov ebx, eax
test eax, eax
jns 0x14012eb43
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14012ed47
test byte [rcx + 0x1c], 1
je 0x14012eced
cmp byte [rcx + 0x19], 2
jb 0x14012eced
mov edx, 0x37
jmp 0x14012eaf3
mov rbx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov rax, rbx
mov r8, qword [rbp - 0x10]
sub rax, rdx
sub rax, r8
mov rdi, rbx
lea rsi, [rax + r15]
sub rdi, rsi
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14012eba6
test byte [rcx + 0x1c], 1
je 0x14012eba6
cmp byte [rcx + 0x19], 4
jb 0x14012eba6
mov rcx, qword [rcx + 0x10]
mov r9, rbx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r8
call fcn.1401301f8
mov rcx, qword [0x14017a048]
cmp rsi, rbx
jb 0x14012ebdd
mov ebx, 0x80780030
cmp rcx, r13
je 0x14012ed47
test byte [rcx + 0x1c], 1
je 0x14012eced
cmp byte [rcx + 0x19], 2
jb 0x14012eced
mov edx, 0x39
mov r9d, 0x80780030
jmp 0x14012ecd6
shr rbx, 3
cmp rdi, rbx
jae 0x14012ec0f
mov ebx, 0x80780030
cmp rcx, r13
je 0x14012ed47
test byte [rcx + 0x1c], 1
je 0x14012eced
cmp byte [rcx + 0x19], 2
jb 0x14012eced
mov edx, 0x3a
jmp 0x14012ebd2
mov r8b, 1
mov rdx, rdi
mov rcx, r14
call fcn.14012fca4
mov ebx, eax
test eax, eax
jns 0x14012ec51
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14012ed47
test byte [rcx + 0x1c], 1
je 0x14012eced
cmp byte [rcx + 0x19], 2
jb 0x14012eced
mov edx, 0x3b
jmp 0x14012eaf3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov edi, eax
and qword [rbp + 0x40], 0
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov rcx, r14
call fcn.14013cdb8
mov ebx, eax
test eax, eax
js 0x14012ece6
cmp qword [rbp + 0x40], r15
ja 0x14012ed1a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, edi
cmp eax, 0x3a98
jb 0x14012ec5f
mov ebx, 0x8078005b
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14012ed47
test byte [rcx + 0x1c], 1
je 0x14012eced
cmp byte [rcx + 0x19], 2
jb 0x14012eced
mov edx, 0x3c
mov r9d, 0x8078005b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168c08]
call fcn.140006bc4
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14012ed47
test byte [rcx + 0x1c], 1
je 0x14012ed21
cmp byte [rcx + 0x19], 2
jb 0x14012ed21
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168c08]
mov edx, 0x3d
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140011330
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14012ed47
test byte [rcx + 0x1c], 1
je 0x14012ed47
cmp byte [rcx + 0x19], 4
jb 0x14012ed47
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168c08]
mov edx, 0x3e
call fcn.140006b98
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret