Function at 0x1004285f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x1006d883
call fcn.10055640
sub esp, 0x2fc
push ebx
mov ebx, dword [ebp + 8]
push 0x1007570c
push ebx
call fcn.10055f8b
test eax, eax
pop ecx
pop ecx
je 0x10042aa8
push ebx
call fcn.10041b1f
test al, al
pop ecx
je 0x10042aa8
push edi
push 0x1007e604
lea ecx, [ebp - 0xb8]
call fcn.10005748
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.1000e483
add esp, 0xc
xor edi, edi
inc edi
push edi
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.1000289a
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x100428d9
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x308]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x100428fd
push edi
lea ecx, [ebp - 0x64]
call fcn.1000289a
jmp 0x10042aa7
push esi
mov esi, 0x1007e5cc
lea eax, [ebp - 0x2dc]
push eax
call fcn.1005565f
cmp word [ebp + eax*2 - 0x2de], 0x2e
pop ecx
je 0x10042a75
test byte [ebp - 0x308], 0x10
je 0x100429c1
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x48]
call fcn.10005748
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 3
jae 0x1004294b
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.1005648a
test eax, eax
pop ecx
pop ecx
jne 0x100429a6
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x9c]
push esi
push eax
call fcn.1000e483
push eax
lea eax, [ebp - 0x80]
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.1000e483
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.10004148
push edi
lea ecx, [ebp - 0x80]
call fcn.1000289a
push edi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.1000289a
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x100429b2
lea eax, [ebp - 0x44]
push eax
call fcn.1004285f
pop ecx
lea ecx, [ebp - 0x48]
jmp 0x10042a6b
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.1000205b
lea eax, [ebp - 0x2dc]
push 0x5c
push eax
mov byte [ebp - 4], 6
call fcn.1005648a
test eax, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
je 0x100429fb
lea eax, [ebp - 0x2dc]
push eax
call fcn.10004249
jmp 0x10042a19
push ebx
call fcn.10004249
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000412b
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000412b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10042a25
lea eax, [ebp - 0x28]
push 0x1007570c
push eax
call fcn.10055f8b
test eax, eax
pop ecx
pop ecx
je 0x10042a68
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10042a42
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10042a68
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10042a61
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
push edi
mov byte [ebp - 4], 2
call fcn.1000289a
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10042903
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
lea ecx, [ebp - 0x64]
call fcn.1000289a
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret