Function at 0x14001b310
Capabilities:
Write file on windows

Disassembly:
push r14
push r15
push rbp
sub rsp, 0x60
lea r8, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov r14, rcx
lea r10, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov rax, qword [0x1400a2fa8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdx, qword [r14]
lea rbp, [r14 + 0x10]
movsxd r9, dword [rdx + 4]
mov qword [r9 + r14], r8
mov qword [rbp], r10
cmp qword [rbp + 0x80], 0
je 0x14001b36a
mov rdx, qword [rbp + 0x18]
lea rax, [r14 + 0x80]
cmp rax, qword [rdx]
je 0x14001b52d
cmp byte [rbp + 0x7c], 0
je 0x14001b492
cmp qword [rbp + 0x80], 0
je 0x14001b42d
mov rdx, qword [rbp + 0x18]
lea rax, [r14 + 0x80]
cmp rax, qword [rdx]
je 0x14001b501
cmp qword [rbp + 0x68], 0
je 0x14001b420
cmp byte [rbp + 0x71], 0
je 0x14001b420
mov rax, qword [rbp]
mov rcx, rbp
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001b420
mov rcx, qword [rbp + 0x68]
mov r11, rsp
lea rdx, [r14 + 0x84]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
lea r9, [rsp + 0x58]
lea r10, [rsp + 0x30]
mov qword [r11 + 0x20], r10
call qword [rax + 0x40]
test eax, eax
je 0x14001b3f6
cmp eax, 1
je 0x14001b3fa
cmp eax, 3
jne 0x14001b420
mov byte [rbp + 0x71], 0
jmp 0x14001b420
mov byte [rbp + 0x71], 0
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub r8, rax
je 0x14001b420
mov r9, qword [rbp + 0x80]
lea rcx, [rsp + 0x38]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r15d, r15d
lea r10, [r14 + 0x18]
mov byte [rbp + 0x7c], r15b
lea rdx, [r14 + 0x20]
mov byte [rbp + 0x71], r15b
lea r11, [r14 + 0x38]
mov qword [rbp + 0x18], r10
lea r8, [r14 + 0x40]
mov qword [rbp + 0x20], rdx
lea rcx, [r14 + 0x58]
mov qword [rbp + 0x38], r11
lea r9, [r14 + 0x5c]
mov qword [rbp + 0x40], r8
xor eax, eax
mov qword [rdx], rax
mov qword [r8], rax
mov dword [r9], r15d
mov qword [r10], rax
mov qword [r11], rax
mov dword [rcx], r15d
mov rdx, qword [0x1400aa330]
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], r9
mov qword [rbp + 0x80], rax
mov qword [rcx + 0x2c], rdx
mov qword [rbp + 0x68], rax
mov rax, qword [sym.imp.MSVCP140.dll_const_std::basic_streambuf_char__struct_std::char_traits_char__::vftable]
mov rcx, qword [rbp + 0x60]
mov qword [rbp], rax
test rcx, rcx
je 0x14001b4b0
mov edx, 1
call fcn.140024280
mov rax, qword [r14]
mov rdx, qword [sym.imp.MSVCP140.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov r8, qword [sym.imp.MSVCP140.dll_const_std::ios_base::vftable]
movsxd rbp, dword [rax + 4]
mov qword [rbp + r14], rdx
add r14, 0xb0
mov rcx, r14
mov qword [r14], r8
call qword [sym.imp.MSVCP140.dll_private:_static_void___cdecl_std::ios_base::_Ios_base_dtor_class_std::ios_base____ptr64_]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], 0
xor rcx, rsp
cmp rcx, qword [0x1400a2fa8]
jne 0x14001b528
add rsp, 0x60
pop rbp
pop r15
pop r14
ret
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 0x90]
mov qword [rdx], rax
sub r8, rax
mov rdx, qword [rbp + 0x38]
mov qword [rdx], rax
mov r9, qword [rbp + 0x50]
mov dword [r9], r8d
jmp 0x14001b396
call fcn.140080e70
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 0x90]
mov qword [rdx], rax
sub r8, rax
mov rdx, qword [rbp + 0x38]
mov qword [rdx], rax
mov r9, qword [rbp + 0x50]
mov dword [r9], r8d
jmp 0x14001b36a