Function at 0x1400123b0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x30]
lea r8, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x18], rbx
mov rbx, qword [rbp + 0x60]
mov qword [rbp + 0x10], rsi
mov rax, qword [0x14018b5c0]
xor rax, rbp
mov qword [rbp + 0x40], rax
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rbx], r8
cmp qword [rbx + 0x80], 0
je 0x140012408
mov rsi, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp rax, qword [rsi]
je 0x1400125bc
cmp byte [rbx + 0x7c], 0
je 0x140012528
cmp qword [rbx + 0x80], 0
je 0x1400124ca
mov rsi, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp rax, qword [rsi]
je 0x14001258f
cmp qword [rbx + 0x68], 0
je 0x1400124bd
cmp byte [rbx + 0x71], 0
je 0x1400124bd
mov rax, qword [rbx]
mov rcx, rbx
mov edx, 0xffffffff
call qword [rax + 0x18]
mov rbx, qword [rbp + 0x60]
cmp eax, 0xffffffff
je 0x1400124bd
mov rsi, rsp
lea r8, [rbp + 0x20]
mov rcx, qword [rbx + 0x68]
add rbx, 0x74
mov rdx, rbx
lea r9, [rbp + 0x40]
lea rax, [rbp]
mov r10, qword [rcx]
mov qword [rsi + 0x20], rax
call qword [r10 + 0x40]
mov rbx, qword [rbp + 0x60]
test eax, eax
je 0x140012496
cmp eax, 1
je 0x14001249a
cmp eax, 3
jne 0x1400124bd
mov byte [rbx + 0x71], 0
jmp 0x1400124bd
mov byte [rbx + 0x71], 0
mov r8, qword [rbp]
lea rax, [rbp + 0x20]
sub r8, rax
je 0x1400124bd
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x20]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edx, edx
lea r10, [rbx + 8]
mov byte [rbx + 0x7c], dl
lea rsi, [rbx + 0x10]
mov byte [rbx + 0x71], dl
lea r11, [rbx + 0x28]
mov qword [rbx + 0x18], r10
lea r8, [rbx + 0x30]
mov qword [rbx + 0x20], rsi
lea rcx, [rbx + 0x48]
mov qword [rbx + 0x38], r11
lea r9, [rbx + 0x4c]
mov qword [rbx + 0x40], r8
xor eax, eax
mov qword [rsi], rax
mov qword [r8], rax
mov dword [r9], edx
mov qword [r10], rax
mov qword [r11], rax
mov dword [rcx], edx
mov rsi, qword [0x140190b80]
mov qword [rbx + 0x50], rcx
mov qword [rbx + 0x58], r9
mov qword [rcx + 0x38], rax
mov qword [rbx + 0x74], rsi
mov qword [rbx + 0x68], rax
mov rax, qword [sym.imp.MSVCP140.dll_const_std::basic_streambuf_char__struct_std::char_traits_char__::vftable]
mov qword [rbx], rax
mov rbx, qword [rbx + 0x60]
test rbx, rbx
je 0x140012569
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001255c
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14001255c
mov rsi, qword [rax]
mov rcx, rax
mov edx, 1
call qword [rsi]
mov rcx, rbx
mov edx, 0x10
call fcn.14013ad50
mov rcx, qword [rbp + 0x40]
mov qword [rbp + 0x40], 0
xor rcx, rbp
cmp rcx, qword [0x14018b5c0]
jne 0x1400125b6
mov rbx, qword [rbp + 0x18]
mov rsi, qword [rbp + 0x10]
lea rsp, [rbp + 0x50]
pop rbp
ret
mov rax, qword [rbx + 0x88]
mov r8, qword [rbx + 0x90]
mov qword [rsi], rax
sub r8, rax
mov rsi, qword [rbx + 0x38]
mov qword [rsi], rax
mov r9, qword [rbx + 0x50]
mov dword [r9], r8d
jmp 0x140012431
call fcn.14013ad30
nop
mov rax, qword [rbx + 0x88]
mov r8, qword [rbx + 0x90]
mov qword [rsi], rax
sub r8, rax
mov rsi, qword [rbx + 0x38]
mov qword [rsi], rax
mov r9, qword [rbx + 0x50]
mov dword [r9], r8d
jmp 0x140012408