Function at 0x14006a9c0
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 [0x14019b010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov dword [rsp + 0x6c], edx
mov r14d, ecx
test edx, edx
je 0x14006aa15
call fcn.14006b860
test eax, eax
je 0x14006b7df
call fcn.14002c780
mov rdi, rax
test rax, rax
jne 0x14006aa40
mov r8d, BSTR_UserMarshal
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
jmp 0x14006b7df
call fcn.140021650
mov rsi, rax
test rax, rax
jne 0x14006aa55
mov r8d, reloc.OLEAUT32.dll_BSTR_UserFree
jmp 0x14006aa28
mov edx, r14d
mov rcx, rsi
call fcn.14006be70
mov ebx, eax
cmp eax, 0x21
jae 0x14006b7bf
lea rdx, [rbx + rbx*2]
lea rsi, [rsi + rdx*4]
add rsi, 0xa0
je 0x14006b7bf
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 0x14006b816
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.1400298b0
lea r12, [r14 - 1]
test eax, eax
je 0x14006ab3f
mov dword [rsp + 0x28], 0x2001f
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.14006bc30
test eax, eax
je 0x14006ab3f
mov rdx, rbx
lea rcx, str.CJackMgr::UpdateUIJackInfoToReg_:_Failed_to_create__s_n
call fcn.140064950
mov r8d, 0x139
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
jmp 0x14006b790
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 0x14006ab92
mov ebx, r14d
mov eax, SafeArrayDestroy
cmp dword [rbp - 0x30], 4
cmovne ebx, eax
mov ecx, r15d
call fcn.14006a430
lea rax, [rdi + 0x10]
mov qword [rbp - 0x40], rax
mov rcx, rax
call fcn.140048b70
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 0x14006ac2e
test bl, r12b
je 0x14006ac2e
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 0x14006ad13
mov ecx, ebx
call fcn.14008def0
test eax, eax
jne 0x14006ad13
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 0x14006ad24
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 0x14006ada0
imul rcx, r15, 0xb0
cmp dword [rcx + rdi + 0x1ac], 0
je 0x14006ad61
mov eax, dword [rcx + rdi + 0x1a4]
mov dword [rbp - 0x70], eax
mov eax, dword [rcx + rdi + 0x1a8]
jmp 0x14006ad7b
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.14005ab10
test rax, rax
je 0x14006ada0
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 0x14006adad
mov r13d, dword [rdi + 0x171c]
jmp 0x14006adb4
mov r13d, dword [rdi + 0x1710]
mov dword [rsp + 0x60], r13d
test ebx, ebx
js 0x14006adc5
mov eax, dword [rdi + 0x1720]
jmp 0x14006adcb
mov eax, dword [rdi + 0x1714]
mov dword [rsp + 0x68], eax
test ebx, ebx
js 0x14006addf
mov edi, dword [rdi + 0x1724]
mov dword [rsp + 0x5c], edi
jmp 0x14006ade9
mov eax, dword [rdi + 0x1718]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rbp - 0x40]
call fcn.140048be0
mov edx, r14d
cmp esi, r13d
sete dl
mov ecx, dword [rbp - 0x70]
cmp ecx, 2
jne 0x14006ae1e
mov eax, dword [rbp - 0x6c]
add eax, 0xfffffff6
cmp eax, 1
ja 0x14006ae1e
mov r8d, 1
mov dword [rsp + 0x58], r8d
mov ecx, r14d
jmp 0x14006ae3a
mov r8d, r14d
mov dword [rsp + 0x58], r14d
lea eax, [rcx - 8]
test eax, 0xfffffffd
je 0x14006ae35
mov ecx, r14d
jmp 0x14006ae3a
mov ecx, 1
mov dword [rsp + 0x64], ecx
cmp dword [0x1401a48a0], 0
je 0x14006ae93
cmp dword [0x1401a48a4], 0
jne 0x14006ae5d
mov rax, qword [0x14019c308]
test byte [rax + 0x1c], 1
je 0x14006ae93
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.140064950
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp + 0x10]
call fcn.1400d54b0
lea rcx, [rbp + 0x10]
call fcn.14008f720
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.14006cd40
lea rcx, [rbp + 0x10]
call fcn.14006d630
test eax, eax
jne 0x14006af24
mov r8d, 0x2eb
lea rdx, str.CJackReteskInfo::SetCurrSelPinIndex
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140064950
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x14006b821
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 0x14006b82c
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, [0x140114aa8]
test r13, r13
je 0x14006b112
lea rdx, [0x140143cf8]
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 0x14006b070
lea rbx, [0x140114aa8]
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.14006bb30
movzx r9d, word [rbp - 0x80]
mov r8, rbx
lea rdx, str._s_d
lea rcx, [rbp - 0x40]
call fcn.14006bb30
call fcn.14000b810
test dword [rax + 0x348], 0x4000000
je 0x14006b0c1
cmp dil, 2
jne 0x14006b0c1
and edi, 0xff00
lea eax, [rdi - 0xa00]
test eax, 0xfffffcff
jne 0x14006b0c1
cmp edi, 0xd00
je 0x14006b0c1
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.140064950
jmp 0x14006b0c5
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.140064950
mov eax, dword [rbp - 0x70]
cmp ebx, eax
je 0x14006b0b7
test eax, eax
jne 0x14006b0bd
cmp ebx, 1
jne 0x14006b0bd
cmp r12d, dword [rbp - 0x6c]
je 0x14006b0de
mov r12d, dword [rbp - 0x78]
mov ebx, dword [rsp + 0x54]
inc r12d
mov dword [rbp - 0x78], r12d
test r13, r13
lea rdx, [0x140143cf8]
jne 0x14006afa0
jmp 0x14006b10b
movzx r8d, r15w
lea rdx, str._04x
lea rcx, [rbp - 0x48]
call fcn.14006bb30
movzx r8d, word [rbp - 0x80]
lea rdx, [0x140134510]
lea rcx, [rbp - 0x40]
call fcn.14006bb30
mov ebx, dword [rsp + 0x54]
lea r15, [0x140114aa8]
mov rax, qword [rbp - 0x48]
mov r12, 0xffffffffffffffff
test rax, rax
je 0x14006b163
mov rcx, r12
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x14006b125
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 0x14006b167
mov rdi, qword [rbp - 0x68]
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x14006b1a7
mov rcx, r12
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x14006b173
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 0x14006b837
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 0x14006b22b
mov rax, r12
nop word [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x14006b210
mov r8d, eax
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140004e70
nop
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x14006b842
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 0x14006b27b
mov rax, r12
nop dword [rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x14006b260
mov r8d, eax
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.140004e70
nop
call fcn.14000b9e0
mov rcx, rax
call fcn.140094f30
call fcn.14000b9e0
mov rcx, rax
call fcn.140094ed0
mov rbx, rax
test rax, rax
je 0x14006b429
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 0x14006b80b
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x14006b3bf
cmp esi, dword [rsp + 0x60]
jne 0x14006b385
cmp dword [rsp + 0x58], 0
jne 0x14006b340
cmp dword [rsp + 0x64], 0
je 0x14006b385
mov r13d, dword [rsp + 0x50]
cmp r13d, dword [rdx + 0x188]
jne 0x14006b3bf
cmp r15d, dword [rdx + 0x180]
jne 0x14006b3bf
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x14006b3bf
lea rax, [rdx + 0x22c]
cmp dword [rax], edi
je 0x14006b3c9
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x14006b328
jmp 0x14006b3bf
mov r13d, dword [rsp + 0x50]
cmp r13d, dword [rdx + 0x188]
jne 0x14006b3bf
cmp r15d, dword [rdx + 0x180]
jne 0x14006b3bf
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x14006b3bf
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], esi
je 0x14006b455
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x14006b370
jmp 0x14006b3bf
cmp r13d, dword [rdx + 0x188]
jne 0x14006b3bf
cmp r15d, dword [rdx + 0x180]
jne 0x14006b3bf
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x14006b3bf
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], esi
je 0x14006b3c9
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x14006b3b0
test rbx, rbx
je 0x14006b425
jmp 0x14006b2b0
mov rbx, qword [rbp - 0x80]
mov rdx, qword [rdx + 0x10]
add rbx, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x14006b425
cmp dword [rbx + 0x10], 0
jl 0x14006b418
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14006b418
call fcn.140007120
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14006b40e
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 0x14006b425
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 0x14006b594
mov rcx, qword [rax + 0x150]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14006b5b2
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x80]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14006b4b1
cmp dword [rbx + 0x10], 0
jl 0x14006b4a4
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14006b4a4
call fcn.140007120
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14006b49a
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 0x14006b4b1
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x80]
call fcn.140004e70
call fcn.14000b9e0
mov rcx, rax
call fcn.140094ed0
mov rbx, rax
test rax, rax
je 0x14006b425
mov edi, dword [rsp + 0x68]
nop
call fcn.14000b9e0
call fcn.14000b9e0
test rbx, rbx
je 0x14006b84d
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x14006b526
cmp r13d, dword [rdx + 0x188]
jne 0x14006b526
cmp r15d, dword [rdx + 0x180]
jne 0x14006b526
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x14006b526
lea rax, [rdx + 0x22c]
cmp dword [rax], edi
je 0x14006b531
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x14006b517
test rbx, rbx
je 0x14006b425
jmp 0x14006b4d0
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14006b425
cmp dword [rbx + 0x10], 0
jl 0x14006b587
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14006b587
call fcn.140007120
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14006b57a
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 0x14006b425
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x78]
jmp 0x14006b420
cmp ecx, 0x32
jle 0x14006b5b2
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.140064950
mov rax, qword [rbp - 0x80]
mov ebx, dword [rsp + 0x6c]
cmp dword [rax - 0x10], 0
je 0x14006b687
test ebx, ebx
jne 0x14006b5db
cmp dword [rsp + 0x58], ebx
je 0x14006b5db
mov rax, qword [rbp - 0x78]
cmp dword [rax - 0x10], ebx
je 0x14006b687
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 0x14006b5f0
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 0x14006b641
lea rdx, str.EndpointIdForHiddenJack
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x14006b68b
mov rcx, qword [rbp - 0x78]
mov rax, r12
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14006b650
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 0x14006b68b
mov esi, dword [rsp + 0x70]
test rdi, rdi
je 0x14006b69d
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 [0x1401a48a0], 0
je 0x14006b6f2
cmp dword [0x1401a48a4], 0
jne 0x14006b6c0
mov rax, qword [0x14019c308]
test byte [rax + 0x1c], 1
je 0x14006b6f2
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.140064950
mov r14d, esi
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006b714
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 0x14006b733
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 0x14006b752
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 0x14006b771
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.140017f70
lea rcx, [rbp + 0x10]
call fcn.14008f800
mov rbx, qword [rbp]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x14006b7ab
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 0x14006b7ba
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r14d
jmp 0x14006b7e1
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.140064950
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400ce210
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