Function at 0x1400129c0
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x80
xor r13d, r13d
movsxd rbp, r9d
cmp byte [0x14009bbec], r13b
mov r15, r8
mov rdi, rdx
mov rsi, rcx
je 0x140012a44
lea rax, str.BuildQueueInit
mov dword [rsp + 0x48], r13d
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x70], 0x32
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140012ed2
mov rax, qword [rsp + 0x40]
xor edx, edx
sub rax, qword [0x14009c1f8]
imul rax, rax, 0xf4240
div qword [0x14009c1f0]
add rax, qword [0x14009c200]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xb0], rbx
mov rcx, rsi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xc0], r14
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rax, [rsi + 0x30]
lea rcx, [rsi + 0x68]
mov qword [0x14009c208], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14, qword [rdi + 0x10]
lea rcx, [rsi + 0x3e60]
mov qword [rsi + 0x3e60], r13
mov rdx, r14
mov qword [rsi + 0x3e68], r13
mov qword [rsi + 0x3e70], r13
mov rax, qword [rdi + 0x20]
movsxd r8, dword [rax + 0x6c]
lea rbx, [r8*4]
call fcn.140011d20
mov rcx, rax
mov r8, rbx
xor edx, edx
call fcn.140050400
mov ecx, 0x1008
call fcn.14005a7bc
mov qword [rax], 0x1000
lock add qword [r14], 0x1000
add rax, 8
mov qword [rsi + 0xb0], r13
mov ecx, 0x2008
mov qword [rsi + 0xa8], rax
mov qword [rsi + 0xb8], 0x400
call fcn.14005a7bc
mov qword [rax], 0x2000
lock add qword [r14], 0x2000
mov qword [rsi + 0xc8], r13
lea rcx, [rsi + 0x100]
mov qword [rsi + 0xd0], 0x400
add rax, 8
mov qword [rsi + 0xc0], rax
mov edx, 2
mov qword [rsi + 0xd8], r13
mov rax, rdi
mov qword [rsi + 0xe0], r13
mov qword [rsi + 0xe8], r13
mov dword [rsi + 0xf0], r13d
mov qword [rsi + 0xf8], r14
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140012b90
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
mov qword [rsi + 0x220], r13
mov dword [rsi + 0x228], r13d
movups xmmword [rcx + 0x10], xmm1
mov rax, qword [rdi]
mov ecx, r13d
cmp byte [rax + 0xc], r13b
sete cl
mov dword [rsi + 0xa0], ecx
movsxd rdi, dword [rdi + 0x118]
mov rbx, rdi
shl rbx, 4
lea rcx, [rbx + 8]
call fcn.14005a7bc
mov qword [rax], rbx
lock add qword [r14], rbx
lea rbx, [rax + 8]
xor edx, edx
mov rcx, rbx
lea r8, [rdi*4]
call fcn.140050400
lea rcx, [rsi + 0x3e38]
mov qword [rsi + 0x3e30], rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsi + 0x110]
mov ecx, 0x88
call fcn.14005a7bc
mov qword [rax], 0x80
lock add qword [rbx], 0x80
add rax, 8
mov qword [rsi + 0x1b8], r13
mov qword [rsi + 0x1b0], rax
lea r14, [rsi + 0x1b0]
mov qword [rsi + 0x1c0], 0x20
mov r10, qword [rsi + 0x110]
mov rcx, qword [rsi + 0x120]
test ebp, ebp
jle 0x140012cd3
lea rax, [rcx + 0x14]
mov byte [rsp + 0x30], r13b
mov qword [rsp + 0x28], rax
mov r9, r15
mov r8, r10
mov qword [rsp + 0x20], rbp
mov rdx, r14
call fcn.14002ca10
jmp 0x140012d10
movsxd rdi, dword [rcx + 0x1c]
mov eax, r13d
sub eax, dword [rcx + 0x20]
add rcx, 0x20
mov r8, rdi
mov rdx, r10
movsxd rbx, dword [rcx]
add rbx, rcx
mov rcx, r14
neg eax
sbb rax, rax
and rbx, rax
call fcn.140011d20
lea r8, [rdi*4]
mov rdx, rbx
mov rcx, rax
call fcn.14004fbf0
mov rcx, qword [r14]
xor r9d, r9d
mov rdx, qword [r14 + 8]
lea rdx, [rcx + rdx*4]
mov r8, rdx
sub r8, rcx
sar r8, 2
call fcn.140024d60
mov r8, qword [r14]
mov rcx, qword [r14 + 8]
lea r9, [r8 + rcx*4]
cmp r8, r9
je 0x140012d89
mov rdx, r8
add r8, 4
cmp r8, r9
je 0x140012d89
nop dword [rax]
mov eax, dword [r8]
lea rcx, [r8 + 4]
cmp dword [rdx], eax
je 0x140012d68
mov rdx, r8
mov r8, rcx
cmp rcx, r9
jne 0x140012d50
jmp 0x140012d89
cmp rcx, r9
je 0x140012d85
nop dword [rax]
mov eax, dword [rcx]
cmp dword [rdx], eax
je 0x140012d7c
add rdx, 4
mov dword [rdx], eax
add rcx, 4
cmp rcx, r9
jne 0x140012d70
lea r9, [rdx + 4]
sub r9, qword [r14]
lea rdx, str.Node_selection_finished_with__d_nodes_to_build
sar r9, 2
mov ecx, 8
mov r8d, r9d
mov qword [r14 + 8], r9
call fcn.140014f80
lea rax, [rsi + 0x28]
mov edi, r13d
mov qword [0x1400c23c8], rax
mov rax, qword [rsi + 0x100]
movsxd r12, dword [rax + 0x1c]
test r12, r12
jle 0x140012ea1
mov rbp, r13
lea r14, [rsi + 0x230]
lea rbx, [rsi + 0x688]
nop dword [rax + rax]
lock inc qword [0x1400d1340]
lea rdx, [rbx - 0x58]
mov qword [rbx - 0x58], r13
lea rcx, [rbx - 0x50]
lea r8, str.thread_local_scratch
call fcn.14003d050
lea eax, [rdi + 1]
mov qword [rbx - 0x18], rsi
mov ecx, 0x328
mov dword [rbx - 0x20], eax
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
call fcn.14005a7bc
mov qword [rax], 0x320
lock add qword [rbx - 0x58], 0x320
add rax, 8
mov qword [rbx - 8], r13
mov r8d, edi
mov qword [rbx - 0x10], rax
lea rdx, str.starting_build_thread__d
mov qword [rbx], 0x64
mov ecx, 8
call fcn.140014f80
lea r9, [rbx - 0x58]
mov qword [rsp + 0x28], r13
lea r8, [0x140012990]
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call fcn.1400601b4
mov r15, rax
test rax, rax
je 0x140012edf
lea rdx, str.Build_Thread
mov rcx, rax
call fcn.14004b390
mov qword [r14], r15
inc edi
add r14, 8
inc rbp
add rbx, 0x70
cmp rbp, r12
jl 0x140012de0
lea rcx, [rsp + 0x48]
call fcn.140001370
mov r12, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3
lea rcx, str._beginthreadex___failed
call fcn.140014f00
int3