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

Disassembly:
push 0xffffffffffffffff
push 0x44f653
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x47b018]
xor eax, esp
mov dword [esp + 0x59c], eax
push ebp
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x5b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c4]
mov dword [esp + 0x5bc], 1
mov eax, dword [esp + 0x5cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408427
test al, 0x10
je 0x408427
lea ecx, [esp + 0x5c8]
push ecx
push ebp
call fcn.00402400
test al, al
je 0x407f5c
lea edx, [esp + 0x5c8]
push edx
push ebp
call fcn.00402ef0
lea eax, [esp + 0x5cc]
push eax
push ebp
call fcn.004024f0
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x407f31
lea ecx, [esp + 0x5c8]
push ecx
call fcn.0040f6d0
test eax, eax
je 0x407f31
mov edi, dword [ebp + 0x34]
lea edx, [esp + 0x5c8]
push edx
call fcn.0040fb20
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x407f5c
lea eax, [esp + 0x5cc]
push eax
call fcn.0040f6d0
test eax, eax
jne 0x407f5c
push ebp
push 0x17
lea ecx, [esp + 0x5d4]
push ecx
mov ecx, dword [ebp + 0x34]
call fcn.0040f760
lea ecx, [esp + 0x2bc]
call fcn.00439d70
lea ecx, [esp + 0x214]
mov byte [esp + 0x5bc], 2
call fcn.00445780
lea edx, [esp + 0x2bc]
push edx
lea ecx, [esp + 0x218]
mov byte [esp + 0x5c0], 3
call fcn.00446a60
lea ecx, [esp + 0x2bc]
call fcn.00439bf0
mov ebp, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jle 0x4081a3
mov dword [esp + 0x1c], eax
jmp 0x407fc0
lea ecx, [esp + 0x3fc]
call fcn.0043cca0
lea eax, [esp + 0x3fc]
push eax
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x5c0], 4
call fcn.00439ef0
lea ecx, [esp + 0x2bc]
call fcn.00439c90
lea ecx, [esp + 0x3fc]
call fcn.0043b0c0
cmp dword [eax + 0x18], 8
jb 0x40800b
mov eax, dword [eax + 4]
jmp 0x40800e
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call dword [0x450488]
mov byte [esp + 0x5bc], 5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x5c8]
mov ecx, dword [ecx - 0xc]
mov eax, dword [edx - 0xc]
cmp ecx, eax
lea ecx, [esp + 0x18]
jl 0x40817e
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x5bc], 6
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x5c8]
sub eax, dword [edx - 0xc]
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x5bc], 7
mov ecx, dword [esp + 0x5c8]
push ecx
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
jne 0x408166
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x5d0]
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 0x408166
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x5d4]
call fcn.0040a630
add esp, 8
mov dword [esp + 0x14], 0
lea edx, [esp + 0x14]
push edx
push 0x46da18
push 0x17
push 0
push 0x46d7dc
mov byte [esp + 0x5d0], 9
call ebp
test eax, eax
jne 0x408144
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.MSVCR90.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
je 0x408144
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
push 0xffffffffffffffff
lea ecx, [esp + 0x400]
mov edi, eax
add esi, 0x28
call fcn.00441e00
mov ecx, dword [esi]
push eax
push edi
call ecx
lea ecx, [esp + 0x24]
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 + 0x14]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x24]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x5bc], 8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40815c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x24]
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 + 0x28]
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 + 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]
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 + 0x3fc]
mov byte [esp + 0x5bc], 3
call fcn.0043cd90
sub dword [esp + 0x1c], 1
jne 0x407fc0
lea ecx, [esp + 0x64]
call fcn.0043cca0
mov byte [esp + 0x5bc], 0xa
mov eax, dword [esp + 0x5cc]
push eax
lea ecx, [esp + 0x4c]
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 + 0x64]
push ecx
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x5c4], 0xb
call fcn.00410f20
mov ecx, eax
call fcn.0043d690
test eax, eax
mov eax, dword [esp + 0x5cc]
jne 0x40833f
mov esi, dword [eax - 0xc]
push 0x5c
lea ecx, [esp + 0x5d0]
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 + 0x20]
push ecx
lea ecx, [esp + 0x5d4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x5bc], 0xc
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
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 + 0x1c]
mov byte [esp + 0x5bc], 0xe
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 + 0x64]
call fcn.00442050
push eax
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
test al, al
je 0x408275
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5bc], 0xb
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_]
jmp 0x4083dc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x46da18
push 0x17
push 0
push 0x46d7dc
mov byte [esp + 0x5d0], 0xf
call ebp
mov esi, eax
test esi, esi
jne 0x4082f4
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
mov edi, eax
add esi, 0x28
call fcn.00441e00
mov ecx, dword [esi]
push eax
push edi
call ecx
mov esi, eax
test esi, esi
jne 0x4082f4
cmp dword [esp + 0x44], 8
mov ebp, dword [esp + 0x14]
jb 0x408320
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x408324
xor edi, edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x5bc], 0x10
mov edx, dword [ebp]
mov eax, dword [edx + 0x2c]
push edi
push ebp
call eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x5bc], 0xe
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40830c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5bc], 0xb
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_]
jmp 0x408362
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
jne 0x4082db
mov eax, 0x8007000e
call fcn.00401010
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00410f20
mov ecx, eax
call fcn.0043d690
mov esi, eax
call fcn.00410b30
mov eax, dword [eax + 0x34]
cmp dword [eax + 8], 0
je 0x408389
lea ecx, [esp + 0x64]
call fcn.00441e00
push eax
push ecx
call fcn.00410b30
add esp, 4
push eax
call fcn.004037a0
test esi, esi
jne 0x4083dc
lea ecx, [esp + 0x64]
call fcn.0043b020
cmp eax, 1
je 0x4083dc
lea ecx, [esp + 0x64]
call fcn.00441e00
push eax
push ecx
call fcn.00410b30
add esp, 4
call fcn.00402280
test al, al
jne 0x4083dc
push 4
call sub.mfc90u.dll_new
add esp, 4
lea ecx, [esp + 0x64]
mov esi, eax
call fcn.00441e00
mov ecx, dword [0x47bde8]
push 2
push esi
mov dword [esi], eax
call fcn.00448950
lea ecx, [esp + 0x48]
mov byte [esp + 0x5bc], 0xa
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 + 0x64]
mov byte [esp + 0x5bc], 3
call fcn.0043cd90
lea ecx, [esp + 0x214]
mov byte [esp + 0x5bc], 2
call fcn.00445660
lea ecx, [esp + 0x2bc]
mov byte [esp + 0x5bc], 1
call fcn.00439920
lea ecx, [esp + 0x5c8]
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 + 0x5cc]
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 + 0x5b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x59c]
xor ecx, esp
call fcn.0041d40a
add esp, 0x5b0
ret 0xc