Function at 0x140012b20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x300], rbx
mov rax, qword [0x14012e6d8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x88], rdx
xor r12d, r12d
mov dword [rsp + 0x60], r12d
call fcn.140055b68
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140012b8f
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsi], rax
lea r15, [0x1400e9f40]
test r15, 0xffffffffffff0000
jne 0x140012bcc
movzx edi, r15w
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x140012bd8
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.140006090
jmp 0x140012bd8
mov rdx, r15
mov rcx, rsi
call fcn.140006510
nop
mov dword [rsp + 0x60], 1
call fcn.140055b68
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140012c00
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
cmp dword [r14 + 0x3b204], 0
jne 0x140012eab
call fcn.140055b68
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140012c3d
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, str.RealtekInstallShield
test rdx, 0xffffffffffff0000
jne 0x140012c7d
movzx edi, dx
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x140012c88
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140006090
jmp 0x140012c88
lea rcx, [rsp + 0x58]
call fcn.140006510
nop
lea rdx, [r14 + 0x290]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140006b20
lea r8, [rsp + 0x38]
mov rdx, qword [rax]
mov r13d, 0x80000002
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140012cdf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012cff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140012d80
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.ProgramFilesDir
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012d70
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.1400062e0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013130
call fcn.140055b68
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140012da0
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
lea rdx, str.SoftwareWow6432NodeRealtekAudioInstaller
test rdx, 0xffffffffffff0000
jne 0x140012de5
movzx ebp, dx
mov ecx, ebp
call fcn.140055990
test rax, rax
je 0x140012df4
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140006090
mov rdi, qword [rsp + 0x48]
jmp 0x140012df4
lea rcx, [rsp + 0x48]
call fcn.140006510
mov rdi, qword [rsp + 0x48]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
sete bpl
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012e26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x140013130
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.ProgramFilesDir
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012e9b
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.1400062e0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013130
call fcn.140055b68
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140012ecb
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
lea rdx, str.SoftwareWow6432NodeRealtekAudioInstaller
test rdx, 0xffffffffffff0000
jne 0x140012f10
movzx ebx, dx
mov ecx, ebx
call fcn.140055990
test rax, rax
je 0x140012f1f
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140006090
mov rdi, qword [rsp + 0x40]
jmp 0x140012f1f
lea rcx, [rsp + 0x40]
call fcn.140006510
mov rdi, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov r13d, 0x80000002
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
sete bpl
lea rdx, [rdi - 0x18]
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140012f5a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x140012fdb
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.ProgramFilesDir
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012fcb
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.1400062e0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013130
call fcn.140055b68
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140012ffb
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, str.RealtekInstallShield
test rdx, 0xffffffffffff0000
jne 0x14001303b
movzx edi, dx
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x140013046
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140006090
jmp 0x140013046
lea rcx, [rsp + 0x50]
call fcn.140006510
nop
lea rdx, [r14 + 0x290]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140006b20
lea r8, [rsp + 0x38]
mov rdx, qword [rax]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013094
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400130b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140013130
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.ProgramFilesDir
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013125
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.1400062e0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r15
mov rcx, rsi
call fcn.14000efe0
test al, al
je 0x1400131ec
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400131dc
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x90]
call fcn.14009b1d0
mov rbp, rax
test rax, rax
je 0x140013188
xor eax, eax
mov rcx, rbx
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r12, [rcx - 1]
mov r8d, r12d
mov rdx, rbp
lea rcx, [rsp + 0x68]
call fcn.1400062e0
lea rdx, [rsp + 0x90]
sub rbp, rdx
sar rbp, 1
movsxd rax, ebp
mov word [rsp + rax*2 + 0x90], 0
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.1400062e0
jmp 0x1400131ec
lea rdx, str.C:Program_FilesRealtek
mov rcx, rsi
call fcn.140006510
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14001320a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14009af10
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret