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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ebdc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x201c
call fcn.00448aa0
mov eax, dword [0x47b018]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x2030]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x1ffe
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
lea ecx, [esp + 0x18]
call dword [0x450484]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x203c], 0
call dword [0x450484]
push 0x1000
mov byte [esp + 0x203c], 1
mov esi, dword [esi]
lea edx, [esp + 0x28]
push edx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call esi
test eax, eax
jbe 0x40a31c
lea eax, [esp + 0x24]
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_1]
mov eax, dword [edi]
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push eax
call esi
test eax, eax
je 0x40a33e
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a356
test al, 0x10
jne 0x40a45f
push 0x5c
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
push eax
push ecx
mov byte [esp + 0x2040], 2
call fcn.00410b30
add esp, 4
mov esi, eax
call fcn.004072d0
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x2038], 1
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 esi, esi
jne 0x40a4e1
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 eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
push eax
push ecx
mov byte [esp + 0x2040], 3
call fcn.00410b30
add esp, 4
mov esi, eax
call fcn.004070e0
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x2038], 1
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 esi, esi
jne 0x40a4e1
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 eax
lea eax, [esp + 0x20]
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_____::Left]
mov esi, eax
mov byte [esp + 0x2038], 4
call fcn.00410b30
mov ecx, esi
call fcn.00403310
test al, al
lea ecx, [esp + 0x1c]
sete bl
mov byte [esp + 0x2038], 1
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 0x40a45b
call fcn.00410b30
lea ecx, [esp + 0x14]
call fcn.00403310
test al, al
je 0x40a4e1
mov ebx, dword [esp + 0x20]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call dword [0x450484]
push ebx
call fcn.00403520
test al, al
jne 0x40a493
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call dword [0x450484]
push ebx
call fcn.00403520
test al, al
je 0x40a4e1
push 8
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
test esi, esi
je 0x40a4b6
mov ecx, esi
call dword [0x450480]
lea ecx, [esi + 4]
call dword [0x450480]
jmp 0x40a4b8
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov ecx, dword [0x47bde0]
push 2
push esi
call fcn.00448950
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]
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 ecx, dword [esp + 0x2030]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.0041d40a
mov esp, ebp
pop ebp
ret 8