Function at 0x4e89d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50df54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push esi
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x55370c]
mov dword [ebp - 0x10], eax
mov esi, esp
push 0x5277d8
lea ecx, [ebp + 8]
call fcn.0040d680
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4e8a9d
cmp dword [ebp + 0x10], 0
je 0x4e8a96
lea eax, [ebp - 0xb8]
push eax
call fcn.004eb7d0
add esp, 4
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 4], 0
mov esi, esp
mov edx, dword [ebp - 0xcc]
push edx
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
xor al, al
jmp 0x4e8d0b
cmp dword [ebp + 0x14], 0
je 0x4e8ab0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0xd0], ecx
jmp 0x4e8aba
mov dword [ebp - 0xd0], 0
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
mov esi, esp
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
push 2
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
cmp esi, esp
call fcn.004f90e1
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR71.dll_ftell]
add esp, 4
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0xa4], eax
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
cmp esi, esp
call fcn.004f90e1
cmp dword [ebp - 0xa4], 0
je 0x4e8c9d
mov esi, esp
mov ecx, dword [ebp - 0xa4]
push ecx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0xa8], eax
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp esi, esp
call fcn.004f90e1
mov esi, esp
mov edx, dword [ebp - 0xa4]
push edx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
cmp esi, esp
call fcn.004f90e1
push ecx
mov ecx, esp
mov dword [ebp - 0xbc], esp
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040d440
lea ecx, [ebp - 0xb0]
push ecx
call fcn.004ea5d0
add esp, 8
mov dword [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
cmp esi, esp
call fcn.004f90e1
movzx edx, al
test edx, edx
jne 0x4e8c16
push 5
push 0x5277dc
mov esi, esp
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp esi, esp
call fcn.004f90e1
push eax
call fcn.004f1960
add esp, 0xc
test eax, eax
jne 0x4e8c81
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0xc0], esp
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040d440
lea ecx, [ebp - 0xc4]
push ecx
call fcn.004ea150
add esp, 0xc
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], edx
mov byte [ebp - 4], 2
mov esi, esp
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
mov ecx, dword [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x5277e4
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
cmp esi, esp
call fcn.004f90e1
cmp dword [ebp + 0x10], 0
je 0x4e8ce5
mov esi, esp
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.004f90e1
cmp dword [ebp + 0x14], 0
je 0x4e8d09
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4e8d41]
call fcn.004f9104
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004f90d3
pop edi
pop esi
add esp, 0xd8
cmp ebp, esp
call fcn.004f90e1
mov esp, ebp
pop ebp
ret