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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557cfb
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
mov eax, dword [0x5be984]
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, dword [ebp + 8]
lea eax, [ebp - 0x8a8]
push 0x250
push 0
push eax
call fcn.004f0120
mov ax, word [0x572268]
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push 0
push eax
call fcn.004f0120
push 0x574510
push esi
push 0x574518
lea eax, [ebp - 0x420]
push 0x103
push eax
call fcn.00408080
add esp, 0x2c
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f345
xor eax, eax
jmp 0x40f613
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [eax + eax]
mov ecx, 0x5744f8
lea eax, [ebp - 0x87c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f386
test dx, dx
je 0x40f382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f386
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f360
xor eax, eax
jmp 0x40f38b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f5e6
mov eax, 0x5744fc
lea ecx, [ebp - 0x87c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40f3c6
test dx, dx
je 0x40f3c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40f3c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x40f3a0
xor eax, eax
jmp 0x40f3cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f5e6
test byte [ebp - 0x8a8], 0x10
mov ax, word [0x572268]
push 0x206
push 0
je 0x40f42e
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.004f0120
lea eax, [ebp - 0x87c]
push eax
push esi
push 0x574518
lea eax, [ebp - 0x628]
push 0x103
push eax
call fcn.00408080
lea eax, [ebp - 0x628]
push eax
call fcn.0040f2a0
add esp, 0x24
jmp 0x40f5e6
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004f0120
lea eax, [ebp - 0x87c]
push eax
push esi
push 0x574518
lea eax, [ebp - 0x218]
push 0x103
push eax
call fcn.00408080
add esp, 0x20
mov dword [ebp - 0x630], 0
xor eax, eax
mov dword [ebp - 0x62c], 7
lea ecx, [ebp - 0x218]
mov word [ebp - 0x640], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f490
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x640]
call fcn.004048f0
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
push 0
cmovae eax, dword [ebp - 0x640]
push eax
mov dword [ebp - 4], 0
call fcn.0051d649
add esp, 8
test eax, eax
jne 0x40f5d4
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40f5d4
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
push 0x80
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f5d4
push str..tmp
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.004078f0
add esp, 0xc
lea ecx, [ebp - 0x658]
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x640]
cmovae ecx, dword [ebp - 0x658]
cmp dword [ebp - 0x62c], 8
push 1
cmovae eax, dword [ebp - 0x640]
push ecx
push eax
call ebx
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x658]
cmovae eax, dword [ebp - 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f5c9
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x658]
push 4
cmovae eax, dword [ebp - 0x658]
push 0
push eax
call ebx
lea ecx, [ebp - 0x658]
call fcn.004029d0
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0xffffffff
call fcn.004029d0
lea eax, [ebp - 0x8a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f350
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
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.00484a0d
mov esp, ebp
pop ebp
ret