Function at 0x403520
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44da8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403573
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40366d
mov edx, dword [esp + 0x2c]
mov esi, dword [edx - 0xc]
push 0x5c
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
sub esi, eax
dec esi
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
push 0x2e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp eax, 0xffffffff
je 0x4036ff
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
cmp byte [esp + 0x30], 0
mov byte [esp + 0x20], 2
je 0x40367e
mov edi, dword [ebp + 0x58]
cmp edi, dword [ebp + 0x5c]
jbe 0x4035ea
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebp + 0x4c]
lea ecx, [ecx]
mov ebx, dword [ebp + 0x5c]
cmp dword [ebp + 0x58], ebx
jbe 0x4035fe
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x4c]
test esi, esi
je 0x403609
cmp esi, eax
je 0x40360f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x4036f5
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x403651
call ebx
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40362c
call ebx
mov eax, dword [edi]
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_____::CompareNoCase]
test eax, eax
je 0x403659
test esi, esi
jne 0x403655
call ebx
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40364c
call ebx
add edi, 4
jmp 0x4035f0
mov eax, dword [esi]
jmp 0x403625
mov eax, dword [esi]
jmp 0x403645
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]
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]
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 al, 1
jmp 0x403715
mov edi, dword [ebp + 0x70]
cmp edi, dword [ebp + 0x74]
jbe 0x40368c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebp + 0x64]
nop
mov ebx, dword [ebp + 0x74]
cmp dword [ebp + 0x70], ebx
jbe 0x40369e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x64]
test esi, esi
je 0x4036a9
cmp esi, eax
je 0x4036af
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x4036f5
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x4036ed
call ebx
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4036c8
call ebx
mov eax, dword [edi]
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_____::CompareNoCase]
test eax, eax
je 0x403659
test esi, esi
jne 0x4036f1
call ebx
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4036e8
call ebx
add edi, 4
jmp 0x403690
mov eax, dword [esi]
jmp 0x4036c1
mov eax, dword [esi]
jmp 0x4036e1
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]
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]
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]
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc