Function at 0x140009b90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov rax, qword [0x140076bc8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x68], rdx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
call fcn.140021e08
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140009bf5
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea r13, [0x1400582df]
or rbx, 0xffffffffffffffff
test r13, 0xffffffffffff0000
jne 0x140009c36
movzx edi, r13w
mov ecx, edi
call fcn.140021df4
test rax, rax
je 0x140009c53
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.140002ef0
jmp 0x140009c53
xor eax, eax
mov rcx, rbx
mov rdi, r13
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r13
mov rcx, rsi
call fcn.140003070
nop
mov dword [rsp + 0x40], 1
call fcn.140021e08
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140009c7b
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
cmp dword [rbp + 0xeed4], 0
jne 0x140009df1
lea rdx, [rbp + 0x290]
lea r8, str.RealtekInstallShield
lea rcx, [rsp + 0x50]
call fcn.1400033b0
lea r8, [rsp + 0x38]
mov rdx, qword [rax]
mov edi, 0x80000002
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
sete bpl
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140009ceb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
test bpl, bpl
je 0x140009d62
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x104
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
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_RegQueryValueExA]
test eax, eax
jne 0x140009d52
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140003070
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140009f42
lea r8, [rsp + 0x38]
lea rdx, str.SoftwareWow6432NodeRealtekAudioInstaller
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140009f42
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x104
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
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_RegQueryValueExA]
test eax, eax
jne 0x140009de1
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140003070
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140009f42
lea r8, [rsp + 0x38]
lea rdx, str.SoftwareWow6432NodeRealtekAudioInstaller
mov edi, 0x80000002
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140009e81
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x104
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
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_RegQueryValueExA]
test eax, eax
jne 0x140009e71
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140003070
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140009f42
lea rdx, [rbp + 0x290]
lea r8, str.RealtekInstallShield
lea rcx, [rsp + 0x58]
call fcn.1400033b0
lea r8, [rsp + 0x38]
mov rdx, qword [rax]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140009ed0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
test dil, dil
je 0x140009f42
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x104
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
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_RegQueryValueExA]
test eax, eax
jne 0x140009f37
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140003070
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r13
mov rcx, qword [rsi]
call fcn.14003d210
test eax, eax
sete al
test al, al
je 0x140009fff
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140009fda
mov edx, 0x5c
lea rcx, [rsp + 0x70]
call fcn.14003ca00
mov rbp, rax
test rax, rax
je 0x140009f99
xor eax, eax
mov rcx, rbx
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
lea r12, [rcx - 1]
mov r8d, r12d
mov rdx, rbp
lea rcx, [rsp + 0x48]
call fcn.140003070
lea rdx, [rsp + 0x70]
sub ebp, edx
movsxd rax, ebp
mov byte [rsp + rax + 0x70], 0
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140003070
jmp 0x140009fff
xor eax, eax
mov rcx, rbx
lea rdi, str.C:Program_FilesRealtek
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.C:Program_FilesRealtek
mov rcx, rsi
call fcn.140003070
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14000a01d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rax, rsi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14003bc70
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret