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

Disassembly:
push 0x300
mov eax, 0x451b46
call fcn.00441ba8
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.0040122e
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.0040127b
cmp word [eax], 0x5c
je 0x404282
push 0x5c
push esi
lea esi, [ebp - 0x50]
call fcn.0040446a
lea eax, [ebp - 0x54]
lea edi, [ebp - 0x74]
call fcn.00401060
push 0x45f134
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 1
call fcn.00402d57
xor edi, edi
push 0x24c
lea eax, [ebp - 0x2c0]
push edi
push eax
mov dword [ebp - 0x2c4], edi
call fcn.0043dae0
mov eax, dword [ebp - 0x6c]
add esp, 0xc
cmp dword [ebp - 0x58], 8
jae 0x4042c8
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 0x404325
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x4042ed
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x404320
push 0
push 1
lea esi, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call fcn.00401464
push 0
push 1
lea esi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
call fcn.00401464
mov eax, edi
call fcn.00441c2b
ret 4
xor edi, edi
inc edi
jmp 0x4042f8
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x30]
call fcn.0040122e
mov dword [ebp - 0x34], ebx
push 0x45f13c
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004044b3
pop ecx
test al, al
jne 0x404408
push 0x45f140
call fcn.004044b3
pop ecx
test al, al
jne 0x404408
mov eax, esi
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00403694
add esp, 0xc
push eax
lea edi, [ebp - 0x2f0]
mov byte [ebp - 4], 3
call fcn.00401047
mov eax, edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.004011e9
push 0
push 1
lea esi, [ebp - 0x2ec]
mov dword [ebp - 0x2f0], ebx
call fcn.00401464
push 0
push 1
lea esi, [ebp - 0x30c]
mov byte [ebp - 4], 2
call fcn.00401464
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4043cc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x4043f1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4043e3
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2d0]
push eax
call fcn.0040422f
jmp 0x404402
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x4043fd
lea esi, [ebp - 0x2c]
call fcn.0040420b
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.00401464
lea eax, [ebp - 0x2c4]
push eax
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x404325
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x40444e
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x40445f
and dword [ebp - 0x2c8], eax
mov edi, dword [ebp - 0x2c8]
jmp 0x4042f8