Function at 0x40be50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x424fa1
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebp
push esi
mov esi, dword [esp + 0x18c]
xor ebp, ebp
cmp dword [esi + 8], ebp
jne 0x40be94
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
add esp, 0x180
ret
mov al, byte [esi]
push ebx
push edi
push ebp
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00402800
mov ecx, dword [0x42622c]
push ecx
push ebp
push esi
lea ecx, [esp + 0x40]
call fcn.004038a0
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x48]
lea edx, [esp + 0x34]
mov dword [esp + 0x44], ebp
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x190], ebp
call fcn.0040c470
mov edi, 0x42c658
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x42c658
lea ecx, [esp + 0x3c]
call fcn.00405b40
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x40bf08
mov eax, 0x426230
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x18]
mov ebx, eax
mov byte [esp + 0x18], dl
call fcn.00402800
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x190], 1
mov byte [esp + 0x28], al
call fcn.00402800
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov byte [esp + 0x18c], 2
cmp ebx, 0xffffffff
je 0x40c04f
cmp byte [esp + 0x70], 0x2e
je 0x40c039
mov edx, dword [esp + 0x44]
and edx, 0x10
cmp dl, 0x10
jne 0x40bfcf
mov eax, dword [0x42622c]
lea ecx, [esp + 0x14]
push eax
push 0
push esi
call fcn.004038a0
lea ecx, [esp + 0x14]
push ecx
call fcn.0040c470
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x70]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00405b40
lea eax, [esp + 0x14]
push eax
call fcn.0040be50
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x40bfc6
mov eax, 0x426230
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40c039
mov ecx, dword [0x42622c]
push ecx
push 0
push esi
lea ecx, [esp + 0x30]
call fcn.004038a0
lea edx, [esp + 0x24]
push edx
call fcn.0040c470
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x70]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00405b40
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40c019
mov eax, 0x426230
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40c032
mov eax, 0x426230
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x44]
push ecx
push ebx
call ebp
cmp eax, 1
sete al
test al, al
jne 0x40bf50
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
jne 0x40c064
mov eax, 0x426230
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x40c07c
mov eax, 0x426230
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x28]
cmp eax, 1
sete bl
cmp ecx, edi
je 0x40c0ad
mov al, byte [ecx - 1]
test al, al
je 0x40c0a3
cmp al, 0xff
je 0x40c0a3
dec al
mov byte [ecx - 1], al
jmp 0x40c0ad
dec ecx
push ecx
call fcn.0040c880
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], edi
cmp ecx, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
je 0x40c0dd
mov al, byte [ecx - 1]
test al, al
je 0x40c0d3
cmp al, 0xff
je 0x40c0d3
dec al
mov byte [ecx - 1], al
jmp 0x40c0dd
dec ecx
push ecx
call fcn.0040c880
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], edi
cmp ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x40c10d
mov al, byte [ecx - 1]
test al, al
je 0x40c103
cmp al, 0xff
je 0x40c103
dec al
mov byte [ecx - 1], al
jmp 0x40c10d
dec ecx
push ecx
call fcn.0040c880
add esp, 4
mov ecx, dword [esp + 0x184]
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x180
ret