Function at 0x1007cfe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0a5c
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x10145188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x118], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x11c]
call dword [0x100ec970]
mov byte [ebp - 4], 3
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x1007d037
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x110]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
lea eax, [ebp - 0x11c]
push str.PreView_Homework_DownFile_____s___s___s_
push eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x14
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 0x11c]
push ecx
push str.DownFile__s
push 1
call dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
add esp, 8
mov byte [ebp - 4], 7
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x110], esp
push edx
call dword [0x100ec964]
lea esi, [ebp - 0x110]
call fcn.10078260
add esp, 4
add edi, 0x4f4
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ecx, esi
mov byte [ebp - 4], 7
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, edi
call fcn.10001840
mov edx, dword [ebp - 0x110]
add esp, 8
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x110]
test eax, eax
je 0x1007d1dd
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x118]
push ecx
mov ecx, edi
call fcn.10001840
mov byte [ebp - 4], 9
mov edx, dword [eax]
push edx
push str.DownFile__s_is_Exist
push 1
call dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
add esp, 0x14
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov esi, 0x10
cmp dword [ebp - 0x34], esi
jb 0x1007d17d
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], esi
jb 0x1007d19d
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp dword [ebp + 0x24], esi
jb 0x1007d1d6
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov al, 1
jmp 0x1007d547
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.Common.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_CMTool::StringUnicodeToURL_wchar_t_const__]
add esp, 8
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.100487c0
cmp dword [ebp - 0x6c], 0x10
jb 0x1007d214
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x118]
mov ecx, dword [ecx + 0x498]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.HTTPLib_u.dll_public:_void___thiscall_HttpLib::CHttpTool::GetSid_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0xf0]
push str._owncloud_index.php_apps_util_external_ajax_download.php_files
push eax
call fcn.1007f5f0
push str.dir
push eax
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], 0xc
call fcn.1007f6c0
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0xd4]
mov byte [ebp - 4], 0xd
call fcn.1007f710
push str.HTTP_SID
push eax
lea edx, [ebp - 0xb8]
push edx
mov byte [ebp - 4], 0xe
call fcn.1007f6c0
add esp, 0x24
mov ecx, eax
lea eax, [ebp - 0x64]
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.1007f710
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call fcn.100487c0
mov esi, 0x10
cmp dword [ebp - 0x88], esi
jb 0x1007d2ce
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
cmp dword [ebp - 0xa4], esi
jb 0x1007d2fc
mov ecx, dword [ebp - 0xb8]
push ecx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
cmp dword [ebp - 0xc0], esi
jb 0x1007d32a
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
cmp dword [ebp - 0x6c], esi
jb 0x1007d352
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0xdc], esi
jb 0x1007d37b
mov ecx, dword [ebp - 0xf0]
push ecx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x120], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x48]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.10004020
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x11
call fcn.10001840
add esp, 8
mov byte [ebp - 4], 0x12
mov eax, dword [eax]
mov edx, dword [ebp - 0x118]
push eax
mov eax, dword [edx + 0x498]
push eax
mov byte [ebp - 4], 0x13
call dword [sym.imp.HTTPLib_u.dll_bool___cdecl_HttpLib::HttpDownFile_class_HttpLib::CHttpTool___wchar_t_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___]
add esp, 0x24
lea ecx, [ebp - 0x110]
mov byte [ebp - 0x111], al
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp byte [ebp - 0x111], bl
je 0x1007d48b
cmp dword [ebp - 0x50], esi
jb 0x1007d40c
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x34], esi
jb 0x1007d42c
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], esi
jb 0x1007d447
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp dword [ebp + 0x24], esi
jb 0x1007d1d6
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov al, 1
jmp 0x1007d547
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call fcn.10001840
mov byte [ebp - 4], 0x14
mov ecx, dword [eax]
push ecx
push str.Homework_DownFile____s
push ebx
call dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
add esp, 0x14
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp dword [ebp - 0x50], esi
jb 0x1007d4d1
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x34], esi
jb 0x1007d4f1
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], esi
jb 0x1007d50c
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp dword [ebp + 0x24], esi
jb 0x1007d545
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d0962
mov esp, ebp
pop ebp
ret 0x24