Function at 0x405e40
Capabilities:
Create directory
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ad20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.TaskList.dat
lea ecx, [ebp - 0x18]
call fcn.0040a818
push eax
lea eax, [ebp + 8]
push edi
push eax
mov dword [ebp - 4], 0
call sub.MFC42u.DLL_operator
lea edi, [esi + 0x1c]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040a890
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
lea ebx, [esi + 0x20]
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00406270
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 0x40611d
cmp word [ebp - 0x50], 0x18
jne 0x40611d
lea edx, [ebp - 0x4e]
push 0x40b250
push edx
call fcn.00401f90
add esp, 8
test eax, eax
jne 0x40611d
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
mov dword [ebp + 8], ecx
jne 0x405f6d
mov eax, dword [ebx + 4]
test eax, eax
je 0x405f60
mov ecx, dword [ebx + 8]
mov edx, ecx
dec ecx
test edx, edx
je 0x405f4a
add eax, 0x158
jmp 0x405f3c
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 0x4060f0
mov edi, dword [ebx + 4]
test edi, edi
jne 0x405fce
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, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 0x18], ecx
mov ecx, edi
mov esi, ecx
mov dword [ebx + 4], eax
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x18]
mov ecx, eax
dec eax
test ecx, ecx
je 0x405fc0
add edx, 0x158
jmp 0x405fb1
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x4060ea
cmp ecx, dword [ebx + 0xc]
jg 0x406028
mov eax, dword [ebx + 8]
cmp eax, ecx
jge 0x406003
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.004066a0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
jmp 0x4060f0
jle 0x405ff8
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 edi, eax
dec eax
test edi, edi
je 0x405ff8
add edx, 0x158
jmp 0x406019
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x406053
mov eax, dword [ebx + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x406047
mov eax, 4
jmp 0x406053
cmp eax, 0x400
jle 0x406053
mov eax, 0x400
mov edx, dword [ebx + 0xc]
add eax, edx
cmp ecx, eax
jge 0x406063
mov ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x406066
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.004066a0
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]
mov esi, dword [ebp - 0x14]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x24]
lea ecx, [ecx + edx*2]
shl ecx, 3
push ecx
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Read
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040a866
jmp 0x406165
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Close
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x40d5e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040a866
jmp 0x406165
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_AfxTryCleanup
mov edx, dword [ebp - 0x3c]
push edx
push 0x40d5cc
call dword [sym.imp.MSVCRT.dll_wprintf]
mov eax, dword [esi + 0x28]
mov ebx, dword [esi + 0x24]
add esp, 8
mov dword [ebp + 8], 0
test eax, eax
jle 0x40620b
add ebx, 0x108
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
dec edi
js 0x4061c7
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 0x4061c4
dec edi
jns 0x4061a6
mov esi, dword [ebp - 0x14]
lea ecx, [ebx + 0x10]
push ecx
push str._s_r_n
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
test edi, edi
jl 0x4061e5
mov dword [ebx], 1
jmp 0x4061f7
mov eax, dword [ebx]
cmp eax, 1
je 0x4061f1
cmp eax, 2
jne 0x4061f7
mov dword [ebx], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x28]
inc eax
add ebx, 0x158
cmp eax, ecx
mov dword [ebp + 8], eax
jl 0x40619a
mov ecx, esi
call fcn.00405c80
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