Function at 0x14000c780
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x170
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov edi, edx
mov r12, rcx
call fcn.14003c3f0
mov rcx, rax
xor ebp, ebp
mov r8d, ebp
test rax, rax
setne r8b
test r8d, r8d
jne 0x14000c7dd
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
sub edi, 1
je 0x14000c842
sub edi, 1
je 0x14000c82c
sub edi, 1
je 0x14000c816
cmp edi, 1
jne 0x14000c856
mov r8d, esi
lea rdx, str.DriverPackageGetPath_Error_code_0x_08X
lea rcx, [rsp + 0x60]
call fcn.1400031b0
jmp 0x14000c856
mov r8d, esi
lea rdx, str.DriverPackageUninstall_Error_code_0x_08X
lea rcx, [rsp + 0x60]
call fcn.1400031b0
jmp 0x14000c856
mov r8d, esi
lea rdx, str.DriverPackagePrenstall_Error_code_0x_08X
lea rcx, [rsp + 0x60]
call fcn.1400031b0
jmp 0x14000c856
mov r8d, esi
lea rdx, str.DriverPackageInstall_Error_code_0x_08X
lea rcx, [rsp + 0x60]
call fcn.1400031b0
or edi, 0xffffffff
cmp dword [r12 + 0x3b10c], 0
jne 0x14000c987
call fcn.14003c3f0
mov rcx, rax
test rax, rax
setne bpl
test ebp, ebp
jne 0x14000c886
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, str.RealtekInstallShield
test rdx, 0xffffffffffff0000
jne 0x14000c8c6
movzx esi, dx
mov ecx, esi
call fcn.14003c170
test rax, rax
je 0x14000c8d1
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400060c0
jmp 0x14000c8d1
lea rcx, [rsp + 0x30]
call fcn.140006560
nop
lea rdx, [r12 + 0x198]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140006b70
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14000c944
cmp dword [rbx + 0x10], 0
jl 0x14000c935
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14000c935
call fcn.140004470
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x14000c92a
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x14000c944
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140006310
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000c965
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000c998
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14000c998
lea rdx, str.SoftwareWow6432NodeRealtekAudioInstaller
lea rcx, [rsp + 0x38]
call fcn.140006560
lea r8, [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
mov ecx, 0x80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000c9ed
mov dword [rsp + 0x28], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.DIFxAPIErrorCode
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
add edi, 0xffffffff
test edi, edi
jg 0x14000ca06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400a1970
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret