Function at 0x140080910
Capabilities:
Write file on windows

Disassembly:
push r14
push r15
push rbp
sub rsp, 0x70
lea r8, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x90], rcx
lea r10, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov rbp, qword [rsp + 0x90]
mov rax, qword [0x14018b5c0]
xor rax, rsp
mov rdx, qword [rbp]
lea r14, [rbp + 0x18]
mov qword [rsp + 0x68], rax
movsxd r9, dword [rdx + 4]
mov qword [rsp + 0x40], rbp
mov qword [r9 + rbp], r8
mov qword [r14], r10
cmp qword [r14 + 0x80], 0
je 0x14008097c
mov r8, qword [r14 + 0x18]
lea rax, [rbp + 0x88]
cmp rax, qword [r8]
je 0x140080ba2
cmp byte [r14 + 0x7c], 0
je 0x140080ab6
cmp qword [r14 + 0x80], 0
je 0x140080a56
mov r8, qword [r14 + 0x18]
lea rax, [rbp + 0x88]
cmp rax, qword [r8]
je 0x140080b76
cmp qword [r14 + 0x68], 0
je 0x140080a49
cmp byte [r14 + 0x71], 0
je 0x140080a49
mov rax, qword [r14]
mov rcx, r14
mov edx, 0xffffffff
mov qword [rsp + 0x38], r14
call qword [rax + 0x18]
mov r14, qword [rsp + 0x38]
cmp eax, 0xffffffff
je 0x140080a49
mov r10, rsp
lea r8, [rsp + 0x48]
mov rcx, qword [r14 + 0x68]
add r14, 0x74
mov rdx, r14
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
mov r11, qword [rcx]
mov qword [r10 + 0x20], rax
call qword [r11 + 0x40]
mov r14, qword [rsp + 0x38]
test eax, eax
je 0x140080a1e
cmp eax, 1
je 0x140080a23
cmp eax, 3
jne 0x140080a49
mov byte [r14 + 0x71], 0
jmp 0x140080a49
mov byte [r14 + 0x71], 0
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
sub r8, rax
je 0x140080a49
mov r9, qword [r14 + 0x80]
lea rcx, [rsp + 0x48]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [r14 + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edx, edx
lea r11, [r14 + 8]
mov byte [r14 + 0x7c], dl
lea r8, [r14 + 0x10]
mov byte [r14 + 0x71], dl
lea r15, [r14 + 0x28]
mov qword [r14 + 0x18], r11
lea r9, [r14 + 0x30]
mov qword [r14 + 0x20], r8
lea rcx, [r14 + 0x48]
mov qword [r14 + 0x38], r15
lea r10, [r14 + 0x4c]
mov qword [r14 + 0x40], r9
xor eax, eax
mov qword [r8], rax
mov qword [r9], rax
mov dword [r10], edx
mov qword [r11], rax
mov qword [r15], rax
mov dword [rcx], edx
mov r8, qword [0x140190b80]
mov qword [r14 + 0x50], rcx
mov qword [r14 + 0x58], r10
mov qword [rcx + 0x38], rax
mov qword [r14 + 0x74], r8
mov qword [r14 + 0x68], rax
mov rax, qword [sym.imp.MSVCP140.dll_const_std::basic_streambuf_char__struct_std::char_traits_char__::vftable]
mov qword [r14], rax
mov r14, qword [r14 + 0x60]
test r14, r14
je 0x140080af8
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x140080aeb
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140080aeb
mov r8, qword [rax]
mov rcx, rax
mov edx, 1
call qword [r8]
mov rcx, r14
mov edx, 0x10
call fcn.14013ad50
mov rax, qword [rsp + 0x40]
add rbp, 0xb8
mov r8, qword [sym.imp.MSVCP140.dll_const_std::basic_iostream_char__struct_std::char_traits_char__::vftable]
mov rcx, rbp
mov r11, qword [sym.imp.MSVCP140.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov rdx, qword [rax]
lea r15, [rax + 0x10]
movsxd r9, dword [rdx + 4]
mov qword [r9 + rax], r8
mov r10, qword [r15]
movsxd r14, dword [r10 + 4]
mov qword [r14 + r15], r11
mov rdx, qword [rax]
movsxd r8, dword [rdx + 4]
mov rdx, qword [sym.imp.MSVCP140.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov qword [r8 + rax], rdx
mov rax, qword [sym.imp.MSVCP140.dll_const_std::ios_base::vftable]
mov qword [rbp], rax
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 + 0x68]
mov qword [rsp + 0x68], 0
xor rcx, rsp
cmp rcx, qword [0x14018b5c0]
jne 0x140080b9d
add rsp, 0x70
pop rbp
pop r15
pop r14
ret
mov rax, qword [r14 + 0x88]
mov r9, qword [r14 + 0x90]
mov qword [r8], rax
sub r9, rax
mov r8, qword [r14 + 0x38]
mov qword [r8], rax
mov r10, qword [r14 + 0x50]
mov dword [r10], r9d
jmp 0x1400809a9
call fcn.14013ad30
mov rax, qword [r14 + 0x88]
mov r9, qword [r14 + 0x90]
mov qword [r8], rax
sub r9, rax
mov r8, qword [r14 + 0x38]
mov qword [r8], rax
mov r10, qword [r14 + 0x50]
mov dword [r10], r9d
jmp 0x14008097c