Function at 0x1400e6140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140239e70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
add rax, 0x68
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
shr rax, 3
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x20], al
cmp byte [rsp + 0x20], 0
je 0x1400e61b1
movzx eax, byte [rsp + 0x30]
and al, 7
add al, 7
cmp al, byte [rsp + 0x20]
jl 0x1400e61b1
mov rcx, qword [rsp + 0x30]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
nop
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x1400e61df
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400e63b4
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x90], 0
jle 0x1400e62a2
cmp qword [rsp + 0x28], 0
jle 0x1400e62a2
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x90], rax
jge 0x1400e6236
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.140039190
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rsp + 0x90], 0
jle 0x1400e63a1
mov rax, qword [rsp + 0x80]
add rax, 0x80
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shr rax, 3
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x21], al
cmp byte [rsp + 0x21], 0
je 0x1400e6305
movzx eax, byte [rsp + 0x38]
and al, 7
add al, 7
cmp al, byte [rsp + 0x21]
jl 0x1400e6305
mov rcx, qword [rsp + 0x38]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
nop
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x1400e63a1
mov rax, qword [rsp + 0x80]
add rax, 0x80
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
shr rax, 3
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x22], al
cmp byte [rsp + 0x22], 0
je 0x1400e6368
movzx eax, byte [rsp + 0x48]
and al, 7
add al, 7
cmp al, byte [rsp + 0x22]
jl 0x1400e6368
mov rcx, qword [rsp + 0x48]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
nop
mov rax, qword [rsp + 0x60]
mov r9, qword [rax]
mov r8, qword [rsp + 0x90]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rsp + 0x90]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
add rsp, 0x78
ret