Function at 0x14004fe20
Capabilities:
Write file on windows

Disassembly:
push r14
push r15
push rbp
sub rsp, 0x60
lea r8, vtable.std::basic_ofstream_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 [0x1400b7ba8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdx, qword [r14]
lea rbp, [r14 + 8]
movsxd r9, dword [rdx + 4]
mov qword [r9 + r14], r8
mov qword [rbp], r10
cmp qword [rbp + 0x80], 0
je 0x14004fe77
mov rdx, qword [rbp + 0x18]
lea rax, [r14 + 0x78]
cmp rax, qword [rdx]
je 0x140050034
cmp byte [rbp + 0x7c], 0
je 0x14004ff99
cmp qword [rbp + 0x80], 0
je 0x14004ff34
mov rdx, qword [rbp + 0x18]
lea rax, [r14 + 0x78]
cmp rax, qword [rdx]
je 0x140050008
cmp qword [rbp + 0x68], 0
je 0x14004ff27
cmp byte [rbp + 0x71], 0
je 0x14004ff27
mov rax, qword [rbp]
mov rcx, rbp
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004ff27
mov rcx, qword [rbp + 0x68]
mov r11, rsp
lea rdx, [r14 + 0x7c]
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 0x14004fefd
cmp eax, 1
je 0x14004ff01
cmp eax, 3
jne 0x14004ff27
mov byte [rbp + 0x71], 0
jmp 0x14004ff27
mov byte [rbp + 0x71], 0
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub r8, rax
je 0x14004ff27
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 + 0x10]
mov byte [rbp + 0x7c], r15b
lea rdx, [r14 + 0x18]
mov byte [rbp + 0x71], r15b
lea r11, [r14 + 0x30]
mov qword [rbp + 0x18], r10
lea r8, [r14 + 0x38]
mov qword [rbp + 0x20], rdx
lea rcx, [r14 + 0x50]
mov qword [rbp + 0x38], r11
lea r9, [r14 + 0x54]
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 [0x1400c4520]
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], r9
mov qword [rbp + 0x80], rax
mov qword [r14 + 0x7c], 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 0x14004ffb7
mov edx, 1
call fcn.1400526e0
mov rax, qword [r14]
mov rdx, qword [sym.imp.MSVCP140.dll_const_std::basic_ostream_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, 0xa8
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 [0x1400b7ba8]
jne 0x14005002f
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 0x14004fea0
call fcn.1400965d0
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 0x14004fe77