Function at 0x409fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.00558d20
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push 0x57e764
push eax
mov dword [ebp - 0x6c], 0x77190912
mov dword [ebp - 0x70], vtable.CFileInputStream.0
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x68], eax
jne 0x40a045
call dword [sym.imp.MSVCR71.dll___doserrno]
mov ecx, dword [eax]
lea eax, [ebp - 0xa8]
call fcn.00460c60
push 0x5a697c
push eax
call sub.MSVCR71.dll__CxxThrowException
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0046e970
test al, al
jne 0x40a45a
mov eax, dword [esi]
lea esi, [ebp - 0x3c]
call fcn.00441a00
mov ecx, dword [ebp - 0x34]
mov esi, dword [sym.imp.MSVCR71.dll_ftell]
push ecx
call esi
mov edx, dword [ebp - 0x34]
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 - 0x34]
add esp, 0xc
push eax
call esi
mov ecx, dword [ebp - 0x34]
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 - 0x3c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
call fcn.00441a70
lea ebx, [esi + edi - 1]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40a101
push eax
push 1
push 1
push ebx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x40a101
call dword [sym.imp.MSVCR71.dll___doserrno]
mov ecx, dword [eax]
lea eax, [ebp - 0xb0]
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 - 0x18], ebx
jne 0x40a0c8
lea ebx, [esi + 0x400]
push ebx
push edi
call dword [sym.imp.MSVCR71.dll_realloc]
add esp, 8
test eax, eax
jne 0x40a151
push edi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
push 0x5a6944
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], vtable.CFormatException.0
mov dword [ebp - 0x9c], 0x5247
call sub.MSVCR71.dll__CxxThrowException
mov edi, eax
add eax, esi
mov esi, ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov ebx, eax
jmp 0x40a0c8
mov eax, dword [ebp - 0x68]
cmp eax, ebx
mov dword [ebp - 0x70], vtable.CFileInputStream.0
je 0x40a278
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
push ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x68c9b4]
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov eax, dword [eax]
push 0x5c5f34
push 0x5c5f50
push ebx
push eax
mov ecx, 0x68cc90
mov dword [ebp - 0x60], edx
call sub.MFC71.DLL_CWinApp::OpenDocumentFile
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov ebx, eax
add esp, 0x14
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x40a54e
mov ecx, dword [0x68c9b4]
mov edi, dword [ecx + 0x40]
mov eax, dword [edi + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x40a2e5
nop
mov ecx, dword [esi + 8]
push 0
push 1
push 0
call sub.MFC71.DLL_CDocument::UpdateAllViews
mov esi, dword [esi]
cmp esi, dword [edi + 8]
jne 0x40a2d0
mov edx, dword [0x68c9b4]
mov edi, dword [edx + 0x40]
mov eax, dword [edi + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x40a30c
mov ecx, dword [esi + 8]
push 0
push 3
push 0
call sub.MFC71.DLL_CDocument::UpdateAllViews
mov esi, dword [esi]
cmp esi, dword [edi + 8]
jne 0x40a2f7
push 0
call dword [sym.imp.MSVCR71.dll_time]
mov edi, dword [ebp + 0x10]
mov dword [ebx + 0xa4], eax
lea eax, [ebx + 0xd0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x88], ecx
mov ecx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x84], edx
mov edx, dword [eax + 0x10]
add esp, 4
lea eax, [ebx + 0xa8]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], edx
call fcn.00476290
mov edi, eax
test edi, edi
je 0x40a67f
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x5c]
lea esi, [edi + 8]
push ecx
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x60]
add ecx, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 2
call fcn.0040a6c0
mov edx, dword [eax]
fld qword [edx]
mov eax, dword [ebp + 0x14]
fdivr qword [0x594cd8]
xor ebx, ebx
cmp eax, ebx
fld qword [ebp - 0x5c]
fmul st(1)
fstp qword [ebp - 0x5c]
fld qword [ebp - 0x4c]
fmul st(1)
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x54]
fmul st(1)
fstp qword [ebp - 0x54]
fmul qword [ebp - 0x44]
fstp qword [ebp - 0x44]
jne 0x40a4a3
mov ecx, esi
call fcn.0047cb60
test al, al
je 0x40a49c
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push ecx
mov ecx, esi
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0xc], ebx
call fcn.0047cc10
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.0047cba0
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x40a49c
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x28]
jne 0x40a49c
fild dword [ebp + 0x14]
fild dword [ebp - 0x2c]
fdiv st(1)
fcom qword [0x595018]
fnstsw ax
test ah, 0x41
jne 0x40a498
fcomp qword [0x595010]
fnstsw ax
test ah, 0x41
jp 0x40a49a
fmul qword [0x595008]
call fcn.00549400
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x40a4a3
jmp 0x40a49c
mov dword [ebp - 0x58], vtable.CNeroCoverEditorFile.0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 8
mov edx, dword [0x68c9b4]
mov edi, dword [edx + 4]
lea eax, [ebp - 0x58]
push eax
lea esi, [ebp - 0x70]
call fcn.00460260
mov dword [ebp - 0x58], vtable.CSerializable.0
jmp 0x40a260
fstp st(0)
fstp st(0)
mov dword [ebp + 0x14], 0x4b0
fild dword [ebp + 0x14]
sub esp, 8
fst qword [ebp - 0x64]
fld qword [ebp - 0x5c]
fmul st(1)
fst qword [ebp - 0x5c]
fld st(1)
fmul qword [ebp - 0x4c]
fstp qword [ebp - 0x4c]
fld st(1)
fmul qword [ebp - 0x54]
fstp qword [ebp - 0x54]
fxch st(1)
fmul qword [ebp - 0x44]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x4c]
fsub st(1)
fstp qword [ebp - 0x2c]
fstp st(0)
fld qword [ebp - 0x44]
fsub qword [ebp - 0x54]
fadd qword [0x594dc8]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [ebp - 0x2c]
fadd qword [0x594dc8]
mov esi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
cmp eax, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
jle 0x40a662
cmp esi, ebx
jle 0x40a662
push 0xffffff
push ebx
push 1
push 0x18
push ebx
push ebx
lea edx, [ebp - 0x2c]
push edx
push edi
call fcn.004752e0
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x14], ebx
jne 0x40a561
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.00558d20
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], 0xa
mov eax, dword [ecx]
lea esi, [ebp - 0x1c]
call fcn.00441900
push edi
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
mov dword [ebp + 0x14], esi
jne 0x40a5ac
push 0x5a6910
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], 1
call sub.MSVCR71.dll__CxxThrowException
fld qword [ebp - 0x64]
xor eax, eax
fmul qword [0x595000]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea ecx, [ebx + 0xe]
mov word [ebp - 0x30], ax
mov word [ebp - 0x3c], 0x4d42
mov dword [ebp - 0x3a], ecx
mov dword [ebp - 0x32], 0x36
call fcn.00549400
push 0xe
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call fcn.00441970
push ebx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00441970
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x1c]
call fcn.00441950
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx]
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 0x14
mov eax, dword [ebp + 8]
mov dword [eax + 4], 9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
mov dword [ecx + 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 0x14