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

Disassembly:
mov eax, 0x40f8a8
call fcn.0040a1b0
sub esp, 0x188
push ebx
push esi
push edi
mov al, byte [ebp + 0x2b]
push 1
pop ebx
xor edi, edi
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x4c], al
call fcn.0040293c
mov esi, 0x4182f4
push esi
call fcn.00409bb0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.00402b71
mov al, byte [ebp + 0x2b]
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov byte [ebp - 0x2c], al
call fcn.0040293c
push esi
call fcn.00409bb0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402b71
mov al, byte [ebp + 0x2b]
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
mov byte [ebp - 0x3c], al
call fcn.0040293c
push esi
call fcn.00409bb0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.00402b71
push 0x4f
mov dword [ebp - 0x194], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x190]
mov byte [ebp - 4], 4
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0x2b]
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402a10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
lea esi, [eax - 1]
cmp eax, esi
jb 0x4018be
cmp dword [ebp + 0xc], edi
je 0x4018be
lea ecx, [ebp + 8]
call fcn.00402910
mov eax, dword [ebp + 0xc]
add eax, esi
jmp 0x4018c3
mov eax, 0x41021c
cmp byte [eax], 0x5c
je 0x4018de
mov esi, 0x414074
push esi
call fcn.00409bb0
pop ecx
push eax
push esi
lea ecx, [ebp + 8]
call fcn.00402b1a
push dword [0x410218]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x4c]
push edi
push eax
call fcn.00402842
mov esi, 0x414130
push esi
call fcn.00409bb0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.00402b1a
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x401913
mov eax, 0x41021c
lea ecx, [ebp - 0x194]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a73
push dword [0x410218]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x3c]
push edi
push eax
call fcn.00402842
lea eax, [ebp - 0x168]
push eax
call fcn.00409bb0
pop ecx
push eax
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402b71
push dword [0x410218]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
push edi
push eax
call fcn.00402a92
test byte [ebp - 0x194], 0x10
je 0x4019c2
cmp dword [ebp - 0x28], edi
je 0x40198a
lea ecx, [ebp - 0x2c]
call fcn.00402910
mov eax, dword [ebp - 0x28]
jmp 0x40198f
mov eax, 0x41021c
cmp byte [eax], 0x2e
je 0x4019e5
push 0x414074
call fcn.00409bb0
pop ecx
push eax
push 0x414074
lea ecx, [ebp - 0x3c]
call fcn.00402b1a
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push dword [ebp - 0x18]
push eax
call fcn.004029d6
jmp 0x4019e5
lea eax, [ebp + 0x18]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004042da
test eax, eax
je 0x4019e5
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x4019de
mov eax, 0x41021c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x194]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40192c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0x28]
cmp edx, edi
jle 0x401a73
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 0x10], eax
je 0x401a73
lea esi, [edx - 1]
push esi
lea eax, [ebp + 0x18]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x28], esp
push eax
call fcn.00402734
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00402804
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.00402734
mov byte [ebp - 4], 5
call fcn.004017e5
mov eax, dword [ebp - 0x10]
add esp, 0x24
mov eax, dword [eax + 0xc]
cmp eax, edi
jne 0x401a5f
mov eax, 0x41021c
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x401a18
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004027cc
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040293c
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040293c
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040293c
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp + 8]
call fcn.0040293c
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp + 0x18]
call fcn.0040293c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret