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

Disassembly:
push 0x2d8
mov eax, 0x42bb44
call fcn.00413f1e
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2c4], esi
mov byte [ebp - 0x2b9], bl
cmp dword [esi + 0x14], ebx
jne 0x40e412
xor al, al
call fcn.00413fa1
ret
push esi
lea ecx, [ebp - 0x48]
call fcn.00405a78
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call fcn.00403d8a
cmp word [eax], 0x5c
je 0x40e43c
push 0x5c
push 1
lea ecx, [ebp - 0x48]
call fcn.0040538b
push 0x431dc4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406711
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x40e461
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
mov esi, 0x431da8
cmp eax, 0xffffffff
je 0x40e684
lea eax, [ebp - 0x288]
push 0x431da4
push eax
call fcn.00417101
pop ecx
pop ecx
test eax, eax
je 0x40e65d
lea eax, [ebp - 0x288]
push 0x431d9c
push eax
call fcn.00417101
pop ecx
pop ecx
test eax, eax
je 0x40e65d
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406711
add esp, 0xc
mov byte [ebp - 4], 2
test byte [ebp - 0x2b4], 0x10
mov eax, dword [ebp - 0x28]
je 0x40e529
cmp dword [ebp - 0x14], 8
jae 0x40e4e9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00406082
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2e4]
push eax
call fcn.0040e3e5
pop ecx
mov byte [ebp - 0x2b9], al
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x2e4]
call fcn.00404665
cmp byte [ebp - 0x2b9], bl
jmp 0x40e646
cmp dword [ebp - 0x14], 8
jae 0x40e532
lea eax, [ebp - 0x28]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40e58a
push 1
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x2c0], esp
push eax
call fcn.00405a78
mov byte [ebp - 4], 4
push str._XmpSetup_del_file
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040ba5f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40e596
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40e5ad
mov byte [ebp - 0x2b9], 1
jmp 0x40e64e
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40e5b9
lea eax, [ebp - 0x28]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
mov edi, eax
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40e644
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._last_error
push dword [ebp - 0x2b9]
lea eax, [ebp - 0x2c]
push str._result:
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c0], esp
push eax
call fcn.00405a78
mov byte [ebp - 4], 5
push str._XmpSetup_MOVE_FILE_DELAY_UNTIL_REBOOT
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004011ca
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba5f
cmp edi, ebx
jne 0x40e64e
mov byte [ebp - 0x2b9], bl
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404665
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e483
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.004069f6
pop ecx
mov edi, str._XmpSetup_del_dir
test eax, eax
jne 0x40e6d3
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c0], esp
push dword [ebp - 0x2c4]
call fcn.00405a78
mov byte [ebp - 4], 6
push edi
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040ba5f
mov eax, dword [ebp - 0x2c4]
cmp dword [eax + 0x18], 8
jb 0x40e6e4
mov eax, dword [eax + 4]
jmp 0x40e6e7
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40e721
mov byte [ebp - 0x2b5], 1
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00404665
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00404665
mov al, byte [ebp - 0x2b5]
jmp 0x40e40c
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40e791
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._last_error
push str._failed
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c0], esp
push dword [ebp - 0x2c4]
call fcn.00405a78
mov byte [ebp - 4], 7
push edi
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba5f
mov byte [ebp - 0x2b5], bl
jmp 0x40e6f9