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

Disassembly:
mov eax, 0x423262
call fcn.00414c98
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 0x40e02a
xor al, al
jmp 0x40e38d
push esi
lea ecx, [ebp - 0x48]
call fcn.004057b8
and dword [ebp - 4], 0
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call fcn.004039e5
cmp word [eax], 0x5c
je 0x40e055
push 0x5c
push 1
lea ecx, [ebp - 0x48]
call fcn.00405200
push 0x428f48
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406428
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x40e07a
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 0x40e369
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, str.DeleteDirReal
mov edi, str._XmpSetup_del_file
lea eax, [ebp - 0x288]
push 0x428f14
push eax
call fcn.0041550a
test eax, eax
pop ecx
pop ecx
je 0x40e255
lea eax, [ebp - 0x288]
push 0x428f0c
push eax
call fcn.0041550a
test eax, eax
pop ecx
pop ecx
je 0x40e255
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406428
add esp, 0xc
mov byte [ebp - 4], 2
test byte [ebp - 0x2b4], 0x10
mov eax, dword [ebp - 0x28]
je 0x40e155
cmp dword [ebp - 0x14], 8
jae 0x40e10d
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00405bd2
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2e4]
push eax
call fcn.0040dff0
pop ecx
mov byte [ebp - 0x2b5], al
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x2e4]
call fcn.00403d21
cmp byte [ebp - 0x2b5], 0
jne 0x40e245
jmp 0x40e23e
cmp dword [ebp - 0x14], 8
jae 0x40e15e
lea eax, [ebp - 0x28]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x40e1b3
push 1
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push eax
call fcn.004057b8
mov byte [ebp - 4], 4
push edi
push 0
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004048f8
mov ecx, eax
call fcn.0040b2e1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40e1bf
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40e1d3
mov byte [ebp - 0x2b5], 1
jmp 0x40e245
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x40e23e
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.004057b8
mov byte [ebp - 4], 5
push edi
push 0
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004048f8
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b2e1
mov byte [ebp - 0x2b5], 0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403d21
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e0a7
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x2b5], 0
je 0x40e369
push esi
call fcn.0040663e
test eax, eax
pop ecx
mov edi, str._XmpSetup_del_dir
jne 0x40e2d9
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push dword [ebp - 0x2bc]
call fcn.004057b8
mov byte [ebp - 4], 6
push edi
push 0
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.004048f8
mov ecx, eax
call fcn.0040b2e1
mov eax, dword [ebp - 0x2bc]
cmp dword [eax + 0x18], 8
jb 0x40e2ea
mov eax, dword [eax + 4]
jmp 0x40e2ed
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40e2fc
mov bl, 1
jmp 0x40e36b
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x40e369
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.004057b8
mov byte [ebp - 4], 7
push edi
push 0
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.004048f8
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b2e1
xor bl, bl
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00403d21
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00403d21
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.0041428f
leave
ret