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

Disassembly:
push 0x278
mov eax, 0x466050
call fcn.00460f19
and dword [ebp - 4], 0
mov eax, dword [0x4831ec]
mov ecx, 0x4831ec
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x26c], ebx
lea eax, [ebp - 0x264]
push eax
push ecx
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x270], esp
mov esi, 0x46bab4
push esi
push eax
call fcn.00404808
push ecx
mov byte [ebp - 4], 2
mov eax, esp
mov dword [ebp - 0x274], esp
push 0x46bc58
push eax
call fcn.00404808
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x268], esp
mov edi, esp
call fcn.004015c5
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x284]
push eax
mov byte [ebp - 4], 1
call fcn.00401b33
add esp, 0x10
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x284]
add eax, 0xfffffff0
call fcn.004017a1
cmp dword [ebp - 0x268], 0xffffffff
jne 0x402dbc
lea eax, [ebx - 0x10]
call fcn.004017a1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017a1
xor eax, eax
call fcn.00460f63
ret
mov ecx, 0x46bb98
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402c28
test dx, dx
je 0x402c24
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402c28
add eax, 4
add ecx, 4
test dx, dx
jne 0x402c02
xor eax, eax
jmp 0x402c2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402dbc
mov ecx, 0x46bc60
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402c66
test dx, dx
je 0x402c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402c66
add eax, 4
add ecx, 4
test dx, dx
jne 0x402c40
xor eax, eax
jmp 0x402c6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402dbc
push ecx
mov eax, esp
mov dword [ebp - 0x280], esp
push esi
push eax
call fcn.00404808
push ecx
mov byte [ebp - 4], 4
mov eax, esp
mov dword [ebp - 0x27c], esp
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.00404808
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x278], esp
mov edi, esp
call fcn.004015c5
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 1
call fcn.00401b33
add esp, 0x10
lea edi, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.0040144e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
call fcn.004017a1
test byte [ebp - 0x264], 0x10
push ecx
mov dword [ebp - 0x278], esp
je 0x402d1e
mov ebx, dword [ebp - 0x26c]
lea eax, [ebx - 0x10]
mov edi, esp
call fcn.004015c5
add eax, 0x10
mov dword [edi], eax
call fcn.00402b22
pop ecx
jmp 0x402dbc
mov eax, esp
push esi
push eax
call fcn.00404808
push ecx
mov byte [ebp - 4], 7
mov eax, esp
mov dword [ebp - 0x27c], esp
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.00404808
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x280], esp
mov edi, esp
call fcn.004015c5
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x270]
push eax
mov byte [ebp - 4], 1
call fcn.00401b33
add esp, 0x10
lea edi, [ebp - 0x26c]
mov byte [ebp - 4], 9
call fcn.0040144e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
call fcn.004017a1
mov ebx, dword [ebp - 0x26c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call edi
test eax, eax
jne 0x402dbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x402dbc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call edi
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402bf7
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
jne 0x402e0c
lea eax, [ebx - 0x10]
call fcn.004017a1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017a1
mov eax, esi
jmp 0x402bf1
inc esi
jmp 0x402df2