Function at 0x14008c570
Capabilities:
Copy file
Move file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rsi, r8
mov r14, rdx
mov r15, rcx
lea rdx, str.InstallVitualChannel::ReplaceFileAfterReboot
lea rcx, [rsp + 0x40]
call fcn.14001abe0
nop
lea r12, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rbx, qword [0x1402a8360]
cmp rbx, r12
je 0x14008c649
test byte [rbx + 0x1c], 1
je 0x14008c605
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.COMCTL32.dll_InitCommonControls
lea r8, [0x140258f30]
mov rcx, qword [rbx + 0x10]
call fcn.140001ad0
mov rbx, qword [0x1402a8360]
cmp rbx, r12
je 0x14008c649
test byte [rbx + 0x1c], 1
je 0x14008c649
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, send
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
lea r8, [0x140258f30]
mov rcx, qword [rbx + 0x10]
call fcn.14002fbe0
mov rbx, qword [0x1402a8360]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.1401e7e40
test r14, r14
je 0x14008c8a9
test rsi, rsi
je 0x14008c8a9
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call fcn.1401ebfa8
mov edx, 0x2e
lea rcx, [rbp + 0x1a0]
call fcn.1401e768c
test rax, rax
jne 0x14008c6d1
mov byte [rsp + 0x48], 1
mov rbx, qword [0x1402a8360]
cmp rbx, r12
je 0x14008c8e8
test byte [rbx + 0x1c], 1
je 0x14008c8e8
lea edx, [rax + 0x14]
jmp 0x14008c8be
xor ecx, ecx
mov word [rax], cx
lea rax, str..tmp
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1a0]
lea r8, [0x1402528f8]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14002fb20
test eax, eax
jns 0x14008c72b
mov byte [rsp + 0x48], 1
mov rbx, qword [0x1402a8360]
cmp rbx, r12
je 0x14008c8e8
test byte [rbx + 0x1c], 1
je 0x14008c8e8
mov edx, socket
jmp 0x14008c8be
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x14008c76e
test byte [rcx + 0x1c], 4
je 0x14008c76e
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, socket
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r8, [0x140258f30]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rax, qword [r15]
lea rdx, [rbp - 0x70]
mov rcx, r15
mov rax, qword [rax + 0x58]
call qword [case.0x1400136d6.0]
test eax, eax
je 0x14008c818
mov rax, qword [r15]
mov r8, r14
lea rdx, [rbp - 0x70]
mov rcx, r15
mov rax, qword [rax]
call qword [case.0x1400136d6.0]
mov r15d, eax
mov rbx, qword [0x1402a8360]
cmp rbx, r12
je 0x14008c7f2
test byte [rbx + 0x1c], 4
je 0x14008c7f2
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.WSOCK32.dll_socket
mov qword [rsp + 0x28], r14
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r8, [0x140258f30]
mov rcx, qword [rbx + 0x10]
call fcn.14002fbe0
mov rbx, qword [0x1402a8360]
test r15d, r15d
jne 0x14008c818
mov byte [rsp + 0x48], 1
cmp rbx, r12
je 0x14008c8e8
test byte [rbx + 0x1c], 1
je 0x14008c8e8
lea edx, [r15 + 0x18]
jmp 0x14008c8be
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14008c88b
mov r8d, 5
mov rdx, rsi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [0x1402a8360]
cmp rbx, r12
je 0x14008c892
test byte [rbx + 0x1c], 4
je 0x14008c892
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x19
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r8, [0x140258f30]
mov rcx, qword [rbx + 0x10]
call fcn.140064a60
mov rbx, qword [0x1402a8360]
mov byte [rsp + 0x48], 1
cmp rbx, r12
je 0x14008c8e8
test byte [rbx + 0x1c], 1
je 0x14008c8e8
mov edx, 0x1a
jmp 0x14008c8be
mov byte [rsp + 0x48], 1
cmp rbx, r12
je 0x14008c8e8
test byte [rbx + 0x1c], 1
je 0x14008c8e8
mov edx, reloc.WSOCK32.dll_send
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea r8, [0x140258f30]
mov rcx, qword [rbx + 0x10]
call fcn.140001ad0
mov rbx, qword [0x1402a8360]
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x40], rax
cmp byte [rsp + 0x48], 0
jne 0x14008c944
cmp rbx, r12
je 0x14008c944
test byte [rbx + 0x1c], 1
je 0x14008c944
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rbx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x50]
call fcn.1400048a0
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x4c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret