Function at 0x403594
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x28c
mov eax, 0x53fba3
call fcn.004e6a52
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 7
pop edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x40], ax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x40]
call fcn.00405436
mov esi, str..
push esi
call fcn.004ff4a6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004053a2
xor eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x290]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403668
mov eax, dword [ebp - 0x14]
mov esi, 0x1000
cmp eax, 8
jb 0x403790
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], ecx
cmp eax, esi
jb 0x403787
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00401403
mov eax, dword [ebp - 0x298]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x294]
jmp 0x403787
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x574fd0
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x403710
push 0x574fd4
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x403710
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405436
push 0x5740c4
call fcn.004ff4a6
pop ecx
push eax
push 0x5740c4
lea ecx, [ebp - 0x28]
call fcn.004053a2
lea eax, [ebp - 0x264]
push eax
call fcn.004ff4a6
pop ecx
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x28]
call fcn.004053a2
test byte [ebp - 0x290], 0x10
lea eax, [ebp - 0x28]
je 0x403701
sub esp, 0x18
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402603
call fcn.00403594
add esp, 0x18
jmp 0x403710
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40366e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x14]
mov esi, 0x1000
cmp eax, 8
jb 0x403790
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x298], ecx
cmp eax, esi
jb 0x403787
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.00401403
mov eax, dword [ebp - 0x294]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x298]
push eax
push ecx
call fcn.004e6456
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
push 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
pop edi
mov dword [ebp - 0x14], edi
cmp eax, 8
jb 0x4037eb
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x294], eax
cmp eax, esi
jb 0x4037e2
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.00401403
mov eax, dword [ebp - 0x294]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x298]
push eax
push ecx
call fcn.004e6456
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x30], ebx
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x40], ax
call fcn.0040258a
call fcn.004e6a01
ret