Function at 0x14028d960
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, rcx
xor esi, esi
mov eax, esi
mov ebx, esi
mov rdx, qword [0x1406359d0]
test rdx, rdx
je 0x14028d9fe
mov eax, dword [rdx + 8]
test eax, eax
je 0x14028d99e
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 8], ecx
je 0x14028d9f0
test eax, eax
jne 0x14028d990
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea rbp, [0x140635970]
mov qword [rsp + 0xa0], rbp
mov rcx, rbp
call fcn.140318a6c
test eax, eax
jne 0x14028dc97
mov rdi, rsi
mov r14, rsi
mov rdx, qword [0x1406359d0]
test rdx, rdx
je 0x14028da27
mov eax, dword [rdx + 8]
test eax, eax
je 0x14028da27
nop
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 8], ecx
je 0x14028da19
test eax, eax
jne 0x14028d9e0
jmp 0x14028da27
mov rax, qword [0x1406359c8]
mov rbx, qword [0x1406359d0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rbx
test rax, rax
je 0x14028d9a7
mov qword [r15], rax
mov qword [r15 + 8], rbx
jmp 0x14028dc6e
mov rdi, qword [0x1406359c8]
mov r14, qword [0x1406359d0]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r14
mov r13d, 0xffffffff
test rbx, rbx
je 0x14028da67
mov eax, r13d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14028da67
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14028da67
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
test rdi, rdi
je 0x14028da75
mov qword [r15 + 8], r14
jmp 0x14028dc62
call fcn.14031835c
mov r12d, eax
cmp eax, 2
jbe 0x14028da88
add r12d, 0xfffffffe
jmp 0x14028da8e
mov r12d, 1
mov ecx, 0xe0
call fcn.1403226f4
mov rdi, rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14028dba5
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov ecx, 0x10
call fcn.1403226f4
mov qword [rax + 8], rsi
mov qword [rbx], rax
mov qword [rax], rbx
lea rcx, [rdi + 0x40]
mov edx, 2
call fcn.140318a3c
nop
lea rcx, [rdi + 0x90]
call fcn.140318b84
nop
mov byte [rdi + 0xd8], 0
mov rbp, rsi
test r12, r12
je 0x14028db9c
nop word [rax + rax]
mov qword [rsp + 0x98], rdi
mov rbx, qword [rdi + 8]
cmp rbx, qword [rdi + 0x10]
je 0x14028db81
mov ecx, 8
call fcn.1403226f4
mov r9, rax
test rax, rax
je 0x14028db49
mov qword [rax], rdi
jmp 0x14028db4c
mov r9, rsi
mov qword [rsp + 0x38], r9
lea rax, [rbx + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
lea r8, [0x140288690]
xor edx, edx
xor ecx, ecx
call fcn.1403381f8
mov qword [rbx], rax
test rax, rax
je 0x14028dc89
add qword [rdi + 8], 0x10
jmp 0x14028db94
lea r8, [rsp + 0x98]
mov rdx, rbx
mov rcx, rdi
call fcn.140288080
inc rbp
cmp rbp, r12
jb 0x14028db20
lea rbp, [0x140635970]
jmp 0x14028dba8
mov rdi, rsi
mov qword [rsp + 0x30], rdi
mov ecx, 0x18
call fcn.1403226f4
mov rbx, rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14028dbeb
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_class_ThreadPool_.0
mov qword [rbx], rax
mov qword [rbx + 0x10], rdi
jmp 0x14028dbee
mov rbx, rsi
test r14, r14
je 0x14028dc20
mov eax, r13d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x14028dc20
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
mov eax, r13d
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x14028dc20
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
mov rax, rsi
test rbx, rbx
je 0x14028dc32
mov rsi, rdi
mov rax, rbx
lock inc dword [rbx + 0xc]
mov qword [0x1406359c8], rsi
mov rcx, qword [0x1406359d0]
mov qword [0x1406359d0], rax
test rcx, rcx
je 0x14028dc5e
lock xadd dword [rcx + 0xc], r13d
cmp r13d, 1
jne 0x14028dc5e
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [r15 + 8], rbx
mov qword [r15], rdi
mov rcx, rbp
call fcn.140318a90
nop
mov rax, r15
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbx + 8], esi
mov ecx, 6
call fcn.140318760
nop
mov ecx, eax
call fcn.140318724
int3