Function at 0x140040ba0
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, [0x1401bb964]
mov ecx, 0xb0
mov rsi, r9
mov r15d, r8d
call fcn.140122600
mov r14, rax
test rax, rax
je 0x140040db7
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 [0x14060af38], r14
xorps xmm0, xmm0
movups xmmword [r14 + 0xa0], xmm0
test r15d, r15d
je 0x140040c61
test rsi, rsi
je 0x140040c57
cmp byte [rsi], bl
je 0x140040c57
mov rdx, rsi
mov rcx, rbp
call fcn.14003e5a0
jmp 0x140040c61
xor edx, edx
mov rcx, rbp
call fcn.14003e520
call sub.KERNEL32.dll_GetCurrentProcessId
lea rcx, [0x1405e9ab0]
mov dword [0x14060af34], eax
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140040dec
cmp dword [0x1405e9afc], 0x7fffffff
je 0x140040df7
test rdi, rdi
je 0x140040cb0
movups xmm0, xmmword [rdi]
movups xmmword [0x14060abc8], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x14060abd8], xmm1
movups xmm0, xmmword [rdi + 0x20]
jmp 0x140040cd0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x14060abc8], xmm0
movups xmmword [0x14060abd8], xmm0
movups xmmword [0x14060abe8], xmm0
lea rcx, [0x1405e9ab0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x14060abf8], xmm0
movups xmmword [0x14060ac08], xmm0
movups xmmword [0x14060ac18], xmm0
call sub.MSVCP140.dll__Mtx_unlock
cmp qword [0x14060abc0], rbx
jne 0x140040dc0
mov rcx, rbp
call fcn.1400429c0
mov qword [0x14060abc0], rax
lea rcx, [0x14003e790]
mov qword [rax + 0x10], rcx
lea rcx, [0x14003e7a0]
mov rax, qword [0x14060abc0]
mov qword [rax + 0x18], rcx
mov eax, 1
mov rdi, qword [0x14060af38]
mov ecx, 8
xchg byte [rdi], al
call fcn.140122018
test rax, rax
je 0x140040d6b
mov qword [rax], rdi
jmp 0x140040d6e
mov rax, rbx
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x14003ea00]
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 0x140040ddd
cmp dword [rdi + 0xa8], ebx
jne 0x140040db0
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm1
jmp 0x140040dc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor ebx, ebx
mov qword [0x14060af38], 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 [0x1405e9afc], 0x7ffffffe
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3