Function at 0x14006b4d0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x1401a4010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov dword [rsp + 0x6c], edx
mov r14d, ecx
test edx, edx
je 0x14006b525
call fcn.14006c370
test eax, eax
je 0x14006c2ef
call fcn.14002ce10
mov rdi, rax
test rax, rax
jne 0x14006b550
mov r8d, BSTR_UserMarshal
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140065460
jmp 0x14006c2ef
call fcn.140021ad0
mov rsi, rax
test rax, rax
jne 0x14006b565
mov r8d, reloc.OLEAUT32.dll_BSTR_UserFree
jmp 0x14006b538
mov edx, r14d
mov rcx, rsi
call fcn.14006c980
mov ebx, eax
cmp eax, 0x21
jae 0x14006c2cf
lea rdx, [rbx + rbx*2]
lea rsi, [rsi + rdx*4]
add rsi, 0xa0
je 0x14006c2cf
xor eax, eax
mov qword [rbp - 0x60], rax
xor r14d, r14d
mov qword [rbp - 0x68], r14
mov dword [rbp - 0x60], r14d
mov qword [rbp - 0x58], r14
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x14006c326
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp], rax
mov r9d, ebx
lea r8, str.SoftwareRealtekAudioGUI_INFORMATIONJackInfomation
lea rdx, str._sJack_d
lea rcx, [rbp]
call fcn.1400071a0
mov r9d, 0x2001f
mov rbx, qword [rbp]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.140029f10
lea r12, [r14 - 1]
test eax, eax
je 0x14006b64f
mov dword [rsp + 0x28], 0x2001f
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.14006c740
test eax, eax
je 0x14006b64f
mov rdx, rbx
lea rcx, str.CJackMgr::UpdateUIJackInfoToReg_:_Failed_to_create__s_n
call fcn.140065460
mov r8d, 0x139
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140065460
jmp 0x14006c2a0
mov dword [rsp + 0x70], r14d
mov r15d, dword [rsi + 4]
mov dword [rbp - 0x34], r14d
mov dword [rbp - 0x38], 4
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, str.JackStatus
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14006b6a2
mov ebx, r14d
mov eax, SafeArrayDestroy
cmp dword [rbp - 0x30], 4
cmovne ebx, eax
mov ecx, r15d
call fcn.14006af40
lea rax, [rdi + 0x10]
mov qword [rbp - 0x40], rax
mov rcx, rax
call fcn.140049450
movsxd rcx, r15d
imul r13, rcx, 0xb0
add r13, rdi
movzx r12d, word [r13 + reloc.OLEAUT32.dll_BSTR_UserUnmarshal]
mov eax, dword [rdi + rcx*4 + 0x8c]
mov dword [rbp - 0x28], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackStatusChangedWhenPowerDown
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp ebx, 2
jne 0x14006b73e
test bl, r12b
je 0x14006b73e
mov dword [rbp - 0x20], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 2]
xor r8d, r8d
lea rdx, str.JackStatusChangedWhenPowerDown
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [rsi + 8]
mov dword [rbp - 0x18], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackIconTypeColor
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, dword [r13 + 0x1a0]
mov r12d, dword [r13 + 0x1b0]
mov dword [rsp + 0x50], r12d
mov ebx, dword [r13 + 0x1b8]
mov dword [rsp + 0x74], ebx
mov ecx, r12d
shl ecx, 8
add ecx, 0x100
and ecx, 0xf00
mov eax, ebx
shl eax, 0xc
add eax, 0x1000
and eax, 0xf000
or ecx, eax
or ecx, esi
mov dword [rbp - 0x10], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackWidgetId
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test ebx, ebx
js 0x14006b823
mov ecx, ebx
call fcn.14008eac0
test eax, eax
jne 0x14006b823
mov dword [rbp - 8], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Docking
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x14006b834
lea rdx, str.Docking
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
movzx eax, word [r13 + reloc.OLEAUT32.dll_BSTR_UserUnmarshal]
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x70], r14d
mov dword [rbp - 0x6c], r14d
cmp r15d, dword [rdi + 0x68]
jae 0x14006b8b0
imul rcx, r15, 0xb0
cmp dword [rcx + rdi + 0x1ac], 0
je 0x14006b871
mov eax, dword [rcx + rdi + 0x1a4]
mov dword [rbp - 0x70], eax
mov eax, dword [rcx + rdi + 0x1a8]
jmp 0x14006b88b
mov eax, dword [rcx + rdi + 0x118]
shr eax, 8
and eax, 0xf
mov dword [rbp - 0x70], eax
mov eax, dword [rcx + rdi + 0x110]
and eax, 0xf
mov dword [rbp - 0x6c], eax
call fcn.14005b6d0
test rax, rax
je 0x14006b8b0
mov r10, qword [rax]
lea r9, [rbp - 0x6c]
lea r8, [rbp - 0x70]
mov edx, r15d
mov rcx, rax
call qword [r10 + 0x80]
test ebx, ebx
js 0x14006b8bd
mov r13d, dword [rdi + 0x171c]
jmp 0x14006b8c4
mov r13d, dword [rdi + 0x1710]
mov dword [rsp + 0x60], r13d
test ebx, ebx
js 0x14006b8d5
mov eax, dword [rdi + 0x1720]
jmp 0x14006b8db
mov eax, dword [rdi + 0x1714]
mov dword [rsp + 0x68], eax
test ebx, ebx
js 0x14006b8ef
mov edi, dword [rdi + 0x1724]
mov dword [rsp + 0x5c], edi
jmp 0x14006b8f9
mov eax, dword [rdi + 0x1718]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rbp - 0x40]
call fcn.1400494c0
mov edx, r14d
cmp esi, r13d
sete dl
mov ecx, dword [rbp - 0x70]
cmp ecx, 2
jne 0x14006b92e
mov eax, dword [rbp - 0x6c]
add eax, 0xfffffff6
cmp eax, 1
ja 0x14006b92e
mov r8d, 1
mov dword [rsp + 0x58], r8d
mov ecx, r14d
jmp 0x14006b94a
mov r8d, r14d
mov dword [rsp + 0x58], r14d
lea eax, [rcx - 8]
test eax, 0xfffffffd
je 0x14006b945
mov ecx, r14d
jmp 0x14006b94a
mov ecx, 1
mov dword [rsp + 0x64], ecx
cmp dword [0x1401ad8a8], 0
je 0x14006b9a3
cmp dword [0x1401ad8ac], 0
jne 0x14006b96d
mov rax, qword [0x1401a5308]
test byte [rax + 0x1c], 1
je 0x14006b9a3
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], esi
mov r9d, r15d
mov r8d, 0x18b
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_JackIdx_d_Wid_d_SecCodec_d_UsbCodec_d_bUAJ_d_bUAJHeadset_d_bUAJDedicatedMicOrLinein_d
call fcn.140065460
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp + 0x10]
call fcn.1400daa40
lea rcx, [rbp + 0x10]
call fcn.1400902f0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x40], xmm1
mov qword [rbp + 0x50], r14
mov dword [rbp + 0x58], 0xa
movdqa xmmword [rbp + 0x60], xmm0
movdqa xmmword [rbp + 0x70], xmm1
mov qword [rbp + 0x80], r14
mov dword [rbp + 0x88], 0xa
mov dword [rbp + 0x90], 0xffffffff
mov dword [rbp + 0x2c], r14d
mov dword [rbp + 0x28], r15d
lea rcx, [rbp + 0x10]
call fcn.14006d850
lea rcx, [rbp + 0x10]
call fcn.14006e140
test eax, eax
jne 0x14006ba34
mov r8d, 0x2eb
lea rdx, str.CJackReteskInfo::SetCurrSelPinIndex
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140065460
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x14006c331
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x48], rax
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x14006c33c
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x48]
call fcn.140004f90
lea rcx, [rbp - 0x40]
call fcn.140004f90
mov ebx, dword [rbp + 0x90]
mov dword [rsp + 0x54], ebx
mov r12d, r14d
mov dword [rbp - 0x78], r14d
mov r13, qword [rbp + 0x60]
lea r15, [0x140119b08]
test r13, r13
je 0x14006bc22
lea rdx, [0x140149618]
mov edi, dword [r13 + 0x10]
mov r13, qword [r13]
mov ecx, edi
shr ecx, 8
movzx r15d, dil
shl r15w, 8
movzx eax, cl
or r15w, ax
mov eax, edi
shr eax, 0x10
mov dword [rbp - 0x80], eax
mov rax, qword [rbp - 0x48]
test byte [rbp - 0x50], 8
je 0x14006bb80
lea rbx, [0x140119b08]
cmp dword [rax - 0x10], 0
cmovne rbx, rdx
movzx r9d, r15w
mov r8, rbx
lea rdx, str._s_04x
lea rcx, [rbp - 0x48]
call fcn.14006c640
movzx r9d, word [rbp - 0x80]
mov r8, rbx
lea rdx, str._s_d
lea rcx, [rbp - 0x40]
call fcn.14006c640
call fcn.14000b810
test dword [rax + 0x348], 0x4000000
je 0x14006bbd1
cmp dil, 2
jne 0x14006bbd1
and edi, 0xff00
lea eax, [rdi - 0xa00]
test eax, 0xfffffcff
jne 0x14006bbd1
cmp edi, 0xd00
je 0x14006bbd1
mov ebx, r12d
mov dword [rsp + 0x54], ebx
mov r9d, r12d
mov r8d, 0x1b8
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_NoWavesUINeedAutoDetectHeadset_dwJackRetaskListCurrSelectIndex_d
call fcn.140065460
jmp 0x14006bbd5
movzx r12d, cl
movzx ebx, dil
mov eax, dword [rbp - 0x6c]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r12d
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, 0x1bd
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RtskOptionData.nDeviceType_d_dwDevType_d_RtskOptionData.nSequence_d_dwSeq_d
call fcn.140065460
mov eax, dword [rbp - 0x70]
cmp ebx, eax
je 0x14006bbc7
test eax, eax
jne 0x14006bbcd
cmp ebx, 1
jne 0x14006bbcd
cmp r12d, dword [rbp - 0x6c]
je 0x14006bbee
mov r12d, dword [rbp - 0x78]
mov ebx, dword [rsp + 0x54]
inc r12d
mov dword [rbp - 0x78], r12d
test r13, r13
lea rdx, [0x140149618]
jne 0x14006bab0
jmp 0x14006bc1b
movzx r8d, r15w
lea rdx, str._04x
lea rcx, [rbp - 0x48]
call fcn.14006c640
movzx r8d, word [rbp - 0x80]
lea rdx, [0x140139c14]
lea rcx, [rbp - 0x40]
call fcn.14006c640
mov ebx, dword [rsp + 0x54]
lea r15, [0x140119b08]
mov rax, qword [rbp - 0x48]
mov r12, 0xffffffffffffffff
test rax, rax
je 0x14006bc73
mov rcx, r12
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x14006bc35
lea eax, [rcx*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.JackListTypeSequence
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x14006bc77
mov rdi, qword [rbp - 0x68]
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x14006bcb7
mov rcx, r12
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x14006bc83
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.JackListName
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov dword [rbp - 0x50], ebx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackListCurrSelectIndex
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x14006c347
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x80], rax
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140004bf0
test al, al
jne 0x14006bd3b
mov rax, r12
nop word [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x14006bd20
mov r8d, eax
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140004e70
nop
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x14006c352
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x78], rax
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.140004bf0
test al, al
jne 0x14006bd8b
mov rax, r12
nop dword [rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x14006bd70
mov r8d, eax
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.140004e70
nop
call fcn.14000b9e0
mov rcx, rax
call fcn.140095b00
call fcn.14000b9e0
mov rcx, rax
call fcn.140095aa0
mov rbx, rax
test rax, rax
je 0x14006bf39
mov r15d, dword [rsp + 0x74]
mov edi, dword [rsp + 0x5c]
mov r13d, dword [rsp + 0x50]
nop
call fcn.14000b9e0
call fcn.14000b9e0
test rbx, rbx
je 0x14006c31b
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x14006becf
cmp esi, dword [rsp + 0x60]
jne 0x14006be95
cmp dword [rsp + 0x58], 0
jne 0x14006be50
cmp dword [rsp + 0x64], 0
je 0x14006be95
mov r13d, dword [rsp + 0x50]
cmp r13d, dword [rdx + 0x188]
jne 0x14006becf
cmp r15d, dword [rdx + 0x180]
jne 0x14006becf
mov ecx, r14d
mov r8d, dword [rdx + 0x2a8]
test r8d, r8d
je 0x14006becf
lea rax, [rdx + 0x2ac]
cmp dword [rax], edi
je 0x14006bed9
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x14006be38
jmp 0x14006becf
mov r13d, dword [rsp + 0x50]
cmp r13d, dword [rdx + 0x188]
jne 0x14006becf
cmp r15d, dword [rdx + 0x180]
jne 0x14006becf
mov ecx, r14d
mov r8d, dword [rdx + 0x2a8]
test r8d, r8d
je 0x14006becf
lea rax, [rdx + 0x2ac]
nop dword [rax]
cmp dword [rax], esi
je 0x14006bf65
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x14006be80
jmp 0x14006becf
cmp r13d, dword [rdx + 0x188]
jne 0x14006becf
cmp r15d, dword [rdx + 0x180]
jne 0x14006becf
mov ecx, r14d
mov r8d, dword [rdx + 0x2a8]
test r8d, r8d
je 0x14006becf
lea rax, [rdx + 0x2ac]
nop dword [rax]
cmp dword [rax], esi
je 0x14006bed9
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x14006bec0
test rbx, rbx
je 0x14006bf35
jmp 0x14006bdc0
mov rbx, qword [rbp - 0x80]
mov rdx, qword [rdx + 0x10]
add rbx, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x14006bf35
cmp dword [rbx + 0x10], 0
jl 0x14006bf28
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14006bf28
call fcn.140007120
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14006bf1e
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x80], rax
jmp 0x14006bf35
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x80]
call fcn.140004e70
mov rdi, qword [rbp - 0x68]
call fcn.14000b9e0
mov ecx, dword [rax + 0x140]
sub ecx, 1
mov dword [rax + 0x140], ecx
jne 0x14006c0a4
mov rcx, qword [rax + 0x150]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14006c0c2
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x80]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14006bfc1
cmp dword [rbx + 0x10], 0
jl 0x14006bfb4
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14006bfb4
call fcn.140007120
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14006bfaa
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x80], rax
jmp 0x14006bfc1
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x80]
call fcn.140004e70
call fcn.14000b9e0
mov rcx, rax
call fcn.140095aa0
mov rbx, rax
test rax, rax
je 0x14006bf35
mov edi, dword [rsp + 0x68]
nop
call fcn.14000b9e0
call fcn.14000b9e0
test rbx, rbx
je 0x14006c35d
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x14006c036
cmp r13d, dword [rdx + 0x188]
jne 0x14006c036
cmp r15d, dword [rdx + 0x180]
jne 0x14006c036
mov ecx, r14d
mov r8d, dword [rdx + 0x2a8]
test r8d, r8d
je 0x14006c036
lea rax, [rdx + 0x2ac]
cmp dword [rax], edi
je 0x14006c041
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x14006c027
test rbx, rbx
je 0x14006bf35
jmp 0x14006bfe0
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14006bf35
cmp dword [rbx + 0x10], 0
jl 0x14006c097
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14006c097
call fcn.140007120
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14006c08a
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x78], rax
jmp 0x14006bf35
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x78]
jmp 0x14006bf30
cmp ecx, 0x32
jle 0x14006c0c2
mov r8d, 0x80
lea rdx, str.CMMPlatform::AudioDevList_Release
lea rcx, str._s__d_calling_AudioDevList_Release_isnt_matched_AudioDevList_AddRef_or_directly_return_in_EnumAudioDeviceStart_loop
call fcn.140065460
mov rax, qword [rbp - 0x80]
mov ebx, dword [rsp + 0x6c]
cmp dword [rax - 0x10], 0
je 0x14006c197
test ebx, ebx
jne 0x14006c0eb
cmp dword [rsp + 0x58], ebx
je 0x14006c0eb
mov rax, qword [rbp - 0x78]
cmp dword [rax - 0x10], ebx
je 0x14006c197
mov esi, 1
mov rcx, qword [rbp - 0x80]
mov rax, r12
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14006c100
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.EndpointId
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rax, qword [rbp - 0x78]
cmp dword [rax - 0x10], 0
jne 0x14006c151
lea rdx, str.EndpointIdForHiddenJack
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x14006c19b
mov rcx, qword [rbp - 0x78]
mov rax, r12
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14006c160
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.EndpointIdForHiddenJack
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x14006c19b
mov esi, dword [rsp + 0x70]
test rdi, rdi
je 0x14006c1ad
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x68], r14
mov dword [rbp - 0x60], r14d
cmp dword [0x1401ad8a8], 0
je 0x14006c202
cmp dword [0x1401ad8ac], 0
jne 0x14006c1d0
mov rax, qword [0x1401a5308]
test byte [rax + 0x1c], 1
je 0x14006c202
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8d, 0x226
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_FoundEp_d_AutoDetectHeadset_d_EpId_s_HeadsetMicEpId_s
call fcn.140065460
mov r14d, esi
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006c224
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006c243
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006c262
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006c281
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x60]
call fcn.14000c7b0
lea rcx, [rbp + 0x30]
call fcn.1400181d0
lea rcx, [rbp + 0x10]
call fcn.1400903d0
mov rbx, qword [rbp]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x14006c2bb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14006c2ca
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r14d
jmp 0x14006c2f1
mov dword [rsp + 0x20], ebx
mov r9d, r14d
mov r8d, reloc.OLEAUT32.dll_LPSAFEARRAY_UserMarshal
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_nPinIndex_d_nUIJackPinIndex_d
call fcn.140065460
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400d37a0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
int3