Function at 0x14004deb0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push r15
sub rsp, 0x50
mov rax, qword [rcx + 0x6d0]
lea r10, [rdx + 0x150]
mov qword [r11 - 0x10], rbp
mov r15, rdx
mov qword [r11 - 0x18], rsi
mov rbp, rcx
mov qword [r11 - 0x20], rdi
mov rdi, qword [r10]
lea r8, [rax + rax*2]
mov qword [r11 - 0x28], r12
lea r12, [rcx + 0xca]
add rcx, 0xae8
shl r8, 4
lea rsi, [rbp + 0x6d8]
mov qword [rsp + 0x68], rcx
add r12, r8
mov rax, qword [rcx]
shl rax, 4
add rsi, rax
cmp rdi, r10
je 0x14004e15e
mov qword [r11 + 0x20], rbx
lea rdx, [rbp + 0x6ca]
mov qword [r11 - 0x30], r13
lea r8, [0x140199320]
mov qword [r11 - 0x38], r14
lea r13, [rsi + 0x10]
mov qword [rsp + 0x70], rdx
jmp 0x14004df50
mov rbp, qword [rsp + 0x60]
nop word [rax + rax]
movzx eax, byte [rdi + 0x28]
mov rbx, rdi
and eax, 0xf
mov r8, qword [r8 + rax*8]
cmp r12, rdx
jae 0x14004e145
cmp r13, rcx
jae 0x14004e145
mov ecx, dword [r15 + 0xfc]
lea rdx, [rbp + 0xc0]
sub rcx, qword [rdx]
cmp rcx, r8
jb 0x14004e145
mov rax, qword [rdi + 0x58]
lea r9, [rdi + 0x58]
test rax, rax
je 0x14004dfb3
movzx eax, word [rdi + 0x24]
add rax, r8
cmp rcx, rax
jb 0x14004e145
mov rdi, qword [rdi]
lea rdx, [rbp + 0xc0]
jmp 0x14004dfbf
mov rdi, qword [rdi]
test rax, rax
je 0x14004e07a
cmp dword [rbx + 0x20], 0
jne 0x14004e07a
mov eax, dword [r15 + 0xc0]
add eax, 7
and eax, 0x1f
mov dword [r15 + 0xc0], eax
cmp eax, dword [r15 + 0xb8]
jbe 0x14004e07a
movzx ebp, word [rbx + 0x10]
movzx r14d, word [rbx + 0x12]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x58]
dec qword [rax]
mov rcx, qword [rbx + 0x58]
cmp qword [rcx], 0
jne 0x14004e017
call qword [0x14023b740]
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, rbx
call qword [0x14023b728]
lea r10, [r15 + 0x150]
cmp rdi, r10
je 0x14004e120
lea r8, [0x140199320]
mov rcx, qword [rsp + 0x68]
mov rbx, rdi
mov rdx, qword [rsp + 0x70]
cmp word [rdi + 0x10], bp
jne 0x14004df41
lea r8, [0x140199320]
cmp word [rdi + 0x12], r14w
jne 0x14004df41
mov rdi, qword [rdi]
jmp 0x14004e000
mov qword [rsi + 8], r12
mov qword [rsi], r8
add qword [rdx], r8
movups xmm0, xmmword [rbx + 0x28]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rbx + 0x38]
movups xmmword [r12 + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x48]
movups xmmword [r12 + 0x20], xmm0
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [r9]
test rcx, rcx
je 0x14004e102
mov eax, dword [rbx + 0x20]
add rsi, 0x10
add rax, qword [rcx + 0x10]
add r13, 0x10
lea rcx, [r15 + 0x130]
add r12, 0x30
mov qword [rsi + 8], rax
movzx eax, word [rbx + 0x24]
mov qword [rsi], rax
add rsi, 0x10
add qword [rdx], rax
mov rax, qword [rcx + 8]
add r13, 0x10
mov qword [rbx + 8], rax
mov qword [rbx], rcx
mov qword [rax], rbx
mov qword [rcx + 8], rbx
jmp 0x14004e125
mov rcx, rbx
call qword [0x14023b728]
add r12, 0x30
lea r10, [r15 + 0x150]
add rsi, 0x10
add r13, 0x10
jmp 0x14004e125
mov rbp, qword [rsp + 0x60]
lea rcx, [rbp + 0xae8]
lea rdx, [rbp + 0x6ca]
lea r8, [0x140199320]
cmp rdi, r10
jne 0x14004df50
jmp 0x14004e14f
mov dword [rbp + 0xb8], 1
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x38]
sub rsi, rbp
sub r12, rbp
sub rsi, 0x6d8
sub r12, 0xca
sar rsi, 4
mov qword [rbp + 0xae8], rsi
movabs rax, 0x2aaaaaaaaaaaaaab
mov rsi, qword [rsp + 0x40]
imul r12
mov r12, qword [rsp + 0x30]
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp + 0x6d0], rdx
cmp dword [r15 + 0x40], 6
mov rbp, qword [rsp + 0x48]
jne 0x14004e1f3
lea rax, [r15 + 0x140]
cmp qword [rax], rax
jne 0x14004e1f3
lea rax, [r15 + 0x150]
cmp qword [rax], rax
jne 0x14004e1f3
lea rax, [r15 + 0x120]
cmp qword [rax], rax
jne 0x14004e1f3
mov edx, dword [r15 + 0x1f8]
mov rcx, r15
add rsp, 0x50
pop r15
jmp fcn.14004f080
add rsp, 0x50
pop r15
ret