Function at 0x402a60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416a20
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1a0], esi
cmp byte [esi], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x402ab1
xor ecx, ecx
jmp 0x402abd
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ab4
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403a90
push 0x140
lea eax, [ebp - 0x198]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00409cc0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
cmp byte [ecx + eax - 1], 0x5c
je 0x402b04
sub esp, 8
lea ecx, [ebp - 0x28]
call fcn.004038c0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x41cec0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.00403e70
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x402b27
mov eax, dword [eax]
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x19c], eax
setne bl
cmp dword [ebp - 0x44], 0x10
jb 0x402b52
push dword [ebp - 0x58]
call fcn.00405156
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
test bl, bl
je 0x402c92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x19c]
cmp eax, 0x12
je 0x402c8b
mov esi, dword [ebp - 0x198]
mov dl, byte [ebp - 0x16c]
and esi, 0x10
je 0x402bcd
lea ecx, [ebp - 0x16c]
lea edi, [ecx + 1]
jmp 0x402ba0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ba0
sub ecx, edi
cmp ecx, 1
jne 0x402bb7
cmp dl, 0x2e
je 0x402c60
cmp ecx, 2
jne 0x402bcd
cmp dl, 0x2e
jne 0x402bcd
cmp byte [ebp - 0x16b], dl
je 0x402c60
test esi, esi
je 0x402c04
cmp dl, 0x2e
je 0x402c04
lea eax, [ebp - 0x16c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00403e70
add esp, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x402bf7
mov eax, dword [eax]
mov ecx, eax
call fcn.00402a60
mov byte [ebp - 4], 0
jmp 0x402c4f
lea eax, [ebp - 0x16c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00403e70
add esp, 4
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae esi, dword [ebp - 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x402c3a
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402c4f
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp dword [ebp - 0x2c], 0x10
jb 0x402c60
push dword [ebp - 0x40]
call fcn.00405156
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x198]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x402b81
mov esi, dword [ebp - 0x1a0]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [ebp - 0x14], 0x10
jb 0x402caa
push dword [ebp - 0x28]
call fcn.00405156
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403f5b
mov esp, ebp
pop ebp
ret