Function at 0x140012700
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 [0x140134780]
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.14003c3f0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x14001276f
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsi], rax
lea r15, [0x1400eeb50]
test r15, 0xffffffffffff0000
jne 0x1400127ac
movzx edi, r15w
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x1400127b8
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.1400060c0
jmp 0x1400127b8
mov rdx, r15
mov rcx, rsi
call fcn.140006560
nop
mov dword [rsp + 0x60], 1
call fcn.14003c3f0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x1400127e0
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
cmp dword [r14 + 0x3b10c], 0
jne 0x140012a8b
call fcn.14003c3f0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x14001281d
mov ecx, 0x80004005
call fcn.140001120
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 0x14001285d
movzx edi, dx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x140012868
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400060c0
jmp 0x140012868
lea rcx, [rsp + 0x58]
call fcn.140006560
nop
lea rdx, [r14 + 0x198]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140006b70
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 0x1400128bf
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 0x1400128df
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140012960
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 0x140012950
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.140006310
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012d10
call fcn.14003c3f0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140012980
mov ecx, 0x80004005
call fcn.140001120
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 0x1400129c5
movzx ebp, dx
mov ecx, ebp
call fcn.14003c170
test rax, rax
je 0x1400129d4
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400060c0
mov rdi, qword [rsp + 0x48]
jmp 0x1400129d4
lea rcx, [rsp + 0x48]
call fcn.140006560
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 0x140012a06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x140012d10
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 0x140012a7b
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.140006310
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012d10
call fcn.14003c3f0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140012aab
mov ecx, 0x80004005
call fcn.140001120
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 0x140012af0
movzx ebx, dx
mov ecx, ebx
call fcn.14003c170
test rax, rax
je 0x140012aff
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400060c0
mov rdi, qword [rsp + 0x40]
jmp 0x140012aff
lea rcx, [rsp + 0x40]
call fcn.140006560
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 0x140012b3a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x140012bbb
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 0x140012bab
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.140006310
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012d10
call fcn.14003c3f0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140012bdb
mov ecx, 0x80004005
call fcn.140001120
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 0x140012c1b
movzx edi, dx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x140012c26
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400060c0
jmp 0x140012c26
lea rcx, [rsp + 0x50]
call fcn.140006560
nop
lea rdx, [r14 + 0x198]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140006b70
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 0x140012c74
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 0x140012c94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140012d10
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 0x140012d05
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.140006310
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r15
mov rcx, rsi
call fcn.14000e860
test al, al
je 0x140012dcc
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140012dbc
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x90]
call fcn.14009f5a0
mov rbp, rax
test rax, rax
je 0x140012d68
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.140006310
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.140006310
jmp 0x140012dcc
lea rdx, str.C:Program_FilesRealtek
mov rcx, rsi
call fcn.140006560
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140012dea
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.1400a1970
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret