Function at 0x14008cd00
Capabilities:
Check if file exists
Copy file
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x608]
sub rsp, 0x708
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov r15, r9
mov rdi, r8
mov qword [rsp + 0x60], r8
mov r13, rdx
mov rsi, rcx
mov r14, qword [rbp + 0x670]
mov r12, qword [rbp + 0x678]
lea rdx, str.InstallVitualChannel::CopySMModule
lea rcx, [rsp + 0x70]
call fcn.14001abe0
nop
lea rax, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rax
je 0x14008cdf4
test byte [rcx + 0x1c], 1
je 0x14008cdb4
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x20
lea r8, [0x140258f30]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
lea rax, [0x1402a8360]
cmp rcx, rax
je 0x14008cdf4
test byte [rcx + 0x1c], 1
je 0x14008cdf4
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov rcx, qword [rcx + 0x10]
call fcn.14008bfb0
mov qword [rsp + 0x58], 0
mov edi, 1
mov dword [rsp + 0x54], edi
mov dword [rsp + 0x50], 0x104
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3e0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.1401e7e40
mov rdx, r13
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140251df8]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x3e0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008d06a
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14008d04f
mov rdx, r14
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r12
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140251df8]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r14
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x14008cf6f
mov rcx, qword [0x1402a8360]
lea r14, [0x1402a8360]
cmp rcx, r14
je 0x14008cf68
test byte [rcx + 0x1c], 4
je 0x14008cf68
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rdi + 0x21]
lea r8, [0x140258f30]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edi, edi
jmp 0x14008d056
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14008cfa2
mov rax, qword [rsi]
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x1d0]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x1400136d6.0]
cmp eax, edi
jne 0x14008d04f
xor r8d, r8d
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14008d04f
mov rcx, qword [0x1402a8360]
lea r14, [0x1402a8360]
cmp rcx, r14
je 0x14008cffd
test byte [rcx + 0x1c], 4
je 0x14008cffd
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rax + 0x23]
lea r8, [0x140258f30]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rax, qword [rsi]
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x40]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
lea r8, [0x1402533f8]
lea rdx, str.RebootYesNo
mov rcx, r9
call qword [case.0x1400136d6.0]
jmp 0x14008d056
lea r14, [0x1402a8360]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x1402a8360]
jmp 0x14008d0b4
mov rax, qword [0x1402a8360]
lea r14, [0x1402a8360]
cmp rax, r14
je 0x14008d0b2
test byte [rax + 0x1c], 4
je 0x14008d0b2
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x24
lea r8, [0x140258f30]
mov rcx, qword [rax + 0x10]
call fcn.140001ad0
mov rax, qword [0x1402a8360]
xor edi, edi
mov cl, 1
mov byte [rsp + 0x78], cl
cmp rax, r14
je 0x14008d0fc
test byte [rax + 0x1c], cl
je 0x14008d0fc
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x25
mov dword [rsp + 0x20], edi
lea r8, [0x140258f30]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
movzx ecx, byte [rsp + 0x78]
mov rax, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x70], rdx
test cl, cl
jne 0x14008d152
cmp rax, r14
je 0x14008d152
test byte [rax + 0x1c], 1
je 0x14008d152
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x60]
call fcn.1400048a0
lea rcx, [rbp - 0x80]
call fcn.1400048a0
mov eax, edi
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x708
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret