Function at 0x10004aa8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov word [ebp - 0x38], 0x72
mov word [ebp - 0x36], 0x62
mov word [ebp - 0x34], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 8]
call fcn.1000c2f0
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x10004b02
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
jmp 0x10004e6e
push 2
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [0x100191fc], eax
mov eax, dword [0x100191fc]
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [0x100191f4], ecx
mov edx, dword [0x100191fc]
push edx
push 0
mov eax, dword [0x100191f4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [0x100191fc]
push eax
push 1
mov ecx, dword [0x100191f4]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0
mov eax, dword [0x100191fc]
push eax
mov ecx, dword [0x100191f4]
push ecx
lea ecx, [ebp - 0x30]
call fcn.1001256c
push 2
push 0xfffffffffffffffc
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Seek
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 4
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Read
mov eax, dword [0x10019200]
push eax
mov ecx, dword [0x100191f8]
push ecx
push 0x1010
push 4
lea edx, [ebp - 8]
push edx
call fcn.10003b23
add esp, 0x14
mov eax, dword [ebp - 8]
not eax
mov dword [ebp - 8], eax
push 1
mov ecx, 0xfffffffc
sub ecx, dword [ebp - 8]
push ecx
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Seek
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Read
push ecx
mov ecx, esp
lea edx, [ebp + 0xc]
push edx
call sub.MFC42u.DLL_CString::CString_3
push 4
lea eax, [ebp - 0x3c]
push eax
call fcn.10003bd9
push 1
push 0xfffffffffffffffc
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Seek
mov dword [ebp - 0x40], 0
jmp 0x10004c56
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x3c]
jge 0x10004e4e
mov dword [ebp - 0x4c], 0
push 1
push 0xfffffffffffffffc
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Seek
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::GetPosition
mov dword [ebp - 0x44], eax
push 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Read
mov ecx, dword [ebp - 0x44]
sub ecx, dword [0x100191f0]
push ecx
push 4
lea edx, [ebp - 8]
push edx
call fcn.10003cc7
add esp, 0xc
push 0xff
push 4
lea eax, [ebp - 8]
push eax
call fcn.10003cc7
add esp, 0xc
push 1
mov ecx, 0xfffffffc
sub ecx, dword [ebp - 8]
push ecx
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Seek
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::GetPosition
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Read
mov ecx, dword [ebp - 0x44]
sub ecx, dword [0x100191f0]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.10003cc7
add esp, 0xc
push 0xff
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.10003cc7
add esp, 0xc
push 1
mov eax, dword [ebp - 8]
neg eax
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Seek
push 1
mov ecx, dword [ebp - 8]
neg ecx
push ecx
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Seek
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::GetPosition
mov dword [ebp - 0x44], eax
push 4
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Read
mov eax, dword [ebp - 0x44]
sub eax, dword [0x100191f0]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
call fcn.10003cc7
add esp, 0xc
mov edx, dword [ebp - 0x4c]
push edx
push ecx
mov ecx, esp
lea eax, [ebp + 0xc]
push eax
call sub.MFC42u.DLL_CString::CString_3
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 8]
push ecx
call fcn.100047a7
add esp, 0x14
push 1
mov edx, 0xfffffffc
sub edx, dword [ebp - 8]
push edx
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Seek
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::GetPosition
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Read
mov eax, dword [ebp - 0x44]
sub eax, dword [0x100191f0]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10003cc7
add esp, 0xc
mov eax, dword [ebp - 0x4c]
push eax
push ecx
mov ecx, esp
lea edx, [ebp + 0xc]
push edx
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.100047a7
add esp, 0x14
push 1
mov eax, dword [ebp - 8]
neg eax
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Seek
cmp dword [ebp - 4], 0
je 0x10004e49
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebp - 4], 0
jmp 0x10004c4d
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::Detach
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CMemFile::CMemFile
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov esp, ebp
pop ebp
ret