Function at 0x1400b6270
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [rcx - 4]
sub rcx, rax
jmp 0x1400b6280
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x70
lea r9, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov r12, rcx
lea r11, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov rax, qword [0x14018b5c0]
mov r13, rdx
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rbp, [r12 - 0xb0]
mov r8, qword [rbp]
lea r14, [r12 - 0xa0]
mov qword [rsp + 0x40], rbp
movsxd r10, dword [r8 + 4]
mov qword [r10 + rbp], r9
mov qword [r14], r11
cmp qword [r14 + 0x80], 0
je 0x1400b62f0
mov r9, qword [r14 + 0x18]
lea r8, [r12 - 0x30]
cmp r8, qword [r9]
je 0x1400b6504
cmp byte [r14 + 0x7c], 0
je 0x1400b642a
cmp qword [r14 + 0x80], 0
je 0x1400b63c9
mov r9, qword [r14 + 0x18]
lea r8, [r12 - 0x30]
cmp r8, qword [r9]
je 0x1400b64d8
cmp qword [r14 + 0x68], 0
je 0x1400b63bc
cmp byte [r14 + 0x71], 0
je 0x1400b63bc
mov r8, qword [r14]
mov rcx, r14
mov edx, 0xffffffff
mov qword [rsp + 0x38], r14
call qword [r8 + 0x18]
mov r14, qword [rsp + 0x38]
cmp eax, 0xffffffff
je 0x1400b63bc
mov r11, rsp
lea r8, [rsp + 0x48]
mov rcx, qword [r14 + 0x68]
add r14, 0x74
mov rdx, r14
lea r9, [rsp + 0x68]
lea r10, [rsp + 0x30]
mov r15, qword [rcx]
mov qword [r11 + 0x20], r10
call qword [r15 + 0x40]
mov r14, qword [rsp + 0x38]
test eax, eax
je 0x1400b6391
cmp eax, 1
je 0x1400b6396
cmp eax, 3
jne 0x1400b63bc
mov byte [r14 + 0x71], 0
jmp 0x1400b63bc
mov byte [r14 + 0x71], 0
mov r8, qword [rsp + 0x30]
lea r9, [rsp + 0x48]
sub r8, r9
je 0x1400b63bc
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 r15, [r14 + 8]
mov byte [r14 + 0x7c], dl
lea r9, [r14 + 0x10]
mov byte [r14 + 0x71], dl
lea rax, [r14 + 0x28]
mov qword [r14 + 0x18], r15
lea r10, [r14 + 0x30]
mov qword [r14 + 0x20], r9
lea rcx, [r14 + 0x48]
mov qword [r14 + 0x38], rax
lea r11, [r14 + 0x4c]
mov qword [r14 + 0x40], r10
xor r8d, r8d
mov qword [r9], r8
mov qword [r10], r8
mov dword [r11], edx
mov qword [r15], r8
mov qword [rax], r8
mov dword [rcx], edx
mov r9, qword [0x140190b80]
mov qword [r14 + 0x50], rcx
mov qword [r14 + 0x58], r11
mov qword [rax + 0x58], r8
mov qword [r14 + 0x74], r9
mov qword [r14 + 0x68], r8
mov r8, qword [sym.imp.MSVCP140.dll_const_std::basic_streambuf_char__struct_std::char_traits_char__::vftable]
mov qword [r14], r8
mov r14, qword [r14 + 0x60]
test r14, r14
je 0x1400b646c
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1400b645f
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x1400b645f
mov r8, qword [rax]
mov rcx, rax
mov edx, 1
call qword [r8]
mov rcx, r14
mov edx, 0x10
call fcn.14013ad50
mov r10, qword [rsp + 0x40]
mov rcx, r12
mov r8, qword [sym.imp.MSVCP140.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov r11, qword [sym.imp.MSVCP140.dll_const_std::ios_base::vftable]
mov rdx, qword [r10]
movsxd r9, dword [rdx + 4]
mov qword [r9 + r10], r8
mov qword [r12], r11
call qword [sym.imp.MSVCP140.dll_private:_static_void___cdecl_std::ios_base::_Ios_base_dtor_class_std::ios_base____ptr64_]
test r13, 1
je 0x1400b64ad
mov rcx, rbp
mov edx, 0x110
call fcn.14013ad50
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], 0
xor rcx, rsp
cmp rcx, qword [0x14018b5c0]
jne 0x1400b64ff
mov rax, rbp
add rsp, 0x70
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
mov r8, qword [r14 + 0x88]
mov r10, qword [r14 + 0x90]
mov qword [r9], r8
sub r10, r8
mov r9, qword [r14 + 0x38]
mov qword [r9], r8
mov r11, qword [r14 + 0x50]
mov dword [r11], r10d
jmp 0x1400b631b
call fcn.14013ad30
mov r8, qword [r14 + 0x88]
mov r10, qword [r14 + 0x90]
mov qword [r9], r8
sub r10, r8
mov r9, qword [r14 + 0x38]
mov qword [r9], r8
mov r11, qword [r14 + 0x50]
mov dword [r11], r10d
jmp 0x1400b62f0