Function at 0x140011480
Capabilities:
Create thread
Terminate thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rbx
lea rbp, [rsp - 0xa8]
sub rsp, 0x1a8
mov rax, qword [0x1400d8708]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
lea r8d, [rbx + 0xd]
lea rdx, str.spawned_thing
lea rcx, [rbp - 0x40]
call fcn.14002d660
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140011519
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011514
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011514
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a77f0
mov edx, 2
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
nop
mov dword [rbp - 0x64], 1
mov byte [rbp - 0x68], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x68], rax
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0xe0]
mov qword [rbp - 0x80], rax
lea rax, [rbp + 0xe8]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x70], rax
mov ecx, 0x48
call fcn.1400a7918
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [rbp - 0x70]
movsd qword [rax + 0x40], xmm0
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140039610]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140011817
cmp dword [rbp - 0x58], 0
je 0x14001180b
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14001180b
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x20], xmm0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x18], 0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14001165e
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rbp + 0x3c]
cmp eax, 0x7fffffff
jne 0x140011679
dec eax
mov dword [rbp + 0x3c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov byte [rbp - 0x18], 1
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
imul rcx, rax, 0x64
add rcx, 0x1dcd6500
movabs rax, 0x112e0be826d694b3
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp - 0x40], rdx
imul rax, rdx, 0x3b9aca00
sub rcx, rax
mov dword [rbp - 0x38], ecx
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Mtx_current_owns]
test eax, eax
jne 0x1400116d2
lea ecx, [rax + 4]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll__Cnd_timedwait]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
test eax, eax
je 0x14001175d
mov r8d, 7
lea rdx, str.Timeout
call fcn.14002d660
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001174b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011746
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400117a4
call fcn.1400a77f0
mov byte [rbp - 0x68], 1
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400117c3
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.spawned_thing_done
call fcn.14002d660
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400117b0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400117ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400117ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a77f0
mov byte [rbp - 0x68], 1
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [rbp - 0x64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
cmp dword [rbp - 0x58], 0
je 0x1400117db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll__Cnd_destroy_in_situ]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Mtx_destroy_in_situ]
mov eax, ebx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400a77d0
add rsp, 0x1a8
pop rbx
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x58], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3