Function at 0x18001ded0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1800a9880]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x70], 0
jg 0x18001df1c
mov qword [rsp + 0x78], 0
jmp 0x18001e115
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x68], 0
je 0x18001df4b
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
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]
mov qword [rsp + 0x78], rax
jmp 0x18001e115
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
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 + 0x80], rax
xor eax, eax
cmp rax, qword [rsp + 0x80]
jae 0x18001e002
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x80]
call fcn.180014370
mov rcx, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.180016450
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
add rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x88]
sub rax, rdx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x50]
mov edx, eax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x80], 0
je 0x18001e103
mov rcx, qword [rsp + 0x38]
call fcn.18001d3b0
mov qword [rsp + 0x48], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x88]
jae 0x18001e0b4
mov rax, qword [rsp + 0x38]
mov r9, qword [rax + 0x80]
mov rcx, qword [rsp + 0x68]
mov edx, 1
mov r8d, 0xfff
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x88]
sub rax, rcx
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x40], 0xfff
je 0x18001e0af
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x88]
mov qword [rsp + 0x78], rax
jmp 0x18001e115
jmp 0x18001e028
xor eax, eax
cmp rax, qword [rsp + 0x88]
jae 0x18001e0fe
mov rax, qword [rsp + 0x38]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rax
mov rax, qword [rsp + 0x88]
sub rax, rcx
mov qword [rsp + 0x88], rax
jmp 0x18001e103
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x88]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18003f420
mov rax, qword [rsp + 0x28]
add rsp, 0x98
ret