Function at 0x140001f90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rcx], rdx
mov byte [rcx + 8], 0
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140001fdf
lea rcx, str.____Cant_access_File_n
call fcn.140001030
mov byte [rbx + 8], 1
jmp 0x140002122
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140002e40
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov edx, dword [rsp + rcx + 0x60]
test dl, 6
je 0x140002053
lea rcx, str.____Opening_the_file_failed:__X_n
call fcn.140001030
lea rcx, [rsp + 0x60]
call fcn.140003260
test rax, rax
jne 0x14000204a
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov byte [rbx + 8], 1
jmp 0x140002118
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, qword [rax + 8]
add rcx, qword [rax]
mov dword [rbx + 0x10], ecx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov eax, dword [rbx + 0x10]
cmp eax, 0x1000
jae 0x1400020a9
lea rcx, str.____Filesize_is_invalid._n
call fcn.140001030
jmp 0x14000201d
mov rcx, rax
call fcn.14000399c
mov rdi, rax
mov r8d, dword [rbx + 0x10]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8d, dword [rbx + 0x10]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x60]
call fcn.140003260
test rax, rax
jne 0x140002111
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov byte [rbx + 9], 0
mov dword [rbx + 0xc], edi
lea rcx, [rsp + 0x50]
call fcn.140002150
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140003930
mov rbx, qword [rsp + 0x190]
add rsp, 0x170
pop rdi
ret