Function at 0x140040f40
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, [0x1401bbd74]
mov ecx, 0xb0
mov rsi, r9
mov r15d, r8d
call fcn.1401223d0
mov r14, rax
test rax, rax
je 0x140041157
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 [0x1405b0738], r14
xorps xmm0, xmm0
movups xmmword [r14 + 0xa0], xmm0
test r15d, r15d
je 0x140041001
test rsi, rsi
je 0x140040ff7
cmp byte [rsi], bl
je 0x140040ff7
mov rdx, rsi
mov rcx, rbp
call fcn.14003e940
jmp 0x140041001
xor edx, edx
mov rcx, rbp
call fcn.14003e8c0
call sub.KERNEL32.dll_GetCurrentProcessId
lea rcx, [0x14058f2b0]
mov dword [0x1405b0734], eax
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14004118c
cmp dword [0x14058f2fc], 0x7fffffff
je 0x140041197
test rdi, rdi
je 0x140041050
movups xmm0, xmmword [rdi]
movups xmmword [0x1405b03c8], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x1405b03d8], xmm1
movups xmm0, xmmword [rdi + 0x20]
jmp 0x140041070
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x1405b03c8], xmm0
movups xmmword [0x1405b03d8], xmm0
movups xmmword [0x1405b03e8], xmm0
lea rcx, [0x14058f2b0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x1405b03f8], xmm0
movups xmmword [0x1405b0408], xmm0
movups xmmword [0x1405b0418], xmm0
call sub.MSVCP140.dll__Mtx_unlock
cmp qword [0x1405b03c0], rbx
jne 0x140041160
mov rcx, rbp
call fcn.140042d60
mov qword [0x1405b03c0], rax
lea rcx, [0x14003eb30]
mov qword [rax + 0x10], rcx
lea rcx, [0x14003eb40]
mov rax, qword [0x1405b03c0]
mov qword [rax + 0x18], rcx
mov eax, 1
mov rdi, qword [0x1405b0738]
mov ecx, 8
xchg byte [rdi], al
call fcn.140121de8
test rax, rax
je 0x14004110b
mov qword [rax], rdi
jmp 0x14004110e
mov rax, rbx
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x14003eda0]
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 0x14004117d
cmp dword [rdi + 0xa8], ebx
jne 0x140041150
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm1
jmp 0x140041160
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor ebx, ebx
mov qword [0x1405b0738], 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 [0x14058f2fc], 0x7ffffffe
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3