Function at 0x1400119c0
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.140013ae0
mov rax, qword [rdi + 0x100]
xor r14d, r14d
movsxd rax, dword [rax + 0x1c]
mov qword [rsp + 0x38], rax
test rax, rax
jle 0x140011ede
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 [0x140099b70], 0
je 0x140011ae6
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 0x140012325
mov rax, qword [rsp + 0x70]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
mov r15, rax
add r15, qword [0x140099f90]
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 0x140011af0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140099b70], 0
je 0x140011cb3
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14001233f
mov rax, qword [rsp + 0x78]
xor edx, edx
sub rax, qword [0x140099f88]
movsxd rcx, dword [rbp + 0x50]
imul rax, rax, 0xf4240
div qword [0x140099f80]
mov r14, rax
sub r14, r15
add r14, qword [0x140099f90]
cmp r14, rcx
jb 0x140011c48
movsxd rbx, dword [rbp + 0x58]
shl rbx, 6
add rbx, qword [0x1400c2570]
cmp dword [rbx + 0x38], 0x8000
jae 0x140011c48
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.14004c8ec
mov rsi, rax
test rax, rax
je 0x140011bf4
test r13, r13
jne 0x140011bf4
mov rdx, qword [rsp + 0x30]
mov r8, rax
sub r8, rdx
mov rcx, rbx
call fcn.14001f6c0
mov qword [r15 + 0x10], rax
lea rdx, [rsi + 1]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140011be0
mov rcx, rbx
call fcn.14001f6c0
jmp 0x140011c40
mov rdx, qword [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140011c00
mov rcx, rbx
call fcn.14001f6c0
mov qword [r15 + 0x10], rax
test r13, r13
je 0x140011c39
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + r13], 0
jne 0x140011c22
mov rdx, r13
mov rcx, rbx
call fcn.14001f6c0
jmp 0x140011c40
lea rax, [0x140087d76]
mov qword [r15 + 0x18], rax
mov qword [r15 + 8], r14
xor r14d, r14d
cmp byte [0x140099b70], r14b
je 0x140011cb3
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 0x140012332
mov rax, qword [rbp - 0x80]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
mov r15, rax
add r15, qword [0x140099f90]
mov qword [rsp + 0x20], r15
jmp 0x140011cb8
mov r15, qword [rsp + 0x20]
cmp qword [r12 - 0x38], 0
jne 0x140012370
mov rcx, qword [r12 - 0x48]
test rcx, rcx
je 0x140011cf4
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.140058710
mov rcx, rbx
test rbx, rbx
jne 0x140011cd0
mov qword [r12 - 0x48], r14
mov qword [r12 - 0x40], r14
mov rcx, qword [r12 - 8]
test rcx, rcx
je 0x140011d2c
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [r12 - 0x50], rax
call fcn.140058710
mov qword [r12 - 8], r14
mov qword [r12], r14
mov qword [r12 + 8], r14
lock dec qword [0x1400cf0d0]
cmp qword [r12 - 0x50], 0
je 0x140011d51
lea rcx, str.BEE_ENABLE_TUNDRA_HEAP_VALIDATION
call fcn.140056b98
test rax, rax
jne 0x14001234c
cmp byte [0x140099b70], 0
je 0x140011ea9
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140012363
mov rax, qword [rbp - 0x78]
xor edx, edx
sub rax, qword [0x140099f88]
movsxd rcx, dword [rbp + 0x60]
imul rax, rax, 0xf4240
div qword [0x140099f80]
mov r14, rax
sub r14, r15
add r14, qword [0x140099f90]
cmp r14, rcx
jb 0x140011ea6
movsxd rbx, dword [rbp + 0x68]
shl rbx, 6
add rbx, qword [0x1400c2570]
cmp dword [rbx + 0x38], 0x8000
jae 0x140011ea6
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.14004c8ec
mov rsi, rax
test rax, rax
je 0x140011e44
cmp qword [rsp + 0x40], 0
jne 0x140011e44
mov rdx, qword [rsp + 0x28]
mov r8, rax
sub r8, qword [rsp + 0x28]
mov rcx, rbx
call fcn.14001f6c0
mov qword [r15 + 0x10], rax
lea rdx, [rsi + 1]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140011e30
mov rcx, rbx
call fcn.14001f6c0
jmp 0x140011e9e
mov rax, qword [rsp + 0x28]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140011e50
mov rdx, rax
mov rcx, rbx
call fcn.14001f6c0
mov qword [r15 + 0x10], rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140011e97
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140011e80
mov rdx, rax
mov rcx, rbx
call fcn.14001f6c0
jmp 0x140011e9e
lea rax, [0x140087d76]
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 0x140011ede
mov rsi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x48]
jmp 0x140011a80
cmp byte [0x140099b70], 0
je 0x140011f3d
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 0x14001237d
mov rax, qword [rbp - 0x70]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
add rax, qword [0x140099f90]
mov qword [rbp - 0x40], rax
cmp dword [rdi + 0x218], 0
mov ebx, r14d
jle 0x140011fcf
mov rsi, r14
mov rax, qword [rdi + 0x3e30]
cmp dword [rsi + rax], 0
jbe 0x140011fc1
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 0x140011fb4
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.140048d10
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 0x140011f50
lea rcx, [rbp - 0x60]
call fcn.140001250
cmp byte [0x140099fd9], 0
jne 0x140011ffd
lea rcx, [0x1400c0128]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 1
call fcn.140053388
mov qword [rsp + 0x38], rax
cmp dword [0x1400cf0d8], 0
mov esi, r14d
jle 0x1400120a4
lea rbx, [0x1400c0188]
lea rdx, [rbx - 0x28]
mov r8, rdi
lea rcx, [rsp + 0x38]
call fcn.14003c790
cmp qword [rbx - 0x20], 0
je 0x14001204a
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.140058710
cmp qword [rbx], 0
je 0x14001206d
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.140058710
cmp qword [rbx - 8], 0
je 0x140012092
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.140058710
inc esi
add rbx, 0x48
cmp esi, dword [0x1400cf0d8]
jl 0x140012014
cmp byte [0x140099fd9], 0
jne 0x1400120b7
mov rcx, qword [rsp + 0x38]
call fcn.140057ed0
cmp byte [0x140099fd9], 0
mov dword [0x1400cf0d8], r14d
jne 0x1400120d4
lea rcx, [0x1400c0128]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [0x140099b70], 0
mov byte [0x140099828], 1
je 0x14001213a
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 0x140012318
mov rax, qword [rbp - 0x68]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
add rax, qword [0x140099f90]
mov qword [rbp - 0x10], rax
mov rcx, qword [rdi + 0x1b0]
mov rbx, qword [rdi + 0x110]
test rcx, rcx
je 0x140012176
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.140058710
mov qword [rdi + 0x1b0], r14
mov qword [rdi + 0x1b8], r14
mov qword [rdi + 0x1c0], r14
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x1400121ab
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.140058710
mov qword [rdi + 0xa8], r14
mov qword [rdi + 0xb0], r14
mov qword [rdi + 0xb8], r14
mov rcx, qword [rdi + 0xc0]
test rcx, rcx
je 0x1400121e0
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.140058710
mov qword [rdi + 0xc0], r14
mov qword [rdi + 0xc8], r14
mov qword [rdi + 0xd0], r14
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x140012207
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rdi + 0xf8]
neg rdx
lock add qword [rax], rdx
call fcn.140058710
mov rcx, qword [rdi + 0xe0]
test rcx, rcx
je 0x14001222e
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rdi + 0xf8]
neg rdx
lock add qword [rax], rdx
call fcn.140058710
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 0x14001226e
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.140058710
mov rcx, qword [rdi + 0x3e30]
test rcx, rcx
je 0x14001228e
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.140058710
lea rcx, [rdi + 0x3e38]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, rdi
mov qword [0x140099f98], 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 0x1400122f4
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
neg rax
lock add qword [rbx], rax
call fcn.140058710
mov qword [rdi + 0x3e60], r14
mov qword [rdi + 0x3e68], r14
mov qword [rdi + 0x3e70], r14
lea rcx, [rbp - 0x30]
mov qword [0x1400c0158], 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.140013a60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
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.1400139e0
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
lea rcx, str.Destroying_linear_alloc_which_is_expected_to_be_empty.
call fcn.1400139e0
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3