Function at 0x46e9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dcf2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x10], esp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
mov esi, eax
xor ebx, ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
push ebx
push esi
push eax
lea eax, [ebp - 0xe8]
push eax
mov byte [ebp - 4], 1
call fcn.00470280
lea ecx, [ebp - 0x58]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
call fcn.00558d20
mov byte [ebp - 4], 5
mov eax, dword [edi]
push 0x57e764
push eax
mov dword [ebp - 0x48], 0x77190912
mov dword [ebp - 0x4c], vtable.CFileInputStream.0
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x44], eax
jne 0x46eaa7
call dword [sym.imp.MSVCR71.dll___doserrno]
mov ecx, dword [eax]
lea eax, [ebp - 0x8c]
call fcn.00460c60
push 0x5a697c
mov ecx, eax
push ecx
call sub.MSVCR71.dll__CxxThrowException
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.0046e970
test al, al
jne 0x46ed0c
mov eax, dword [edi]
lea esi, [ebp - 0x24]
call fcn.00441a00
mov edx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.MSVCR71.dll_ftell]
push edx
call esi
push 2
mov edi, eax
mov eax, dword [ebp - 0x1c]
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push eax
call ebx
mov ecx, dword [ebp - 0x1c]
push ecx
call esi
mov edx, dword [ebp - 0x1c]
push 0
push edi
push edx
mov esi, eax
call ebx
inc esi
push esi
call dword [sym.imp.MSVCR71.dll_malloc]
mov edi, eax
add esp, 0x24
lea eax, [esi - 1]
push eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 8
call fcn.00441a70
lea ebx, [esi + edi - 1]
mov dword [ebp - 0x14], ebx
mov edi, edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46eb5b
push eax
push 1
push 1
push ebx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x46eb5b
call dword [sym.imp.MSVCR71.dll___doserrno]
mov ecx, dword [eax]
lea eax, [ebp - 0x94]
call fcn.00460c60
push 0x5a697c
mov ecx, eax
push ecx
call sub.MSVCR71.dll__CxxThrowException
inc ebx
mov edx, ebx
sub edx, edi
cmp edx, esi
mov dword [ebp - 0x14], ebx
jne 0x46eb20
lea ebx, [esi + 0x400]
push ebx
push edi
call dword [sym.imp.MSVCR71.dll_realloc]
add esp, 8
test eax, eax
jne 0x46eba2
push edi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
push 0x5a6944
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], vtable.CFormatException.0
mov dword [ebp - 0x64], 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 0x46eb20
mov eax, dword [ebp - 0x44]
cmp eax, ebx
mov dword [ebp - 0x4c], vtable.CFileInputStream.0
je 0x46ecc0
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea edx, [ebp - 0xe8]
call fcn.00470ab0
mov ecx, dword [ebp + 8]
push edx
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00470480
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xe8]
mov dword [ebp - 0x40], vtable.CNeroCoverEditorFile.0
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 0xd
mov ecx, dword [0x68c9b4]
mov edi, dword [ecx + 4]
lea edx, [ebp - 0x40]
push edx
lea esi, [ebp - 0x4c]
call fcn.00460260
mov dword [ebp - 0x40], vtable.CSerializable.0
jmp 0x46eca8