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

Disassembly:
push 0x2d8
mov eax, 0x42bb34
call fcn.00413f0e
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2c4], esi
mov byte [ebp - 0x2b9], bl
cmp dword [esi + 0x14], ebx
jne 0x40e403
xor al, al
call fcn.00413f91
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 0x40e42d
push 0x5c
push 1
lea ecx, [ebp - 0x48]
call fcn.0040538b
push 0x431dbc
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 0x40e452
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, 0x431da0
cmp eax, 0xffffffff
je 0x40e675
lea eax, [ebp - 0x288]
push 0x431d9c
push eax
call fcn.004170f1
pop ecx
pop ecx
test eax, eax
je 0x40e64e
lea eax, [ebp - 0x288]
push 0x431d94
push eax
call fcn.004170f1
pop ecx
pop ecx
test eax, eax
je 0x40e64e
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 0x40e51a
cmp dword [ebp - 0x14], 8
jae 0x40e4da
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.0040e3d6
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 0x40e637
cmp dword [ebp - 0x14], 8
jae 0x40e523
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 0x40e57b
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.0040cf68
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040ba50
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40e587
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40e59e
mov byte [ebp - 0x2b9], 1
jmp 0x40e63f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40e5aa
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 0x40e635
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.0040cf68
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004011ca
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba50
cmp edi, ebx
jne 0x40e63f
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 0x40e474
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 0x40e6c4
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.0040cf68
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040ba50
mov eax, dword [ebp - 0x2c4]
cmp dword [eax + 0x18], 8
jb 0x40e6d5
mov eax, dword [eax + 4]
jmp 0x40e6d8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40e712
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 0x40e3fd
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40e782
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.0040cf68
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba50
mov byte [ebp - 0x2b5], bl
jmp 0x40e6ea