Function at 0x41d8e0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557341
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x26c], 1
call fcn.0044c104
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41d93d
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x278], esi
cmp ebx, esi
jne 0x41d960
xor eax, eax
jmp 0x41d974
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41d965
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x268]
call fcn.00404df0
mov edi, dword [ebp - 0x268]
cmp dword [edi - 0xc], esi
jle 0x41d9bb
push 0x2a
push edi
call fcn.0053fa2a
add esp, 8
cmp eax, esi
je 0x41d9a1
sub eax, edi
sar eax, 1
jns 0x41d9d5
cmp dword [edi - 0xc], esi
jle 0x41d9bb
push 0x3f
push edi
call fcn.0053fa2a
add esp, 8
cmp eax, esi
je 0x41d9bb
sub eax, edi
sar eax, 1
jns 0x41d9d5
push 2
push 0x5715f4
lea ecx, [ebp - 0x268]
call fcn.00405330
mov edi, dword [ebp - 0x268]
jmp 0x41d9f8
cmp dword [edi - 0xc], esi
jle 0x41d9f8
push 0x3f
push edi
call fcn.0053fa2a
add esp, 8
cmp eax, esi
je 0x41d9f8
sub eax, edi
sar eax, 1
js 0x41d9f8
mov ecx, dword [edi - 0xc]
mov dword [ebp - 0x278], ecx
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x41da19
push esi
lea ecx, [ebp - 0x268]
call fcn.004045b0
mov edi, dword [ebp - 0x268]
lea edx, [ebp - 0x260]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
jne 0x41da70
push str.DeleteDirectoryFiles______Not_found._n
push 5
call fcn.00403ab0
lea eax, [edi - 0x10]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41da64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41de2b
call fcn.0044c104
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41d933
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
push 0x5c
push edi
mov byte [ebp - 4], 1
call fcn.0053dd9b
add esp, 8
test eax, eax
je 0x41db6b
sub eax, edi
sar eax, 1
js 0x41db6b
push 0x5c
push edi
call fcn.0053dd9b
add esp, 8
test eax, eax
jne 0x41dacb
or eax, 0xffffffff
jmp 0x41dacf
sub eax, edi
sar eax, 1
push eax
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x268]
call fcn.00405240
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
cmp eax, esi
je 0x41db43
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41db33
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41db33
push eax
call fcn.00404610
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41db22
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x264], edi
mov edi, dword [ebp - 0x268]
jmp 0x41db43
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x264]
call fcn.00404df0
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41db9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41db9c
test ebx, ebx
jne 0x41db73
xor eax, eax
jmp 0x41db8f
mov eax, ebx
lea edx, [eax + 2]
jmp 0x41db80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41db80
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x264]
call fcn.00404df0
push 1
push 0x56825c
lea ecx, [ebp - 0x264]
call fcn.00405330
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41dbb7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00405330
mov esi, dword [ebp - 0x264]
cmp dword [esi - 4], 1
jle 0x41dbfa
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x264]
call fcn.00404320
mov esi, dword [ebp - 0x264]
push esi
push str.DeleteDirectoryFiles_DeleteFile__1_s__._n
push 5
call fcn.00403ab0
mov eax, dword [ebp - 0x278]
add esp, 0xc
test eax, eax
je 0x41dc1d
cmp eax, dword [esi - 0xc]
jne 0x41dd84
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41dc3f
push 0
lea ecx, [ebp - 0x264]
call fcn.004045b0
mov esi, dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41dd84
test bl, 0x10
je 0x41dceb
lea ecx, [ebp - 0x234]
push 0x571548
push ecx
call fcn.0053e2bf
add esp, 8
test eax, eax
je 0x41dcc2
lea edx, [ebp - 0x234]
push 0x571540
push edx
call fcn.0053e2bf
add esp, 8
test eax, eax
je 0x41dcc2
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41dcac
push 0
lea ecx, [ebp - 0x264]
call fcn.004045b0
mov esi, dword [ebp - 0x264]
push 1
push esi
call fcn.0041d8e0
add esp, 8
and dword [ebp - 0x26c], eax
jmp 0x41dd84
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dda4
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x41dda4
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
and ebx, 0xfffffffe
or ecx, eax
jge 0x41dd10
push 0
lea ecx, [ebp - 0x264]
call fcn.004045b0
mov esi, dword [ebp - 0x264]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41dd3a
push 0
lea ecx, [ebp - 0x264]
call fcn.004045b0
mov esi, dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41dd84
mov ecx, dword [esi - 8]
mov dword [ebp - 0x26c], eax
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41dd6d
push 0
lea ecx, [ebp - 0x264]
call fcn.004045b0
mov esi, dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.DeleteDirectoryFiles_DeleteFile__1_s___failed.__0x_2_lx___n
push 2
call fcn.00403ab0
add esp, 0x10
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41dda4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [ebp - 0x270]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41ddc7
mov ebx, dword [ebp - 0x274]
jmp 0x41da70
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x41de02
mov esi, dword [ebp - 0x274]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41de02
mov dword [ebp - 0x26c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.DeleteDirectoryFiles_pRemoveDirectory__1_s___failed.__0x_2_lx___n
push 2
call fcn.00403ab0
add esp, 0x10
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41de25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret