Function at 0x4e1e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff15c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x624
mov eax, dword [0x540cc0]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x628], esi
call dword [eax + 0xa0]
test eax, eax
jne 0x4e22bb
mov edx, dword [sym.imp.MFC71.DLL_CFile::hFileNull]
mov ecx, dword [esi + 0x2074]
cmp ecx, dword [edx]
jne 0x4e22bb
mov eax, dword [esi + 0x206c]
test eax, eax
mov eax, dword [ebp + 8]
je 0x4e2098
test eax, eax
je 0x4e1ea6
lea eax, [esi + 0xc26]
mov dword [ebp + 8], eax
mov ebx, dword [sym.imp.MSVCR71.dll__snprintf]
xor eax, eax
mov byte [ebp - 0x214], 0
mov ecx, 0x3f
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x114], 0
xor eax, eax
mov ecx, 0x3f
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x618]
stosb byte es:[edi], al
call dword [0x502480]
lea ecx, [ebp - 0x61c]
mov dword [ebp - 4], 0
call dword [0x502480]
push 0x100
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 4], 1
call fcn.004db780
push 0x100
lea ecx, [ebp - 0x114]
push ecx
call fcn.004db7b0
mov edi, dword [ebp + 8]
test edi, edi
je 0x4e20c5
push edi
lea ecx, [ebp - 0x624]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push eax
lea ecx, [ebp - 0x618]
mov byte [ebp - 4], 2
call dword [0x502474]
lea ecx, [ebp - 0x624]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push ecx
lea edx, [ebp - 0x618]
mov ecx, esp
mov dword [ebp - 0x620], esp
push edx
call dword [0x502470]
mov ecx, esi
call fcn.004e19a0
cmp eax, 0xffffffff
je 0x4e1fb3
push eax
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 0x618]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [ebp - 0x618]
mov byte [ebp - 4], 3
call dword [0x502474]
lea ecx, [ebp - 0x624]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esi + 0x206c]
test eax, eax
jne 0x4e1fda
mov ecx, dword [ebp - 0x618]
push ecx
push 0x520204
lea edx, [esi + 0xc26]
push 0x3ff
push edx
call ebx
add esp, 0x10
push str..Partial
lea ecx, [ebp - 0x620]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edi, eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [ebp - 0x618]
push ecx
push eax
lea edx, [ebp - 0x62c]
push edx
mov byte [ebp - 4], 5
call fcn.00407ee0
push edi
push eax
lea eax, [ebp - 0x624]
push eax
mov byte [ebp - 4], 6
call fcn.00407ee0
add esp, 0x18
push eax
lea ecx, [ebp - 0x61c]
mov byte [ebp - 4], 7
call dword [0x502474]
lea ecx, [ebp - 0x624]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x62c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x630]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x620]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp - 0x61c]
push ecx
push 0x520204
lea edx, [esi + 0x826]
push 0x400
push edx
call ebx
mov edi, dword [ebp + 8]
add esp, 0x10
jmp 0x4e20d8
test eax, eax
je 0x4e1ea6
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR71.dll__snprintf]
push ecx
push 0x520204
lea edx, [esi + 0xc26]
push 0x3ff
push edx
call ebx
add esp, 0x10
jmp 0x4e1eac
lea eax, [esi + 0xc26]
push eax
lea ecx, [ebp - 0x618]
call dword [0x502590]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
test al, 2
je 0x4e2100
push edi
lea eax, [ebp - 0x114]
push eax
push 0x5201cc
lea ecx, [esi + 0x26]
push 0x400
push ecx
call ebx
add esp, 0x14
jmp 0x4e215b
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x620]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [ebp - 0x618]
push ecx
push eax
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 8
call fcn.00407ee0
add esp, 0xc
lea ecx, [ebp - 0x620]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp + 8]
push eax
push 0x520204
lea ecx, [esi + 0x26]
push 0x400
push ecx
call ebx
add esp, 0x10
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edx, dword [esi]
mov ecx, esi
xor ebx, ebx
call dword [edx + 0xd0]
test eax, eax
jne 0x4e21a5
lea edi, [esi + 0x826]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4e21a5
lea ecx, [ecx]
push 0x400
push edi
call fcn.004df4a0
mov eax, ebx
inc ebx
cmp eax, 0x1f4
jge 0x4e2286
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4e2180
mov eax, dword [esi + 0x2070]
push 0
push 0x3042
lea ecx, [esi + 0x826]
lea edi, [esi + 0x2070]
push ecx
mov ecx, edi
mov byte [ebp - 4], 9
call dword [eax + 0x28]
mov eax, dword [esi + 0x2124]
test eax, eax
mov dword [ebp - 4], 1
jne 0x4e234a
mov ebx, dword [ebp + 0xc]
mov edx, dword [edi]
push 0
push ebx
mov ecx, edi
mov byte [ebp - 4], 0xb
call dword [edx + 0x34]
mov eax, dword [esi]
mov edi, 1
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [esi + 0x2090], edi
mov dword [esi + 0x16], ebx
call dword [eax + 0xd0]
test eax, eax
jne 0x4e2214
mov ecx, esi
call fcn.004e15a0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x104]
mov eax, dword [esi + 0x2100]
test eax, eax
jne 0x4e2263
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd0]
test eax, eax
jne 0x4e2263
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
push eax
call fcn.004ecd10
mov eax, dword [esi]
push 0x5206b8
push esi
call dword [eax + 0x7c]
add esp, 8
mov dword [esi + 0x210c], edi
mov dword [esi + 0x2100], edi
mov dword [esi + 0x20fc], edi
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x40]
lea ecx, [ebp - 0x61c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x618]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, edi
jmp 0x4e22bd
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x68]
mov eax, dword [esi]
push 0xe
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
push eax
call fcn.004ecd10
lea ecx, [ebp - 0x61c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x618]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004f2f91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x61c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x618]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x4e22bd