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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4038b1
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
mov ebp, dword [esp + 0x168]
xor ebx, ebx
cmp ebp, ebx
push esi
je 0x402a49
cmp byte [ebp], bl
je 0x402a49
push ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0xc]
mov dword [esp + 0x164], ebx
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x402866
push 0x406088
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push edi
push 0x406164
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x4029e5
cmp dword [esp + 0x20], 0x10
jne 0x40296b
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x14]
mov byte [esp + 0x168], 1
mov esi, 0x406160
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4028e4
cmp cl, bl
je 0x4028e0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4028e4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4028c0
xor eax, eax
jmp 0x4028e9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x402955
mov esi, 0x40615c
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402918
cmp cl, bl
je 0x402914
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402918
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4028f4
xor eax, eax
jmp 0x40291d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x402955
push ebp
lea ecx, [esp + 0x18]
call fcn.00403270
push 0x406088
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], bl
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x1c]
jmp 0x4029d1
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
push 0x406088
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 2
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
jne 0x4029c1
mov ecx, dword [esp + 0x18]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x18]
push edx
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402894
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x174]
pop edi
cmp eax, ebx
jne 0x402a2e
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebp
call esi
test eax, eax
jne 0x402a2e
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call esi
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x402a4b
lea ecx, [esp + 0xc]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x402a4b
xor eax, eax
mov ecx, dword [esp + 0x15c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret