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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451987
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 1
test bl, bl
je 0x451924
cmp byte [ebp - 5], 0
je 0x45174d
mov eax, dword [ebp - 4]
call fcn.0042cde8
test al, al
je 0x451924
cmp byte [ebp - 5], 0
je 0x451770
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0042c5e0
lea eax, [ebp - 0x10]
mov ecx, 0x4519a4
mov edx, dword [ebp - 0xc]
call fcn.00403708
jmp 0x451786
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0042c9dc
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004035dc
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403880
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x451924
xor eax, eax
push ebp
push 0x45191d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.004036a4
mov eax, dword [ebp - 0x18]
mov edx, 0x4519b0
call fcn.004037cc
je 0x4518ee
mov eax, dword [ebp - 0x18]
mov edx, 0x4519bc
call fcn.004037cc
je 0x4518ee
mov ebx, dword [ebp - 0x158]
test bl, 1
je 0x45182b
and ebx, 0xfffffffe
push ebx
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x15c]
call fcn.004035dc
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x18]
call fcn.004036c4
mov eax, dword [ebp - 0x15c]
call fcn.00403880
push eax
call sub.kernel32.dll_SetFileAttributesA
test byte [ebp - 0x158], 0x10
jne 0x4518a7
cmp dword [ebp + 0xc], 0
je 0x451870
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x15c]
call fcn.004035dc
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x18]
call fcn.004036c4
mov eax, dword [ebp - 0x15c]
mov edx, dword [ebp + 8]
call dword [ebp + 0xc]
test al, al
jne 0x4518ee
mov byte [ebp - 6], 0
jmp 0x4518ee
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x15c]
call fcn.004035dc
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x18]
call fcn.004036c4
mov eax, dword [ebp - 0x15c]
call fcn.00403880
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x4518ee
mov byte [ebp - 6], 0
jmp 0x4518ee
cmp byte [ebp + 0x14], 0
je 0x4518ee
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x15c]
call fcn.004035dc
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x18]
call fcn.004036c4
mov eax, dword [ebp - 0x15c]
mov cl, 1
mov dl, 1
call fcn.004516f8
test al, al
jne 0x4518ee
mov byte [ebp - 6], 0
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4517b6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451924
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindClose
ret
cmp byte [ebp - 5], 0
je 0x451959
cmp dword [ebp + 0x10], 0
je 0x451943
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call dword [ebp + 0x10]
test al, al
jne 0x451959
mov byte [ebp - 6], 0
jmp 0x451959
mov eax, dword [ebp - 4]
call fcn.00403880
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x451959
mov byte [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45198e
lea eax, [ebp - 0x15c]
call fcn.00403548
lea eax, [ebp - 0x18]
call fcn.00403548
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403568
ret