Function at 0x41327f
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4193a9
call fcn.0041805c
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeLower]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
lea ecx, [ebp - 0x14]
call dword [0x424328]
lea ecx, [ebp - 0x10]
call dword [0x424328]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
push 0x5c
pop ecx
cmp cx, ax
jne 0x4132e3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
mov ebx, dword [ebp + 8]
mov esi, 0x104
push esi
push esi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov ebx, dword [ebp + 8]
push esi
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x413369
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeLower]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
push 0x5c
pop ecx
cmp cx, ax
jne 0x413369
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x4133a6
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeLower]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
push 0x5c
pop ecx
cmp cx, ax
jne 0x4133a6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x413469
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413469
mov eax, dword [edi + 8]
xor esi, esi
cmp eax, ebx
jle 0x413431
cmp esi, ebx
jl 0x413443
cmp esi, eax
jge 0x413443
mov eax, dword [edi + 4]
push dword [eax + esi*4]
lea ecx, [ebp + 8]
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 0x413469
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x413409
cmp esi, dword [edi + 8]
jge 0x413443
mov eax, dword [edi + 4]
push dword [eax + esi*4]
lea ecx, [ebp - 0x14]
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 0x413469
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x413429
cmp esi, dword [edi + 8]
jge 0x413443
mov eax, dword [edi + 4]
push dword [eax + esi*4]
lea ecx, [ebp - 0x10]
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 0x413448
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x4133ca
lea eax, [ebp + 8]
push eax
push dword [edi + 8]
mov ecx, edi
call sub.mfc90u.dll_CStringArray::SetAtGrow
xor bl, bl
jmp 0x41344a
call fcn.004174a2
mov bl, 1
lea ecx, [ebp - 0x10]
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, [ebp - 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, [ebp + 8]
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, bl
jmp 0x413486
lea ecx, [ebp - 0x10]
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, [ebp - 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, [ebp + 8]
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
call fcn.004180fb
ret 4