Function at 0x404680
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404a89
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 8]
sub esp, 0x168
lea ecx, [ebp - 0x14]
push ebx
push esi
push eax
mov ebx, 1
call sub.MFC40.DLL_CString::CString_2
push 0x419150
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call sub.MFC40.DLL_CString::CString_1
mov esi, eax
push ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], bl
call sub.MFC40.DLL_CString::Right
mov byte [ebp - 4], 2
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT40.dll__mbscmp]
add esp, 8
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov byte [ebp - 4], bl
sbb dword [ebp - 0x10], ecx
neg dword [ebp - 0x10]
call fcn.00404a79
mov byte [ebp - 4], 0
call fcn.00404a81
cmp dword [ebp - 0x10], 0
je 0x404736
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC40.DLL_CString::Left
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0041559a
mov byte [ebp - 4], 0
call fcn.004048d1
push str..
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
push ecx
call sub.MFC40.DLL_operator
mov byte [ebp - 4], 6
call fcn.00404a69
lea ecx, [ebp - 0x18]
mov esi, 1
call sub.MFC40.DLL_CString::CString
mov byte [ebp - 4], 7
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40484a
test esi, esi
je 0x40484a
test byte [ebp - 0x174], 0x10
jne 0x40482d
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x24]
push eax
push 0x419150
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
lea eax, [ebp - 0x14]
push eax
push ecx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
push ecx
call sub.MFC40.DLL_operator_2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0041559a
mov byte [ebp - 4], 9
call fcn.004048e9
mov byte [ebp - 4], 8
call fcn.004048e1
mov byte [ebp - 4], 7
call fcn.004048d9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT40.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40482d
push pe_nt_image_headers32
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp dword [ebp - 0x10], 0xffffffff
mov esi, eax
jne 0x40478c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x419264
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x14]
push eax
push ecx
call sub.MFC40.DLL_operator
mov byte [ebp - 4], 0xd
call fcn.00404a51
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4049e9
test byte [ebp - 0x174], 0x10
je 0x4049c6
lea eax, [ebp - 0x148]
mov ecx, 0x419260
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4048f1
or dl, dl
je 0x4048cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4048f1
add eax, 2
add ecx, 2
or dl, dl
jne 0x4048b1
xor eax, eax
jmp 0x4048f6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4049c6
lea eax, [ebp - 0x148]
mov ecx, 0x41925c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404929
or dl, dl
je 0x404925
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404929
add eax, 2
add ecx, 2
or dl, dl
jne 0x404909
xor eax, eax
jmp 0x40492e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4049c6
push 0x419048
lea ecx, [ebp - 0x1c]
mov ebx, 0x11
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x148]
push eax
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xf
push 0x419150
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x20]
push ecx
mov byte [ebp - 4], bl
call sub.MFC40.DLL_operator
mov byte [ebp - 4], 0x12
push eax
call fcn.00404680
add esp, 8
mov byte [ebp - 4], bl
call fcn.00404a41
mov byte [ebp - 4], 0x10
call fcn.00404a31
mov byte [ebp - 4], 0xf
call fcn.00404a29
mov byte [ebp - 4], 0xe
call fcn.00404a39
mov byte [ebp - 4], 0xd
call fcn.00404a49
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404899
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 7
call fcn.00404a59
mov byte [ebp - 4], 6
call fcn.00404a61
mov byte [ebp - 4], 0
call fcn.00404a71
mov dword [ebp - 4], 0xffffffff
call fcn.00404a93
mov eax, dword [ebp - 0xc]
pop esi
mov dword fs:[0], eax
pop ebx
mov esp, ebp
pop ebp
ret