Function at 0x409ac0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ec62
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21e4
call fcn.00448aa0
mov eax, dword [0x47b018]
xor eax, esp
mov dword [esp + 0x21e0], eax
push ebx
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x21f8]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x1ffe
lea ecx, [esp + 0x1f2]
xor eax, eax
push ebx
mov dword [esp + 0x20], ebx
push ecx
mov word [esp + 0x1f8], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
lea ecx, [esp + 0x14]
call dword [0x450484]
push 0x1000
lea edx, [esp + 0x1f0]
mov dword [esp + 0x2204], ebx
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, ebx
jbe 0x409b70
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push 0x5c
lea ecx, [esp + 0x14]
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 + 0x1c]
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]
push eax
push ecx
mov byte [esp + 0x2208], 1
call fcn.00410b30
add esp, 4
mov esi, eax
call fcn.004070e0
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x2200], 0
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 + 0x10]
cmp esi, ebx
jne 0x409d71
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 edx, [esp + 0x1c]
push edx
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 esi, eax
mov byte [esp + 0x2200], 2
call fcn.00410b30
mov ecx, esi
call fcn.00403310
test al, al
lea ecx, [esp + 0x18]
sete bl
mov byte [esp + 0x2200], 0
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 0x409c24
call fcn.00410b30
lea ecx, [esp + 0x10]
call fcn.00403310
test al, al
je 0x409d6d
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409d6d
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17], al
call fcn.0043cca0
mov byte [esp + 0x2200], 3
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x2204], 4
push eax
mov dword [esp + 0x20], 1
call fcn.00410f20
mov ecx, eax
call fcn.0043d690
test eax, eax
jne 0x409c9a
lea ecx, [esp + 0x3c]
call fcn.00441e00
cmp eax, 0xffffffff
jle 0x409c9a
mov bl, 1
jmp 0x409c9c
xor bl, bl
lea ecx, [esp + 0x20]
mov dword [esp + 0x2200], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x409cbc
mov byte [esp + 0x17], 1
jmp 0x409cf4
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call dword [0x450484]
mov esi, dword [esp + 0x24]
push esi
call fcn.00403520
test al, al
jne 0x409cf4
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call dword [0x450484]
push esi
call fcn.00403520
test al, al
je 0x409d5c
push 0xc
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
test esi, esi
je 0x409d0e
mov ecx, esi
call dword [0x450480]
jmp 0x409d10
xor esi, esi
lea edx, [esp + 0x10]
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]
push esi
mov dword [esi + 4], 1
mov dword [esi + 8], 0
call fcn.004131a0
test al, al
jne 0x409d46
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push esi
call sub.mfc90u.dll_delete
add esp, 4
cmp byte [esp + 0x17], 0
je 0x409d5c
mov ecx, dword [0x47bdec]
push 2
push 0
call fcn.00448950
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2200], 0
call fcn.0043cd90
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 ecx, dword [esp + 0x21f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21e0]
xor ecx, esp
call fcn.0041d40a
mov esp, ebp
pop ebp
ret 4