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

Disassembly:
push ebp
lea ebp, [esp - 0x1a54]
mov eax, 0x1a54
call fcn.00426290
push 0xffffffffffffffff
push 0x43c1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x1a50], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 0x1a5c]
mov esi, 1
mov dword [ebp - 4], 0
test edi, edi
je 0x40616b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405f72
sub eax, edx
sar eax, 1
je 0x40616b
push 0x800
push 0
lea eax, [ebp + 0x1250]
push eax
call fcn.004260b0
push 0x3ff
push edi
push 0x400
lea ecx, [ebp + 0x1250]
push ecx
call fcn.0042400b
add esp, 0x1c
push edi
lea ecx, [ebp - 0x18]
call fcn.004025b0
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x18]
call fcn.00406f50
mov edi, eax
call fcn.00406fd0
push 0x3ff
mov edx, dword [ebp - 0x18]
push edx
push 0x400
lea eax, [ebp + 0x1250]
push eax
call fcn.0042400b
push 0x800
push 0
lea ecx, [ebp + 0x250]
push ecx
call fcn.004260b0
lea edx, [ebp + 0x1250]
push edx
push str._s.
lea edx, [ebp + 0x250]
call fcn.004047b0
add esp, 0x24
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov ebx, dword [ebp + 0x1a60]
cmp edi, 0xffffffff
je 0x406101
push 0x442808
lea edx, [ebp + 0x2c]
push edx
call fcn.00423cbc
add esp, 8
test eax, eax
je 0x4060e7
push 0x44280c
lea eax, [ebp + 0x2c]
push eax
call fcn.00423cbc
add esp, 8
test eax, eax
je 0x4060e7
push 0x800
push 0
lea ecx, [ebp + 0xa50]
push ecx
call fcn.004260b0
lea edx, [ebp + 0x2c]
push edx
lea eax, [ebp + 0x1250]
push eax
push str._s_s
lea edx, [ebp + 0xa50]
call fcn.004047b0
add esp, 0x18
test byte [ebp], 0x10
je 0x4060dc
test bl, bl
je 0x4060dc
push ebx
lea ecx, [ebp + 0xa50]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00405f10
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4060e7
lea edx, [ebp + 0xa50]
push edx
push str.Delete_Directory_:__s_
mov ecx, esi
mov edx, 0x45a600
call fcn.00412400
add esp, 8
jmp 0x4060e7
lea ecx, [ebp + 0xa50]
call fcn.00405b10
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406030
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 0x1250]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x406126
lea edx, [ebp + 0x1250]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x40613f
lea eax, [ebp + 0x1250]
push eax
push str.__s__directory_was_not_empty___
mov ecx, 0x45a600
call fcn.00412540
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406162
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4061ae
mov eax, 0x57
jmp 0x4061b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a50]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x1a54
mov esp, ebp
pop ebp
ret 8