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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4734dd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x417496
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 2
test ecx, ecx
ja 0x4174ad
call fcn.0040c420
mov eax, dword [eax]
push eax
call fcn.00417750
mov eax, dword [esi + 0x44]
mov edx, dword [eax + 8]
sub edx, dword [eax + 4]
xor ebx, ebx
sar edx, 2
test edx, edx
jbe 0x417595
jmp 0x4174d0
mov eax, dword [eax + 4]
push ecx
lea edi, [ebx*4]
add eax, edi
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
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 dword [esp + 0x2c], 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x30], 0xffffffff
call fcn.00419d60
mov dword [esp + 0x28], 1
mov ecx, dword [esi + 0x44]
mov ecx, dword [ecx + 4]
push eax
add ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 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]
mov edx, dword [esi + 0x44]
mov eax, dword [edx + 4]
add eax, edi
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417552
and eax, 0x10
mov eax, 0
sete al
test eax, eax
jne 0x417580
mov eax, dword [esi + 0x44]
mov ecx, dword [eax + 4]
push 0
add ecx, edi
push 0x2a
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, 0xffffffff
jne 0x417580
mov ecx, dword [esi + 0x44]
mov ecx, dword [ecx + 4]
push 0
add ecx, edi
push 0x3f
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, 0xffffffff
je 0x4175fb
mov eax, dword [esi + 0x44]
mov edx, dword [eax + 8]
sub edx, dword [eax + 4]
inc ebx
sar edx, 2
cmp ebx, edx
jb 0x4174d0
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
mov edi, 1
sar ecx, 2
cmp ecx, edi
jbe 0x4176d2
mov edi, edi
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp edx, edi
jbe 0x4174a8
lea ecx, [ecx + edi*4]
push ecx
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_class]
mov dword [esp + 0x28], 2
push 0x47e278
lea ecx, [esp + 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
jne 0x417625
mov eax, dword [esi + 0x44]
mov dword [eax + 0x14], 1
jmp 0x4176ab
mov eax, dword [esi + 0x44]
mov ecx, dword [eax + 4]
lea edx, [ecx + ebx*4]
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]
mov eax, 0x6403ee00
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x28], 3
push 0x47e294
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
sete bl
mov byte [esp + 0x28], 2
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]
test bl, bl
je 0x417712
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [esp + 0x1c]
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_____::Right]
mov byte [esp + 0x28], 4
mov ecx, dword [esi + 0x44]
push eax
add ecx, 0x10
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov byte [esp + 0x28], 2
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 [esi + 0x44]
mov edx, dword [ecx + 0x10]
cmp dword [edx - 0xc], 0
je 0x4176e9
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 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]
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
inc edi
sar ecx, 2
cmp edi, ecx
jb 0x4175b0
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 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]
mov eax, 0x64040000
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
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]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 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]
mov eax, 0x200
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret