Function at 0x404a60
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
push 0
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.TaskList.dat
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_1
push eax
lea eax, [ebp + 8]
push esi
push eax
mov dword [ebp - 4], 0
call sub.MFC42u.DLL_operator_2
lea edi, [ebx + 0x1c]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.004063b2
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004063b2
add ebx, 0x20
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00404e30
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [edi]
push 0
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CFile::CFile
lea ecx, [ebp - 0x50]
push 0x18
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CFile::Read
cmp eax, 0x18
jb 0x404d2f
cmp word [ebp - 0x50], 0x18
jne 0x404d2f
lea edx, [ebp - 0x4e]
push 0x407260
push edx
call fcn.00401c70
add esp, 8
test eax, eax
jne 0x404d2f
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
test ecx, ecx
mov dword [ebp + 8], esi
jne 0x404b8f
mov eax, dword [ebx + 4]
test eax, eax
je 0x404b82
mov ecx, dword [ebx + 8]
mov edx, ecx
dec ecx
test edx, edx
je 0x404b6c
add eax, 0x158
jmp 0x404b5e
mov eax, dword [ebx + 4]
push eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x404d0b
mov edi, dword [ebx + 4]
test edi, edi
jne 0x404bed
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea edi, [ecx + eax*2]
shl edi, 3
push edi
call sub.MFC42u.DLL_operatornew
mov ecx, edi
mov dword [ebp - 0x18], esi
mov edx, eax
mov esi, ecx
mov dword [ebx + 4], eax
xor eax, eax
mov edi, edx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x18]
mov ecx, eax
dec eax
test ecx, ecx
je 0x404bdf
add edx, 0x158
jmp 0x404bd0
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x404d08
mov esi, dword [ebx + 0xc]
cmp ecx, esi
jg 0x404c49
mov eax, dword [ebx + 8]
cmp eax, ecx
jge 0x404c24
sub ecx, eax
push ecx
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*2]
lea ecx, [edi + eax*8]
push ecx
call fcn.00405260
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
jmp 0x404d0b
jle 0x404c19
lea edx, [ecx*8]
sub eax, ecx
sub edx, ecx
lea edx, [edx + edx*2]
lea edx, [ecx + edx*2]
lea edx, [edi + edx*8]
mov esi, eax
dec eax
test esi, esi
je 0x404c19
add edx, 0x158
jmp 0x404c3a
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x404c74
mov eax, dword [ebx + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x404c68
mov eax, 4
jmp 0x404c74
cmp eax, 0x400
jle 0x404c74
mov eax, 0x400
add eax, esi
cmp ecx, eax
jge 0x404c81
mov ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x404c84
mov dword [ebp - 0x18], ecx
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
shl eax, 3
push eax
call sub.MFC42u.DLL_operatornew
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov edi, eax
add esp, 4
lea ecx, [edx*8]
mov dword [ebp - 0x1c], eax
sub ecx, edx
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 8]
mov edx, esi
sub edx, ecx
push edx
lea edx, [ecx*8]
sub edx, ecx
lea edx, [edx + edx*2]
lea ecx, [ecx + edx*2]
lea edx, [eax + ecx*8]
push edx
call fcn.00405260
mov eax, dword [ebx + 4]
push eax
call sub.MFC42u.DLL_operatordelete
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
lea ecx, [ecx + edx*2]
shl ecx, 3
push ecx
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Read
jmp 0x404d40
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Close
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040641e
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_AfxTryCleanup
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], 0
mov eax, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x24]
test eax, eax
jle 0x404e08
add ebx, 0x108
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
dec edi
js 0x404dc9
lea esi, [ebx + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov edx, dword [ecx + 4]
lea eax, [edx + edi*4]
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x404dbd
dec edi
jns 0x404d82
jmp 0x404dc9
test edi, edi
jl 0x404dc9
mov dword [ebx], 1
jmp 0x404dd4
cmp dword [ebx], 1
jne 0x404dd4
mov dword [ebx], 0
lea ecx, [ebx + 0x10]
lea edx, [ebx - 0xd0]
push ecx
push edx
push str._r_n_s___s
call dword [sym.imp.MSVCRT.dll_wprintf]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add esp, 0xc
inc eax
mov edx, dword [ecx + 0x28]
add ebx, 0x158
cmp eax, edx
mov dword [ebp + 8], eax
jl 0x404d76
call fcn.00404890
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8