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

Disassembly:
push 0xffffffffffffffff
push 0x44f090
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x47b018]
xor eax, esp
mov dword [esp + 0x3e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x400]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x408], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x408], 1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408776
test al, 0x10
je 0x408776
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 + 0x20]
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 + 0x408], 2
mov eax, dword [eax]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
jne 0x408618
xor ebp, ebp
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x408], 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]
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]
push eax
lea edx, [esp + 0x28]
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_____::Left]
mov byte [esp + 0x408], 5
mov eax, dword [eax]
cmp eax, ebx
jne 0x408633
xor esi, esi
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x408], 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 ecx, [esp + 0x9c]
call fcn.0043cca0
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x40c], 8
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 eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x410], 9
call fcn.00410f20
mov ecx, eax
call fcn.0043d690
lea ecx, [esp + 0x9c]
call fcn.00441e00
test eax, eax
jg 0x40864e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x408], 8
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 + 0x9c]
mov byte [esp + 0x408], 7
call fcn.0043cd90
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebp
call esi
mov byte [esp + 0x408], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x408980
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x408980
push eax
call esi
mov ebp, eax
mov dword [esp + 0x20], ebp
cmp ebp, ebx
jne 0x40851e
mov eax, 0x8007000e
call fcn.00401010
push eax
call esi
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, ebx
jne 0x408560
mov eax, 0x8007000e
call fcn.00401010
lea ecx, [esp + 0x9c]
call fcn.0043b020
cmp eax, 2
jne 0x408696
lea ecx, [esp + 0x2c]
mov byte [esp + 0x408], 8
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 + 0x9c]
mov byte [esp + 0x408], 7
call fcn.0043cd90
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebp
call esi
jmp 0x408969
lea eax, [esp + 0x18]
push eax
push 0x46da28
push 0x17
push ebx
push 0x46d7bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x40865f
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 0xffffffffffffffff
push ebx
push esi
push ebp
push 1
push ebx
push eax
call edx
cmp eax, ebx
je 0x40865f
mov edi, dword [edi]
push edi
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__]
push 0x1b0
mov byte [esp + 0x40c], 0xa
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x408], 0xb
cmp eax, ebx
je 0x408707
mov ecx, eax
call fcn.0043cca0
mov edi, eax
jmp 0x408709
xor edi, edi
mov byte [esp + 0x408], 0xa
cmp edi, ebx
je 0x40875f
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00410f20
mov ecx, eax
call fcn.0043d690
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
cmp eax, 0xffffffff
jne 0x40874c
lea ecx, [esp + 0x48]
mov byte [esp + 0x408], 9
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 0x40865f
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x408], 9
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 0x40865f
lea ecx, [esp + 0x24c]
call fcn.0043cca0
push 0x5c
mov ecx, edi
mov byte [esp + 0x40c], 0xc
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 + 0x28]
push eax
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x408], 0xd
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x68]
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 + 0x408], 0xf
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 + 0x24c]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00410f20
mov ecx, eax
call fcn.0043d690
lea ecx, [esp + 0x24c]
mov esi, eax
call fcn.0043b020
cmp eax, 2
je 0x408943
cmp esi, ebx
jne 0x408943
lea eax, [esp + 0x14]
push eax
push 0x46da18
push 0x17
push ebx
push 0x46d7dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x408943
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
push 0xffffffffffffffff
lea ecx, [esp + 0x250]
mov ebp, eax
add esi, 0x28
call fcn.00441e00
mov ecx, dword [esi]
push eax
push ebp
call ecx
cmp eax, ebx
jne 0x408943
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::AllocSysString]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edi
mov ebp, eax
call dword [0x450484]
call fcn.004089d0
cmp al, bl
je 0x4088fe
mov edx, dword [edi]
mov dword [esp + 0x20], ebx
mov esi, dword [edx - 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 eax, [esp + 0x20]
push eax
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 + 0x408], 0x10
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x84]
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 + 0x408], 0x12
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]
push ecx
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x254]
call fcn.0043ce30
cmp dword [esp + 0x20], ebx
jne 0x4088e7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push ebp
push eax
call edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x408], 0xf
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 0x40893c
push 0xc
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x408918
mov ecx, esi
call dword [0x450480]
jmp 0x40891a
xor esi, esi
push edi
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], ebx
mov dword [esi + 8], 2
call fcn.004131a0
test al, al
jne 0x40893c
call fcn.004020e0
push ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x64]
mov byte [esp + 0x408], 0xc
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 + 0x24c]
mov byte [esp + 0x408], 1
call fcn.0043cd90
mov byte [esp + 0x408], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x408980
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x408], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40899b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x400]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
call fcn.0041d40a
add esp, 0x3f8
ret