Function at 0x409aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ef13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.00558d20
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push 0x57e764
push eax
mov dword [ebp - 0x20], 0x77190912
mov dword [ebp - 0x24], vtable.CFileInputStream.0
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x409b15
call dword [sym.imp.MSVCR71.dll___doserrno]
mov ecx, dword [eax]
lea eax, [ebp - 0x8c]
call fcn.00460c60
push 0x5a697c
push eax
call sub.MSVCR71.dll__CxxThrowException
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0046e970
test al, al
jne 0x409d92
mov eax, dword [esi]
lea esi, [ebp - 0x34]
call fcn.00441a00
mov ecx, dword [ebp - 0x2c]
mov esi, dword [sym.imp.MSVCR71.dll_ftell]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
add esp, 4
push 2
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push edx
mov edi, eax
call ebx
mov eax, dword [ebp - 0x2c]
add esp, 0xc
push eax
call esi
mov ecx, dword [ebp - 0x2c]
add esp, 4
push 0
push edi
push ecx
mov esi, eax
call ebx
add esp, 0xc
inc esi
push esi
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
mov edi, eax
lea edx, [esi - 1]
push edx
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 3
call fcn.00441a70
lea ebx, [esi + edi - 1]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x409bd1
push eax
push 1
push 1
push ebx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x409bd1
call dword [sym.imp.MSVCR71.dll___doserrno]
mov ecx, dword [eax]
lea eax, [ebp - 0x94]
call fcn.00460c60
push 0x5a697c
push eax
call sub.MSVCR71.dll__CxxThrowException
inc ebx
mov ecx, ebx
sub ecx, edi
cmp ecx, esi
mov dword [ebp - 0x14], ebx
jne 0x409b98
lea ebx, [esi + 0x400]
push ebx
push edi
call dword [sym.imp.MSVCR71.dll_realloc]
add esp, 8
test eax, eax
jne 0x409c1e
push edi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
push 0x5a6944
lea edx, [ebp - 0x84]
push edx
mov dword [ebp - 0x84], vtable.CFormatException.0
mov dword [ebp - 0x80], 0x5247
call sub.MSVCR71.dll__CxxThrowException
mov edi, eax
add eax, esi
mov esi, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x409b98
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x24], vtable.CFileInputStream.0
je 0x409d33
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
jne 0x409dc9
push ebx
call fcn.00469490
add esp, 4
test al, al
jne 0x409dff
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 0x50], vtable.CNeroCoverEditorFile.0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 8
mov edx, dword [0x68c9b4]
mov edi, dword [edx + 4]
lea eax, [ebp - 0x50]
push eax
lea esi, [ebp - 0x24]
call fcn.00460260
jmp 0x409d1b
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_10]
call fcn.00469240
add esp, 4
test al, al
jne 0x409dff
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push ebx
push 0x5c5f34
push 0x5c5f50
push ebx
push eax
mov ecx, 0x68cc90
call sub.MFC71.DLL_CWinApp::OpenDocumentFile
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x409d63
mov edi, dword [ebp + 0x10]
lea edx, [ebx + 0xd0]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x6c], eax
mov eax, dword [edx + 8]
mov esi, dword [edx + 0xc]
mov dword [ebp - 0x68], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x64], eax
lea eax, [ebx + 0xa8]
mov dword [ebp - 0x5c], ecx
call fcn.00476290
mov esi, eax
test esi, esi
je 0x409f1e
call fcn.0040ab60
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], vtable.CSubdocList.0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xa
call fcn.00475e90
mov eax, dword [0x68d07c]
push 0
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.0047abe0
lea ecx, [ebp - 0xd8]
call sub.MFC71.DLL_CPrintInfo::CPrintInfo
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 0xb
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
test eax, eax
setne al
lea ecx, [ebp - 0xd8]
push eax
push 1
call fcn.00469d40
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
add esp, 8
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
call fcn.00547960
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x24]
mov dword [ebp - 0x28], vtable.CSerializable.0
call fcn.0040b240
mov edx, dword [ebp - 0x20]
push edx
call sub.MFC71.DLL_operator_delete_1
mov edx, dword [ebx]
add esp, 4
mov ecx, ebx
call dword [edx + 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 4], 8
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x84]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10