Function at 0x1007bbf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dddc1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10145188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
push eax
push str.CheckHomeworkWnd::OpenFile__s
push 4
call edi
add esp, 0xc
lea ecx, [ebp - 0x1c]
call dword [0x100ec970]
lea ecx, [ebp - 0x18]
call dword [0x100ec970]
lea ecx, [ebp - 0x10]
call dword [0x100ec970]
lea ecx, [ebp - 0x14]
call dword [0x100ec970]
lea eax, [esi + 0x4f4]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call dword [0x100ec92c]
push 0x2e
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1007bce8
push ebx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
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]
mov eax, dword [eax - 0xc]
sub eax, ebx
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push str..doc
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x1007bdf3
push str..docx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x1007bdf3
cmp byte [0x10148989], 0
jne 0x1007bdeb
push str..xls
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x1007bd49
push str..xlsx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x1007bdeb
push str..html
lea ecx, [ebp - 0x18]
call dword [0x100ec930]
lea ebx, [esi + 0x4f4]
push ebx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call dword [0x100ec92c]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1007bd9e
push ecx
lea edx, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
call dword [0x100ec964]
mov ecx, esi
call fcn.1007c780
jmp 0x1007c006
push str.CheckHomeworkWnd::OpenFile
push 4
call edi
add esp, 4
mov eax, esp
lea ecx, [ebp + 8]
mov dword [ebp - 0x24], esp
push ecx
push eax
mov ecx, ebx
call fcn.10001840
add esp, 8
push esi
call fcn.1007c050
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1007bde1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
jmp 0x1007bfdf
push str.CheckHomeworkWnd::OpenFile_excel
jmp 0x1007bfff
lea edx, [ebp - 0x1c]
jmp 0x1007bfd8
push str..html
lea ecx, [ebp - 0x18]
call dword [0x100ec930]
lea eax, [esi + 0x4f4]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call dword [0x100ec92c]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1007beed
push ecx
lea edx, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
call dword [0x100ec964]
mov ecx, esi
call fcn.1007c780
mov ecx, dword [esi + 0x4a0]
test ecx, ecx
je 0x1007be5d
mov eax, dword [ecx]
mov edx, dword [eax + 0xdc]
push 1
call edx
xor al, al
cmp dword [esi + 0x600], 0xc
jl 0x1007be6a
mov al, 1
cmp dword [esi + 0x578], 0x800e
jb 0x1007beac
cmp byte [0x10148959], 0
jne 0x1007beac
test al, al
je 0x1007beac
mov esi, dword [esi + 0x4b0]
test esi, esi
je 0x1007c006
mov eax, dword [esi + 0x468]
mov edx, dword [eax + 0xdc]
lea ecx, [esi + 0x468]
push 1
call edx
jmp 0x1007c006
mov eax, dword [esi + 0x4ac]
test eax, eax
je 0x1007c006
lea ecx, [eax + 0x468]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
push 1
call edx
mov ecx, dword [esi + 0x4ac]
mov eax, dword [ecx + 0x468]
mov edx, dword [eax + 0xdc]
add ecx, 0x468
push 1
call edx
jmp 0x1007c006
push 0x10109760
push 4
call edi
add esp, 8
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call dword [0x100ec964]
mov byte [ebp - 4], 7
mov eax, dword [esi + 0x4b8]
call fcn.10083f80
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
call dword [0x100ec964]
mov ecx, dword [esi + 0x4b8]
call fcn.10083e90
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
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], 0
jne 0x1007bf50
push str.CheckHomeworkWnd::OpenFile_OpenWordFile_error
jmp 0x1007bfff
push 0x10109808
push 4
call edi
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call dword [0x100ec964]
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 8
call dword [0x100ec964]
mov ecx, dword [esi + 0x4b8]
call fcn.10083bc0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
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], 0
jne 0x1007bfa5
push str.CheckHomeworkWnd::OpenFile_SaveWordFileAsHtml_error
jmp 0x1007bfff
push 0x101098b8
push 4
call edi
add esp, 8
lea eax, [esi + 0x4b4]
call fcn.10076010
test eax, eax
jne 0x1007bfc7
push str.CheckHomeworkWnd::OpenFile_ReleaseWord_error
jmp 0x1007bfff
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1007bffa
lea edx, [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
call dword [0x100ec964]
mov ecx, esi
call fcn.1007c780
mov edi, 1
mov eax, esi
call fcn.1007af50
jmp 0x1007c006
push str.CheckHomeworkWnd::OpenFile_WORD
push 0
call edi
add esp, 8
lea ecx, [ebp - 0x14]
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 - 0x10]
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 - 0x18]
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 - 0x1c]
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]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4