Function at 0x140010a00
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.14004b378
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010a6f
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, [0x1400def30]
test r15, 0xffffffffffff0000
jne 0x140010aac
movzx edi, r15w
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x140010ab8
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.140005c00
jmp 0x140010ab8
mov rdx, r15
mov rcx, rsi
call fcn.140006080
nop
mov dword [rsp + 0x60], 1
call fcn.14004b378
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010ae0
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 0x140010d8b
call fcn.14004b378
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010b1d
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 0x140010b5d
movzx edi, dx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x140010b68
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140005c00
jmp 0x140010b68
lea rcx, [rsp + 0x58]
call fcn.140006080
nop
lea rdx, [r14 + 0x290]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140006690
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 0x140010bbf
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 0x140010bdf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140010c60
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 0x140010c50
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.140005e50
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140011010
call fcn.14004b378
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010c80
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 0x140010cc5
movzx ebp, dx
mov ecx, ebp
call fcn.14004b1a0
test rax, rax
je 0x140010cd4
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005c00
mov rdi, qword [rsp + 0x48]
jmp 0x140010cd4
lea rcx, [rsp + 0x48]
call fcn.140006080
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 0x140010d06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x140011010
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 0x140010d7b
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.140005e50
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140011010
call fcn.14004b378
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010dab
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 0x140010df0
movzx ebx, dx
mov ecx, ebx
call fcn.14004b1a0
test rax, rax
je 0x140010dff
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005c00
mov rdi, qword [rsp + 0x40]
jmp 0x140010dff
lea rcx, [rsp + 0x40]
call fcn.140006080
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 0x140010e3a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x140010ebb
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 0x140010eab
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.140005e50
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140011010
call fcn.14004b378
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140010edb
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 0x140010f1b
movzx edi, dx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x140010f26
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005c00
jmp 0x140010f26
lea rcx, [rsp + 0x50]
call fcn.140006080
nop
lea rdx, [r14 + 0x290]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140006690
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 0x140010f74
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 0x140010f94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140011010
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 0x140011005
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.140005e50
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r15
mov rcx, rsi
call fcn.14000d860
test al, al
je 0x1400110cc
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400110bc
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x90]
call fcn.1400909e0
mov rbp, rax
test rax, rax
je 0x140011068
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.140005e50
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.140005e50
jmp 0x1400110cc
lea rdx, str.C:Program_FilesRealtek
mov rcx, rsi
call fcn.140006080
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400110ea
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.140090720
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret