Function at 0x42ac00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49452b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0x40], ecx
call fcn.0042b080
lea ecx, [esp + 0x94]
mov dword [esp + 0x100], 0
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], 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 + 0x1c]
mov byte [esp + 0x100], 2
call sub.mfc90u.dll_CFileFind::CFileFind
mov byte [esp + 0x100], 3
test esi, esi
je 0x42aff9
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42aca7
sub eax, edx
sar eax, 1
je 0x42aff9
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42aff9
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.0045b470
push eax
mov ecx, esi
mov byte [esp + 0x104], 4
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], 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_]
push 0x4a0008
mov ecx, esi
call dword [0x497354]
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x42ad31
lea eax, [esp + 0x7c]
push 0
push eax
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CFileFind::FindFile
test eax, eax
je 0x42af5a
jmp 0x42ad50
mov esi, dword [esp + 0x3c]
cmp dword [esi + 0x64], 0
jne 0x42af5a
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 0x42af4f
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x40]
push 0x10
lea ecx, [esp + 0x20]
call eax
test eax, eax
je 0x42add3
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x42af4f
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CFileFind::GetFilePath
mov byte [esp + 0x100], 5
mov eax, dword [eax]
push edi
push eax
push ebx
mov ecx, esi
call fcn.0042ac00
lea ecx, [esp + 0x44]
mov byte [esp + 0x100], 3
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 0x42af4f
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x6c], esp
lea ecx, [ebx + 0x18]
push edx
call fcn.00404bd0
sub esp, 0x18
mov byte [esp + 0x130], 6
mov eax, esp
mov dword [esp + 0x88], esp
push eax
mov ecx, ebx
call fcn.00404bd0
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x134], 7
call sub.mfc90u.dll_CFileFind::GetFileName
mov byte [esp + 0x130], 8
mov eax, dword [eax]
push eax
mov byte [esp + 0x134], 9
call fcn.0042b140
cmp eax, 1
lea ecx, [esp + 0x40]
sete byte [esp + 0x17]
mov byte [esp + 0x100], 3
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 0x42af4f
cmp dword [ebx + 0x58], 0
je 0x42aeb3
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], 0xa
call sub.mfc90u.dll_CFileFind::GetFilePath
mov byte [esp + 0x100], 0xb
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], 3
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], 0xc
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], 3
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 0x42af2b
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push 0
push 0x2710
push ecx
push eax
call fcn.0048b250
mov dword [esp + 0xb8], edx
jmp 0x42af34
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.0042b6b0
cmp dword [esp + 0x18], 0
jne 0x42ad50
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 0x42af9d
lea ecx, [esp + 0xbc]
push ecx
lea edi, [ebx + 0x30]
call fcn.0042b7d0
mov esi, dword [ebx + 0x50]
mov ebx, dword [ebx + 0x54]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], 2
call fcn.00489dfe
lea ecx, [esp + 0x78]
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 ecx, [esp + 0x94]
mov byte [esp + 0x100], 0
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.0042b0e0
mov eax, esi
mov edx, ebx
jmp 0x42b04d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], 2
call fcn.00489dfe
lea ecx, [esp + 0x78]
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 ecx, [esp + 0x94]
mov byte [esp + 0x100], 0
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.0042b0e0
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.0048a3f6
mov esp, ebp
pop ebp
ret 0xc