Function at 0x470fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dc44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [edi + 0x40]
test ecx, ecx
mov dword [ebp - 0x10], esp
je 0x470ffa
mov eax, dword [edi + 0x44]
sub eax, ecx
sar eax, 2
cmp eax, 1
jg 0x47104f
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0045c110
push eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
or esi, 0xffffffff
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
call fcn.0045bef0
push eax
lea ecx, [edi + 4]
mov dword [ebp - 4], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x4710ac
lea esi, [ebp - 0x20]
mov edi, ebx
call fcn.0045c2a0
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push eax
add ecx, 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea edi, [ebp - 0x20]
mov esi, ebx
call fcn.0045c0c0
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
push eax
add ecx, 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x20]
mov eax, ebx
call fcn.00401ef0
mov dword [ebp - 4], 4
mov eax, dword [eax]
push 2
lea edx, [edi + 0x10]
push edx
mov ecx, eax
call fcn.00471530
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea esi, [ebp - 0x20]
mov eax, ebx
call fcn.00401f10
mov dword [ebp - 4], 5
mov eax, dword [eax]
push 3
lea ecx, [edi + 0x14]
push ecx
mov ecx, eax
call fcn.00471530
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea esi, [ebp - 0x20]
mov eax, ebx
call fcn.00401f30
mov dword [ebp - 4], 6
mov eax, dword [eax]
push 3
lea edx, [edi + 0x18]
push edx
mov ecx, eax
call fcn.00471530
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea esi, [ebp - 0x20]
mov eax, ebx
call fcn.00401f50
mov dword [ebp - 4], 7
mov eax, dword [eax]
push 3
lea ecx, [edi + 0x1c]
push ecx
mov ecx, eax
call fcn.00471530
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea esi, [ebp - 0x20]
mov eax, ebx
call fcn.00401f70
mov dword [ebp - 4], 8
mov eax, dword [eax]
push 3
lea edx, [edi + 0x20]
push edx
mov ecx, eax
call fcn.00471530
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea esi, [ebp - 0x20]
mov eax, ebx
call fcn.00401f90
mov dword [ebp - 4], 9
mov eax, dword [eax]
push 3
lea ecx, [edi + 0x24]
push ecx
mov ecx, eax
call fcn.00471530
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [ebx + 0xb0]
xor edx, edx
cmp eax, edx
jne 0x4711d7
mov dword [ebp - 0x20], edx
jmp 0x4711e5
mov ecx, dword [ebx + 0xb4]
sub ecx, eax
sar ecx, 2
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
jbe 0x47128e
jmp 0x4711f5
xor edx, edx
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
lea edi, [ebp - 0x24]
mov edx, ebx
call fcn.0046f6f0
mov dword [ebp - 4], 0xa
mov eax, dword [eax]
push 3
lea edx, [ebp - 0x18]
push edx
mov ecx, eax
call fcn.00471530
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x471279
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x2c]
add eax, 0x28
test edi, edi
jne 0x471242
xor edx, edx
jmp 0x47124a
mov edx, dword [eax + 8]
sub edx, edi
sar edx, 2
test edi, edi
je 0x471267
mov ecx, dword [eax + 0xc]
sub ecx, edi
sar ecx, 2
cmp edx, ecx
jae 0x471267
mov ecx, dword [eax + 8]
mov dword [ecx], esi
add ecx, 4
mov dword [eax + 8], ecx
jmp 0x471279
mov ecx, dword [eax + 8]
push ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
call fcn.00472280
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jb 0x4711f3
mov edi, dword [ebp + 8]
lea ecx, [edi + 0xc]
push 0x581e10
mov dword [ebp - 0x20], ecx
call dword [0x574d0c]
lea esi, [ebp - 0x24]
mov eax, ebx
call fcn.00401ed0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov ecx, esi
setne byte [ebp - 0x11]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov al, byte [ebp - 0x11]
test al, al
je 0x4713c7
lea esi, [ebp - 0x24]
mov eax, ebx
mov dword [ebp - 4], 0xb
call fcn.00401ed0
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
push 0x57e764
push eax
mov dword [ebp - 0x44], 0x77190912
mov dword [ebp - 0x48], vtable.CFileInputStream.0
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x47131f
call dword [sym.imp.MSVCR71.dll___doserrno]
mov ecx, dword [eax]
lea eax, [ebp - 0x2c]
call fcn.00460c60
push 0x5a697c
mov ecx, eax
push ecx
call sub.MSVCR71.dll__CxxThrowException
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edx, dword [ebp - 0x40]
mov esi, dword [sym.imp.MSVCR71.dll_ftell]
push edx
call esi
push 2
mov ebx, eax
mov eax, dword [ebp - 0x40]
push 0
push eax
call dword [sym.imp.MSVCR71.dll_fseek]
mov ecx, dword [ebp - 0x40]
push ecx
call esi
mov edx, dword [ebp - 0x40]
push 0
push ebx
push edx
mov esi, eax
call dword [sym.imp.MSVCR71.dll_fseek]
mov eax, dword [ebp - 0x40]
add esp, 0x20
cmp esi, 2
jae 0x4713da
test eax, eax
je 0x4713a0
push eax
push 1
lea eax, [ebp + 0xb]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4713a0
call dword [sym.imp.MSVCR71.dll___doserrno]
mov ecx, dword [eax]
lea eax, [ebp - 0x34]
call fcn.00460c60
push 0x5a697c
mov ecx, eax
push ecx
call sub.MSVCR71.dll__CxxThrowException
movsx dx, byte [ebp + 0xb]
mov ecx, dword [ebp - 0x20]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::AppendChar]
mov eax, dword [ebp - 0x40]
test eax, eax
mov dword [ebp - 0x48], vtable.CFileInputStream.0
je 0x4713c7
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x471412
push eax
push 1
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x471412
call dword [sym.imp.MSVCR71.dll___doserrno]
mov ecx, dword [eax]
lea eax, [ebp - 0x3c]
call fcn.00460c60
push 0x5a697c
mov ecx, eax
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
cmp ax, 0xfeff
je 0x471441
test ah, 0xff
je 0x471441
cmp ax, 0xfffe
je 0x471437
test al, al
je 0x471437
mov ebx, eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x48]
call fcn.004714f0
lea esi, [ebp - 0x48]
mov ecx, edi
call fcn.004714a0
lea esi, [ebp - 0x48]
mov ecx, edi
call fcn.00471460
mov eax, 0x4713c7
ret