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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov ebx, ecx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x668], esi
push eax
call fcn.1006ff30
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.1006ff30
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1006e6e1
push str..
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1006e675
add esp, 0x30
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x66c], eax
cmp eax, 0xffffffff
jne 0x1004de14
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
jmp 0x1004de20
mov ecx, 0x100a306c
lea eax, [ebp - 0x638]
jmp 0x1004de30
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004de56
test dx, dx
je 0x1004de52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004de56
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004de30
xor eax, eax
jmp 0x1004de5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004df92
mov eax, 0x100a3070
lea ecx, [ebp - 0x638]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1004de96
test dx, dx
je 0x1004de92
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1004de96
add ecx, 4
add eax, 4
test dx, dx
jne 0x1004de70
xor eax, eax
jmp 0x1004de9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004df92
test edi, edi
jne 0x1004dec3
lea eax, [ebp - 0x638]
push str.desktop.ini
push eax
call fcn.1006eb63
add esp, 8
test eax, eax
je 0x1004df92
push dword [ebp - 0x668]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e6e1
push 0x100afc1c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1004df2d
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x664], 0x10
je 0x1004df55
push esi
push edi
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.1004dd60
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1004df92
test esi, esi
je 0x1004df85
lea eax, [ebp - 0x638]
push 0x100a502c
push eax
call fcn.1006eb63
add esp, 8
test eax, eax
jne 0x1004df85
lea eax, [ebp - 0x638]
mov ecx, ebx
push eax
push dword [ebp - 0x668]
call fcn.10051150
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004de20
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 0xc