Function at 0x4110c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
mov byte [ebp - 0x289], cl
jne 0x4110e9
xor bl, bl
jmp 0x41142d
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0x803
push str.RemoveAll
push str.__s__d__RemoveAll_path:_s
call fcn.0041f720
add esp, 0x10
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], 7
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x34]
mov word [ebp - 0x34], ax
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.00403e30
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
cmp eax, 4
jb 0x411171
cmp edx, 8
lea esi, [ebp - 0x34]
push 8
cmovae esi, dword [ebp - 0x34]
lea edi, [ecx + 4]
push 0x5010c8
mov dword [ebp - 0x24], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x41118f
push 4
push 0x5010c8
mov byte [ebp - 0x290], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x290]
push 4
call fcn.00404fc0
xor eax, eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x288]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 8], 7
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x290], eax
cmp eax, 0xffffffff
jne 0x4111ce
xor bl, bl
jmp 0x411395
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [ebp - 0x290]
nop word [eax + eax]
push 0x5010a8
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
je 0x41135b
push 0x5010d4
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
je 0x41135b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00403e30
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [ebp - 0xc]
sub eax, ecx
cmp eax, 1
jb 0x41125d
cmp edx, 8
lea esi, [ebp - 0x1c]
push 2
cmovae esi, dword [ebp - 0x1c]
lea edi, [ecx + 1]
push 0x5010bc
mov dword [ebp - 0xc], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x41127b
push 1
push 0x5010bc
mov byte [ebp - 0x294], 0
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x294]
push 1
call fcn.00404fc0
lea eax, [ebp - 0x25c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411284
mov ebx, dword [ebp - 8]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, ebx
sar eax, 1
sub ecx, edx
cmp eax, ecx
ja 0x4112cf
lea edi, [edx + eax]
cmp ebx, 8
lea esi, [ebp - 0x1c]
mov dword [ebp - 0xc], edi
cmovae esi, dword [ebp - 0x1c]
add eax, eax
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [esi + edx*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4112ed
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 0x298], 0
push ecx
push dword [ebp - 0x298]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00404fc0
test byte [ebp - 0x288], 0x10
lea eax, [ebp - 0x1c]
je 0x411310
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402f60
mov cl, 1
call fcn.004110c0
add esp, 0x18
jmp 0x41134f
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41134f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], 8
mov ecx, eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push ecx
push 0x822
push str.RemoveAll
push str.__s__d__RemoveAll:DeleteFileW_error:_d__wstCurrentFile:_s
call fcn.0041f720
add esp, 0x14
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [ebp - 0x290]
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4111e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x289], 0
je 0x411393
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4113cf
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4113c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411476
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
cmp edx, 8
jb 0x411419
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41140f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411476
push edx
push ecx
call fcn.004bdd39
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x411463
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411459
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411476
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret
call fcn.004c8da3
int3