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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rdi, rcx
lea rdx, str.destroying_build_queue
mov ecx, 8
call fcn.140014f80
mov rax, qword [rdi + 0x100]
xor r14d, r14d
movsxd rax, dword [rax + 0x1c]
mov qword [rsp + 0x38], rax
test rax, rax
jle 0x14001340e
mov eax, dword [rbp + 0x50]
lea rbx, [rdi + 0x230]
mov rsi, qword [rbp + 0x50]
lea r12, [rdi + 0x680]
mov r13, qword [rbp + 0x50]
mov dword [rbp + 0x58], eax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x50], rax
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x50]
mov r15, qword [rbp + 0x50]
mov dword [rbp + 0x68], eax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x60], eax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x48], r15
nop dword [rax]
cmp byte [0x14009bbec], 0
je 0x140013016
lea rsi, str.JoinBuildThread
mov dword [rbp + 0x58], r14d
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rsi
mov r13, r14
mov qword [rsp + 0x50], r14
mov dword [rbp + 0x50], 0x32
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140013855
mov rax, qword [rsp + 0x70]
xor edx, edx
sub rax, qword [0x14009c1f8]
imul rax, rax, 0xf4240
div qword [0x14009c1f0]
mov r15, rax
add r15, qword [0x14009c200]
mov qword [rsp + 0x48], r15
mov rbx, qword [rbx]
nop dword [rax]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140013020
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14009bbec], 0
je 0x1400131e3
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14001386f
mov rax, qword [rsp + 0x78]
xor edx, edx
sub rax, qword [0x14009c1f8]
movsxd rcx, dword [rbp + 0x50]
imul rax, rax, 0xf4240
div qword [0x14009c1f0]
mov r14, rax
sub r14, r15
add r14, qword [0x14009c200]
cmp r14, rcx
jb 0x140013178
movsxd rbx, dword [rbp + 0x58]
shl rbx, 6
add rbx, qword [0x1400c47e0]
cmp dword [rbx + 0x38], 0x8000
jae 0x140013178
movsxd rax, dword [rbx + 0x38]
mov edx, 0x20
inc dword [rbx + 0x38]
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x30]
lea r15, [rax + rcx*8]
mov rax, qword [rsp + 0x48]
mov qword [r15], rax
mov rcx, rsi
mov rax, qword [rsp + 0x50]
mov qword [r15 + 0x20], rax
call fcn.14004e9d4
mov rsi, rax
test rax, rax
je 0x140013124
test r13, r13
jne 0x140013124
mov rdx, qword [rsp + 0x30]
mov r8, rax
sub r8, rdx
mov rcx, rbx
call fcn.140020f90
mov qword [r15 + 0x10], rax
lea rdx, [rsi + 1]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140013110
mov rcx, rbx
call fcn.140020f90
jmp 0x140013170
mov rdx, qword [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140013130
mov rcx, rbx
call fcn.140020f90
mov qword [r15 + 0x10], rax
test r13, r13
je 0x140013169
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + r13], 0
jne 0x140013152
mov rdx, r13
mov rcx, rbx
call fcn.140020f90
jmp 0x140013170
lea rax, [0x140089d66]
mov qword [r15 + 0x18], rax
mov qword [r15 + 8], r14
xor r14d, r14d
cmp byte [0x14009bbec], r14b
je 0x1400131e3
lea rax, str.ThreadStateDestroy
mov dword [rbp + 0x68], r14d
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r14
mov dword [rbp + 0x60], 0x32
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140013862
mov rax, qword [rbp - 0x80]
xor edx, edx
sub rax, qword [0x14009c1f8]
imul rax, rax, 0xf4240
div qword [0x14009c1f0]
mov r15, rax
add r15, qword [0x14009c200]
mov qword [rsp + 0x20], r15
jmp 0x1400131e8
mov r15, qword [rsp + 0x20]
cmp qword [r12 - 0x38], 0
jne 0x1400138a0
mov rcx, qword [r12 - 0x48]
test rcx, rcx
je 0x140013224
nop
mov rbx, qword [rcx + 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [r12 - 0x30]
mov rdx, qword [rcx]
neg rdx
lock add qword [rax], rdx
call fcn.14005a480
mov rcx, rbx
test rbx, rbx
jne 0x140013200
mov qword [r12 - 0x48], r14
mov qword [r12 - 0x40], r14
mov rcx, qword [r12 - 8]
test rcx, rcx
je 0x14001325c
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [r12 - 0x50], rax
call fcn.14005a480
mov qword [r12 - 8], r14
mov qword [r12], r14
mov qword [r12 + 8], r14
lock dec qword [0x1400d1340]
cmp qword [r12 - 0x50], 0
je 0x140013281
lea rcx, str.BEE_ENABLE_TUNDRA_HEAP_VALIDATION
call fcn.140058924
test rax, rax
jne 0x14001387c
cmp byte [0x14009bbec], 0
je 0x1400133d9
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140013893
mov rax, qword [rbp - 0x78]
xor edx, edx
sub rax, qword [0x14009c1f8]
movsxd rcx, dword [rbp + 0x60]
imul rax, rax, 0xf4240
div qword [0x14009c1f0]
mov r14, rax
sub r14, r15
add r14, qword [0x14009c200]
cmp r14, rcx
jb 0x1400133d6
movsxd rbx, dword [rbp + 0x68]
shl rbx, 6
add rbx, qword [0x1400c47e0]
cmp dword [rbx + 0x38], 0x8000
jae 0x1400133d6
movsxd rax, dword [rbx + 0x38]
mov edx, 0x20
inc dword [rbx + 0x38]
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x30]
lea r15, [rax + rcx*8]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [r15], rax
mov rax, qword [rsp + 0x58]
mov qword [r15 + 0x20], rax
call fcn.14004e9d4
mov rsi, rax
test rax, rax
je 0x140013374
cmp qword [rsp + 0x40], 0
jne 0x140013374
mov rdx, qword [rsp + 0x28]
mov r8, rax
sub r8, qword [rsp + 0x28]
mov rcx, rbx
call fcn.140020f90
mov qword [r15 + 0x10], rax
lea rdx, [rsi + 1]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140013360
mov rcx, rbx
call fcn.140020f90
jmp 0x1400133ce
mov rax, qword [rsp + 0x28]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140013380
mov rdx, rax
mov rcx, rbx
call fcn.140020f90
mov qword [r15 + 0x10], rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400133c7
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400133b0
mov rdx, rax
mov rcx, rbx
call fcn.140020f90
jmp 0x1400133ce
lea rax, [0x140089d66]
mov qword [r15 + 0x18], rax
mov qword [r15 + 8], r14
xor r14d, r14d
mov rcx, qword [rsp + 0x60]
add r12, 0x70
mov rbx, qword [rsp + 0x68]
inc rcx
add rbx, 8
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rbx
cmp rcx, qword [rsp + 0x38]
jge 0x14001340e
mov rsi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x48]
jmp 0x140012fb0
cmp byte [0x14009bbec], 0
je 0x14001346d
lea rax, str.SharedResourceDestroy
mov dword [rbp - 0x60], r14d
xorps xmm0, xmm0
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x38], 0x32
movdqu xmmword [rbp - 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400138ad
mov rax, qword [rbp - 0x70]
xor edx, edx
sub rax, qword [0x14009c1f8]
imul rax, rax, 0xf4240
div qword [0x14009c1f0]
add rax, qword [0x14009c200]
mov qword [rbp - 0x40], rax
cmp dword [rdi + 0x218], 0
mov ebx, r14d
jle 0x1400134ff
mov rsi, r14
mov rax, qword [rdi + 0x3e30]
cmp dword [rsi + rax], 0
jbe 0x1400134f1
mov eax, ebx
lea rcx, [rax + rax*4]
mov rax, qword [rdi + 0x210]
lea r10, [rax + rcx*4]
movsxd rcx, dword [r10 + 8]
lea rax, [r10 + 8]
add rcx, rax
cmp dword [rax], 0
cmove rcx, r14
test rcx, rcx
je 0x1400134e4
movsxd rdx, dword [r10 + 8]
lea r8, [r10 + 8]
mov r9, qword [rdi + 0x110]
add rdx, r8
mov eax, r14d
mov rcx, r10
sub eax, dword [r8]
lea r8, str.Destroying__s
neg eax
sbb rax, rax
and rdx, rax
call fcn.14004abf0
mov rax, qword [rdi + 0x3e30]
mov ecx, ebx
mov dword [rax + rcx*4], r14d
inc ebx
add rsi, 4
cmp ebx, dword [rdi + 0x218]
jl 0x140013480
lea rcx, [rbp - 0x60]
call fcn.140001370
cmp byte [0x14009c249], 0
jne 0x14001352d
lea rcx, [0x1400c2398]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 1
call fcn.140055238
mov qword [rsp + 0x38], rax
cmp dword [0x1400d1348], 0
mov esi, r14d
jle 0x1400135d4
lea rbx, [0x1400c23f8]
lea rdx, [rbx - 0x28]
mov r8, rdi
lea rcx, [rsp + 0x38]
call fcn.14003e0e0
cmp qword [rbx - 0x20], 0
je 0x14001357a
mov rcx, qword [rbx - 0x20]
mov rax, qword [rdi + 0x110]
add rcx, 0xfffffffffffffff8
mov rdx, qword [rcx]
neg rdx
lock add qword [rax], rdx
call fcn.14005a480
cmp qword [rbx], 0
je 0x14001359d
mov rcx, qword [rbx]
mov rax, qword [rdi + 0x110]
add rcx, 0xfffffffffffffff8
mov rdx, qword [rcx]
neg rdx
lock add qword [rax], rdx
call fcn.14005a480
cmp qword [rbx - 8], 0
je 0x1400135c2
mov rcx, qword [rbx - 8]
mov rax, qword [rdi + 0x110]
add rcx, 0xfffffffffffffff8
mov rdx, qword [rcx]
neg rdx
lock add qword [rax], rdx
call fcn.14005a480
inc esi
add rbx, 0x48
cmp esi, dword [0x1400d1348]
jl 0x140013544
cmp byte [0x14009c249], 0
jne 0x1400135e7
mov rcx, qword [rsp + 0x38]
call fcn.140059c3c
cmp byte [0x14009c249], 0
mov dword [0x1400d1348], r14d
jne 0x140013604
lea rcx, [0x1400c2398]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [0x14009bbec], 0
mov byte [0x14009b818], 1
je 0x14001366a
lea rax, str.BuildQueueDestroyTail
mov dword [rbp - 0x30], r14d
xorps xmm0, xmm0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x68]
mov dword [rbp - 8], 0x32
movdqu xmmword [rbp - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140013848
mov rax, qword [rbp - 0x68]
xor edx, edx
sub rax, qword [0x14009c1f8]
imul rax, rax, 0xf4240
div qword [0x14009c1f0]
add rax, qword [0x14009c200]
mov qword [rbp - 0x10], rax
mov rcx, qword [rdi + 0x1b0]
mov rbx, qword [rdi + 0x110]
test rcx, rcx
je 0x1400136a6
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.14005a480
mov qword [rdi + 0x1b0], r14
mov qword [rdi + 0x1b8], r14
mov qword [rdi + 0x1c0], r14
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x1400136db
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.14005a480
mov qword [rdi + 0xa8], r14
mov qword [rdi + 0xb0], r14
mov qword [rdi + 0xb8], r14
mov rcx, qword [rdi + 0xc0]
test rcx, rcx
je 0x140013710
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.14005a480
mov qword [rdi + 0xc0], r14
mov qword [rdi + 0xc8], r14
mov qword [rdi + 0xd0], r14
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x140013737
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rdi + 0xf8]
neg rdx
lock add qword [rax], rdx
call fcn.14005a480
mov rcx, qword [rdi + 0xe0]
test rcx, rcx
je 0x14001375e
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rdi + 0xf8]
neg rdx
lock add qword [rax], rdx
call fcn.14005a480
mov qword [rdi + 0xd8], r14
mov qword [rdi + 0xe0], r14
mov qword [rdi + 0xe8], 0
mov dword [rdi + 0xf0], r14d
mov rcx, qword [rdi + 0x1f8]
test rcx, rcx
je 0x14001379e
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.14005a480
mov rcx, qword [rdi + 0x3e30]
test rcx, rcx
je 0x1400137be
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.14005a480
lea rcx, [rdi + 0x3e38]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, rdi
mov qword [0x14009c208], r14
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x3e60]
test rcx, rcx
je 0x140013824
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.14005a480
mov qword [rdi + 0x3e60], r14
mov qword [rdi + 0x3e68], r14
mov qword [rdi + 0x3e70], r14
lea rcx, [rbp - 0x30]
mov qword [0x1400c23c8], r14
call fcn.140001370
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3
mov r8, qword [r12 - 0x50]
lea rdx, [r12 - 0x50]
lea rcx, str.Destroying_heap__p_which_still_contains__zu_bytes_of_allocated_memory__which_indicates_a_memory_leak.
call fcn.140014e80
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3
lea rcx, str.Destroying_linear_alloc_which_is_expected_to_be_empty.
call fcn.140014e80
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3