Function at 0x140026870
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xc8
mov qword [rbp + 7], 0xfffffffffffffffe
mov rsi, rcx
lea rax, str.UpdateSound__
mov qword [rsp + 0x30], rax
lea rax, [0x1400838d0]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 2]
lea r8, [0x1400a3128]
mov edx, 0x35a
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
xor r12b, r12b
mov rax, qword [rsi + 0x60]
cmp dword [rax - 0x10], edi
je 0x140026eba
lea eax, [rdi + 1]
cmp dword [rsi + 0x108], edi
jne 0x1400268f0
mov dword [rsi + 0x108], eax
mov rcx, rsi
call fcn.1400292b0
mov ebx, eax
mov edx, eax
mov ecx, dword [rsi + 0x9c]
call fcn.140029380
mov r13d, eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsi + 0x9c]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ebx
lea rax, str.UpdateSound______SurroundAudioInputUpdate:_channel_count___d__RetaskIndex___d__nAudioIndex___d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x367
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov ecx, dword [rsi + 0x9c]
cmp r13d, ecx
je 0x14002698e
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r13d
lea rax, str.Forcing_index__u_instead_of__u
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 3
lea r8, [0x1400a3128]
mov edx, 0x36c
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov ecx, r13d
call fcn.140013c80
mov rbx, rax
test rax, rax
je 0x1400269fd
mov edx, dword [rax + 0xc]
mov rcx, rsi
call fcn.1400264a0
mov edi, dword [rbx + 4]
mov ebx, dword [rbx + 8]
mov r12b, 1
mov rcx, qword [rsi + 0x80]
sub rcx, 0x18
call fcn.140002920
add rax, 0x18
mov qword [rbp - 0x41], rax
mov r8d, ebx
lea rdx, [rbp - 0x41]
mov rcx, rsi
call fcn.140026ee0
mov rcx, qword [rsi + 0x78]
sub rcx, 0x18
call fcn.140002920
add rax, 0x18
mov qword [rbp - 0x39], rax
mov r8d, edi
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.140027070
xor dil, dil
xor ebx, ebx
mov r14d, ebx
or r15d, 0xffffffff
nop dword [rax]
cmp r14d, 0x1d
jge 0x140026b14
call fcn.1400018d0
mov rcx, rax
test rax, rax
je 0x140026b09
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x31], rax
mov r9d, r14d
lea r8, str.OldRetaskIndex
lea rdx, str._s_d
lea rcx, [rbp - 0x31]
call fcn.1400108a0
mov dword [rbp + 0x67], ebx
mov qword [rbp - 0x59], rbx
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWaves_AudioMaxxAudioGeneral
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rbx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140026ac0
mov dword [rbp + 0x77], 4
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 1]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x67]
test eax, eax
je 0x140026ad9
add eax, 0xfffffff9
movzx edi, dil
cmp eax, 1
mov eax, 1
cmova edi, eax
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140026af3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r14d
test dil, dil
mov ebx, 0
je 0x140026a10
jmp 0x140026bac
mov ecx, 0x80004005
call fcn.1400015b0
int3
test dil, dil
jne 0x140026bac
mov rdx, qword [rsi + 0x78]
test rdx, rdx
jne 0x140026b31
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rcx, qword [rsi + 0x88]
call fcn.14005fa3c
test eax, eax
je 0x140026bac
mov rax, qword [rsi + 0x78]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x88]
mov qword [rsp + 0x30], rax
lea rax, str.Realtek_OldRenderEndPoint:_s___EndpointIdRender_:_s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x37f
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rcx, qword [rsi + 0x88]
sub rcx, 0x18
call fcn.140002920
add rax, 0x18
mov qword [rbp - 0x29], rax
xor r8d, r8d
lea rdx, [rbp - 0x29]
mov rcx, rsi
call fcn.140027070
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x30], rax
lea rax, str.Realtek_UpdateSound___:_EndpointId_________:_s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x383
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x30], rax
lea rax, str.Realtek_UpdateSound___:_OldCaptueEndPoint__:_s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x384
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rax, qword [rsi + 0x80]
mov qword [rsp + 0x30], rax
lea rax, str.Realtek_UpdateSound___:_EndpointIdCapture__:_s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x385
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rcx, qword [rsi + 0x80]
sub rcx, 0x18
call fcn.140002920
add rax, 0x18
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x49]
call fcn.14002a120
lea eax, [r13 - 7]
cmp eax, 4
jbe 0x140026d99
xor dil, dil
mov r14d, ebx
nop
cmp r14d, 0x1d
jge 0x140026d90
call fcn.1400018d0
mov rcx, rax
test rax, rax
je 0x140026d85
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x21], rax
mov r9d, r14d
lea r8, str.OldRetaskIndex
lea rdx, str._s_d
lea rcx, [rbp - 0x21]
call fcn.1400108a0
mov dword [rbp + 0x6f], ebx
mov qword [rbp - 0x51], rbx
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWaves_AudioMaxxAudioGeneral
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rbx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140026d40
mov dword [rbp + 0x7f], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 3]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x6f]
add eax, 0xfffffff9
movzx edi, dil
cmp eax, 4
mov eax, 1
cmovbe edi, eax
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140026d6f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r14d
test dil, dil
mov ebx, 0
je 0x140026c90
jmp 0x140026e2f
mov ecx, 0x80004005
call fcn.1400015b0
int3
test dil, dil
jne 0x140026e2f
mov rdx, qword [rsi + 0x80]
test rdx, rdx
jne 0x140026db0
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rcx, qword [rsi + 0x90]
call fcn.14005fa3c
test eax, eax
je 0x140026e2f
mov rax, qword [rbp - 0x49]
cmp dword [rax - 0x10], 0
jne 0x140026e2f
mov rax, qword [rsi + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x30], rax
lea rax, str.OldCaptureEndPoint:_s___EndpointIdCapture_:_s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x38d
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rcx, qword [rsi + 0x90]
sub rcx, 0x18
call fcn.140002920
add rax, 0x18
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x19]
jmp 0x140026e86
mov rax, qword [rsi + 0x70]
cmp dword [rax - 0x10], 0
je 0x140026e91
mov qword [rsp + 0x30], rax
lea rax, str.m_strOldHiddenCaptureEndpointId:_s_is_not_empty
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x392
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rcx, qword [rsi + 0x70]
sub rcx, 0x18
call fcn.140002920
add rax, 0x18
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x11]
xor r8d, r8d
mov rcx, rsi
call fcn.140026ee0
xor edx, edx
mov rcx, rsi
call fcn.140028790
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x140026eba
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
movzx eax, r12b
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret