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

Disassembly:
mov eax, 0x422d52
call fcn.00414798
sub esp, 0x2d8
mov eax, dword [0x431d24]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x2bc], esi
mov byte [ebp - 0x2b5], 0
jne 0x40df4b
xor al, al
jmp 0x40e2ae
push esi
lea ecx, [ebp - 0x48]
call fcn.004056d9
and dword [ebp - 4], 0
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call fcn.00403997
cmp word [eax], 0x5c
je 0x40df76
push 0x5c
push 1
lea ecx, [ebp - 0x48]
call fcn.00405121
push 0x428f38
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406349
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x40df9b
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x2c0], eax
je 0x40e28a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, str.DeleteDirReal
mov edi, str._XmpSetup_del_file
lea eax, [ebp - 0x288]
push 0x428f04
push eax
call fcn.0041500a
test eax, eax
pop ecx
pop ecx
je 0x40e176
lea eax, [ebp - 0x288]
push 0x428efc
push eax
call fcn.0041500a
test eax, eax
pop ecx
pop ecx
je 0x40e176
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406349
add esp, 0xc
mov byte [ebp - 4], 2
test byte [ebp - 0x2b4], 0x10
mov eax, dword [ebp - 0x28]
je 0x40e076
cmp dword [ebp - 0x14], 8
jae 0x40e02e
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00405af3
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2e4]
push eax
call fcn.0040df11
pop ecx
mov byte [ebp - 0x2b5], al
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x2e4]
call fcn.00403c42
cmp byte [ebp - 0x2b5], 0
jne 0x40e166
jmp 0x40e15f
cmp dword [ebp - 0x14], 8
jae 0x40e07f
lea eax, [ebp - 0x28]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40e0d4
push 1
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push eax
call fcn.004056d9
mov byte [ebp - 4], 4
push edi
push 0
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00404819
mov ecx, eax
call fcn.0040b202
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40e0e0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40e0f4
mov byte [ebp - 0x2b5], 1
jmp 0x40e166
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40e15f
push 1
call ebx
push eax
push str._last_error
push str._failed
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push eax
call fcn.004056d9
mov byte [ebp - 4], 5
push edi
push 0
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00404819
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b202
mov byte [ebp - 0x2b5], 0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403c42
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40dfc8
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x2b5], 0
je 0x40e28a
push esi
call fcn.0040655f
test eax, eax
pop ecx
mov edi, str._XmpSetup_del_dir
jne 0x40e1fa
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push dword [ebp - 0x2bc]
call fcn.004056d9
mov byte [ebp - 4], 6
push edi
push 0
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.00404819
mov ecx, eax
call fcn.0040b202
mov eax, dword [ebp - 0x2bc]
cmp dword [eax + 0x18], 8
jb 0x40e20b
mov eax, dword [eax + 4]
jmp 0x40e20e
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40e21d
mov bl, 1
jmp 0x40e28c
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40e28a
push 1
call ebx
push eax
push str._last_error
push str._failed
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push dword [ebp - 0x2bc]
call fcn.004056d9
mov byte [ebp - 4], 7
push edi
push 0
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.00404819
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b202
xor bl, bl
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00403c42
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00403c42
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413d8f
leave
ret