Function at 0x402850
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, dword [ebx]
push edi
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x402873
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x402889
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x402b61
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 1
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x5c
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040e7f0
mov esi, dword [esp + 0x28]
add esp, 0x14
mov ecx, dword [esi - 0x10]
lea edi, [esi - 0x10]
test ecx, ecx
je 0x4028d0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4028e6
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x402b6b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0040e7f0
or ebx, 0xffffffff
add esp, 0x14
lea ecx, [edi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402925
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x402b38
lea ecx, [esp + 0x14]
call fcn.00418ae0
push esi
call edi
test eax, eax
jne 0x402b38
push ecx
mov edi, esp
push 0x22
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push str.takeown__r__f__
push eax
call fcn.0040deb0
add esp, 0xc
mov edx, eax
mov ecx, edi
call fcn.0040df30
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00417500
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40299f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4029bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov edi, esp
push str.__t__e__g_everyone:f
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push str.cacls__
push eax
call fcn.0040deb0
add esp, 0xc
push eax
push edi
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00417500
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402a0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402a2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x14]
call fcn.00418ae0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402b38
push ecx
mov edi, esp
push 0x22
push dword [ebp + 0xc]
lea eax, [esp + 0x24]
push str.takeown__f__
push eax
call fcn.0040deb0
add esp, 0xc
mov edx, eax
mov ecx, edi
call fcn.0040df30
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00417500
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402a92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402aaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov edi, esp
push str.___e__g_everyone:f
push dword [ebp + 0xc]
lea eax, [esp + 0x24]
push str.cacls__
push eax
call fcn.0040deb0
add esp, 0xc
push eax
push edi
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00417500
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402aff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402b1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402b38
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [esp + 0x13], 0
jmp 0x402b3d
mov byte [esp + 0x13], 1
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x402b54
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 8
push 0x80004005
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
int3