Function at 0x1400395d0
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3b0
movaps xmmword [rsp + 0x3a0], xmm6
mov rax, qword [0x1400aa140]
xor rax, rsp
mov qword [rsp + 0x398], rax
mov r13, r8
mov r15, rdx
mov r12, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x350], rdx
xor r14d, r14d
lea ecx, [r14 + 0x28]
call fcn.140074874
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140039658
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, [0x14008c020]
mov qword [rdi], rax
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
mov qword [rdi + 0x20], r14
jmp 0x14003965b
mov rdi, r14
lea rax, [rdi + 0x10]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
mov rbx, qword [r12]
mov rbx, qword [rbx]
mov esi, 0xffffffff
cmp byte [rbx + 0x19], 0
jne 0x1400398a4
mov r14d, dword [rbx + 0x1c]
test rdi, rdi
je 0x140039691
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x360], rax
mov qword [rsp + 0x368], rdi
mov rdx, r15
lea rcx, [rsp + 0x370]
call fcn.140009df0
nop
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_98cda6bc9b8603990fd4254cd0812f79___void__struct_HookParam__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x360]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x368]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x360], xmm0
movups xmm1, xmmword [rsp + 0x370]
movups xmmword [rsp + 0x88], xmm1
movups xmm0, xmmword [rsp + 0x380]
movups xmmword [rsp + 0x98], xmm0
xor eax, eax
mov qword [rsp + 0x380], rax
mov qword [rsp + 0x388], 7
mov word [rsp + 0x370], ax
lea rax, [rsp + 0x70]
mov qword [rsp + 0xa8], rax
mov rax, r13
lea rcx, [rsp + 0xd0]
mov edx, 4
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x140039750
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rax + 0x70]
mov qword [rcx + 0x70], rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0xd0]
mov ecx, r14d
call fcn.14004f6b0
nop
lea rcx, [rsp + 0x370]
call fcn.14000d120
mov rcx, qword [rsp + 0x368]
test rcx, rcx
je 0x14003984b
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140039846
mov rdi, qword [rsp + 0x368]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140039846
mov rcx, qword [rsp + 0x368]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x38]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14003987b
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140039873
nop
cmp rbx, qword [rax + 0x10]
jne 0x140039873
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140039860
mov rbx, rax
jmp 0x140039675
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140039675
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140039890
jmp 0x140039675
test rdi, rdi
je 0x1400398b2
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x38]
movaps xmm6, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm6
mov ecx, 0x10
call fcn.140074874
mov r9, rax
xor r14d, r14d
test rax, rax
je 0x1400398e9
mov rax, qword [rsp + 0x30]
mov qword [r9], rax
mov qword [r9 + 8], rdi
xorps xmm6, xmm6
movdqa xmmword [rsp + 0x60], xmm6
jmp 0x1400398ec
mov r9, r14
mov qword [rsp + 0xb0], r9
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
lea r8, [0x14001de00]
xor edx, edx
xor ecx, ecx
call sub.msvcrt.dll__beginthreadex
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140039a3f
cmp dword [rsp + 0x58], 0
je 0x140039a34
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0xc0], xmm0
lea rcx, [rsp + 0xc0]
call fcn.14005625c
test eax, eax
jne 0x140039a34
xorps xmm0, xmm0
movaps xmmword [rsp + 0x350], xmm0
movdqa xmmword [rsp + 0x50], xmm0
psrldq xmm6, 8
movq rcx, xmm6
test rcx, rcx
je 0x1400399a4
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003999f
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14003999f
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x1400399f5
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400399f5
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1400399f5
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400399f5
mov rdx, r12
mov rcx, r12
call fcn.14001ced0
nop
mov rcx, r15
call fcn.14000d120
mov rcx, qword [rsp + 0x398]
xor rcx, rsp
call fcn.1400749d0
movaps xmm6, xmmword [rsp + 0x3a0]
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 1
call fcn.140055eb4
nop
mov dword [rsp + 0x58], r14d
mov ecx, 6
call fcn.140055eb4
int3