Function at 0x140002760
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0xb8], rcx
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x80], rax
cmp qword [rax + 0x78], 0
jne 0x14000279a
mov dword [rsp + 0xc4], 0
jmp 0x140002bd5
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
jne 0x1400027b5
call method.std::__1.__throw_bad_cast_abi:v170003___
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x94]
and eax, 0x10
cmp eax, 0
je 0x14000293c
mov rcx, qword [rsp + 0x80]
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.pptr_abi:v170003____const
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x78], rax
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.pbase_abi:v170003____const
mov rcx, rax
mov rax, qword [rsp + 0x78]
cmp rax, rcx
je 0x140002840
call method.std::__1::char_traits_char_.eof_abi:v170003___
mov rcx, qword [rsp + 0x80]
mov edx, eax
mov rax, qword [rcx]
call qword [rax + 0x68]
mov dword [rsp + 0x74], eax
call method.std::__1::char_traits_char_.eof_abi:v170003___
mov ecx, eax
mov eax, dword [rsp + 0x74]
cmp eax, ecx
jne 0x14000283b
mov dword [rsp + 0xc4], 0xffffffff
jmp 0x140002bd5
jmp 0x140002840
jmp 0x140002845
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x80]
mov rdx, rax
add rdx, 0x88
mov r8, qword [rax + 0x40]
mov r9, qword [rax + 0x40]
add r9, qword [rax + 0x60]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
call method.std::__1::codecvt_char__char__int_.unshift_abi:v170003__int__char__char__char__const
mov ecx, eax
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0xb4], ecx
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rax + 0x40]
sub rcx, rdx
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rax + 0x40]
mov r8, qword [rsp + 0xa0]
mov r9, qword [rax + 0x78]
mov edx, 1
call sym.fwrite
cmp rax, qword [rsp + 0xa0]
je 0x1400028dc
mov dword [rsp + 0xc4], 0xffffffff
jmp 0x140002bd5
jmp 0x1400028e1
cmp dword [rsp + 0xb4], 1
je 0x140002845
cmp dword [rsp + 0xb4], 2
jne 0x14000290d
mov dword [rsp + 0xc4], 0xffffffff
jmp 0x140002bd5
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x78]
call sym.fflush
cmp eax, 0
je 0x140002937
mov dword [rsp + 0xc4], 0xffffffff
jmp 0x140002bd5
jmp 0x140002bca
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x94]
and eax, 8
cmp eax, 0
je 0x140002bc5
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x8c]
mov dword [rsp + 0x94], ecx
mov byte [rsp + 0x93], 0
test byte [rax + 0x9a], 1
je 0x1400029b7
mov rcx, qword [rsp + 0x80]
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.egptr_abi:v170003____const
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.gptr_abi:v170003____const
mov rcx, rax
mov rax, qword [rsp + 0x68]
sub rax, rcx
mov qword [rsp + 0x98], rax
jmp 0x140002b30
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x80]
call method.std::__1::codecvt_char__char__int_.encoding_abi:v170003____const
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x8c], eax
mov rax, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x48]
sub rax, rcx
mov qword [rsp + 0x98], rax
cmp dword [rsp + 0x8c], 0
jle 0x140002a50
mov rcx, qword [rsp + 0x80]
movsxd rax, dword [rsp + 0x8c]
mov qword [rsp + 0x60], rax
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.egptr_abi:v170003____const
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.gptr_abi:v170003____const
mov rcx, qword [rsp + 0x58]
mov rdx, rax
mov rax, qword [rsp + 0x60]
sub rcx, rdx
imul rax, rcx
add rax, qword [rsp + 0x98]
mov qword [rsp + 0x98], rax
jmp 0x140002b2b
mov rcx, qword [rsp + 0x80]
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.gptr_abi:v170003____const
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.egptr_abi:v170003____const
mov rcx, rax
mov rax, qword [rsp + 0x50]
cmp rax, rcx
je 0x140002b26
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x48]
mov qword [rsp + 0x40], rax
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.gptr_abi:v170003____const
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.eback_abi:v170003____const
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov rdx, rax
mov rax, qword [rsp + 0x48]
sub rax, rdx
lea rdx, [rsp + 0x94]
mov qword [rsp + 0x20], rax
call method.std::__1::codecvt_char__char__int_.length_abi:v170003__int__char_const__char_const__unsigned_long_long__const
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x88], eax
mov rax, qword [rcx + 0x48]
mov rcx, qword [rcx + 0x40]
sub rax, rcx
movsxd rcx, dword [rsp + 0x88]
sub rax, rcx
add rax, qword [rsp + 0x98]
mov qword [rsp + 0x98], rax
mov byte [rsp + 0x93], 1
jmp 0x140002b2b
jmp 0x140002b30
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x78]
xor eax, eax
sub rax, qword [rsp + 0x98]
mov edx, eax
mov r8d, 1
call dbg.fseeko
cmp eax, 0
je 0x140002b6c
mov dword [rsp + 0xc4], 0xffffffff
jmp 0x140002bd5
test byte [rsp + 0x93], 1
je 0x140002b8f
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x94]
mov dword [rax + 0x88], ecx
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx + 0x40]
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x48], rax
xor eax, eax
mov r9d, eax
mov rdx, r9
mov r8, r9
call method.std::__1::basic_streambuf_char__std::__1::char_traits_char___.setg_abi:v170003__char__char__char_
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x94], 0
jmp 0x140002bca
mov dword [rsp + 0xc4], 0
mov eax, dword [rsp + 0xc4]
add rsp, 0xc8
ret