Function at 0x405ea0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442f1d
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x452064]
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
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x47c], ebx
mov dword [ebp - 0x474], edi
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406110
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0040a580
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [edi]
push eax
call esi
push 0x444a28
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x406110
test eax, eax
je 0x406110
mov esi, eax
cmp word [ebp - 0x43c], 0x2e
mov ax, word [ebp - 0x43a]
jne 0x405f6a
test ax, ax
je 0x4060eb
cmp ax, 0x2e
jne 0x405f7e
cmp word [ebp - 0x438], 0
je 0x4060eb
mov eax, dword [edi]
mov dword [ebp - 4], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x405f97
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x405fab
call fcn.00404860
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x40612c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or ebx, 1
mov dword [ebp - 0x47c], ebx
lea esi, [eax + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x480], eax
mov edi, dword [eax - 0xc]
lea ebx, [edi + 1]
test ebx, ebx
js 0x406136
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x405ffd
push ebx
lea ecx, [ebp - 0x478]
call fcn.00406700
mov esi, dword [ebp - 0x478]
add edi, edi
push edi
push dword [ebp - 0x480]
push edi
push esi
call fcn.00406ba0
lea ecx, [edi + esi]
add esp, 0x10
test ecx, ecx
jne 0x406029
call fcn.004128df
mov dword [eax], 0x16
call fcn.004127b9
jmp 0x406032
mov ax, word [0x444a24]
mov word [ecx], ax
cmp ebx, dword [esi - 8]
jg 0x406136
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.00405630
add esp, 0xc
mov ebx, dword [ebp - 0x47c]
and ebx, 0xfffffffe
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40608c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x468], 0x10
je 0x4060b2
lea eax, [ebp - 0x46c]
push eax
call fcn.00405ea0
add esp, 4
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4060be
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x46c]
or eax, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4060df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x470]
mov edi, dword [ebp - 0x474]
lea eax, [ebp - 0x468]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405f50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
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.004087ff
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004021d0
push 0x80070057
call fcn.004021d0
int3