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

Disassembly:
push 0xffffffffffffffff
push 0x4b943b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov dword [esp + 0x298], 1
mov edx, dword [esp + 0x2a0]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x40166e
cmp eax, ecx
jg 0x40166e
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x401240
push 1
push 0x4c395c
lea ecx, [esp + 0x2a8]
call fcn.00402110
lea eax, [esp + 0x2a4]
push eax
lea ecx, [esp + 0x2a4]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00401b40
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x24], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401291
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2a0]
push ecx
push 0x4c3968
call fcn.00477b80
add esp, 8
cmp esi, 0xffffffff
jne 0x4012c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Deltree_GetLastError__d_r_n
call fcn.00477b80
add esp, 8
jmp 0x401562
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x3c], 0x10
je 0x40146f
lea edx, [esp + 0x68]
push 0x4c3950
push edx
call fcn.0049de7f
add esp, 8
test eax, eax
je 0x401543
lea eax, [esp + 0x68]
push 0x4c3954
push eax
call fcn.0049de7f
add esp, 8
test eax, eax
je 0x401543
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x4c3960
call fcn.004019b0
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x2ac]
push eax
push ecx
mov byte [esp + 0x2ac], 2
call fcn.00401c00
add esp, 0xc
mov byte [esp + 0x2a0], 1
call fcn.004011c0
add esp, 8
test eax, eax
je 0x4015e8
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x2a4]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00401c00
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40139e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x2a4]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00401c00
mov eax, dword [eax]
add esp, 0xc
and esi, 0xfffffffe
push esi
push eax
call edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x2a4]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00401c00
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [esp + 0x2c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401429
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x401543
mov edx, dword [esp + 0x2a0]
lea ecx, [esp + 0x68]
push ecx
push edx
push str.Deltree_RemoveDirectory_failed_with__s_s_r_n
call fcn.00477b80
add esp, 0xc
mov byte [esp + 0x298], 0
mov eax, dword [esp + 0x2a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x401607
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x2a4]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00401c00
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x2a4]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00401c00
mov eax, dword [eax]
add esp, 0xc
and esi, 0xfffffffe
push esi
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x2a4]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00401c00
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40153b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x401648
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4012d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x298], 0
mov eax, dword [esp + 0x2a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40158d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x298], 0xffffffff
mov eax, dword [esp + 0x2a4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x288
ret
mov byte [esp + 0x298], 0
mov eax, dword [esp + 0x2a0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401613
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x298], 0xffffffff
mov eax, dword [esp + 0x2a4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401641
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4015c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x2a0]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
push str.Deltree_Deltree_failed_with__s_s_error___d_r_n
call fcn.00477b80
add esp, 0x10
jmp 0x40144b
push 0x80070057
call fcn.004010d0
int3