Function at 0x140011b10
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.140013c50
mov rax, qword [rdi + 0x100]
xor r14d, r14d
movsxd rax, dword [rax + 0x1c]
mov qword [rsp + 0x38], rax
test rax, rax
jle 0x14001202e
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 [0x140098b00], 0
je 0x140011c36
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 0x14001248a
mov rax, qword [rsp + 0x70]
xor edx, edx
sub rax, qword [0x140098f18]
imul rax, rax, 0xf4240
div qword [0x140098f10]
mov r15, rax
add r15, qword [0x140098f20]
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 0x140011c40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140098b00], 0
je 0x140011e03
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400124a4
mov rax, qword [rsp + 0x78]
xor edx, edx
sub rax, qword [0x140098f18]
movsxd rcx, dword [rbp + 0x50]
imul rax, rax, 0xf4240
div qword [0x140098f10]
mov r14, rax
sub r14, r15
add r14, qword [0x140098f20]
cmp r14, rcx
jb 0x140011d98
movsxd rbx, dword [rbp + 0x58]
shl rbx, 6
add rbx, qword [0x1400c1500]
movsxd rdx, dword [rbx + 0x38]
cmp edx, 0x8000
jae 0x140011d98
mov rax, qword [rbx + 0x30]
lea rcx, [rdx + rdx*4]
lea r15, [rax + rcx*8]
mov rcx, rsi
lea eax, [rdx + 1]
mov edx, 0x20
mov dword [rbx + 0x38], eax
mov rax, qword [rsp + 0x48]
mov qword [r15], rax
mov rax, qword [rsp + 0x50]
mov qword [r15 + 0x20], rax
call fcn.14004d738
mov rsi, rax
test rax, rax
je 0x140011d44
test r13, r13
jne 0x140011d44
mov rdx, qword [rsp + 0x30]
mov r8, rax
sub r8, rdx
mov rcx, rbx
call fcn.140020970
mov qword [r15 + 0x10], rax
lea rdx, [rsi + 1]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140011d30
mov rcx, rbx
call fcn.140020970
jmp 0x140011d90
mov rdx, qword [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140011d50
mov rcx, rbx
call fcn.140020970
mov qword [r15 + 0x10], rax
test r13, r13
je 0x140011d89
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + r13], 0
jne 0x140011d72
mov rdx, r13
mov rcx, rbx
call fcn.140020970
jmp 0x140011d90
lea rax, [0x1400879b6]
mov qword [r15 + 0x18], rax
mov qword [r15 + 8], r14
xor r14d, r14d
cmp byte [0x140098b00], r14b
je 0x140011e03
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 0x140012497
mov rax, qword [rbp - 0x80]
xor edx, edx
sub rax, qword [0x140098f18]
imul rax, rax, 0xf4240
div qword [0x140098f10]
mov r15, rax
add r15, qword [0x140098f20]
mov qword [rsp + 0x20], r15
jmp 0x140011e08
mov r15, qword [rsp + 0x20]
cmp qword [r12 - 0x38], 0
jne 0x1400124d5
mov rcx, qword [r12 - 0x48]
test rcx, rcx
je 0x140011e45
nop
mov rbx, qword [rcx + 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [r12 - 0x30]
mov rdx, qword [rcx]
neg rdx
lock xadd qword [rax], rdx
call fcn.1400578b0
mov rcx, rbx
test rbx, rbx
jne 0x140011e20
mov qword [r12 - 0x48], r14
mov qword [r12 - 0x40], r14
mov rcx, qword [r12 - 8]
test rcx, rcx
je 0x140011e7e
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock xadd qword [r12 - 0x50], rax
call fcn.1400578b0
mov qword [r12 - 8], r14
mov qword [r12], r14
mov qword [r12 + 8], r14
mov rax, 0xffffffffffffffff
lock xadd qword [0x1400ce060], rax
cmp qword [r12 - 0x50], 0
je 0x140011eab
lea rcx, str.BEE_ENABLE_TUNDRA_HEAP_VALIDATION
call fcn.140056408
test rax, rax
jne 0x1400124b1
cmp byte [0x140098b00], 0
je 0x140011ff9
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400124c8
mov rax, qword [rbp - 0x78]
xor edx, edx
sub rax, qword [0x140098f18]
movsxd rcx, dword [rbp + 0x60]
imul rax, rax, 0xf4240
div qword [0x140098f10]
mov r14, rax
sub r14, r15
add r14, qword [0x140098f20]
cmp r14, rcx
jb 0x140011ff6
movsxd rbx, dword [rbp + 0x68]
shl rbx, 6
add rbx, qword [0x1400c1500]
movsxd rdx, dword [rbx + 0x38]
cmp edx, 0x8000
jae 0x140011ff6
mov rax, qword [rbx + 0x30]
lea rcx, [rdx + rdx*4]
lea r15, [rax + rcx*8]
mov rcx, qword [rsp + 0x28]
lea eax, [rdx + 1]
mov edx, 0x20
mov dword [rbx + 0x38], eax
mov rax, qword [rsp + 0x20]
mov qword [r15], rax
mov rax, qword [rsp + 0x58]
mov qword [r15 + 0x20], rax
call fcn.14004d738
mov rsi, rax
test rax, rax
je 0x140011f98
cmp qword [rsp + 0x40], 0
jne 0x140011f98
mov rdx, qword [rsp + 0x28]
mov r8, rax
sub r8, qword [rsp + 0x28]
mov rcx, rbx
call fcn.140020970
mov qword [r15 + 0x10], rax
lea rdx, [rsi + 1]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140011f84
mov rcx, rbx
call fcn.140020970
jmp 0x140011fee
mov rax, qword [rsp + 0x28]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140011fa4
mov rdx, rax
mov rcx, rbx
call fcn.140020970
mov qword [r15 + 0x10], rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140011fe7
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140011fd0
mov rdx, rax
mov rcx, rbx
call fcn.140020970
jmp 0x140011fee
lea rax, [0x1400879b6]
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 0x14001202e
mov rsi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x48]
jmp 0x140011bd0
cmp byte [0x140098b00], 0
je 0x14001208d
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 0x1400124e2
mov rax, qword [rbp - 0x70]
xor edx, edx
sub rax, qword [0x140098f18]
imul rax, rax, 0xf4240
div qword [0x140098f10]
add rax, qword [0x140098f20]
mov qword [rbp - 0x40], rax
cmp dword [rdi + 0x218], 0
mov ebx, r14d
jle 0x140012120
mov rsi, r14
xor r15d, r15d
mov rax, qword [rdi + 0x3e30]
cmp dword [rsi + rax], r15d
jbe 0x14001210f
mov rax, qword [rdi + 0x210]
mov r14d, ebx
lea rcx, [r14 + r14*4]
lea r10, [rax + rcx*4]
movsxd rax, dword [r10 + 8]
lea r9, [r10 + 8]
test eax, eax
lea rcx, [r9 + rax]
cmove rcx, r15
test rcx, rcx
je 0x140012104
movsxd r8, dword [r9]
mov eax, r15d
sub eax, r8d
mov rcx, r10
neg eax
lea rdx, [r9 + r8]
sbb rax, rax
mov r9, qword [rdi + 0x110]
lea r8, str.Destroying__s
and rdx, rax
call fcn.1400492d0
mov rax, qword [rdi + 0x3e30]
mov dword [rax + r14*4], r15d
inc ebx
add rsi, 4
cmp ebx, dword [rdi + 0x218]
jl 0x1400120a3
xor r14d, r14d
lea rcx, [rbp - 0x60]
call fcn.140001250
cmp byte [0x140098f69], 0
jne 0x14001214e
lea rcx, [0x1400bf0b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 1
call fcn.140053a48
mov qword [rsp + 0x38], rax
cmp dword [0x1400ce068], 0
mov esi, r14d
jle 0x140012201
lea rbx, [0x1400bf118]
nop word [rax + rax]
lea rdx, [rbx - 0x28]
mov r8, rdi
lea rcx, [rsp + 0x38]
call fcn.14003cc60
mov rcx, qword [rbx - 0x20]
test rcx, rcx
je 0x1400121a6
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rdi + 0x110]
neg rdx
lock xadd qword [rax], rdx
call fcn.1400578b0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400121ca
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rdi + 0x110]
neg rdx
lock xadd qword [rax], rdx
call fcn.1400578b0
mov rcx, qword [rbx - 8]
test rcx, rcx
je 0x1400121ef
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rdi + 0x110]
neg rdx
lock xadd qword [rax], rdx
call fcn.1400578b0
inc esi
add rbx, 0x48
cmp esi, dword [0x1400ce068]
jl 0x140012170
cmp byte [0x140098f69], 0
jne 0x140012214
mov rcx, qword [rsp + 0x38]
call fcn.1400572fc
cmp byte [0x140098f69], 0
mov dword [0x1400ce068], r14d
jne 0x140012231
lea rcx, [0x1400bf0b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [0x140098b00], 0
mov byte [0x1400987a8], 1
je 0x140012297
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 0x14001247d
mov rax, qword [rbp - 0x68]
xor edx, edx
sub rax, qword [0x140098f18]
imul rax, rax, 0xf4240
div qword [0x140098f10]
add rax, qword [0x140098f20]
mov qword [rbp - 0x10], rax
mov rcx, qword [rdi + 0x1b0]
mov rbx, qword [rdi + 0x110]
test rcx, rcx
je 0x1400122d4
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock xadd qword [rbx], rax
call fcn.1400578b0
mov qword [rdi + 0x1b0], r14
mov qword [rdi + 0x1b8], r14
mov qword [rdi + 0x1c0], r14
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x14001230a
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock xadd qword [rbx], rax
call fcn.1400578b0
mov qword [rdi + 0xa8], r14
mov qword [rdi + 0xb0], r14
mov qword [rdi + 0xb8], r14
mov rcx, qword [rdi + 0xc0]
test rcx, rcx
je 0x140012340
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock xadd qword [rbx], rax
call fcn.1400578b0
mov qword [rdi + 0xc0], r14
mov qword [rdi + 0xc8], r14
mov qword [rdi + 0xd0], r14
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x140012368
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rdi + 0xf8]
neg rdx
lock xadd qword [rax], rdx
call fcn.1400578b0
mov rcx, qword [rdi + 0xe0]
test rcx, rcx
je 0x140012390
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rdi + 0xf8]
neg rdx
lock xadd qword [rax], rdx
call fcn.1400578b0
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 0x1400123d1
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock xadd qword [rbx], rax
call fcn.1400578b0
mov rcx, qword [rdi + 0x3e30]
test rcx, rcx
je 0x1400123f2
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock xadd qword [rbx], rax
call fcn.1400578b0
lea rcx, [rdi + 0x3e38]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, rdi
mov qword [0x140098f28], 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 0x140012459
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock xadd qword [rbx], rax
call fcn.1400578b0
mov qword [rdi + 0x3e60], r14
mov qword [rdi + 0x3e68], r14
mov qword [rdi + 0x3e70], r14
lea rcx, [rbp - 0x30]
mov qword [0x1400bf0e8], r14
call fcn.140001250
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.140013bd0
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
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.140013b50
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3
lea rcx, str.Destroying_linear_alloc_which_is_expected_to_be_empty.
call fcn.140013b50
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3