Function at 0x40420f
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push 0x300
mov eax, 0x45261f
call fcn.00442764
mov eax, dword [ebp + 8]
xor esi, esi
push eax
inc esi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2c8], esi
call fcn.00401238
mov ebx, vtable.TString.0
mov dword [ebp - 0x54], ebx
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x3c]
dec edi
lea eax, [ebp - 0x50]
call fcn.00401285
cmp word [eax], 0x5c
je 0x404262
push 0x5c
push esi
lea esi, [ebp - 0x50]
call fcn.0040444a
lea eax, [ebp - 0x54]
lea edi, [ebp - 0x74]
call fcn.00401059
push 0x460148
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 1
call fcn.00402d5e
xor edi, edi
push 0x24c
lea eax, [ebp - 0x2c0]
push edi
push eax
mov dword [ebp - 0x2c4], edi
call fcn.0043e4b0
mov eax, dword [ebp - 0x6c]
add esp, 0xc
cmp dword [ebp - 0x58], 8
jae 0x4042a8
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x2c4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
jne 0x404305
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x4042cd
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x404300
push 0
push 1
lea esi, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call fcn.0040146e
push 0
push 1
lea esi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
call fcn.0040146e
mov eax, edi
call fcn.004427e7
ret 4
xor edi, edi
inc edi
jmp 0x4042d8
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x30]
call fcn.00401238
mov dword [ebp - 0x34], ebx
push 0x460150
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00404493
pop ecx
test al, al
jne 0x4043e8
push 0x460154
call fcn.00404493
pop ecx
test al, al
jne 0x4043e8
mov eax, esi
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0040369b
add esp, 0xc
push eax
lea edi, [ebp - 0x2f0]
mov byte [ebp - 4], 3
call fcn.00401040
mov eax, edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.004011e0
push 0
push 1
lea esi, [ebp - 0x2ec]
mov dword [ebp - 0x2f0], ebx
call fcn.0040146e
push 0
push 1
lea esi, [ebp - 0x30c]
mov byte [ebp - 4], 2
call fcn.0040146e
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4043ac
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x4043d1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4043c3
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2d0]
push eax
call fcn.0040420f
jmp 0x4043e2
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x4043dd
lea esi, [ebp - 0x2c]
call fcn.004041eb
mov dword [ebp - 0x2c8], eax
push 0
mov byte [ebp - 4], 1
push 1
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
call fcn.0040146e
lea eax, [ebp - 0x2c4]
push eax
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x404305
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x40442e
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x40443f
and dword [ebp - 0x2c8], eax
mov edi, dword [ebp - 0x2c8]
jmp 0x4042d8