Function at 0x417930
Capabilities:
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 0x417dc5
cmp ecx, edx
jg 0x417dc5
cmp word [eax + ecx*2], 0x5c
jne 0x417975
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 0x41798d
mov byte [esp + 0x13], 1
jmp 0x417da0
lea ecx, [esp + 0x54]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call fcn.00425b97
push 0x47a94c
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040de20
mov edi, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x54]
push 0
push edi
call fcn.00425dde
test eax, eax
je 0x417d36
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 0x417d2b
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 0x417a35
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040e0e0
jmp 0x417d0e
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x417d0e
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x417d0e
push ecx
mov esi, esp
push 0x22
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x30]
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 + 0x24]
call fcn.00417500
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417aac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417ac9
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 + 0x38]
push str.cacls__
push eax
call fcn.0040deb0
add esp, 0xc
push eax
push esi
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00417500
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417b1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417b37
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 0x417d0e
call fcn.00425809
mov ecx, eax
test ecx, ecx
je 0x417dcf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x417dc5
mov ax, word [eax]
mov word [esp + 0x1c], ax
xor eax, eax
mov word [esp + 0x1e], ax
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417b96
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.00416dd0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
call fcn.00426036
push eax
push str.:_temp147_
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040de20
add esp, 0xc
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040ddb0
add esp, 0xc
push dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.00416560
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
add esp, 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417c14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417c31
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 0x417c4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
push ebx
call fcn.0043e66e
add esp, 4
push eax
call fcn.0044648a
mov esi, dword [esp + 0x1c]
add esp, 4
push ebx
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x417cec
cmp ebx, 4
je 0x417cde
push 0x47c9a0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
push eax
inc ebx
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 + 0x48]
add edx, 0xfffffff0
add esp, 0xc
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417cc7
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 0x417c76
jmp 0x417cec
push 4
push 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esi, 0xfffffff0
or ebx, 0xffffffff
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417d08
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 0x417d2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0x13], 0
jne 0x4179e2
lea ecx, [esp + 0x54]
call fcn.00425d92
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x48]
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x12]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
push eax
push ecx
sar edx, 2
mov byte [esp + 0x1a], 1
call fcn.0041a1d0
mov al, byte [esp + 0x1a]
add edi, 0xfffffff0
mov byte [esp + 0x1b], al
add esp, 8
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417d8e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x54]
call fcn.00425d42
lea ecx, [esp + 0x48]
call fcn.0040e8e0
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x417dba
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
int3