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

Disassembly:
push ebp
lea ebp, [esp - 0x80]
sub esp, 0x80
push 0xffffffffffffffff
push 0x4d753e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp + 0x7c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x88]
lea ecx, [ebp + 0x18]
mov esi, dword [ebp + 0x8c]
mov dword [ebp - 0x20], edi
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::constructor_unsigned_int_]
mov dword [ebp + 0x18], vtable.std::codecvt_utf8_utf16_wchar_t__1114111__0_.0
lea eax, [ebp + 0x18]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 0x4c]
mov ecx, esi
push eax
call dword [sym.imp.boost_filesystem.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_boost::filesystem::path::generic_string_class_std::codecvt_wchar_t__char__struct__Mbstatet__const__const]
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x10], 6
mov dword [ebp + 0x18], vtable.std::codecvt_utf8_utf16_wchar_t__1114111__0_.0
call dword [sym.imp.MSVCP140.dll_protected_virtual:_void___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::destructor_void_]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 2
jb 0x4b36ef
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 5
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b37c7
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b3803
push 0
push ebx
mov ecx, edi
call fcn.004263d0
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [ebp - 0x10], 7
jb 0x4b3751
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b378e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x4c]
call fcn.00404850
push eax
lea eax, [ebp]
push str.cannot_read__s__error__i_
push eax
call fcn.0049f320
add esp, 0x10
mov byte [ebp - 4], 6
jmp 0x4b3828
mov byte [ebp - 4], 7
test esi, esi
je 0x4b379d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x4c]
call fcn.00403c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7c]
xor ecx, ebp
call fcn.004c75e8
lea esp, [ebp + 0x80]
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x4c]
call fcn.00404850
push eax
lea eax, [ebp + 0x64]
push str.cannot_open__s__error__i_
push eax
call fcn.0049f320
add esp, 0x10
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0045ad10
push 0x4f2dc0
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x4c]
call fcn.00404850
push eax
lea eax, [ebp]
push str.cannot_get_file_size__s__error__i_
push eax
call fcn.0049f320
add esp, 0x10
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp + 0x70]
call fcn.0045ad10
push 0x4f2dc0
lea eax, [ebp + 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3