Function at 0x1400031c0
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 - 0xc0]
sub rsp, 0x1c0
movaps xmmword [rsp + 0x1b0], xmm6
mov rax, qword [0x14004c070]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, rdx
mov r15, rcx
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x60]
call fcn.140011c80
lea rcx, [rsp + 0x60]
call fcn.140007690
nop
cmp qword [rbx + 0x18], 0x10
jb 0x140003225
mov rbx, qword [rbx]
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140007590
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x70], 6
je 0x140003254
mov rbx, 0xffffffffffffffff
jmp 0x140003479
xor ebx, ebx
mov edi, 0x1000
nop dword [rax + rax]
mov r8d, 8
sub r8d, ebx
cmp r8d, edi
cmovg r8d, edi
movsxd rax, ebx
lea rdx, [rbp + 0x70]
add rdx, rax
xor r9d, r9d
mov rcx, r15
call qword [0x14004f330]
test eax, eax
js 0x140003472
add ebx, eax
cmp ebx, 8
jl 0x140003260
mov edx, 8
lea rcx, [rbp + 0x70]
call fcn.140001d90
cmp ebx, 8
jne 0x140003472
lea ecx, [rbx - 4]
call fcn.140017474
mov r12, rax
lea ecx, [rbx + 8]
call fcn.14000f80c
mov qword [rax], r12
lea rcx, [0x140003640]
mov qword [rax + 8], rcx
mov qword [rbp + 0x90], rax
lea rcx, [rbp + 0x88]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14000de70]
xor edx, edx
xor ecx, ecx
call fcn.140018a04
mov qword [rbp + 0x80], rax
test rax, rax
je 0x14000351c
cmp dword [rbp + 0x88], 0
je 0x140003537
movaps xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp + 0x90], xmm0
lea rcx, [rbp + 0x90]
call fcn.14000f114
test eax, eax
jne 0x140003542
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x80], xmm0
xorps xmm6, xmm6
cvtsi2ss xmm6, qword [rbp + 0x70]
mov ecx, 0x10000
call fcn.14000facc
mov r14, rax
xor r13b, r13b
mov rsi, qword [rbp + 0x70]
test rsi, rsi
je 0x140003409
nop dword [rax]
mov edi, 0x10000
cmp rsi, rdi
cmovl rdi, rsi
xor ebx, ebx
test edi, edi
jle 0x1400033b0
mov r8d, edi
sub r8d, ebx
mov eax, 0x1000
cmp r8d, eax
cmovg r8d, eax
movsxd rdx, ebx
add rdx, r14
xor r9d, r9d
mov rcx, r15
call qword [0x14004f330]
test eax, eax
js 0x140003406
add ebx, eax
cmp ebx, edi
jl 0x140003382
mov edx, edi
mov rcx, r14
call fcn.140001d90
test ebx, ebx
js 0x140003406
movsxd rbx, ebx
mov r8, rbx
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.140007930
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x140003406
sub rsi, rbx
mov rax, qword [rbp + 0x70]
sub rax, rsi
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, xmm6
movss dword [r12], xmm0
test rsi, rsi
jne 0x140003370
jmp 0x140003409
mov r13b, 1
mov rcx, r14
call fcn.14000fa98
lea rcx, [rsp + 0x68]
call fcn.14000ac80
test rax, rax
jne 0x140003451
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x58], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x70]
and eax, 0x17
mov dword [rsp + rcx + 0x70], eax
and eax, dword [rsp + rcx + 0x74]
jne 0x14000354a
mov rbx, qword [rbp + 0x70]
mov rax, 0xfffffffffffffffd
test r13b, r13b
cmovne rbx, rax
cmp dword [rbp + 0x88], 0
jne 0x140003531
jmp 0x140003479
mov rbx, 0xfffffffffffffffe
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140008e70
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x5c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.14000ea58
nop
mov rax, rbx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14000f550
mov rbx, qword [rsp + 0x210]
movaps xmm6, xmmword [rsp + 0x1b0]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp + 0x88], 0
mov ecx, 6
call fcn.14000e4d4
nop
call fcn.14001c434
nop
mov ecx, 1
call fcn.14000e4d4
int3
mov ecx, eax
call fcn.14000e498
int3
test al, 4
je 0x140003557
lea rbx, str.ios_base::badbit_set
jmp 0x14000356b
test dl, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x90]
call fcn.1400021c0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400029a0
lea rdx, [0x14004b1e8]
lea rcx, [rsp + 0x30]
call fcn.1400114fc
int3