Function at 0x140028c50
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, [0x1400868d0]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 2]
lea r8, [0x1400a73c8]
mov edx, 0x35b
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
xor r12b, r12b
mov rax, qword [rsi + 0x60]
cmp dword [rax - 0x10], edi
je 0x14002929a
lea eax, [rdi + 1]
cmp dword [rsi + 0x108], edi
jne 0x140028cd0
mov dword [rsi + 0x108], eax
mov rcx, rsi
call fcn.14002b6d0
mov ebx, eax
mov edx, eax
mov ecx, dword [rsi + 0x9c]
call fcn.14002b7a0
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, [0x1400a73c8]
mov edx, 0x368
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
mov ecx, dword [rsi + 0x9c]
cmp r13d, ecx
je 0x140028d6e
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, [0x1400a73c8]
mov edx, 0x36d
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
mov ecx, r13d
call fcn.140016220
mov rbx, rax
test rax, rax
je 0x140028ddd
mov edx, dword [rax + 0xc]
mov rcx, rsi
call fcn.140028880
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.1400292c0
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.140029450
xor dil, dil
xor ebx, ebx
mov r14d, ebx
or r15d, 0xffffffff
nop dword [rax]
cmp r14d, 0x1d
jge 0x140028ef4
call fcn.1400018d0
mov rcx, rax
test rax, rax
je 0x140028ee9
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.140013160
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 0x140028ea0
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 0x140028eb9
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 0x140028ed3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r14d
test dil, dil
mov ebx, 0
je 0x140028df0
jmp 0x140028f8c
mov ecx, 0x80004005
call fcn.1400015b0
int3
test dil, dil
jne 0x140028f8c
mov rdx, qword [rsi + 0x78]
test rdx, rdx
jne 0x140028f11
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rcx, qword [rsi + 0x88]
call fcn.140061b80
test eax, eax
je 0x140028f8c
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, [0x1400a73c8]
mov edx, 0x380
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
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.140029450
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, [0x1400a73c8]
mov edx, 0x384
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
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, [0x1400a73c8]
mov edx, 0x385
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
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, [0x1400a73c8]
mov edx, 0x386
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
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.14002c540
lea eax, [r13 - 7]
cmp eax, 4
jbe 0x140029179
xor dil, dil
mov r14d, ebx
nop
cmp r14d, 0x1d
jge 0x140029170
call fcn.1400018d0
mov rcx, rax
test rax, rax
je 0x140029165
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.140013160
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 0x140029120
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 0x14002914f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r14d
test dil, dil
mov ebx, 0
je 0x140029070
jmp 0x14002920f
mov ecx, 0x80004005
call fcn.1400015b0
int3
test dil, dil
jne 0x14002920f
mov rdx, qword [rsi + 0x80]
test rdx, rdx
jne 0x140029190
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rcx, qword [rsi + 0x90]
call fcn.140061b80
test eax, eax
je 0x14002920f
mov rax, qword [rbp - 0x49]
cmp dword [rax - 0x10], 0
jne 0x14002920f
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, [0x1400a73c8]
mov edx, 0x38e
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
mov rcx, qword [rsi + 0x90]
sub rcx, 0x18
call fcn.140002920
add rax, 0x18
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x19]
jmp 0x140029266
mov rax, qword [rsi + 0x70]
cmp dword [rax - 0x10], 0
je 0x140029271
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, [0x1400a73c8]
mov edx, 0x393
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
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.1400292c0
xor edx, edx
mov rcx, rsi
call fcn.14002abb0
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x14002929a
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