Function at 0x140004840
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14005c040]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r13d, r13d
mov r14, qword [0x1400607f0]
lea rcx, [rbp - 0x39]
call fcn.140003a20
cmp dword [rbp - 0x39], r13d
jne 0x140004890
mov byte [r14 + 0x18], r13b
xor al, al
jmp 0x140004b99
call fcn.140009490
mov r15, qword [r14 + 0x98]
mov rdi, qword [r15 + 8]
cmp byte [rdi + 0x19], r13b
jne 0x1400048e9
nop word [rax + rax]
mov r8, qword [rdi + 0x10]
lea rdx, [r14 + 0x98]
lea rcx, [r14 + 0x98]
call fcn.140006b90
mov rbx, rdi
mov rdi, qword [rdi]
lea rcx, [rbx + 0x30]
call fcn.1400050c0
mov edx, 0x70
mov rcx, rbx
call fcn.1400486f8
cmp byte [rdi + 0x19], r13b
je 0x1400048b0
mov qword [r15 + 8], r15
mov qword [r15], r15
mov qword [r15 + 0x10], r15
mov qword [r14 + 0xa0], r13
movaps xmm2, xmmword [rbp - 0x39]
movups xmmword [r14 + 0xb0], xmm2
movaps xmm0, xmmword [rbp - 0x29]
movups xmmword [r14 + 0xc0], xmm0
movaps xmm1, xmmword [rbp - 0x19]
movups xmmword [r14 + 0xd0], xmm1
movaps xmm0, xmmword [rbp - 9]
movups xmmword [r14 + 0xe0], xmm0
mov r8d, dword [rbp - 0x39]
psrldq xmm2, 8
movq rdx, xmm2
lea rcx, str.attaching_to__s__d__n
call fcn.1400011d0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
mov qword [rbp + 0x17], r13
mov rbx, qword [0x1400607f8]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140004a6f
lea rsi, [0x1400046e0]
nop dword [rax]
mov ecx, 0x20
call fcn.140048474
mov rcx, qword [rbx + 0x28]
mov qword [rax], rcx
mov rcx, qword [rbx + 0x20]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], rsi
mov qword [rbp + 0x1f], rax
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [0x1400083b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140004a5f
mov rdx, qword [rbp + 0xf]
cmp rdx, qword [rbp + 0x17]
je 0x1400049eb
xorps xmm0, xmm0
movaps xmm1, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movups xmmword [rdx], xmm1
mov rdi, qword [rbp + 0xf]
add rdi, 0x10
mov qword [rbp + 0xf], rdi
jmp 0x1400049fc
lea r8, [rbp - 0x49]
lea rcx, [rbp + 7]
call fcn.1400076d0
mov rdi, qword [rbp + 0xf]
cmp dword [rbp - 0x41], 0
jne 0x140004a58
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140004a2e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140004a29
cmp rbx, qword [rax + 0x10]
jne 0x140004a29
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140004a16
mov rbx, rax
jmp 0x140004a4c
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140004a4c
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140004a40
cmp byte [rbx + 0x19], 0
je 0x140004970
jmp 0x140004a73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rbp - 0x41], r13d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rdi, qword [rbp + 0xf]
mov rbx, qword [rbp + 7]
cmp rbx, rdi
je 0x140004abf
nop dword [rax]
cmp dword [rbx + 8], 0
je 0x140004ae3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140004ad7
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x49], xmm0
xor edx, edx
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140004acb
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140004a80
mov rdi, qword [rbp + 0xf]
mov rbx, qword [rbp + 7]
cmp byte [r14 + 0x18], 0
je 0x140004aef
mov sil, 1
jmp 0x140004b37
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov byte [r14 + 0x18], 0
mov dword [rbp - 0x39], r13d
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x11], r13
mov qword [rbp - 1], r13
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [r14 + 0xb0], xmm0
movups xmm1, xmmword [rbp - 0x29]
movups xmmword [r14 + 0xc0], xmm1
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [r14 + 0xd0], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [r14 + 0xe0], xmm1
xor sil, sil
test rbx, rbx
je 0x140004b95
mov rax, rbx
cmp rbx, rdi
je 0x140004b53
cmp dword [rax + 8], 0
jne 0x140004b86
add rax, 0x10
cmp rax, rdi
jne 0x140004b44
mov rdx, qword [rbp + 0x17]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140004b8d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, rbx
call fcn.1400486f8
movzx eax, sil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140048370
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret