Function at 0x4183d0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
lea eax, [esp + 0x34]
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 0x418855
cmp ecx, edx
jg 0x418855
cmp word [eax + ecx*2], 0x5c
jne 0x418415
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 0x41842d
mov byte [esp + 0x13], 1
jmp 0x418830
lea ecx, [esp + 0x44]
call fcn.00425b97
push 0x47c9a8
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 + 0x44]
push 0
push edi
call fcn.00425dde
test eax, eax
je 0x418809
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [ebx]
lea ecx, [esp + 0x44]
call fcn.00425f84
test eax, eax
lea ecx, [esp + 0x44]
setne byte [esp + 0x13]
call fcn.00426322
test eax, eax
jne 0x4187f5
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
call fcn.00426083
mov eax, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x48]
call dword [eax + 0x38]
test eax, eax
je 0x4184ff
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.004183d0
add esp, 4
test al, al
jne 0x4187d2
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 0x4184f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x13], 0
jmp 0x41880e
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x4187d8
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x4187d8
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 0x418576
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 0x418593
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 0x4185e4
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 0x418601
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 0x4187d8
call fcn.00425809
test eax, eax
je 0x41885f
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 0x418855
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 0x418660
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 + 0x48]
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 0x4186de
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 0x4186fb
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 0x418718
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 0x4187b6
cmp ebx, 4
je 0x4187a8
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 0x418791
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 0x418740
jmp 0x4187b6
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 0x4187d2
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 0x4187f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0x13], 0
jne 0x418470
lea ecx, [esp + 0x44]
call fcn.00425d92
mov byte [esp + 0x13], 1
add edi, 0xfffffff0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418827
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x44]
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 0x41884a
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