Function at 0x1400304b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140379880]
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 0x1400304fc
mov qword [rsp + 0x78], 0
jmp 0x1400306f5
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x68], 0
je 0x14003052b
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140D.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 0x1400306f5
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.MSVCP140D.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 0x1400305e2
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x80]
call fcn.140009860
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.MSVCP140D.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.140009f50
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.MSVCP140D.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 0x1400306e3
mov rcx, qword [rsp + 0x38]
call fcn.140030cc0
mov qword [rsp + 0x48], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x88]
jae 0x140030694
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.ucrtbased.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 0x14003068f
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x88]
mov qword [rsp + 0x78], rax
jmp 0x1400306f5
jmp 0x140030608
xor eax, eax
cmp rax, qword [rsp + 0x88]
jae 0x1400306de
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.ucrtbased.dll_fread]
mov rcx, rax
mov rax, qword [rsp + 0x88]
sub rax, rcx
mov qword [rsp + 0x88], rax
jmp 0x1400306e3
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.14003c1f0
mov rax, qword [rsp + 0x28]
add rsp, 0x98
ret