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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471ad0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x494054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
mov eax, 0x7ffffffe
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x40c102
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40bda3
mov eax, dword [esi]
push 4
push 0x488cdc
push ecx
push eax
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x2c0]
call fcn.0040a280
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40bdf8
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bdee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c107
push edx
push ecx
call fcn.0044c564
add esp, 8
movups xmm1, xmmword [ebp - 0x2c0]
cmp dword [ebp - 0x2ac], 8
lea ecx, [ebp - 0x44]
movq xmm0, qword [ebp - 0x2b0]
movd eax, xmm1
movups xmmword [ebp - 0x44], xmm1
cmovae ecx, eax
movq qword [ebp - 0x34], xmm0
lea eax, [ebp - 0x298]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x29c], edi
cmp edi, 0xffffffff
je 0x40c060
cmp word [ebp - 0x26c], 0x2e
je 0x40bfe8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
mov eax, 0x7ffffffe
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40c102
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40be82
mov eax, dword [esi]
push 1
push 0x488cb4
push ecx
push eax
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x2d8]
call fcn.0040a280
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40beb0
sub ecx, edx
lea eax, [ebp - 0x26c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2d8]
call fcn.00406740
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x18]
movq qword [ebp - 0x2a8], xmm1
movups xmmword [ebp - 0x2b8], xmm0
cmp edx, 8
jb 0x40bf45
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c107
push edx
push ecx
call fcn.0044c564
movups xmm0, xmmword [ebp - 0x2b8]
add esp, 8
movq xmm1, qword [ebp - 0x2a8]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c4]
movq qword [ebp - 0x1c], xmm1
movups xmmword [ebp - 0x2c], xmm0
cmp edx, 8
jb 0x40bf92
mov ecx, dword [ebp - 0x2d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c107
push edx
push ecx
call fcn.0044c564
add esp, 8
test byte [ebp - 0x298], 0x10
je 0x40bfb7
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.0040bd10
mov edi, eax
test edi, edi
jne 0x40c062
mov edi, dword [ebp - 0x29c]
jmp 0x40bfe8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x80
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40c038
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40c038
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x40be40
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x40c062
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40c01d
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40c042
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
jmp 0x40c062
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40c062
cmp dword [esi + 0x14], 8
jb 0x40c04a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40c060
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
jmp 0x40c062
xor edi, edi
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40c098
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c08e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c107
push edx
push ecx
call fcn.0044c564
add esp, 8
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x40c0e2
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c0d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c107
push edx
push ecx
call fcn.0044c564
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401760
call fcn.00450fe0
int3