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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x4b0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x274], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x409070
mov eax, dword [ebp - 0x290]
mov ecx, edi
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x284], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ff0
sub ecx, edx
mov edx, 2
sar ecx, 1
lea esi, [ecx + 3]
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b3e1
add esp, 4
mov dword [ebp - 0x270], eax
test eax, eax
je 0x409070
push edi
push esi
push eax
call fcn.004213f7
add esp, 0xc
push 0x4ab4ac
push esi
mov esi, dword [ebp - 0x270]
push esi
call fcn.0042145b
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x278], esi
cmp esi, 0xffffffff
jne 0x409090
push dword [ebp - 0x270]
call fcn.0041b39b
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b38a
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x4ab4b4
lea eax, [ebp - 0x23c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4090c6
test dx, dx
je 0x4090c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4090c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4090a0
xor eax, eax
jmp 0x4090cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x409326
mov ecx, 0x4ab4b8
lea eax, [ebp - 0x23c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409106
test dx, dx
je 0x409102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409106
add eax, 4
add ecx, 4
test dx, dx
jne 0x4090e0
xor eax, eax
jmp 0x40910b
sbb eax, eax
or eax, 1
test eax, eax
je 0x409326
test byte [ebp - 0x268], 0x10
je 0x4091f7
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409125
sub ecx, edx
lea edx, [ebp - 0x23c]
sar ecx, 1
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409140
sub edx, esi
lea edi, [ecx + 2]
sar edx, 1
xor ecx, ecx
add edi, edx
mov edx, 2
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b3e1
mov esi, eax
add esp, 4
test esi, esi
je 0x409373
push dword [ebp - 0x274]
push edi
push esi
call fcn.004213f7
add esp, 0xc
push 0x4ab894
push edi
push esi
call fcn.0042145b
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push edi
push esi
call fcn.0042145b
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x269]
add esp, 0xc
mov byte [ebp - 0x269], 0
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00408f80
test al, al
je 0x4091e7
cmp byte [ebp - 0x269], 0
je 0x4091e7
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4091e9
mov bl, 1
push esi
call fcn.0041b39b
add esp, 4
jmp 0x40930a
mov esi, dword [ebp - 0x280]
sub esi, dword [ebp - 0x254]
mov edi, dword [ebp - 0x284]
sbb edi, dword [ebp - 0x250]
push 0
push 0x989680
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042f230
cmp edi, edx
jb 0x409308
ja 0x409233
cmp esi, eax
jbe 0x409308
push 0
push 0x989680
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042f230
cmp edi, edx
ja 0x409308
jb 0x409257
cmp esi, eax
jae 0x409308
mov ecx, dword [ebp - 0x274]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409260
sub ecx, edx
lea edx, [ebp - 0x23c]
sar ecx, 1
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409280
sub edx, esi
lea edi, [ecx + 2]
sar edx, 1
xor ecx, ecx
add edi, edx
mov edx, 2
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b3e1
mov esi, eax
add esp, 4
test esi, esi
je 0x409373
push dword [ebp - 0x274]
push edi
push esi
call fcn.004213f7
add esp, 0xc
push 0x4ab894
push edi
push esi
call fcn.0042145b
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push edi
push esi
call fcn.0042145b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
movzx ebx, bl
mov eax, 1
push esi
cmove ebx, eax
call fcn.0041b39b
add esp, 4
jmp 0x40930a
mov bl, 1
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x274]
jmp 0x409334
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409090
push dword [ebp - 0x270]
call fcn.0041b39b
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x288]
test bl, bl
pop edi
sete al
pop esi
mov byte [ecx], al
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b38a
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp - 0x270]
call fcn.0041b39b
add esp, 4
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x409070