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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x5f8
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x5f0], rax
cmp qword [rcx + 0x28], 0
je 0x1400eb8be
mov rsi, rcx
lea rdi, [rsp + 0xb0]
mov r8d, 0x540
mov rcx, rdi
mov dl, 0xaa
call fcn.14014b2c0
mov qword [rsp + 0xa8], 0
cmp qword [rsi + 0x10], 0
je 0x1400eb8be
xor r15d, r15d
lea r12, [0x1401ff0e0]
lea r13, [0x1401833a0]
lea rbp, [0x140146610]
mov rax, qword [rsi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
cmp rdx, r8
mov rcx, rdx
cmove rcx, r15
cmp r8, rcx
jbe 0x1400eba02
mov rbx, qword [rax + 0x18]
imul r14, rcx, 0xa8
mov rcx, qword [rbx + r14 + 0x78]
test rcx, rcx
je 0x1400eb3a3
mov rax, qword [rcx + 0x18]
cmp rax, r13
je 0x1400eb310
cmp rax, rbp
jne 0x1400eb386
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400eb396
movzx eax, byte [rax + 4]
test al, al
jne 0x1400eb396
cmp qword [rcx + 0x30], 0
je 0x1400eb396
nop dword [rax]
add rbx, r14
cmp qword [rbx + 0xa0], 0
jne 0x1400eb371
mov rax, qword [rsp + 0xa8]
cmp rax, 2
jae 0x1400eb5ac
cmp rax, 2
setae sil
test rax, rax
jne 0x1400eb362
mov rcx, qword [rsp + 0x5f0]
xor rcx, rsp
call fcn.140149190
mov eax, esi
add rsp, 0x5f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0xa8]
call fcn.1400ebe00
jmp 0x1400eb33c
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x1400eb396
mov al, byte [rax + 4]
test al, al
je 0x1400eb31d
jmp 0x1400eb396
xor edx, edx
call qword [0x1402529a0]
test al, al
je 0x1400eb310
mov rax, qword [rsi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
cmp rdx, r8
mov r9d, 0
cmovne r9, rdx
cmp r8, r9
jbe 0x1400eba05
mov rcx, qword [rsp + 0xa8]
mov r8d, 8
test cl, 1
je 0x1400eb3d4
mov r8, qword [rsp + 0xb8]
imul rdx, r9, 0xa8
add rdx, qword [rax + 0x18]
mov rax, rcx
shr rax, 1
cmp rax, r8
je 0x1400eb57b
mov r8, rdi
test cl, 1
je 0x1400eb3fe
mov r8, qword [rsp + 0xb0]
imul rax, rax, 0xa8
add rax, r8
je 0x1400eba00
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movups xmm2, xmmword [rdx + 0x40]
movups xmm3, xmmword [rdx + 0x50]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
movups xmmword [rax + 0x40], xmm2
movups xmmword [rax + 0x50], xmm3
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rax + 0x60], xmm0
mov rcx, qword [rdx + 0x6d]
mov qword [rax + 0x6d], rcx
mov rcx, qword [rdx + 0x78]
mov qword [rax + 0x78], rcx
mov qword [rdx + 0x78], 0
movzx ecx, byte [rdx + 0x82]
mov byte [rax + 0x82], cl
movzx ecx, word [rdx + 0x80]
mov word [rax + 0x80], cx
mov rcx, qword [rdx + 0x88]
mov qword [rax + 0x88], rcx
mov qword [rdx + 0x88], 0
mov rcx, qword [rdx + 0x90]
mov qword [rax + 0x90], rcx
mov rcx, qword [rdx + 0x98]
mov qword [rax + 0x98], rcx
mov qword [rdx + 0x98], 0
mov rcx, qword [rdx + 0xa0]
mov qword [rax + 0xa0], rcx
add qword [rsp + 0xa8], 2
mov rax, qword [rsi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
cmp rdx, r8
mov ecx, 0
cmovne rcx, rdx
mov qword [rax], rcx
cmp r8, rcx
jbe 0x1400eba08
mov r14, qword [rax + 0x18]
imul rbx, rcx, 0xa8
mov rcx, qword [r14 + rbx + 0x98]
test rcx, rcx
jne 0x1400eb556
add r14, rbx
mov rbx, qword [r14 + 0x88]
test rbx, rbx
jne 0x1400eb54b
mov rbx, qword [r14 + 0x78]
test rbx, rbx
jne 0x1400eb562
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax]
jne 0x1400eb53c
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x1400eb884
dec qword [rsi + 0x10]
jne 0x1400eb29a
jmp 0x1400eb31d
lock dec dword [rbx + 8]
jne 0x1400eb51a
jmp 0x1400eb8c5
lock dec dword [rcx]
jne 0x1400eb50b
call fcn.140146640
jmp 0x1400eb50b
lock dec dword [rbx]
jne 0x1400eb523
mov rax, qword [rbx + 0x10]
cmp rax, r12
je 0x1400eb58d
mov rcx, rbx
call qword [0x1402529a0]
jmp 0x1400eb523
lea rcx, [rsp + 0xa8]
call fcn.1400ec890
jmp 0x1400eb4ce
mov rcx, qword [rbx + 0x28]
test rcx, rcx
jne 0x1400eb5a0
mov rcx, rbx
call fcn.140146640
jmp 0x1400eb523
lock dec dword [rcx]
jne 0x1400eb596
call fcn.140146640
jmp 0x1400eb596
cmp qword [rsi + 0x10], 0
jne 0x1400eb852
movabs r13, 0xaaaaaaaaaaaaaaaa
movabs r12, 0x8637bd05af7
cmp dword [rsi + 0x70], 0
jne 0x1400eb7ab
mov rbp, qword [rsi + 0x30]
cmp qword [rsi + 8], 0
je 0x1400eb680
mov qword [rsp + 0x58], r13
mov rax, qword [0x1402626c0]
lea rcx, [0x140136f50]
cmp rax, rcx
jne 0x1400eb9ce
lea rdi, [rsp + 0x80]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r12
jge 0x1400ebc85
imul rax, rax, 0xf4240
cqo
idiv qword [0x140272470]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x1400eb680
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x18], rcx
test rax, rax
je 0x1400eb680
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400eb66a
cmp rcx, r8
jb 0x1400eb98f
lea rdi, [rbp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400eb8b0
mov rax, qword [rsi]
mov rcx, qword [rbp + 0x30]
mov qword [rsi], rcx
mov qword [rbp + 0x30], rax
mov rax, qword [rsi + 8]
mov rcx, qword [rbp + 0x38]
mov qword [rsi + 8], rcx
mov qword [rbp + 0x38], rax
mov rax, qword [rsi + 0x10]
mov rcx, qword [rbp + 0x40]
mov qword [rsi + 0x10], rcx
mov qword [rbp + 0x40], rax
mov rax, qword [rsi + 0x18]
mov rcx, qword [rbp + 0x48]
mov qword [rsi + 0x18], rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rsi + 0x20]
mov rcx, qword [rbp + 0x50]
mov qword [rsi + 0x20], rcx
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x18]
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x1400ebbee
cmp byte [rbp + 0x148], 1
je 0x1400eba4f
mov rax, qword [rbp + 0x18]
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x1400eba0b
mov rcx, qword [rbp + 0xa8]
cmp qword [rcx + 0x10], 0
sete byte [rbp + 0x58]
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x1400eba2d
mov cl, byte [rbp + 0x118]
mov byte [rbp + 0x5b], cl
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x1400ebc0a
cmp qword [rbp + 0x98], 0
jne 0x1400eb9e4
mov rcx, qword [rbp]
mov rax, qword [rbp + 0x18]
lea rdx, [0x1401458f0]
cmp qword [rcx + 0x10], rdx
jne 0x1400eb945
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x1400ebc42
cmp byte [rbp + 0x118], 1
jne 0x1400eb95f
mov rax, qword [rbp + 0x18]
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x1400ebc26
mov al, byte [rbp + 0x138]
xor al, 1
mov byte [rbp + 0x59], al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi + 8], 0
je 0x1400eb852
mov qword [rsp + 0x58], r13
mov rax, qword [0x1402626c0]
lea rcx, [0x140136f50]
cmp rax, rcx
jne 0x1400eb9b8
lea rdi, [rsp + 0x80]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r12
jge 0x1400ebc5e
imul rax, rax, 0xf4240
cqo
idiv qword [0x140272470]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x1400eb852
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x18], rcx
test rax, rax
je 0x1400eb852
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400eb83c
cmp rcx, r8
jb 0x1400eb966
cmp qword [rsi + 0x40], 0xffffffffffffffff
je 0x1400eb865
mov rcx, qword [rsi + 0x28]
mov rdx, rsi
call fcn.1400ebf90
mov rdi, qword [rsi + 0x30]
mov al, byte [0x1402720a6]
test al, al
jne 0x1400ebcac
mov rax, qword [rsp + 0xa8]
jmp 0x1400eb32f
mov qword [rax + 0x28], 0
mov rbx, qword [rsi]
mov qword [rsi], rcx
test rbx, rbx
je 0x1400eb53c
mov rcx, rbx
call fcn.1401259b0
mov rcx, rbx
call fcn.140146640
jmp 0x1400eb53c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400eb695
xor esi, esi
jmp 0x1400eb33c
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x1401a34a0]
cmp qword [rcx + 0x10], rdx
jne 0x1400eb8e5
lea rcx, [0x1401b73f0]
cmp rax, rcx
je 0x1400eb8f8
mov rcx, rbx
mov edx, 1
call qword [0x1402529a0]
jmp 0x1400eb51a
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400eb906
lock dec dword [rcx]
je 0x1400eb93e
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400eb917
mov rax, rcx
lock dec dword [rcx]
je 0x1400eb924
mov rcx, rbx
call fcn.140146640
jmp 0x1400eb51a
mov qword [rsp + 0x50], rax
lea rcx, [rax + 8]
call fcn.1400fbb20
mov rcx, qword [rsp + 0x50]
call fcn.140146640
jmp 0x1400eb917
call fcn.140146640
jmp 0x1400eb906
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x1400ebdb6
cmp byte [rbp + 0x118], 0
jne 0x1400eb786
xor eax, eax
jmp 0x1400eb79f
mov rcx, rsi
call fcn.1400f6ba0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x1400eb852
mov rcx, rsi
call fcn.1400f6ba0
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x1400eb680
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x1402529a0]
mov rax, qword [rdi]
jmp 0x1400eb80b
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x1402529a0]
mov rax, qword [rdi]
jmp 0x1400eb639
mov rax, qword [rbp + 0x18]
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x1400ebdd2
mov al, byte [rbp + 0x118]
jmp 0x1400eb79f
ud2
int3
int3
int3
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401443a0
cmp r14d, dword [rbx]
jne 0x1400ebdf6
mov rax, qword [rbp + 0x18]
jmp 0x1400eb712
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401443a0
cmp r14d, dword [rbx]
jne 0x1400ebdf9
mov rax, qword [rbp + 0x18]
jmp 0x1400eb72f
movaps xmm0, xmmword [0x14022cb50]
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm0
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.1401b7500
mov rax, qword [rbx]
xor ebx, ebx
test rax, rax
je 0x1400ebbc7
mov r14, qword [rsp + 0x78]
cmp qword [rax + 0x20], r14
jbe 0x1400ebdf3
mov r15, qword [rax + 0x18]
mov rcx, qword [rbp + 0x18]
call fcn.140145ea0
cmp byte [rbp + 0x148], 0
je 0x1400ebdee
imul rax, r14, 0xa8
mov rcx, qword [r15 + rax + 0x20]
cmp rcx, qword [rbp + 0x140]
jge 0x1400ebac6
lea rcx, [rsp + 0x70]
call fcn.1401b63a0
mov rax, qword [rsp + 0x70]
jmp 0x1400eba6e
add r15, rax
mov rcx, qword [rbp + 0x18]
call fcn.140145ea0
cmp byte [rbp + 0x148], 1
jne 0x1400ebae2
mov byte [rbp + 0x148], 0
lea rbx, [rsp + 0x58]
mov rcx, r15
mov rdx, rbx
call fcn.1400faba0
lea r14, [rsp + 0x80]
mov rcx, r14
mov rdx, rbx
call fcn.1400b8c10
mov rcx, qword [rbp + 0x18]
call fcn.140145ea0
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0x120], xmm0
mov eax, dword [r14 + 0x10]
mov dword [rbp + 0x130], eax
cmp byte [rbp + 0x138], 0
jne 0x1400ebb33
mov byte [rbp + 0x138], 1
mov rcx, qword [rbp + 0x18]
call fcn.140145ea0
mov rcx, qword [rbp + 0x18]
mov rbx, qword [rbp + 0xa8]
call fcn.140145ea0
cmp byte [rbp + 0x138], 0
je 0x1400eba00
lea r14, [rbp + 0x120]
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x80]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
mov rcx, rbx
call fcn.1401b8020
mov rcx, qword [rbp + 0x18]
call fcn.140145ea0
mov rcx, qword [rbp + 0x18]
mov rbx, qword [rbp + 0xa0]
call fcn.140145ea0
cmp byte [rbp + 0x138], 0
je 0x1400eba00
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x80]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
mov rcx, rbx
call fcn.1401b8020
mov rbx, qword [rsp + 0x70]
movabs rax, 0xfffffffc00000000
and rax, rbx
cmp rax, qword [0x140262688]
jne 0x1400eb701
mov rcx, rbx
call fcn.140004bf0
jmp 0x1400eb701
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401443a0
cmp r14d, dword [rbx]
je 0x1400eb6f4
int3
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401443a0
cmp r14d, dword [rbx]
je 0x1400eb745
int3
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401443a0
cmp r14d, dword [rbx]
je 0x1400eb797
int3
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401443a0
cmp r14d, dword [rbx]
je 0x1400eb779
int3
mov rcx, qword [0x140272470]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400eb806
mov rcx, qword [0x140272470]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400eb634
mov rcx, qword [rdi + 0x18]
call fcn.140145e60
test al, al
je 0x1400eb877
lea rsi, [rdi + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1400ebcd7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [rdi + 0x18]
mov r14, qword [rdi + 0x40]
call fcn.140145ea0
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0xa8]
mov rbx, qword [rax + 0x10]
call fcn.140145ea0
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0xa0]
mov r15, qword [rax + 0x10]
call fcn.140145ea0
mov r13, qword [rdi + 0xb8]
mov r12, qword [rdi + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x70], 0xe6
mov al, byte [0x1402720a6]
test al, al
je 0x1400eb877
movzx esi, al
add ebx, r14d
sub r12, r13
shr r12, 3
imul ebp, r12d, 0x3cf3cf3d
add ebp, r15d
add ebp, ebx
mov ecx, dword [rdi + 8]
call fcn.1401b74d0
lea r8, [rsp + 0x58]
mov qword [r8], rax
lea rax, [rsp + 0xa4]
mov dword [rax], ebp
lea rcx, [0x140232e94]
lea rdx, [rsp + 0x80]
mov qword [rdx], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
lea rax, [0x140232a18]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0x43
lea rdx, [rsp + 0x70]
mov ecx, esi
xor r9d, r9d
call fcn.140055970
jmp 0x1400eb877
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401443a0
cmp r14d, dword [rbx]
je 0x1400eb952
int3
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401443a0
cmp r14d, dword [rbx]
je 0x1400eb9f5
int3
call fcn.1401828f0
int3
int3
int3