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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bcd8
push 0x44e7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x264], edx
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x124], al
mov ecx, 0x40
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x124]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x407fc6
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407fd7
mov ax, word [0x47a898]
mov word [edi], ax
lea edi, [ebp - 0x124]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407ff0
mov ecx, dword [0x47bcd4]
mov dword [edi], ecx
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x4081be
mov ebx, dword [ebp + 0x2c]
lea ecx, [ebp - 0x264]
push ecx
call fcn.00408260
test eax, eax
jne 0x4081a5
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x124]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x408040
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408051
mov dx, word [0x47a898]
mov word [edi], dx
lea eax, [ebp - 0x238]
mov edx, eax
jmp 0x408070
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408070
sub eax, edx
lea edi, [ebp - 0x124]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408080
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 9
lea eax, [ebp - 0x238]
push eax
push str.index.dat
call fcn.0044ea5f
add esp, 0xc
test eax, eax
je 0x4081a5
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
test al, 1
je 0x4080de
and eax, 0xfffffffe
mov dword [ebp - 0x20], eax
push eax
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x264], 0x10
je 0x40814c
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov edx, dword [ebp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x28]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp + 0x10]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0x18]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x1c]
mov dword [edx + 0xc], ecx
mov esi, dword [ebp + 0xc]
push esi
lea edx, [ebp - 0x124]
push edx
call fcn.00407f60
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x4081a5
lea ecx, [ebp - 0x238]
push ecx
push esi
call fcn.00407530
jmp 0x4081a5
mov edx, dword [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x260]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp + 0x20]
mov dword [ecx], edx
mov eax, dword [ebp + 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x28]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], ebx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0xc], edx
call fcn.004081f0
test eax, eax
je 0x4081a5
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408023
mov dword [ebp - 4], 0xffffffff
call fcn.004081dd
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28