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

Disassembly:
push 0xffffffffffffffff
push 0x459894
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x17c], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x10]
push eax
mov ebx, 1
push str._s
push ecx
mov byte [esp + 0x188], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40a1d9
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [esp + 0x34], 0x10
je 0x40a117
mov esi, 0x492d10
lea eax, [esp + 0x60]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a07e
test cl, cl
je 0x40a07a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a07e
add eax, 2
add esi, 2
test cl, cl
jne 0x40a05a
xor eax, eax
jmp 0x40a083
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a10c
mov esi, 0x492d0c
lea eax, [esp + 0x60]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a0b8
test cl, cl
je 0x40a0b4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a0b8
add eax, 2
add esi, 2
test cl, cl
jne 0x40a094
xor eax, eax
jmp 0x40a0bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a10c
lea eax, [esp + 0x184]
push 0x49222c
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push ecx
lea ecx, [esp + 0x64]
mov edx, esp
mov dword [esp + 0x34], esp
push ecx
push eax
push edx
mov byte [esp + 0x18c], 2
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x30]
call fcn.00409fc0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], bl
call sub.MFC42.DLL_CString::CString
test byte [esp + 0x34], 0x10
jne 0x40a1b6
lea edx, [esp + 0x184]
push 0x49222c
lea eax, [esp + 0x2c]
push edx
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x60]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x188], 3
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0x80
push eax
call edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x184]
push 0x49222c
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x60]
mov byte [esp + 0x17c], 4
push edx
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a046
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40a21d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x184]
mov dword [esp + 0x17c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40a247
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x184]
mov dword [esp + 0x17c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x170
ret 4