Function at 0x10006910
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000f004
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x1001509c]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x1001509c]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0xbc]
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_void_]
lea eax, [esp + 0xd8]
push eax
mov dword [esp + 0x104], 0
call fcn.100072b0
lea ecx, [esp + 0x94]
mov dword [esp + 0x100], 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__::constructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0x100], 2
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_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], 3
call sub.mfc90u.dll_CFileFind::CFileFind
mov byte [esp + 0x100], 4
test esi, esi
je 0x10006d19
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100069d0
sub eax, edx
sar eax, 1
je 0x10006d19
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006d19
push esi
lea ecx, [esp + 0xc0]
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__]
push esi
lea ecx, [esp + 0x7c]
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 esi, [esp + 0x78]
lea edi, [esp + 0x5c]
call fcn.1000cca0
push eax
mov ecx, esi
mov byte [esp + 0x104], 5
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, edi
mov byte [esp + 0x100], 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_]
push 0x10011514
mov ecx, esi
call dword [0x100100d4]
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x10006a5a
lea eax, [esp + 0x7c]
push 0
push eax
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CFileFind::FindFile
test eax, eax
je 0x10006c7a
mov edi, edi
mov esi, dword [esp + 0x3c]
cmp dword [esi + 0x64], 0
jne 0x10006c7a
lea ecx, [esp + 0x1c]
call sub.mfc90u.dll_CFileFind::FindNextFileW
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call sub.mfc90u.dll_CFileFind::IsDots
test eax, eax
jne 0x10006c6f
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x40]
push 0x10
lea ecx, [esp + 0x20]
call eax
test eax, eax
je 0x10006af3
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10006c6f
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CFileFind::GetFilePath
mov byte [esp + 0x100], 6
mov eax, dword [eax]
push edi
push eax
push ebx
mov ecx, esi
call fcn.10006910
lea ecx, [esp + 0x44]
mov byte [esp + 0x100], 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]
jmp 0x10006c6f
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x6c], esp
lea ecx, [ebx + 0x18]
push edx
call fcn.10007440
sub esp, 0x18
mov byte [esp + 0x130], 7
mov eax, esp
mov dword [esp + 0x88], esp
push eax
mov ecx, ebx
call fcn.10007440
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x134], 8
call sub.mfc90u.dll_CFileFind::GetFileName
mov byte [esp + 0x130], 9
mov eax, dword [eax]
push eax
mov byte [esp + 0x134], 0xa
call fcn.10006e00
cmp eax, 1
lea ecx, [esp + 0x40]
sete byte [esp + 0x17]
mov byte [esp + 0x100], 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]
cmp byte [esp + 0x17], 0
je 0x10006c6f
cmp dword [ebx + 0x58], 0
je 0x10006bd3
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CFileFind::GetFileName
mov edi, eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x104], 0xb
call sub.mfc90u.dll_CFileFind::GetFilePath
mov byte [esp + 0x100], 0xc
mov ecx, dword [esi + 0x60]
mov edi, dword [edi]
mov eax, dword [eax]
mov edx, dword [ebx + 0x58]
push ecx
push edi
push eax
call edx
lea ecx, [esp + 0x48]
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 + 0x34]
mov byte [esp + 0x100], 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 eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CFileFind::GetFileName
mov byte [esp + 0x100], 0xd
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x7c]
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 + 0x38]
mov byte [esp + 0x100], 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 + 0x78]
push ecx
lea ecx, [esp + 0x98]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CFileFind::GetCreationTime
test eax, eax
je 0x10006c4b
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push 0
push 0x2710
push ecx
push eax
call fcn.1000de60
mov dword [esp + 0xb8], edx
jmp 0x10006c54
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x94]
push eax
lea edi, [esp + 0xdc]
call fcn.100073a0
cmp dword [esp + 0x18], 0
jne 0x10006a70
lea ecx, [esp + 0x1c]
call sub.mfc90u.dll_CFileFind::Close
mov ecx, dword [esp + 0xe8]
sub ecx, dword [esp + 0xe4]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [ebx + 0x50], eax
adc dword [ebx + 0x54], 0
test eax, eax
je 0x10006cbd
lea ecx, [esp + 0xbc]
push ecx
lea edi, [ebx + 0x30]
call fcn.100076d0
mov esi, dword [ebx + 0x50]
mov ebx, dword [ebx + 0x54]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], 3
call fcn.1000cf3e
lea ecx, [esp + 0x78]
mov byte [esp + 0x100], 2
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 + 0x94]
mov byte [esp + 0x100], 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 edx, [esp + 0xbc]
push edx
mov dword [esp + 0x104], 0xffffffff
call fcn.10006da0
mov eax, esi
mov edx, ebx
jmp 0x10006d6d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], 3
call fcn.1000cf3e
lea ecx, [esp + 0x78]
mov byte [esp + 0x100], 2
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 + 0x94]
mov byte [esp + 0x100], 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 eax, [esp + 0xbc]
push eax
mov dword [esp + 0x104], 0xffffffff
call fcn.10006da0
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.1000d2b5
mov esp, ebp
pop ebp
ret 0xc