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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420b45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x10], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
push 0x429fe0
lea ecx, [ebp - 0x24]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
call fcn.00401ab0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x18], 0xffffffff
jne 0x411e4f
mov byte [ebp - 0x10], 0
jmp 0x411f5a
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
ja 0x411e6d
mov byte [ebp - 0x10], 0
jmp 0x411f5a
mov ecx, dword [ebp - 0x20]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411ea7
mov byte [ebp - 0x10], 0
jmp 0x411f5a
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0041ea7c
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401a50
mov esi, eax
push 0x5c
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
sub esi, 1
push esi
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
call fcn.00401ab0
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.00401ab0
push eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00412230
and eax, 0xff
test eax, eax
jne 0x411f4b
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
jmp 0x411f5a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x10]
and edx, 0xff
test edx, edx
je 0x411f79
push 0x4282a0
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call sub.MFC42.DLL_CString::operator_1
jmp 0x411f89
push 0x4282a8
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call sub.MFC42.DLL_CString::operator_1
cmp dword [ebp - 0x14], 0
je 0x411fa1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x411fb7
cmp dword [ebp - 0x18], 0xffffffff
je 0x411fb7
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4