Function at 0x465c40
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a09bb
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x45c], ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
push str.InstallVitualChannel::ReplaceFileAfterReboot
lea ecx, [ebp - 0x458]
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x465d1a
test byte [esi + 0x1c], 1
je 0x465cd8
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
mov ecx, 0x11
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
cmp esi, 0x608f30
je 0x465d1a
test byte [esi + 0x1c], 1
je 0x465d1a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push edi
push eax
push dword [esi + 0x14]
mov ecx, 0x12
push dword [esi + 0x10]
call fcn.00430170
mov esi, dword [0x608f30]
add esp, 0x14
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
add esp, 0x18
test edi, edi
je 0x465fe4
test ebx, ebx
je 0x465fe4
push ebx
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.005746e6
lea eax, [ebp - 0x420]
push 0x2e
push eax
call fcn.00571054
add esp, 0x14
test eax, eax
jne 0x465dc1
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x466025
test byte [ecx + 0x1c], 1
je 0x466025
cmp dword [0x608f68], 8
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x14
jmp 0x466018
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x420]
push str..tmp
push eax
push 0x5c70f4
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041e030
add esp, 0x14
test eax, eax
jns 0x465e36
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x466025
test byte [ecx + 0x1c], 1
je 0x466025
cmp dword [0x608f68], 8
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x15
jmp 0x466018
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x465e7d
test byte [ecx + 0x1c], 4
je 0x465e7d
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x16
call fcn.00405920
add esp, 0x10
mov esi, dword [ebp - 0x45c]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00466050
test eax, eax
je 0x465f3b
push edi
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00465a40
mov esi, eax
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x465ef8
test byte [edx + 0x1c], 4
je 0x465ef8
cmp dword [0x608f68], 8
lea eax, [ebp - 0x218]
push edi
push eax
mov ecx, 0x608f54
cmovae ecx, dword [0x608f54]
push ecx
push dword [edx + 0x14]
mov ecx, 0x17
push dword [edx + 0x10]
mov edx, 0x5ce63c
call fcn.00430170
mov edx, dword [0x608f30]
add esp, 0x14
test esi, esi
jne 0x465f3b
mov byte [ebp - 0x454], 1
cmp edx, 0x608f30
je 0x466025
test byte [edx + 0x1c], 1
je 0x466025
cmp dword [0x608f68], 8
lea ecx, [esi + 0x18]
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
jmp 0x466018
push 0
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x465fa8
push 5
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x465fae
test byte [edx + 0x1c], 4
je 0x465fae
cmp dword [0x608f68], 8
mov ecx, 0x608f54
push eax
cmovae ecx, dword [0x608f54]
lea eax, [ebp - 0x218]
push ebx
push eax
push ecx
push dword [edx + 0x14]
mov ecx, 0x19
push dword [edx + 0x10]
mov edx, 0x5ce63c
call fcn.00456e50
add esp, 0x18
mov edx, dword [0x608f30]
mov byte [ebp - 0x454], 1
cmp edx, 0x608f30
je 0x466025
test byte [edx + 0x1c], 1
je 0x466025
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov ecx, 0x1a
cmovae eax, dword [0x608f54]
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
jmp 0x466018
mov byte [ebp - 0x454], 1
cmp esi, 0x608f30
je 0x466025
test byte [esi + 0x1c], 1
je 0x466025
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov ecx, 0x13
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
mov edx, 0x5ce63c
call fcn.00401840
add esp, 0xc
lea ecx, [ebp - 0x458]
call fcn.0040a570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8