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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x4b0408]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x358], esi
mov dword [ebp - 0x350], 1
test esi, esi
je 0x41cb7d
cmp byte [esi], 0
je 0x41cb7d
push esi
call fcn.0041c050
add esp, 4
test eax, eax
jne 0x41c9a9
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20c]
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x41c9b3
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041a7a0
lea edi, [ebp - 0x20c]
add esp, 4
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x41c9d7
mov eax, dword [0x473fd0]
mov dword [edi], eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x354], edi
cmp edi, 0xffffffff
je 0x41cb60
push ebx
lea ebx, [ebp - 0x108]
sub ebx, esi
mov eax, esi
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [ebx + eax - 1], cl
test cl, cl
jne 0x41ca20
lea eax, [ebp - 0x108]
push eax
call fcn.0041a7a0
lea edx, [ebp - 0x320]
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x41ca44
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41ca54
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [ebp - 0x34c], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x41caee
mov ecx, 0x49f704
lea eax, [ebp - 0x320]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41caa0
test dl, dl
je 0x41ca9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41caa0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41ca80
xor eax, eax
jmp 0x41caa5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cb13
mov ecx, 0x4745f4
lea eax, [ebp - 0x320]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41cad4
test dl, dl
je 0x41cad0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41cad4
add eax, 2
add ecx, 2
test dl, dl
jne 0x41cab4
xor eax, eax
jmp 0x41cad9
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cb13
lea eax, [ebp - 0x108]
push eax
call fcn.0041c950
add esp, 4
jmp 0x41cb0d
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x350], eax
push 0x140
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.00431580
mov edi, dword [ebp - 0x354]
add esp, 0xc
cmp dword [ebp - 0x350], 0
je 0x41cb48
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x41cb4a
xor eax, eax
mov esi, dword [ebp - 0x358]
test eax, eax
jne 0x41ca16
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x350]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0042bd08
mov esp, ebp
pop ebp
ret