Function at 0x14008dc20
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2d0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rbp, rdx
lea rcx, [rsp + 0x60]
lea rdx, str.InstallVitualChannel::SetRegKeyCNAPX
mov rbx, r9
mov r14, r8
call fcn.14001abe0
mov rcx, qword [0x1402a8360]
lea r15, [0x1402a8360]
lea rdi, [0x1402bbdb0]
cmp rcx, r15
je 0x14008dcef
test byte [rcx + 0x1c], 1
je 0x14008dcad
cmp qword [0x1402bbdc8], 8
lea r8, [0x140258f30]
mov rcx, qword [rcx + 0x10]
mov r9, rdi
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x37
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x14008dcef
test byte [rcx + 0x1c], 1
je 0x14008dcef
cmp qword [0x1402bbdc8], 8
lea r8, [0x140258f30]
mov rcx, qword [rcx + 0x10]
mov r9, rdi
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x38
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
call fcn.14001d060
xor r12d, r12d
lea rcx, [rsp + 0xb0]
xor edx, edx
mov qword [rsp + 0x50], r12
mov r8d, 0x208
lea esi, [r12 + 1]
call fcn.1401e7e40
mov rdx, rbp
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140251df8]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r14
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14008de13
mov rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x14008dd93
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.DriverNameWin32
mov r9d, esi
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14008de08
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x14008de05
test byte [rcx + 0x1c], 4
je 0x14008de05
cmp qword [0x1402bbdc8], 8
lea r8, [0x140258f30]
mov rcx, qword [rcx + 0x10]
mov r9, rdi
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x39
call fcn.140001ad0
mov esi, r12d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, 1
mov byte [rsp + 0x68], cl
mov rax, qword [0x1402a8360]
cmp rax, r15
je 0x14008de62
test byte [rax + 0x1c], cl
je 0x14008de62
cmp qword [0x1402bbdc8], 8
lea r8, [0x140258f30]
mov rcx, qword [rax + 0x10]
mov r9, rdi
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x3a
mov dword [rsp + 0x20], esi
call fcn.140001b40
movzx ecx, byte [rsp + 0x68]
mov rax, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x60], rdx
test cl, cl
jne 0x14008debe
cmp rax, r15
je 0x14008debe
test byte [rax + 0x1c], 1
je 0x14008debe
cmp qword [rsp + 0x88], 8
lea rcx, [rsp + 0x70]
mov edx, 0xa
lea r8, [0x140252818]
cmovae rcx, qword [rsp + 0x70]
cmp qword [0x1402bbdc8], 8
mov qword [rsp + 0x20], rcx
cmovae rdi, qword [0x1402bbdb0]
mov rcx, qword [rax + 0x10]
mov r9, rdi
call fcn.140006c90
lea rcx, [rsp + 0x90]
call fcn.1400048a0
lea rcx, [rsp + 0x70]
call fcn.1400048a0
mov eax, esi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x2d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret