Function at 0x14000ca10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14003e3b8]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r15d, edx
mov r14d, ecx
cmp byte [0x14003ee30], 0
je 0x14000ca56
xor al, al
jmp 0x14000cde1
mov ecx, 0x70
call fcn.140029408
mov rdi, rax
mov qword [rsp + 0x48], rax
xor r13d, r13d
test rax, rax
je 0x14000ca99
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_TED3D9Allocator_.0
mov qword [rdi], rax
lea rcx, [rdi + 0x10]
call fcn.14000c340
jmp 0x14000ca9c
mov rdi, r13
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], r13
lea r9d, [r15 + 0xf]
and r9d, 0xfffffff0
lea r8d, [r14 + 0xf]
and r8d, 0xfffffff0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x15
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000c470
nop
xor r12b, r12b
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000cd94
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
test rdi, rdi
je 0x14000cb0c
lock inc dword [rdi + 8]
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x48], rcx
movdqa xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x70], xmm1
mov rcx, rdi
test rdi, rdi
je 0x14000cb43
lock inc dword [rdi + 8]
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rcx
mov byte [rbp + 0xb8], 0
movdqa xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], r13
mov qword [rbp + 0xd8], r13
mov qword [rbp + 0xe0], r13
mov ecx, 0x10
call fcn.140029408
mov qword [rax + 8], r13
mov qword [rbp + 0xc0], rax
lea rcx, [rbp + 0xc0]
mov qword [rax], rcx
mov edx, 0x780
mov r8d, 0x438
lea rcx, [rbp - 0x70]
call fcn.14000d390
nop
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14000cbd7
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14000cbd7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14000cbd7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8d, r15d
mov edx, r14d
lea rcx, [rbp - 0x70]
call fcn.14000d390
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.14000d080
movzx r12d, al
mov ecx, 0x28
call fcn.140029408
mov r9, rax
test rax, rax
je 0x14000cc3c
mov qword [rax], r13
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x14000cc1b
lock inc dword [rcx + 8]
mov rax, qword [rbp + 0x70]
mov qword [r9], rax
mov rax, qword [rbp + 0x78]
mov qword [r9 + 8], rax
mov rax, qword [rbp - 0x68]
mov qword [r9 + 0x10], rax
mov rax, qword [rbp - 0x70]
mov qword [r9 + 0x18], rax
jmp 0x14000cc3f
mov r9, r13
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
lea r8, [0x14000c5b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000ce13
cmp dword [rsp + 0x58], 0
je 0x14000ce23
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14000ce0b
mov rax, qword [rbp + 0xe0]
test rax, rax
je 0x14000ccb4
nop
sub rax, 1
jne 0x14000cca0
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xd8], r13
mov rbx, qword [rbp + 0xd0]
mov rcx, qword [rbp + 0xc8]
test rbx, rbx
je 0x14000ccfc
nop word [rax + rax]
dec rbx
mov rax, qword [rcx + rbx*8]
test rax, rax
je 0x14000ccf0
mov edx, 0x10
mov rcx, rax
call fcn.140029444
mov rcx, qword [rbp + 0xc8]
test rbx, rbx
jne 0x14000ccd0
mov rbx, qword [rbp + 0xd0]
test rcx, rcx
je 0x14000cd36
lea rdx, [rbx*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cd31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cd31
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140029444
mov qword [rbp + 0xd0], r13
mov qword [rbp + 0xc8], r13
mov rcx, qword [rbp + 0xc0]
mov qword [rbp + 0xc0], r13
mov edx, 0x10
call fcn.140029444
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x14000cd8f
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14000cd8f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14000cd8f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
movzx eax, r12b
xor al, 1
mov byte [0x14003ee30], al
test rcx, rcx
je 0x14000cdb1
mov qword [rsp + 0x30], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
test rdi, rdi
je 0x14000cddd
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000cddd
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x14000cddd
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx eax, r12b
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400297b0
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
mov dword [rsp + 0x58], r13d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3