Function at 0x140010970
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 [0x1401216d8]
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.14004b0d0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x1400109df
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, [0x1400deee8]
test r15, 0xffffffffffff0000
jne 0x140010a1c
movzx edi, r15w
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140010a28
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.140005b70
jmp 0x140010a28
mov rdx, r15
mov rcx, rsi
call fcn.140005ff0
nop
mov dword [rsp + 0x60], 1
call fcn.14004b0d0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010a50
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 + 0x3affc], 0
jne 0x140010cfb
call fcn.14004b0d0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010a8d
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 0x140010acd
movzx edi, dx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140010ad8
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140005b70
jmp 0x140010ad8
lea rcx, [rsp + 0x58]
call fcn.140005ff0
nop
lea rdx, [r14 + 0x290]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140006600
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 0x140010b2f
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 0x140010b4f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140010bd0
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 0x140010bc0
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.140005dc0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140010f80
call fcn.14004b0d0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010bf0
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 0x140010c35
movzx ebp, dx
mov ecx, ebp
call fcn.14004aef8
test rax, rax
je 0x140010c44
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005b70
mov rdi, qword [rsp + 0x48]
jmp 0x140010c44
lea rcx, [rsp + 0x48]
call fcn.140005ff0
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 0x140010c76
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x140010f80
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 0x140010ceb
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.140005dc0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140010f80
call fcn.14004b0d0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010d1b
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 0x140010d60
movzx ebx, dx
mov ecx, ebx
call fcn.14004aef8
test rax, rax
je 0x140010d6f
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005b70
mov rdi, qword [rsp + 0x40]
jmp 0x140010d6f
lea rcx, [rsp + 0x40]
call fcn.140005ff0
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 0x140010daa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x140010e2b
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 0x140010e1b
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.140005dc0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140010f80
call fcn.14004b0d0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010e4b
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 0x140010e8b
movzx edi, dx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140010e96
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005b70
jmp 0x140010e96
lea rcx, [rsp + 0x50]
call fcn.140005ff0
nop
lea rdx, [r14 + 0x290]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140006600
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 0x140010ee4
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 0x140010f04
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140010f80
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 0x140010f75
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.140005dc0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r15
mov rcx, rsi
call fcn.14000d7d0
test al, al
je 0x14001103c
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001102c
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x90]
call fcn.140090740
mov rbp, rax
test rax, rax
je 0x140010fd8
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.140005dc0
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.140005dc0
jmp 0x14001103c
lea rdx, str.C:Program_FilesRealtek
mov rcx, rsi
call fcn.140005ff0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14001105a
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.140090480
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret