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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x65934733
lea eax, [ebp - 0x268]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x65934736
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x65891584
mov dword [ebp - 0x380], 0
jmp 0x65891752
lea eax, [ebp - 0x378]
mov dword [esp + 4], eax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov byte [ebp - 0x379], 1
cmp byte [ebp - 0x379], 0
je 0x65891711
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
je 0x658916e1
lea eax, [ebp - 0x158]
add eax, 0x2c
mov dword [esp], eax
call fcn.658914a8
test al, al
je 0x658915e7
jmp 0x658915a3
lea eax, [ebp - 0x158]
add eax, 0x2c
mov dword [esp + 4], eax
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp - 0x158]
shr eax, 4
and eax, 1
test al, al
je 0x6589166f
lea eax, [ebp - 0x378]
mov dword [esp], eax
call fcn.658914f2
test al, al
jne 0x65891641
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov dword [ebp - 0x380], 0
jmp 0x65891752
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.KERNEL32.dll_RemoveDirectoryA
sub esp, 4
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
jmp 0x658915a3
mov eax, dword [ebp - 0x158]
and eax, 1
test al, al
je 0x65891692
mov dword [esp + 4], pe_nt_image_headers32
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.msvcrt.dll__chmod
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
test eax, eax
jne 0x658916c4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov dword [ebp - 0x380], 0
jmp 0x65891752
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
jmp 0x658915a3
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x658916f7
mov byte [ebp - 0x379], 0
jmp 0x658915a3
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov dword [ebp - 0x380], 0
jmp 0x65891752
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_RemoveDirectoryA
sub esp, 4
mov dword [ebp - 0x384], eax
cmp dword [ebp - 0x384], 0
setne al
movzx eax, al
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x380]
leave
ret