Function at 0x402340
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
lea ecx, [esp + 0x18]
push ebx
push esi
push edi
call fcn.004263dd
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40236c
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x402382
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4026fb
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 0x4023c9
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4023df
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x402705
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 0x40241e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x47a8ec
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040de20
mov esi, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x24]
push 0
push 0x1000
push esi
call fcn.004268d4
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x40256b
push ecx
mov ebx, esp
push 0x22
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push str.takeown__f__
push eax
call fcn.0040deb0
add esp, 0xc
mov edx, eax
mov ecx, ebx
call fcn.0040df30
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00417500
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ebx, esp
push str.___e__g_everyone:f
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push str.cacls__
push eax
call fcn.0040deb0
add esp, 0xc
push eax
push ebx
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00417500
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402518
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 0x402535
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x1000
push esi
lea ecx, [esp + 0x30]
call fcn.004268d4
test eax, eax
jne 0x40256b
mov ecx, dword [ebp + 0xc]
call fcn.00418ae0
push 0
push 0x1000
push esi
lea ecx, [esp + 0x30]
call fcn.004268d4
test eax, eax
je 0x4026a9
lea ecx, [esp + 0x24]
call fcn.004266a8
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
call fcn.00418d90
test al, al
jne 0x40259a
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
call fcn.00418d90
mov byte [esp + 0x13], 0
jmp 0x4026b5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4026b0
push ecx
mov ebx, esp
push 0x22
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push str.takeown__f__
push eax
call fcn.0040deb0
add esp, 0xc
mov edx, eax
mov ecx, ebx
call fcn.0040df30
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00417500
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4025fc
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 0x402619
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ebx, esp
push str.___e__g_everyone:f
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push str.cacls__
push eax
call fcn.0040deb0
add esp, 0xc
push eax
push ebx
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00417500
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40266c
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 0x402689
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4026b0
mov ecx, dword [ebp + 0xc]
call fcn.00418ae0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4026b0
mov byte [esp + 0x13], 0
jmp 0x4026b5
mov byte [esp + 0x13], 1
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4026ce
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4026e5
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x24]
call fcn.00426453
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