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

Disassembly:
push 0xffffffffffffffff
push 0x4752fb
mov eax, dword fs:[0]
push eax
sub esp, 0x6fc
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x6f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x710]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebx
call dword [0x476410]
mov dword [esp + 0x718], ebx
push 0x2907
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
push ebx
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
push 0xfffffffffffffff5
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push eax
call ebp
mov dword [esp + 0x718], 0xffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418910
and eax, 0x10
mov eax, ebx
sete al
cmp eax, ebx
je 0x418910
cmp dword [esi + 0x54], ebx
jne 0x418910
lea ecx, [esp + 0x24]
call dword [0x476410]
mov dword [esp + 0x718], 1
push 0x27da
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00403b60
add esp, 0xc
mov byte [esp + 0x718], 2
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebx
call dword [0x4763f4]
mov byte [esp + 0x718], 3
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
push ebx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0xfffffffffffffff5
call edi
push eax
call ebp
mov byte [esp + 0x718], 2
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x718], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
mov ebx, dword [sym.imp.MSVCP90.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t_____wchar_t__]
lea eax, [esp + 0x60c]
push eax
push ecx
call ebx
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add esp, 8
push 0
push 0
add ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool_]
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
push 0xa
push SysReAllocString
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::ignore_int__unsigned_short_int_]
lea eax, [esp + 0x60c]
push eax
lea ecx, [esp + 0x2c]
call dword [0x4763f4]
mov byte [esp + 0x718], 4
push 0x47dac4
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x41899d
mov byte [esp + 0x718], 1
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x718], 0xffffffff
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x47d6d8
lea ecx, [esp + 0x30]
call dword [0x4763f4]
mov dword [esp + 0x718], 7
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 8]
add ecx, 0x296c
push ecx
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
lea edx, [esp + 0x34]
push edx
call fcn.0040df30
mov byte [esp + 0x718], 8
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov edx, dword [0x491c54]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 4]
mov eax, dword [eax + 0xc]
push ecx
lea edi, [eax + 0x34]
mov ebp, ecx
call fcn.004456a0
or edi, 0xffffffff
push ebp
cmp eax, edi
jne 0x418aee
lea ecx, [esp + 0x608]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ebx, 0x6403f800
jmp 0x418aff
push 0x47dac0
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
je 0x418abd
xor esi, esi
mov dword [esp + 0x20], esi
lea ebx, [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], esi
call dword [0x476410]
mov byte [esp + 0x718], 5
push 0x4e24
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
push esi
lea edx, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0xfffffffffffffff5
call edi
push eax
call ebp
mov byte [esp + 0x718], 4
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [0x491c54]
mov ecx, dword [eax + 0x6c]
mov eax, dword [eax + 0x68]
push ecx
push eax
push 0x27d9
call fcn.00403d20
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
add esp, 0xc
lea eax, [esp + 0x60c]
push eax
push ecx
call ebx
add esp, 8
lea edx, [esp + 0x60c]
push edx
lea ecx, [esp + 0x1c]
call dword [0x4763f4]
mov byte [esp + 0x718], 6
push 0x47dac4
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
je 0x418aab
push 0x47dac0
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
je 0x418aab
mov byte [esp + 0x718], 4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 3
mov dword [esp + 0x20], eax
jl 0x4189c0
jmp 0x418abd
mov byte [esp + 0x718], 4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x718], 1
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x718], 0xffffffff
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 0x101
jmp 0x418ba1
push ebx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
call fcn.00409550
mov ebx, eax
mov ecx, ebx
not ecx
test cl, 1
je 0x418b3f
mov edx, dword [esp + 0x604]
push edx
lea ecx, [esi + 0x50]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov byte [esp + 0x718], 7
lea ecx, [esp + 0x34]
call fcn.0040e000
mov dword [esp + 0x718], edi
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebx
jmp 0x418ba1
test byte [esp + 0x74], 1
je 0x418b79
mov eax, dword [0x491c54]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00410260
mov esi, eax
mov edx, esi
not edx
test dl, 1
jne 0x418b7d
mov eax, dword [esp + 0x40]
test eax, eax
je 0x418b79
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push edi
push 0
call edx
mov esi, dword [esp + 0x74]
mov byte [esp + 0x718], 7
lea ecx, [esp + 0x34]
call fcn.0040e000
mov dword [esp + 0x718], edi
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 0x710]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6f8]
xor ecx, esp
call fcn.00428cb4
add esp, 0x708
ret