Function at 0x401fa5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x402074
mov dword [esp + 4], str._FileIO.Read__ERR_Cant_open_the_file_
mov dword [esp], 0x4a3660
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov dword [esp + 4], 0x4a40df
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
lea eax, [ebp - 0x11]
mov ecx, eax
call fcn.00458930
lea eax, [ebp - 0x11]
mov dword [esp + 4], eax
mov dword [esp], 0x4a4223
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x11]
mov ecx, eax
call sym.std::allocator_char_::allocator__
jmp 0x402307
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x402120
mov dword [esp + 4], str._FileIO.Read__ERR_Cant_get_the_size_of_file_
mov dword [esp], 0x4a3660
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov dword [esp + 4], 0x29
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
lea eax, [ebp - 0x10]
mov ecx, eax
call fcn.00458930
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x4a4223
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x10]
mov ecx, eax
call sym.std::allocator_char_::allocator__
jmp 0x402307
lea eax, [ebp - 0xf]
mov ecx, eax
call fcn.00458930
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea ecx, [eax + 1]
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0xf]
mov dword [esp + 4], edx
mov dword [esp], ecx
mov ecx, eax
call method.std::vector_char__std::allocator_char___.vector_unsigned_int__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0xf]
mov ecx, eax
call sym.std::allocator_char_::allocator__
lea eax, [ebp - 0x2c]
mov ecx, eax
call method.std::vector_char__std::allocator_char___.size___const
mov ebx, eax
lea eax, [ebp - 0x2c]
mov ecx, eax
call method.std::vector_char__std::allocator_char___.data__
mov edx, eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x402225
mov dword [esp + 4], str._FileIO.Read__ERR_Cant_read_the_file_
mov dword [esp], 0x4a3660
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov dword [esp + 4], 0x29
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
lea eax, [ebp - 0xe]
mov ecx, eax
call fcn.00458930
lea eax, [ebp - 0xe]
mov dword [esp + 4], eax
mov dword [esp], 0x4a4223
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0xe]
mov ecx, eax
call sym.std::allocator_char_::allocator__
jmp 0x402287
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov dword [esp], edx
mov ecx, eax
call method.std::vector_char__std::allocator_char___.operator___unsigned_int_
sub esp, 4
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
lea eax, [ebp - 0xd]
mov ecx, eax
call fcn.00458930
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov ecx, eax
call method.std::vector_char__std::allocator_char___.data__
mov edx, eax
lea eax, [ebp - 0xd]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edx
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__unsigned_int__std::allocator_char__const_
sub esp, 0xc
lea eax, [ebp - 0xd]
mov ecx, eax
call sym.std::allocator_char_::allocator__
lea eax, [ebp - 0x2c]
mov ecx, eax
call method.std::vector_char__std::allocator_char___.vector__
jmp 0x402307
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
leave
ret