Function at 0x405d10
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4429a6
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x4587e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0xffffffffffffffff
push eax
push ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00402ff0
mov dword [ebp - 4], 0
mov edx, 0x20
lea ecx, [ebp - 0x40]
call fcn.0040e470
cmp dword [ebp - 0x30], 0
je 0x405fdf
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x405fdf
push str..
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00403ce0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405de8
xor bl, bl
jmp 0x405fb4
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x2c4]
push eax
push 0x44ff2c
call fcn.00424cb2
add esp, 8
test eax, eax
je 0x405f99
lea eax, [ebp - 0x2c4]
push eax
push 0x44ff30
call fcn.00424cb2
add esp, 8
test eax, eax
je 0x405f99
push ecx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xa0]
call fcn.00408370
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c4]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00403c30
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x8c], 8
jb 0x405e71
push dword [ebp - 0xa0]
call fcn.00423c7d
add esp, 4
xor eax, eax
cmp dword [ebp - 0x14], 8
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x405eb6
and eax, 0xfffffffe
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
call ebx
test byte [ebp - 0x2f0], 0x10
lea eax, [ebp - 0x28]
je 0x405f1c
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004026b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00405d10
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 8
jb 0x405ef4
push dword [ebp - 0x70]
call fcn.00423c7d
add esp, 4
xor eax, eax
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405f70
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x88]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004026b0
mov byte [ebp - 4], 6
mov dl, 1
lea ecx, [ebp - 0x88]
call fcn.00406030
mov byte [ebp - 4], 4
cmp dword [ebp - 0x74], 8
jb 0x405f59
push dword [ebp - 0x88]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x405f85
push dword [ebp - 0x28]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2f0]
push eax
push esi
call edi
test eax, eax
jne 0x405df4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 8
jb 0x405fc9
push dword [ebp - 0x58]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x405fe1
xor bl, bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
jb 0x405ff9
push dword [ebp - 0x40]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423c82
mov esp, ebp
pop ebp
ret