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

Disassembly:
push 0xffffffffffffffff
push 0x44f761
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x47b018]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, ecx
mov eax, dword [esi]
push eax
call ebp
cmp eax, 0xffffffff
je 0x409df4
test al, 0x10
jne 0x40a177
mov eax, dword [edi]
push eax
call ebp
cmp eax, 0xffffffff
je 0x409e06
test al, 0x10
jne 0x40a177
lea ecx, [esp + 0x84]
call fcn.0043cca0
push 0x5c
mov ecx, esi
mov dword [esp + 0x248], 1
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 + 0x2c]
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_____::Left]
mov byte [esp + 0x244], 2
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x50]
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 + 0x28]
mov byte [esp + 0x244], 4
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 + 0x84]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00410f20
mov ecx, eax
call fcn.0043d690
xor ebx, ebx
cmp eax, ebx
jne 0x40a05e
mov eax, dword [esi]
mov ebp, dword [eax - 0xc]
push 0x5c
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
sub ebp, eax
dec ebp
push ebp
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x244], 5
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x34]
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 + 0x24]
mov byte [esp + 0x244], 7
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 edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x1c], ebx
call fcn.0043ce30
cmp dword [esp + 0x14], ebx
jne 0x409f6e
mov ecx, dword [edi]
mov esi, dword [ecx - 0xc]
push 0x5c
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
sub esi, eax
dec esi
push esi
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x244], 8
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x6c]
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 + 0x20]
mov byte [esp + 0x244], 0xa
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 eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x8c]
call fcn.0043ce30
cmp dword [esp + 0x14], ebx
je 0x409f5c
call fcn.00410b30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
push edi
call eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x244], 7
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_]
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
push ecx
push 0x46da18
push 0x17
push ebx
mov byte [esp + 0x254], 0xb
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x46d7dc
call ebx
test eax, eax
jne 0x40a034
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
push 0xffffffffffffffff
lea ecx, [esp + 0x88]
mov ebp, eax
add esi, 0x28
call fcn.00441e00
mov edx, dword [esi]
push eax
push ebp
call edx
test eax, eax
jne 0x40a034
cmp dword [esp + 0x14], eax
je 0x40a132
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0x46da58
push 0x17
push 0
push 0x46d7cc
mov byte [esp + 0x258], 0xc
call ebx
test eax, eax
jne 0x40a111
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov esi, dword [esp + 0x1c]
mov eax, dword [edx + 0x68]
mov ebx, dword [esi]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x64]
push 0
call eax
mov ecx, dword [ebx + 0x74]
push eax
push esi
call ecx
test eax, eax
jge 0x40a08c
mov byte [esp + 0x244], 0xb
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a034
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x244], 7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a04c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x244], 4
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_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x244], 1
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_]
lea ecx, [esp + 0x84]
mov dword [esp + 0x244], 0xffffffff
call fcn.0043cd90
jmp 0x40a1b6
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
push 0x5c
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
sub esi, eax
dec esi
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x244], 0xd
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
cmp dword [eax + 0x18], 8
jb 0x40a0ca
mov eax, dword [eax + 4]
jmp 0x40a0cd
add eax, 4
push eax
lea ecx, [esp + 0x24]
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 0x40a0fc
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::AllocSysString]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
lea ecx, [esp + 0x20]
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 byte [esp + 0x244], 0xb
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a034
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40a034
lea ecx, [esp + 0x84]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043b020
cmp eax, 2
je 0x40a034
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::AllocSysString]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push esi
push eax
mov eax, dword [ecx + 0x34]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40a034
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call dword [0x450484]
push ecx
mov dword [esp + 0x24c], 0
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call dword [0x450484]
mov eax, dword [esp + 0x254]
push eax
mov dword [esp + 0x250], 0xffffffff
call fcn.00407e70
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0041d40a
add esp, 0x238
ret 4