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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x358], esi
mov dword [ebp - 0x350], 1
test esi, esi
je 0x48d3cd
cmp byte [esi], 0
je 0x48d3cd
push esi
call fcn.0048b3d0
add esp, 4
test eax, eax
jne 0x48d1f9
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20c]
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x48d203
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00488700
lea edi, [ebp - 0x20c]
add esp, 4
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x48d227
mov eax, dword [0x51bc60]
mov dword [edi], eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x354], edi
cmp edi, 0xffffffff
je 0x48d3b0
push ebx
lea ebx, [ebp - 0x108]
sub ebx, esi
mov eax, esi
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [ebx + eax - 1], cl
test cl, cl
jne 0x48d270
lea eax, [ebp - 0x108]
push eax
call fcn.00488700
lea edx, [ebp - 0x320]
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x48d294
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48d2a4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [ebp - 0x34c], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x48d33e
mov ecx, 0x568808
lea eax, [ebp - 0x320]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48d2f0
test dl, dl
je 0x48d2ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48d2f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x48d2d0
xor eax, eax
jmp 0x48d2f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x48d363
mov ecx, 0x51ce58
lea eax, [ebp - 0x320]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48d324
test dl, dl
je 0x48d320
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48d324
add eax, 2
add ecx, 2
test dl, dl
jne 0x48d304
xor eax, eax
jmp 0x48d329
sbb eax, eax
or eax, 1
test eax, eax
je 0x48d363
lea eax, [ebp - 0x108]
push eax
call fcn.0048d1a0
add esp, 4
jmp 0x48d35d
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x350], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.004b8570
mov edi, dword [ebp - 0x354]
add esp, 0xc
cmp dword [ebp - 0x350], 0
je 0x48d398
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x48d39a
xor eax, eax
mov esi, dword [ebp - 0x358]
test eax, eax
jne 0x48d266
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x350]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004a4566
mov esp, ebp
pop ebp
ret