Function at 0x140040a00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rdi, rdx
mov rbp, rcx
lea rdx, [0x1401bba64]
mov ecx, 0xb0
mov rsi, r9
mov r15d, r8d
call fcn.140122190
mov r14, rax
test rax, rax
je 0x140040c17
xor edx, edx
mov r8d, 0xb0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rcx, [r14 + 8]
mov byte [r14], 1
xor ebx, ebx
xorps xmm0, xmm0
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
movups xmmword [rcx + 0x18], xmm0
lea edx, [rbx + 2]
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rbx
call sub.MSVCP140.dll__Mtx_init_in_situ
lea rcx, [r14 + 0x58]
call sub.MSVCP140.dll__Cnd_init_in_situ
mov qword [0x1406fcb38], r14
xorps xmm0, xmm0
movups xmmword [r14 + 0xa0], xmm0
test r15d, r15d
je 0x140040ac1
test rsi, rsi
je 0x140040ab7
cmp byte [rsi], bl
je 0x140040ab7
mov rdx, rsi
mov rcx, rbp
call fcn.14003e400
jmp 0x140040ac1
xor edx, edx
mov rcx, rbp
call fcn.14003e380
call sub.KERNEL32.dll_GetCurrentProcessId
lea rcx, [0x1406db6b0]
mov dword [0x1406fcb34], eax
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140040c4c
cmp dword [0x1406db6fc], 0x7fffffff
je 0x140040c57
test rdi, rdi
je 0x140040b10
movups xmm0, xmmword [rdi]
movups xmmword [0x1406fc7c8], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x1406fc7d8], xmm1
movups xmm0, xmmword [rdi + 0x20]
jmp 0x140040b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x1406fc7c8], xmm0
movups xmmword [0x1406fc7d8], xmm0
movups xmmword [0x1406fc7e8], xmm0
lea rcx, [0x1406db6b0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x1406fc7f8], xmm0
movups xmmword [0x1406fc808], xmm0
movups xmmword [0x1406fc818], xmm0
call sub.MSVCP140.dll__Mtx_unlock
cmp qword [0x1406fc7c0], rbx
jne 0x140040c20
mov rcx, rbp
call fcn.140042820
mov qword [0x1406fc7c0], rax
lea rcx, [0x14003e5f0]
mov qword [rax + 0x10], rcx
lea rcx, [0x14003e600]
mov rax, qword [0x1406fc7c0]
mov qword [rax + 0x18], rcx
mov eax, 1
mov rdi, qword [0x1406fcb38]
mov ecx, 8
xchg byte [rdi], al
call fcn.140121ba8
test rax, rax
je 0x140040bcb
mov qword [rax], rdi
jmp 0x140040bce
mov rax, rbx
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x14003e860]
xor ecx, ecx
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140040c3d
cmp dword [rdi + 0xa8], ebx
jne 0x140040c10
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm1
jmp 0x140040c20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor ebx, ebx
mov qword [0x1406fcb38], rbx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov ecx, 6
mov dword [rsp + 0x38], ebx
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 6
mov dword [0x1406db6fc], 0x7ffffffe
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3