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

Disassembly:
push 0xffffffffffffffff
push 0x475744
mov eax, dword fs:[0]
push eax
sub esp, 0x980
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x978], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x994]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9a4]
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
call dword [0x476410]
mov dword [esp + 0x99c], ebx
push 0x2908
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 + 0x20]
push ecx
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov dword [esp + 0x99c], 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 eax, dword [ebp + 0x40]
mov edx, dword [eax + 0x20]
or edx, dword [eax + 0x24]
mov esi, 1
mov dword [esp + 0x1c], esi
jne 0x418c8b
xor esi, esi
mov ecx, dword [eax]
xor edx, edx
cmp dword [eax + 0x18], 0xffffffff
lea eax, [esp + 0x1c]
setne dl
push edx
push eax
push esi
push ebp
call fcn.0041a2a0
mov dword [esp + 0x18], eax
mov eax, 0x2001200
cmp dword [esp + 0x1c], eax
je 0x419445
mov ecx, dword [ebp + 0x40]
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418e0d
and eax, 0x10
mov eax, 0
sete al
cmp eax, ebx
je 0x418e0d
cmp dword [ebp + 0x54], ebx
jne 0x418e0d
lea ecx, [esp + 0x1c]
call dword [0x476410]
mov dword [esp + 0x99c], 1
push 0x27da
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 edx, dword [ebp + 0x40]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00403b60
add esp, 0xc
mov byte [esp + 0x99c], 2
mov eax, dword [eax]
push ebx
push ebx
push eax
call fcn.00403c30
add esp, 0xc
mov byte [esp + 0x99c], 1
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 ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
mov esi, 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 + 0x88c]
push eax
push ecx
call esi
add esp, 8
lea edx, [esp + 0x88c]
push edx
lea ecx, [esp + 0x30]
call dword [0x4763f4]
mov byte [esp + 0x99c], 3
push 0x47dac4
lea ecx, [esp + 0x30]
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 0x418de6
push 0x47dac0
lea ecx, [esp + 0x30]
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 0x418e42
mov eax, dword [ebp + 0x40]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x24]
push ecx
xor ecx, ecx
call fcn.004017a0
add esp, 4
mov byte [esp + 0x99c], 4
mov ecx, dword [ebp + 0x40]
push eax
add ecx, 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov byte [esp + 0x99c], 3
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 byte [esp + 0x99c], 1
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 dword [esp + 0x99c], 0xffffffff
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]
push 0x47d6d8
lea ecx, [esp + 0x18]
call dword [0x4763f4]
mov dword [esp + 0x99c], 7
mov ecx, dword [0x491c54]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x40]
cmp ecx, ebx
je 0x418f5f
mov eax, ecx
jmp 0x418f62
xor edi, edi
mov bl, 5
push 0
push 0
push 0x4e24
call fcn.00403d20
mov eax, dword [0x491c54]
mov ecx, dword [eax + 0x6c]
mov eax, dword [eax + 0x68]
add esp, 0xc
push ecx
push eax
push 0x27d9
call fcn.00403d20
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
add esp, 0xc
lea edx, [esp + 0x88c]
push edx
push eax
call esi
add esp, 8
lea ecx, [esp + 0x88c]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x4763f4]
mov byte [esp + 0x99c], bl
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 0x418f1c
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
jne 0x418efe
mov edx, dword [ebp + 0x40]
mov edx, dword [edx + 4]
lea eax, [esp + 0x24]
push eax
xor ecx, ecx
call fcn.004017a0
add esp, 4
mov byte [esp + 0x99c], 6
mov ecx, dword [ebp + 0x40]
push eax
add ecx, 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov byte [esp + 0x99c], bl
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 byte [esp + 0x99c], 3
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]
inc edi
cmp edi, 3
jl 0x418e46
jmp 0x418f2e
mov byte [esp + 0x99c], 3
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 + 0x99c], 1
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 dword [esp + 0x99c], 0xffffffff
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, 0x101
jmp 0x419445
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x30]
push 0x47e1d4
lea edi, [eax + 0x34]
call fcn.004456a0
mov edx, dword [0x491c54]
mov ecx, dword [edx + 4]
mov edi, eax
mov eax, dword [ecx + 0x40]
cmp eax, ebx
jne 0x418f87
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + 0x30]
push edi
lea ecx, [esp + 0x28]
push ecx
add eax, 0x34
push eax
call fcn.00445340
mov byte [esp + 0x99c], 8
push 0x10
or edx, 0xffffffff
mov ecx, eax
call fcn.00423940
mov dword [esp + 0x2c], eax
mov byte [esp + 0x99c], 7
lea ecx, [esp + 0x24]
call fcn.004477c0
mov edx, dword [ebp + 0x40]
add edx, 4
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea esi, [esp + 0x14]
call fcn.00401a10
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x419004
dec eax
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
cmp ax, 0x5c
je 0x419004
push 0x47d53c
mov ecx, esi
call dword [0x476390]
mov esi, dword [esp + 0x14]
call fcn.00402650
test eax, eax
je 0x419044
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
or ecx, 0xffffffff
call fcn.0041cad0
mov byte [esp + 0x99c], 9
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov byte [esp + 0x99c], 7
lea ecx, [esp + 0x24]
jmp 0x41908f
push 0x47d6d8
lea ecx, [esp + 0x20]
call dword [0x4763f4]
mov byte [esp + 0x99c], 0xa
mov eax, dword [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x24]
push 0x47e1bc
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov byte [esp + 0x99c], 7
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 [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x4190db
push 0x5c
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
push 0x2e
lea ecx, [esp + 0x18]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp esi, eax
jge 0x4190cc
push 0x270f
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
push 0x47d8b8
lea ecx, [esp + 0x18]
call dword [0x476390]
mov esi, dword [esp + 0x18]
mov ebx, 1
cmp esi, ebx
jne 0x4191fd
lea ecx, [esp + 0x34]
push ecx
call fcn.0040e0c0
mov byte [esp + 0x99c], 0xb
mov eax, dword [ebp + 0x40]
mov ebx, dword [eax + 0x24]
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0x20]
mov edx, dword [eax]
mov eax, dword [eax + 0x18]
push ebx
push esi
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push edi
push ecx
push edx
lea edi, [esp + 0x54]
call fcn.00409f90
mov ebx, eax
test bl, 1
je 0x4191e7
mov edx, dword [0x491c54]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 0x40]
test eax, eax
jne 0x419146
mov eax, dword [ecx + 0x3c]
lea esi, [esp + 0x24]
call fcn.0045c020
mov byte [esp + 0x99c], 0xc
push 0
push 0
push 3
mov ecx, eax
call fcn.004239e0
mov esi, eax
mov edi, edx
mov byte [esp + 0x99c], 0xb
lea ecx, [esp + 0x24]
call fcn.00462040
call fcn.0041b380
xor ecx, ecx
add eax, esi
adc ecx, edi
mov dword [esp + 0x28], ecx
jne 0x41918f
cmp eax, 0xffffffff
jbe 0x4191aa
mov ebx, 0x64040c00
mov byte [esp + 0x99c], 7
lea ecx, [esp + 0x34]
call fcn.0040e170
jmp 0x4193ab
test byte [esp + 0x74], 1
je 0x4191e3
mov edx, dword [ebp + 0x40]
mov eax, dword [0x491c54]
mov ecx, dword [edx + 4]
mov esi, dword [eax + 4]
push 0xffffffffffffffff
call fcn.004100e0
mov ecx, dword [0x491c54]
mov eax, dword [ecx + 4]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00410260
lea eax, [esp + 0x34]
call fcn.004071c0
mov ebx, dword [esp + 0x74]
mov byte [esp + 0x99c], 7
lea ecx, [esp + 0x34]
call fcn.0040e170
jmp 0x4193ab
cmp esi, 2
jne 0x4193af
mov eax, dword [0x491c54]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
push 0x47e1d4
lea edi, [eax + 0x34]
call fcn.004456a0
mov ecx, dword [0x491c54]
mov ebx, eax
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0xc]
push ebx
lea edx, [esp + 0x20]
push edx
add eax, 0x34
push eax
call fcn.00445340
mov byte [esp + 0x99c], 0xd
push 0x60
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x99c], 0xe
test eax, eax
je 0x419265
push eax
call fcn.00413c10
jmp 0x419267
xor eax, eax
mov byte [esp + 0x99c], 0xd
mov ecx, dword [ebp + 0x40]
mov edi, eax
mov dword [ebp + 0x34], eax
call fcn.004041b0
push 0x10
or edx, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00423940
mov ecx, dword [ebp + 0x34]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp + 0x34]
lea eax, [esp + 0x34]
push eax
mov dword [edx + 0x38], ebx
call fcn.0040ad80
mov byte [esp + 0x99c], 0xf
mov ecx, dword [ebp + 0x40]
mov esi, dword [ecx + 0x14]
mov edi, dword [ebp + 0x54]
push 0x10
or edx, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00423940
mov ecx, dword [ebp + 0x40]
mov edx, dword [ecx + 0x30]
push edx
mov edx, dword [ecx + 0x24]
push edi
xor edi, edi
push edi
push edx
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x18]
push edx
mov edx, dword [esp + 0x28]
push edi
push ecx
push esi
push eax
push ebx
push edx
lea eax, [esp + 0x60]
call fcn.0040af90
mov ebx, eax
test bl, 1
je 0x419378
mov eax, dword [ebp + 0x34]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push ecx
lea edi, [esp + 0x2c]
call fcn.0040b030
mov ebx, eax
test bl, 1
je 0x419389
mov esi, dword [esp + 0x704]
mov edi, dword [esp + 0x708]
call fcn.0041b380
xor edx, edx
add eax, esi
adc edx, edi
mov dword [esp + 0x30], edx
jne 0x419338
cmp eax, 0xffffffff
jbe 0x41933d
mov ebx, 0x64040c00
test bl, 1
je 0x419389
mov eax, dword [ebp + 0x40]
mov edx, dword [0x491c54]
mov ecx, dword [eax + 4]
mov esi, dword [edx + 4]
push 0xffffffffffffffff
call fcn.004100e0
mov eax, dword [0x491c54]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00410260
mov ebx, eax
lea eax, [esp + 0x34]
call fcn.004071c0
jmp 0x419389
mov edx, dword [esp + 0x6fc]
push edx
lea ecx, [ebp + 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 + 0x99c], 0xd
lea ecx, [esp + 0x34]
call fcn.0040aee0
mov byte [esp + 0x99c], 7
lea ecx, [esp + 0x1c]
call fcn.004477c0
mov esi, dword [esp + 0x18]
test bl, 1
je 0x41942e
cmp dword [ebp + 0x5c], 3
je 0x41942e
lea eax, [esp + 0x1c]
push eax
call fcn.0041f110
mov byte [esp + 0x99c], 0x10
mov edx, dword [ebp + 0x40]
push ecx
add edx, 4
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [esp + 0x9a0], 0x11
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x9a4], 0x10
call fcn.0041f230
mov ebx, eax
test bl, 1
je 0x41941d
cmp esi, 1
je 0x41940f
cmp esi, 2
jne 0x41941d
mov esi, dword [esp + 0x14]
push 0x14
call fcn.00406970
add esp, 4
mov byte [esp + 0x99c], 7
lea ecx, [esp + 0x1c]
call fcn.0041f1b0
mov dword [esp + 0x99c], 0xffffffff
lea ecx, [esp + 0x14]
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
mov ecx, dword [esp + 0x994]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x978]
xor ecx, esp
call fcn.00428cb4
add esp, 0x98c
ret 4