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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ecc0
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 dword [esp + 0x20], ecx
mov edi, dword [ebp + 8]
push 0x1ffe
xor ebx, ebx
lea ecx, [esp + 0x2a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x30], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
lea ecx, [esp + 0x18]
call dword [0x450484]
push 0x1000
lea edx, [esp + 0x28]
mov dword [esp + 0x203c], ebx
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, ebx
jbe 0x409540
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 ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409558
test al, 0x10
jne 0x4096ba
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], 1
call fcn.00410b30
add esp, 4
mov esi, eax
call fcn.004072d0
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x2038], bl
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]
cmp esi, ebx
jne 0x4096be
push 0x5c
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]
push eax
push ecx
mov byte [esp + 0x2040], 2
call fcn.00410b30
add esp, 4
mov esi, eax
call fcn.004070e0
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x2038], bl
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]
cmp esi, ebx
jne 0x4096be
push 0x5c
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 + 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], 3
call fcn.00410b30
mov ecx, esi
call fcn.00403310
test al, al
lea ecx, [esp + 0x1c]
sete byte [esp + 0x1b]
mov byte [esp + 0x2038], bl
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp byte [esp + 0x1b], bl
je 0x40965a
call fcn.00410b30
lea ecx, [esp + 0x14]
call fcn.00403310
test al, al
je 0x4096ba
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call dword [0x450484]
mov edx, dword [esp + 0x28]
push edx
call fcn.00403520
cmp al, bl
je 0x4096ba
push 0xc
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x409692
mov ecx, esi
call dword [0x450480]
jmp 0x409694
xor esi, esi
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push esi
mov dword [esi + 4], 2
mov dword [esi + 8], ebx
call fcn.004131a0
test al, al
jne 0x4096ba
call fcn.004020e0
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 4