Function at 0x421880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47a7af
mov eax, dword fs:[0]
push eax
sub esp, 0xa74
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0xa80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
cmp eax, 0x3e8
ja 0x4219f3
je 0x421900
sub eax, 1
je 0x421c6f
sub eax, 1
je 0x421c6f
sub eax, 8
jne 0x421c6f
push esi
mov eax, ebx
call fcn.004216b0
mov eax, dword [ebx + 0x1848]
push 0
push esi
push 0x1013
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421c6f
mov edi, dword [ebx + 0x1fdc]
cmp edi, dword [ebx + 0x1fe0]
jbe 0x421914
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 0x1fd0]
mov dword [esp + 0x14], edi
mov edi, edi
mov edi, dword [ebx + 0x1fe0]
cmp dword [ebx + 0x1fdc], edi
jbe 0x421934
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x1fd0]
test esi, esi
je 0x421942
cmp esi, eax
je 0x421948
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x14], edi
je 0x421996
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x42198e
call edi
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x421967
call edi
mov ecx, dword [esp + 0x14]
add ecx, 0x14
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
test esi, esi
jne 0x421992
call edi
xor eax, eax
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x421987
call edi
add dword [esp + 0x14], 0x18
jmp 0x421920
mov eax, dword [esi]
jmp 0x42195c
mov eax, dword [esi]
jmp 0x42197c
mov eax, dword [ebx + 0x1848]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1027
push eax
call esi
mov ecx, dword [ebx + 0x1848]
push 0
push 0
push 0x1028
push ecx
mov edi, eax
call esi
mov edx, dword [ebx + 0x1848]
push 0
push 0
push 0x1027
push edx
mov dword [esp + 0x20], eax
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1848]
add edi, ecx
push edi
push eax
push 0x1015
push edx
call esi
jmp 0x421c6f
cmp eax, 0x3e9
je 0x421c1a
cmp eax, 0xffffffff
jne 0x421c6f
mov eax, dword [ebx + 0x1f30]
cmp eax, 0xfffffffe
jne case.default.0x421a94
mov ecx, dword [ebx + 0x23c0]
test ecx, ecx
je 0x421a47
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x2c4c], eax
call fcn.0041c3b0
lea edx, [ebx + 0x1ee8]
push edx
call fcn.0042ac50
push edx
push eax
call fcn.0041c320
add esp, 8
push 0x3ed
mov ecx, ebx
call sub.mfc90u.dll_CWnd::IsDlgButtonChecked
cmp eax, 1
jne case.default.0x421a94
lea esi, [ebx + 0x1f00]
push esi
call fcn.00426e70
mov edi, dword [ebx + 0x1f28]
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
cmp edi, 1
jbe case.default.0x421a94
call fcn.00419ee0
mov eax, dword [ebx + 0x1ff0]
cmp eax, 4
ja case.default.0x421a94
jmp dword [eax*4 + 0x421cd8]
xor edi, edi
call fcn.0041e230
jmp case.default.0x421a94
mov edi, 1
call fcn.0041e230
jmp case.default.0x421a94
push 2
call fcn.0041e2c0
add esp, 4
lea eax, [ebx + 0x1ce0]
call fcn.00426c70
jmp case.default.0x421a94
push 3
jmp 0x421ab8
lea eax, [esp + 0x18]
push eax
call fcn.0041dbf0
add esp, 4
mov dword [esp + 0xa88], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x421b01
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421b25
lea esi, [esp + 0x20]
call fcn.0041ae40
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8c], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041e310
add esp, 4
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
mov byte [esp + 0xa8c], 2
call sub.mfc90u.dll_CWnd::GetWindowTextW
mov eax, dword [esp + 0x1c]
push 0x40
push eax
push 0x47d9d0
push 0x47d9d0
push 0x47d9d0
push 0x47d9d0
push str.3401097
call sub.Languages.dll_Ordinal_8
push eax
mov ecx, ebx
call sub.mfc90u.dll_CWnd::MessageBoxW
mov edi, dword [sym.imp.WINMM.dll_mciSendCommandW]
push 0
push 0
push 0x808
push esi
call edi
push 0
push 0
push 0x804
push esi
call edi
lea eax, [ebx + 0x1ce0]
call fcn.00426c70
lea ecx, [esp + 0x1c]
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 + 0x18]
mov dword [esp + 0xa88], 0xffffffff
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov esi, ebx
call fcn.00422580
mov ecx, dword [0x498578]
push ecx
lea ecx, [esp + 0x14]
call dword [0x47ce1c]
push str.ScheduleStart
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x421c0e
cmp dword [ebx + 0x23c8], eax
jne 0x421c0e
mov edx, dword [ebx + 0x20]
push eax
push 1
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x10]
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 0x421c6f
call sub.BottDefrag.dll_GetStatus
test eax, eax
jne 0x421c6f
push 4
lea eax, [esp + 0x28]
push eax
call fcn.00432e10
lea ecx, [esp + 0x24]
mov dword [esp + 0xa88], 3
call sub.mfc90u.dll_CDialog::DoModal
cmp eax, 1
jne 0x421c5b
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0x108e
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x24]
mov dword [esp + 0xa88], 0xffffffff
call fcn.00432f60
mov edx, dword [ebx + 0x1ffc]
cmp edx, 0xffffffff
jne 0x421cbe
mov eax, dword [ebx + 0x1ff4]
lea esi, [ebx + 0x1ff4]
push edx
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov eax, dword [ebx + 0x1ffc]
mov edx, dword [esi]
cmp eax, 1
mov eax, dword [edx + 0x1c]
mov ecx, esi
jne 0x421cbc
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0xa80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call eax
xor eax, eax
mov ecx, dword [esp + 0xa80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4