Function at 0x14001e590
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x30]
lea rdx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x28], r13
lea r10, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov r13, rcx
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], r14
mov r9, qword [0x1400a2fa8]
mov rax, qword [r13 - 0xb0]
xor r9, rbp
mov qword [rbp + 0x50], r9
lea r9, [r13 - 0xa0]
mov qword [rbp + 8], 0xfffffffffffffffe
movsxd r8, dword [rax + 4]
mov qword [rbp + 0x10], r9
mov qword [r8 + r13 - 0xb0], rdx
mov qword [r9], r10
cmp qword [r9 + 0x80], 0
je 0x14001e60c
mov r8, qword [r9 + 0x18]
lea rax, [r13 - 0x30]
cmp rax, qword [r8]
je 0x14001e7cc
cmp byte [r9 + 0x7c], 0
je 0x14001e73e
cmp qword [r9 + 0x80], 0
je 0x14001e6de
mov r8, qword [r9 + 0x18]
lea rax, [r13 - 0x30]
cmp rax, qword [r8]
je 0x14001e79f
cmp qword [r9 + 0x68], 0
je 0x14001e6cd
cmp byte [r9 + 0x71], 0
je 0x14001e6cd
mov rax, qword [r9]
mov rcx, r9
mov edx, 0xffffffff
call qword [rax + 0x18]
mov r9, qword [rbp + 0x10]
cmp eax, 0xffffffff
je 0x14001e6cd
mov r10, rsp
lea r8, [rbp + 0x30]
mov rcx, qword [r9 + 0x68]
add r9, 0x74
mov rdx, r9
lea r9, [rbp + 0x50]
lea rax, [rbp]
mov r11, qword [rcx]
mov qword [r10 + 0x20], rax
call qword [r11 + 0x40]
mov r9, qword [rbp + 0x10]
test eax, eax
je 0x14001e6a1
cmp eax, 1
je 0x14001e6a6
cmp eax, 3
jne 0x14001e6cd
mov byte [r9 + 0x71], 0
jmp 0x14001e6cd
mov byte [r9 + 0x71], 0
mov r8, qword [rbp]
lea rax, [rbp + 0x30]
sub r8, rax
je 0x14001e6cd
mov r9, qword [r9 + 0x80]
lea rcx, [rbp + 0x30]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp + 0x10]
mov rcx, qword [r9 + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r9, qword [rbp + 0x10]
xor edx, edx
lea r14, [r9 + 8]
mov byte [r9 + 0x7c], dl
lea r8, [r9 + 0x10]
mov byte [r9 + 0x71], dl
lea r15, [r9 + 0x28]
mov qword [r9 + 0x18], r14
lea r10, [r9 + 0x30]
mov qword [r9 + 0x20], r8
lea rcx, [r9 + 0x48]
mov qword [r9 + 0x38], r15
lea r11, [r9 + 0x4c]
mov qword [r9 + 0x40], r10
xor eax, eax
mov qword [r8], rax
mov qword [r10], rax
mov dword [r11], edx
mov qword [r14], rax
mov qword [r15], rax
mov dword [rcx], edx
mov r8, qword [0x1400aa330]
mov qword [r9 + 0x50], rcx
mov qword [r9 + 0x58], r11
mov qword [rcx + 0x38], rax
mov qword [r9 + 0x74], r8
mov qword [r9 + 0x68], rax
mov rax, qword [sym.imp.MSVCP140.dll_const_std::basic_streambuf_char__struct_std::char_traits_char__::vftable]
mov rcx, qword [r9 + 0x60]
mov qword [r9], rax
test rcx, rcx
je 0x14001e75b
mov edx, 1
call fcn.140024280
mov rax, qword [r13 - 0xb0]
mov rdx, qword [sym.imp.MSVCP140.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
movsxd rcx, dword [rax + 4]
mov qword [rcx + r13 - 0xb0], rdx
mov rcx, qword [rbp + 0x50]
mov qword [rbp + 0x50], 0
xor rcx, rbp
cmp rcx, qword [0x1400a2fa8]
jne 0x14001e7c6
mov r13, qword [rbp + 0x28]
mov r14, qword [rbp + 0x20]
mov r15, qword [rbp + 0x18]
lea rsp, [rbp + 0x60]
pop rbp
ret
mov rax, qword [r9 + 0x88]
mov r10, qword [r9 + 0x90]
mov qword [r8], rax
sub r10, rax
mov r8, qword [r9 + 0x38]
mov qword [r8], rax
mov r11, qword [r9 + 0x50]
mov dword [r11], r10d
jmp 0x14001e636
call fcn.140080e70
nop
mov rax, qword [r9 + 0x88]
mov r10, qword [r9 + 0x90]
mov qword [r8], rax
sub r10, rax
mov r8, qword [r9 + 0x38]
mov qword [r8], rax
mov r11, qword [r9 + 0x50]
mov dword [r11], r10d
jmp 0x14001e60c