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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x620
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x618], rax
cmp qword [rcx + 0x28], 0
je 0x1400ecb8a
mov rbx, rcx
mov eax, dword [0x14029cab0]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ecb9e
mov rax, qword [0x14029caa8]
cmp rax, 0x18
je 0x1400ecd10
cmp rax, 0x10
je 0x1400ecd3a
cmp rax, 4
je 0x1400ecd64
lea rsi, [rsp + 0x80]
mov r8d, 0x548
mov rcx, rsi
mov dl, 0xaa
call fcn.140177800
lea rax, [rsp + 0x5c0]
mov qword [rsp + 0x5c8], rsi
mov qword [rsp + 0x5e8], rsi
mov byte [rsp + 0x5c0], 1
mov qword [rsp + 0x5d0], rsi
mov qword [rsp + 0x5d8], rsi
mov qword [rsp + 0x5e0], rax
cmp qword [rbx + 0x10], 0
je 0x1400ec71a
lea r14, [rsp + 0x5d0]
xor r15d, r15d
lea r12, [0x1401d1e70]
mov rcx, qword [rbx]
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
inc rax
cmp rax, rdx
mov r8, rax
cmove r8, r15
mov r13, qword [rcx + 0x18]
imul rsi, r8, 0xa8
mov rcx, qword [r13 + rsi]
test rcx, rcx
je 0x1400ec59d
mov rax, qword [rcx + 0x18]
cmp rax, r12
jne 0x1400ec580
cmp qword [r13 + rsi + 0xa0], 0
je 0x1400ec7ac
jmp 0x1400ec790
xor edx, edx
call qword [case.0x1401d7990.0]
test al, al
je 0x1400ec55e
mov rax, qword [rbx]
mov r13, qword [rax + 0x18]
mov rdx, qword [rax]
mov rax, qword [rax + 8]
inc rax
cmp rax, rdx
mov ecx, 0
cmovne rcx, rax
imul r8, rcx, 0xa8
lea rdx, [r8 + r13]
mov rax, qword [rsp + 0x5d8]
cmp rax, qword [rsp + 0x5e0]
jae 0x1400ecb66
test rax, rax
je 0x1400ecd8e
mov rcx, qword [rdx]
mov qword [rax], rcx
mov qword [rdx], r15
movups xmm0, xmmword [rdx + 8]
movups xmm1, xmmword [rdx + 0x18]
movups xmmword [rax + 0x18], xmm1
movups xmmword [rax + 8], xmm0
lea rdi, [rax + 0x28]
lea rsi, [rdx + 0x28]
mov ecx, 0xa
rep movsq qword [rdi], qword [rsi]
mov cl, byte [rdx + 0x7c]
mov byte [rax + 0x7c], cl
mov ecx, dword [rdx + 0x78]
mov dword [rax + 0x78], ecx
mov cl, byte [r13 + r8 + 0x82]
mov byte [rax + 0x82], cl
movzx ecx, word [r13 + r8 + 0x80]
mov word [rax + 0x80], cx
mov rcx, qword [r13 + r8 + 0x88]
mov qword [rax + 0x88], rcx
mov qword [r13 + r8 + 0x88], r15
mov rcx, qword [r13 + r8 + 0x90]
mov qword [rax + 0x90], rcx
mov rcx, qword [r13 + r8 + 0x98]
mov qword [rax + 0x98], rcx
mov qword [r13 + r8 + 0x98], r15
mov rcx, qword [r13 + r8 + 0xa0]
mov qword [rax + 0xa0], rcx
add rax, 0xa8
mov qword [rsp + 0x5d8], rax
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
inc rcx
cmp rcx, qword [rax]
mov rsi, qword [rax + 0x18]
mov edx, 0
cmovne rdx, rcx
mov qword [rax + 8], rdx
imul rdi, rdx, 0xa8
mov rcx, qword [rsi + rdi + 0x98]
test rcx, rcx
jne 0x1400ec725
lea r13, [rsi + rdi]
mov rsi, qword [rsi + rdi + 0x88]
test rsi, rsi
jne 0x1400ec731
mov rcx, qword [r13]
test rcx, rcx
jne 0x1400ecb36
mov rax, qword [rbx]
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 8]
je 0x1400ec6ec
dec qword [rbx + 0x10]
jne 0x1400ec529
jmp 0x1400ec7ac
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x1400ec6dd
mov qword [rax + 0x20], 0
mov rsi, qword [rbx]
mov qword [rbx], rcx
test rsi, rsi
je 0x1400ec6dd
mov rcx, rsi
call fcn.140017270
mov rcx, rsi
call fcn.140172a44
jmp 0x1400ec6dd
mov r14, rsi
mov r15, rsi
jmp 0x1400ec7d9
lock dec dword [rcx]
jne 0x1400ec6b2
call fcn.140172a44
jmp 0x1400ec6b2
lock dec dword [rsi + 8]
jne 0x1400ec6c3
mov rcx, qword [rsi]
mov rax, qword [rcx + 8]
lea rdx, [0x1401d6b00]
cmp qword [rcx + 0x10], rdx
jne 0x1400ecc0c
lea rcx, [0x1401ed3e0]
cmp rax, rcx
jne 0x1400ecc0c
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400ec771
lock dec dword [rcx]
je 0x1400eccfc
mov rdi, qword [rsi + 0x10]
test rdi, rdi
je 0x1400ec783
lock dec dword [rdi]
je 0x1400ecbd3
mov rcx, rsi
call fcn.140172a44
jmp 0x1400ec6c3
mov rax, qword [r13 + rsi + 0x98]
test rax, rax
je 0x1400ec58c
mov al, byte [rax + 4]
test al, al
jne 0x1400ec58c
mov r14, qword [rsp + 0x5d0]
mov r15, r14
cmp r14, qword [rsp + 0x5d8]
jne 0x1400ec82e
test r15, r15
je 0x1400ecdba
cmp r14, r15
jne 0x1400eca8d
mov r15, r14
mov rsi, r14
mov qword [rsp + 0x5d8], r15
mov rax, qword [rsp + 0x5e8]
test rax, rax
je 0x1400ecb7d
cmp rax, rsi
jne 0x1400ecb7d
mov byte [rsi + 0x540], 0
cmp r15, r14
setne sil
mov rcx, qword [rsp + 0x618]
xor rcx, rsp
call fcn.1401756e0
mov eax, esi
add rsp, 0x620
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [rbx + 0x10], 0
jne 0x1400eca58
movabs r12, 0xaaaaaaaaaaaaaaaa
movabs r15, 0x8637bd05af7
cmp dword [rbx + 0x78], 0
jne 0x1400ec9b2
mov r13, qword [rbx + 0x30]
cmp qword [rbx + 8], 0
je 0x1400ec901
mov qword [rsp + 0x58], r12
mov rax, qword [0x140288f88]
lea rcx, [0x140171950]
cmp rax, rcx
jne 0x1400ecce6
lea rsi, [rsp + 0x5f0]
mov qword [rsi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi]
cmp rax, r15
jge 0x1400ecf6e
imul rax, rax, 0xf4240
cqo
idiv qword [0x14029b670]
mov qword [rsp + 0x58], rax
cmp rax, qword [rbx + 0x20]
jl 0x1400ec901
mov rax, qword [rbx + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
mov qword [rbx + 0x18], rcx
test rax, rax
je 0x1400ec901
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x1400ec8ec
cmp rcx, r8
jb 0x1400ecc87
lea rsi, [r13 + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400ecb91
mov rax, qword [rbx]
mov rcx, qword [r13 + 0x28]
mov qword [rbx], rcx
mov qword [r13 + 0x28], rax
mov rax, qword [rbx + 8]
mov rcx, qword [r13 + 0x30]
mov qword [rbx + 8], rcx
mov qword [r13 + 0x30], rax
mov rax, qword [rbx + 0x10]
mov rcx, qword [r13 + 0x38]
mov qword [rbx + 0x10], rcx
mov qword [r13 + 0x38], rax
mov rax, qword [rbx + 0x18]
mov rcx, qword [r13 + 0x40]
mov qword [rbx + 0x18], rcx
mov qword [r13 + 0x40], rax
mov rax, qword [rbx + 0x20]
mov rcx, qword [r13 + 0x48]
mov qword [rbx + 0x20], rcx
mov qword [r13 + 0x48], rax
cmp byte [r13 + 0x158], 0
jne 0x1400eceda
mov rax, qword [r13 + 0xb8]
cmp qword [rax + 0x10], 0
sete byte [r13 + 0x50]
cmp qword [r13 + 0xa8], 0
mov al, byte [r13 + 0x128]
jne 0x1400ec9a5
test al, al
je 0x1400eccc9
mov al, byte [r13 + 0x130]
xor al, 1
mov byte [r13 + 0x51], al
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rbx + 8], 0
je 0x1400eca58
mov qword [rsp + 0x58], r12
mov rax, qword [0x140288f88]
lea rcx, [0x140171950]
cmp rax, rcx
jne 0x1400eccd0
lea rsi, [rsp + 0x5f0]
mov qword [rsi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi]
cmp rax, r15
jge 0x1400ecf47
imul rax, rax, 0xf4240
cqo
idiv qword [0x14029b670]
mov qword [rsp + 0x58], rax
cmp rax, qword [rbx + 0x20]
jl 0x1400eca58
mov rax, qword [rbx + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
mov qword [rbx + 0x18], rcx
test rax, rax
je 0x1400eca58
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x1400eca43
cmp rcx, r8
jb 0x1400ecc58
cmp qword [rbx + 0x40], 0xffffffffffffffff
je 0x1400eca6b
mov rcx, qword [rbx + 0x28]
mov rdx, rbx
call fcn.1400ed090
test byte [0x140289ce0], 9
jne 0x1400ecdc2
mov r15, qword [rsp + 0x5d0]
mov r14, qword [rsp + 0x5d8]
jmp 0x1400ec7c1
mov rbx, r14
mov rcx, qword [rbx - 0x10]
test rcx, rcx
jne 0x1400ecac0
mov rsi, qword [rbx - 0x20]
test rsi, rsi
jne 0x1400ecaca
mov rcx, qword [rbx - 0xa8]
add rbx, 0xffffffffffffff58
test rcx, rcx
jne 0x1400ecb4e
cmp rbx, r15
je 0x1400ecb29
jmp 0x1400eca90
lock dec dword [rcx]
jne 0x1400eca99
jmp 0x1400ecb73
lock dec dword [rsi + 8]
jne 0x1400ecaa2
mov rcx, qword [rsi]
mov rax, qword [rcx + 8]
lea rdx, [0x1401d6b00]
cmp qword [rcx + 0x10], rdx
jne 0x1400eccb6
lea rcx, [0x1401ed3e0]
cmp rax, rcx
jne 0x1400eccb6
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400ecb0a
lock dec dword [rcx]
je 0x1400ecd06
mov rdi, qword [rsi + 0x10]
test rdi, rdi
je 0x1400ecb1c
lock dec dword [rdi]
je 0x1400ecc1f
mov rcx, rsi
call fcn.140172a44
jmp 0x1400ecaa2
mov rsi, qword [rsp + 0x5d0]
jmp 0x1400ec7d9
lock dec dword [rcx]
jne 0x1400ec6d0
mov rax, qword [rcx + 0x10]
call qword [case.0x1401d7990.0]
jmp 0x1400ec6d0
lock dec dword [rcx]
jne 0x1400ecab9
mov rax, qword [rcx + 0x10]
call qword [case.0x1401d7990.0]
jmp 0x1400ecab9
mov rcx, r14
call fcn.1400ef340
jmp 0x1400ec680
call fcn.140172a44
jmp 0x1400eca99
mov rcx, rsi
call fcn.140172a44
jmp 0x1400ec802
xor esi, esi
jmp 0x1400ec809
mov rcx, rsi
call fcn.1400ec2e0
jmp 0x1400ec916
lea rcx, [0x14029cab0]
call fcn.140172b08
cmp dword [0x14029cab0], 0xffffffff
jne 0x1400ec497
mov qword [0x14029caa8], 8
lea rcx, [0x14029cab0]
call fcn.140172aa8
jmp 0x1400ec497
mov rcx, qword [rdi + 0x20]
mov rax, qword [0x14028a5a0]
and rax, rcx
cmp rax, qword [0x14028a588]
je 0x1400ed067
mov qword [rdi + 0x20], 0
lea rcx, [rdi + 8]
call fcn.14000b2f0
mov rcx, rdi
call fcn.140172a44
jmp 0x1400ec783
mov rcx, rsi
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x1400ec6c3
mov rcx, qword [rdi + 0x20]
mov rax, qword [0x14028a5a0]
and rax, rcx
cmp rax, qword [0x14028a588]
je 0x1400ed071
mov qword [rdi + 0x20], 0
lea rcx, [rdi + 8]
call fcn.14000b2f0
mov rcx, rdi
call fcn.140172a44
jmp 0x1400ecb1c
mov rcx, rbx
call fcn.14000a600
mov rax, qword [rsp + 0x58]
mov ecx, 0x4c4b40
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov qword [rbx + 0x20], rcx
jmp 0x1400eca58
mov rcx, rbx
call fcn.14000a600
mov rax, qword [rsp + 0x58]
mov ecx, 0x4c4b40
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov qword [rbx + 0x20], rcx
jmp 0x1400ec901
mov rcx, rsi
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x1400ecaa2
xor eax, eax
jmp 0x1400ec9a5
lea rsi, [rsp + 0x58]
mov rcx, rsi
call qword [case.0x1401d7990.0]
mov rax, qword [rsi]
jmp 0x1400eca12
lea rsi, [rsp + 0x58]
mov rcx, rsi
call qword [case.0x1401d7990.0]
mov rax, qword [rsi]
jmp 0x1400ec8bb
call fcn.140172a44
jmp 0x1400ec771
call fcn.140172a44
jmp 0x1400ecb0a
mov rcx, qword [rsp + 0x618]
xor rcx, rsp
call fcn.1401756e0
mov rcx, rbx
add rsp, 0x620
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401dd660
mov rcx, qword [rsp + 0x618]
xor rcx, rsp
call fcn.1401756e0
mov rcx, rbx
add rsp, 0x620
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401dd3d0
mov rcx, qword [rsp + 0x618]
xor rcx, rsp
call fcn.1401756e0
mov rcx, rbx
add rsp, 0x620
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401dd0c0
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401b2820
xor r15d, r15d
jmp 0x1400ec802
mov rdi, qword [rbx + 0x30]
mov rax, qword [rdi + 0x10]
mov esi, dword [rax + 4]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
jne 0x1400eca78
lea rsi, [rdi + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400ed07b
mov rbx, qword [rdi + 0x38]
mov rax, qword [rdi + 0xb0]
mov rcx, qword [rdi + 0xb8]
mov r15, qword [rcx + 0x10]
mov r14, qword [rax + 0x10]
mov r12, qword [rdi + 0xd0]
mov r13, qword [rdi + 0xc8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test byte [0x140289ce0], 0x19
je 0x1400eca78
sub r12, r13
shr r12, 3
imul eax, r12d, 0x3cf3cf3d
add r15d, ebx
add r14d, r15d
add r14d, eax
mov ecx, dword [rdi]
call fcn.1401ed4c0
mov rsi, rax
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.140158d50
call sub.KERNEL32.dll_GetCurrentThreadId
movaps xmm0, xmmword [0x140261350]
lea rbx, [rsp + 0x5f0]
movaps xmmword [rbx], xmm0
movaps xmmword [rbx + 0x10], xmm0
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x20], rcx
mov word [rbx], 0x301
lea rcx, [0x14026226a]
mov qword [rbx + 8], rcx
movsxd rcx, r14d
mov qword [rbx + 0x18], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
lea rdx, [0x140289ce0]
mov cl, 0x43
mov r8, rsi
xor r9d, r9d
call fcn.1400efe20
mov rcx, rbx
call fcn.14012f900
jmp 0x1400eca78
movaps xmm0, xmmword [0x140261350]
lea rdi, [rsp + 0x70]
movaps xmmword [rdi], xmm0
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.1401de670
mov rax, qword [rdi]
test rax, rax
je 0x1400ed063
lea r14, [rsp + 0x70]
xor edi, edi
cmp byte [r13 + 0x158], 0
je 0x1400ed08a
imul rdx, qword [rsp + 0x78], 0xa8
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + rdx + 0x28]
cmp rax, qword [r13 + 0x160]
jge 0x1400ecf95
mov rcx, r14
call fcn.1401dd9d0
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x1400ecf07
jmp 0x1400ed03f
mov rcx, qword [0x14029b670]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400eca0d
mov rcx, qword [0x14029b670]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400ec8b6
add rcx, rdx
mov byte [r13 + 0x158], 0
lea rdi, [rsp + 0x58]
mov rdx, rdi
call fcn.14013b880
lea r14, [rsp + 0x5f0]
mov rcx, r14
mov rdx, rdi
call fcn.1401ed770
lea rdi, [r13 + 0x138]
cmp byte [r13 + 0x130], 0
movups xmm0, xmmword [r14]
movups xmmword [r13 + 0x138], xmm0
mov eax, dword [r14 + 0x10]
mov dword [r13 + 0x148], eax
jne 0x1400ecff0
mov byte [r13 + 0x130], 1
mov rcx, qword [r13 + 0xb8]
mov eax, dword [rdi + 0x10]
lea rdx, [rsp + 0x5f0]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [rdi]
movaps xmmword [rdx], xmm0
call fcn.1401dda50
cmp byte [r13 + 0x130], 0
je 0x1400ed088
mov rcx, qword [r13 + 0xb0]
mov eax, dword [rdi + 0x10]
lea rdx, [rsp + 0x5f0]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [rdi]
movaps xmmword [rdx], xmm0
call fcn.1401dda50
mov rdi, qword [rsp + 0x70]
mov rax, qword [0x14028a5a0]
and rax, rdi
cmp rax, qword [0x14028a588]
jne 0x1400ec972
mov rcx, rdi
call fcn.1400ebe70
jmp 0x1400ec972
xor edi, edi
jmp 0x1400ed03f
call fcn.1400ebe70
jmp 0x1400ecbee
call fcn.1400ebe70
jmp 0x1400ecc3a
mov rcx, rsi
call fcn.1400ec2e0
jmp 0x1400ecdef
ud2
call fcn.1401b36e0
int3