Function at 0x417de0
Capabilities:
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
lea eax, [esp + 0x38]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x4183b1
cmp ecx, edx
jg 0x4183b1
cmp word [eax + ecx*2], 0x5c
jne 0x417e25
push 1
push ecx
lea ecx, [ebp + 8]
call fcn.0040da90
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
or ebx, 0xffffffff
test eax, eax
jne 0x417e3d
mov byte [esp + 0x12], 1
jmp 0x41838c
lea ecx, [esp + 0x54]
call fcn.00425b97
push 0x47a94c
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x1e], 1
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.0040de20
mov edi, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x54]
push 0
push edi
call fcn.00425dde
test eax, eax
je 0x418240
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x54]
call fcn.00425f84
test eax, eax
lea ecx, [esp + 0x54]
setne byte [esp + 0x13]
call fcn.00426322
test eax, eax
jne 0x41822c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
call fcn.00426083
mov eax, dword [esp + 0x54]
push 0x10
lea ecx, [esp + 0x58]
call dword [eax + 0x38]
test eax, eax
je 0x417f26
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00416ec0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00417de0
add esp, 4
test al, al
jne 0x418209
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417f1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x12], 0
jmp 0x418361
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x41820f
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x41820f
push ecx
mov esi, esp
push 0x22
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x34]
push str.takeown__r__f__
push eax
call fcn.0040deb0
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0040df30
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00417500
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417f9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417fba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
push str.___t__e__g_everyone:f
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x3c]
push str.cacls__
push eax
call fcn.0040deb0
add esp, 0xc
push eax
push esi
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00417500
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41800b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418028
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
test eax, eax
jne 0x41820f
call fcn.00425809
test eax, eax
je 0x4183bb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4183b1
mov ax, word [eax]
mov word [esp + 0x1c], ax
lea ecx, [esp + 0x1c]
xor eax, eax
mov word [esp + 0x1e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418087
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.00416dd0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x58]
call fcn.00426036
push eax
push str.:_temp147_
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040de20
add esp, 0xc
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040ddb0
add esp, 0xc
push dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.00416560
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff0
add esp, 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418105
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418122
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41813f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
mov dword [esp + 0x24], 0
call fcn.0043e66e
add esp, 4
push eax
call fcn.0044648a
mov esi, dword [esp + 0x1c]
add esp, 4
push 0
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4181f0
mov eax, dword [esp + 0x20]
cmp eax, 4
je 0x4181e2
inc eax
mov dword [esp + 0x20], eax
push 0x47c9a0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0040de20
mov esi, dword [eax]
add esp, 0xc
call fcn.00446467
push eax
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00416560
mov edx, dword [esp + 0x4c]
add edx, 0xfffffff0
add esp, 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4181cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x18]
push 0
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418173
jmp 0x4181f0
push 4
push 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418209
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41822c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0x13], 0
jne 0x417e97
lea ecx, [esp + 0x54]
call fcn.00425d92
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
test eax, eax
jne 0x418361
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x418361
push ecx
mov esi, esp
push 0x22
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x48]
push str.takeown__r__f__
push eax
call fcn.0040deb0
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0040df30
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00417500
mov edx, dword [esp + 0x44]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4182ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4182d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
push str.___t__e__g_everyone:f
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x48]
push str.cacls__
push eax
call fcn.0040deb0
add esp, 0xc
push eax
push esi
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.00417500
mov edx, dword [esp + 0x44]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418328
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418345
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb al, al
and byte [esp + 0x12], al
add edi, 0xfffffff0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41837a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x48]
call fcn.0040e8e0
lea ecx, [esp + 0x54]
call fcn.00425d42
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4183a6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
int3