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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x424fdc
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebp
push esi
mov esi, dword [esp + 0x19c]
xor ebp, ebp
cmp dword [esi + 8], ebp
jne 0x40c174
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
add esp, 0x190
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 + 0x58]
lea edx, [esp + 0x34]
mov dword [esp + 0x54], ebp
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1a0], ebp
call fcn.0040c470
mov eax, dword [0x42622c]
mov ecx, dword [esp + 0x1ac]
add esp, 4
push eax
push ebp
push ecx
lea ecx, [esp + 0x40]
call fcn.00405a60
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x40c1e2
mov eax, 0x426230
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00402800
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a0], 1
call fcn.00402800
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov byte [esp + 0x19c], 2
cmp ebx, 0xffffffff
je 0x40c389
cmp byte [esp + 0x80], 0x2e
jne 0x40c247
lea edx, [esp + 0x54]
push edx
jmp 0x40c378
mov eax, dword [esp + 0x54]
mov ecx, dword [0x42622c]
and eax, 0x10
push ecx
cmp al, 0x10
push 0
push esi
jne 0x40c30d
lea ecx, [esp + 0x20]
call fcn.004038a0
lea edx, [esp + 0x14]
push edx
call fcn.0040c470
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x80]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00405b40
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x48], cl
lea ecx, [esp + 0x48]
call fcn.00402800
mov edi, 0x42c658
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x42c658
lea ecx, [esp + 0x4c]
call fcn.00402b60
lea edx, [esp + 0x44]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x1a4], 3
call fcn.0040c130
add esp, 8
lea ecx, [esp + 0x44]
mov byte [esp + 0x19c], 2
push 1
call fcn.00402800
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40c304
mov eax, 0x426230
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40c373
lea ecx, [esp + 0x30]
call fcn.004038a0
lea edx, [esp + 0x24]
push edx
call fcn.0040c470
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x80]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00405b40
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40c353
mov eax, 0x426230
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40c36c
mov eax, 0x426230
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x54]
push ecx
push ebx
call ebp
cmp eax, 1
sete al
test al, al
jne 0x40c22a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
jne 0x40c39e
mov eax, 0x426230
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x40c3b6
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 0x40c3e7
mov al, byte [ecx - 1]
test al, al
je 0x40c3dd
cmp al, 0xff
je 0x40c3dd
dec al
mov byte [ecx - 1], al
jmp 0x40c3e7
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 0x40c417
mov al, byte [ecx - 1]
test al, al
je 0x40c40d
cmp al, 0xff
je 0x40c40d
dec al
mov byte [ecx - 1], al
jmp 0x40c417
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 0x40c447
mov al, byte [ecx - 1]
test al, al
je 0x40c43d
cmp al, 0xff
je 0x40c43d
dec al
mov byte [ecx - 1], al
jmp 0x40c447
dec ecx
push ecx
call fcn.0040c880
add esp, 4
mov ecx, dword [esp + 0x194]
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x190
ret