Function at 0x140077410
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14066d440]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0xc0], 0
jg 0x14007744a
xor eax, eax
jmp 0x14007771a
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14007747c
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14007771a
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jbe 0x1400775e2
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x88], rax
jae 0x1400774df
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
jmp 0x1400774ec
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
movzx eax, al
test eax, eax
je 0x140077581
mov qword [rsp + 0x28], 0
jmp 0x140077549
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
je 0x14007757f
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
mov byte [rax], cl
jmp 0x14007753c
jmp 0x140077599
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb8]
call sub.VCRUNTIME140.dll_memcpy
nop
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
nop
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x80], 0
je 0x140077707
mov rcx, qword [rsp + 0xb0]
call fcn.14006d790
mov qword [rsp + 0x78], 0xfff
cmp qword [rsp + 0x80], 0xfff
jbe 0x1400776a8
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x38], 0xfff
je 0x1400776a3
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
jmp 0x14007771a
jmp 0x14007760e
cmp qword [rsp + 0x80], 0
jbe 0x140077707
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x80]
mov edx, 1
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14019a660
add rsp, 0xa8
ret