Function at 0x4ea440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6828d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
push edi
push str..bak
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_6
push 0x738574
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call sub.MFC42u.DLL_CString::CString_6
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 8
lea edx, [esp + 0x18]
push esi
push edx
mov byte [esp + 0x40], 1
call fcn.0040b720
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0xc]
push eax
call fcn.0040ca30
add esp, 4
test eax, eax
je 0x4ea6e6
mov ecx, dword [esp + 0xc]
push ecx
push str.Backup_file_found:__s
call fcn.0040db50
mov edx, dword [esp + 0x14]
push edx
call fcn.0040d580
fcomp qword [0x69f890]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x4ea6cd
push str.__Backup_file_has_non_zero_length
call fcn.0040db50
mov eax, dword [esi]
push eax
call fcn.0040d580
fcomp qword [0x69f890]
add esp, 8
fnstsw ax
test ah, 0x40
je 0x4ea54f
push str.____Taskfile__s_has_zero_length__replacing_with_backup
call fcn.0040db50
mov eax, dword [esi]
push 1
push eax
call fcn.0040d330
mov esi, dword [esi]
mov eax, dword [esp + 0x18]
push 0
push 0
push esi
push eax
call fcn.0040d470
add esp, 0x1c
jmp 0x4ea6e6
push str.____Taskfile_has_non_zero_length
call fcn.0040db50
mov eax, dword [esi]
push eax
call fcn.0040bfa0
mov ecx, dword [esp + 0x14]
mov ebp, eax
push ecx
mov edi, edx
call fcn.0040bfa0
add esp, 0xc
cmp edi, edx
jl 0x4ea586
jg 0x4ea57c
cmp ebp, eax
jb 0x4ea586
push str.______Taskfile_is_newer_than_backup__deleting_backup
jmp 0x4ea6d2
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push esi
call sub.MFC42u.DLL_CString::CString_4
push 0xc667
lea ecx, [esp + 0x3c]
call fcn.00406d80
mov eax, dword [esp + 0x34]
push 0
push 3
push eax
mov byte [esp + 0x38], 5
call sub.MFC42u.DLL_AfxMessageBox_1
sub eax, 2
je 0x4ea698
sub eax, 4
je 0x4ea660
dec eax
jne 0x4ea688
push str.______User_confirmed_to_keep_taskfile__renaming_backup
call fcn.0040db50
add esp, 4
lea ecx, [esp + 0x1c]
push str..bak
call sub.MFC42u.DLL_CString::CString_6
push 0x738574
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 6
call sub.MFC42u.DLL_CString::CString_6
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x40], 7
call fcn.0040b720
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0xa
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 9
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push 1
push 1
push edx
push eax
call fcn.0040d470
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 5
call sub.MFC42u.DLL_CString::CString
jmp 0x4ea688
push str.______User_confirmed_to_replace_taskfile_with_backup
call fcn.0040db50
mov eax, dword [esi]
push 1
push eax
call fcn.0040d330
mov esi, dword [esi]
mov ecx, dword [esp + 0x18]
push 1
push 1
push esi
push ecx
call fcn.0040d470
add esp, 0x1c
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004116d0
jmp 0x4ea6e6
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004116d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 4
push str.__Backup_file_has_zero_length__deleting_backup
call fcn.0040db50
mov edx, dword [esp + 0x10]
push 1
push edx
call fcn.0040d330
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x24
ret 4