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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51c13c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
fld qword [ebp + 0x10]
fcomp qword [0x533a28]
push ebx
push esi
push edi
fnstsw ax
test ah, 0x41
jp 0x40af9c
mov ecx, dword [ebp + 0x1c]
call fcn.00450a60
mov esi, dword [ebp + 8]
test esi, esi
je 0x40b245
cmp byte [esi], 0
je 0x40b245
push esi
lea ecx, [esp + 0x1c]
call fcn.00507da8
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1a8], 0
call fcn.00507da8
push 0x55e548
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a8], 1
call fcn.00505538
push 0x5c
push 0x2f
lea ecx, [esp + 0x1c]
call fcn.00504d6b
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
test eax, eax
je 0x40b004
push 0x55e520
jmp 0x40b006
push 0
call fcn.00508116
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40b220
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
lea edx, [esp + 0x84]
push 0x55e51c
push edx
call fcn.0048d6a0
add esp, 8
test eax, eax
je 0x40b1fd
lea eax, [esp + 0x84]
push 0x55e518
push eax
call fcn.0048d6a0
add esp, 8
test eax, eax
je 0x40b1fd
mov ecx, dword [str._cindex.dat]
lea edx, [esp + 0x84]
push ecx
push edx
call fcn.0048d6a0
add esp, 8
test eax, eax
je 0x40b1fd
lea eax, [esp + 0x18]
push 0x55cfa4
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00507fcf
lea edx, [esp + 0x84]
mov byte [esp + 0x1a4], 2
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00507fcf
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a4], 4
call fcn.00507d3a
mov eax, dword [esp + 0x58]
test al, 1
je 0x40b0e4
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x58]
and eax, 0x10
cmp al, 0x10
je 0x40b1c4
fld qword [ebp + 0x10]
fcomp qword [0x533a28]
fnstsw ax
and eax, 0x4100
jne 0x40b192
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
push edx
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00450d40
test eax, eax
je 0x40b183
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call fcn.004e9b59
mov ecx, eax
call fcn.004e9faf
fld qword [eax]
fmul qword [0x533a20]
fadd qword [0x533a30]
call fcn.004f2bd4
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
jmp 0x40b186
fld qword [ebp + 0x10]
fcomp qword [ebp + 0x10]
fnstsw ax
and eax, 0x100
jne 0x40b1ec
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00422fd0
add esp, 4
test eax, eax
je 0x40b1ec
fld qword [ebp + 0x10]
fcomp qword [0x533a28]
fnstsw ax
and eax, 0x4100
jne 0x40b1ec
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
push edx
call fcn.00450e40
jmp 0x40b1ec
test esi, esi
jle 0x40b1e1
mov eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0x10]
lea ecx, [esi + 1]
push eax
push ecx
push edi
push ebx
push 0
push edx
call fcn.0040af60
add esp, 0x18
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a4], 1
call fcn.00507d3a
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b031
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a4], 0
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov dword [esp + 0x1a4], 0xffffffff
call fcn.00507d3a
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret