Function at 0x140067b40
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 - 0xa0]
sub rsp, 0x1a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1f0], rbx
mov rax, qword [0x140162010]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov dword [rsp + 0x68], edx
mov r14d, ecx
test edx, edx
je 0x140067b95
call fcn.140068960
test eax, eax
je 0x1400688e1
call fcn.14002ae60
mov rdi, rax
test rax, rax
jne 0x140067bc0
mov r8d, BSTR_UserMarshal
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140061d00
jmp 0x1400688e1
call fcn.140020530
mov rsi, rax
test rax, rax
jne 0x140067bd5
mov r8d, reloc.OLEAUT32.dll_BSTR_UserFree
jmp 0x140067ba8
mov edx, r14d
mov rcx, rsi
call fcn.140068f70
mov ebx, eax
cmp eax, 0x21
jae 0x1400688c1
lea rdx, [rbx + rbx*2]
lea rsi, [rsi + rdx*4]
add rsi, 0xa0
je 0x1400688c1
xor eax, eax
mov qword [rbp - 0x68], rax
xor r15d, r15d
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], r15d
mov qword [rbp - 0x60], r15
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x140068918
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 8], rax
mov r9d, ebx
lea r8, str.SoftwareRealtekAudioGUI_INFORMATIONJackInfomation
lea rdx, str._sJack_d
lea rcx, [rbp - 8]
call fcn.140006bc0
mov r9d, 0x2001f
mov rbx, qword [rbp - 8]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x70]
call fcn.140027f60
lea r13, [r15 - 1]
test eax, eax
je 0x140067cbf
mov dword [rsp + 0x28], 0x2001f
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x70]
call fcn.140068d30
test eax, eax
je 0x140067cbf
mov rdx, rbx
lea rcx, str.CJackMgr::UpdateUIJackInfoToReg_:_Failed_to_create__s_n
call fcn.140061d00
mov r8d, 0x139
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140061d00
jmp 0x140068892
mov dword [rsp + 0x6c], r15d
mov r14d, dword [rsi + 4]
mov dword [rbp - 0x3c], r15d
mov dword [rbp - 0x40], 4
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.JackStatus
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140067d12
mov ebx, r15d
mov eax, SafeArrayDestroy
cmp dword [rbp - 0x38], 4
cmovne ebx, eax
mov ecx, r14d
call fcn.1400675b0
lea rcx, [rdi + 0x10]
call fcn.140047070
movsxd rcx, r14d
imul r15, rcx, 0xb0
add r15, rdi
movzx r12d, word [r15 + reloc.OLEAUT32.dll_BSTR_UserUnmarshal]
mov eax, dword [rdi + rcx*4 + 0x8c]
mov dword [rbp - 0x30], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackStatusChangedWhenPowerDown
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp ebx, 2
jne 0x140067da7
test bl, r12b
je 0x140067da7
mov dword [rbp - 0x28], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 2]
xor r8d, r8d
lea rdx, str.JackStatusChangedWhenPowerDown
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [rsi + 8]
mov dword [rbp - 0x20], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackIconTypeColor
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, dword [r15 + 0x1a0]
mov ebx, dword [r15 + 0x1b0]
mov dword [rsp + 0x50], ebx
mov r12d, dword [r15 + 0x1b8]
mov dword [rsp + 0x78], r12d
mov ecx, ebx
shl ecx, 8
add ecx, 0x100
and ecx, 0xf00
mov eax, r12d
shl eax, 0xc
add eax, 0x1000
and eax, 0xf000
or ecx, eax
or ecx, esi
mov dword [rbp - 0x18], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackWidgetId
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test r12d, r12d
js 0x140067e8e
mov ecx, r12d
call fcn.14008a620
test eax, eax
jne 0x140067e8e
mov dword [rbp - 0x10], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Docking
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x140067e9f
lea rdx, str.Docking
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
movzx eax, word [r15 + reloc.OLEAUT32.dll_BSTR_UserUnmarshal]
mov dword [rbp - 0x50], eax
xor r15d, r15d
mov dword [rbp - 0x80], r15d
mov dword [rbp - 0x7c], r15d
cmp r14d, dword [rdi + 0x68]
jae 0x140067f1e
imul rcx, r14, 0xb0
cmp dword [rcx + rdi + 0x1ac], r15d
je 0x140067edf
mov eax, dword [rcx + rdi + 0x1a4]
mov dword [rbp - 0x80], eax
mov eax, dword [rcx + rdi + 0x1a8]
jmp 0x140067ef9
mov eax, dword [rcx + rdi + 0x118]
shr eax, 8
and eax, 0xf
mov dword [rbp - 0x80], eax
mov eax, dword [rcx + rdi + 0x110]
and eax, 0xf
mov dword [rbp - 0x7c], eax
call fcn.140058670
test rax, rax
je 0x140067f1e
mov r10, qword [rax]
lea r9, [rbp - 0x7c]
lea r8, [rbp - 0x80]
mov edx, r14d
mov rcx, rax
call qword [r10 + 0x80]
test r12d, r12d
js 0x140067f2b
mov eax, dword [rdi + 0x171c]
jmp 0x140067f31
mov eax, dword [rdi + 0x1710]
mov dword [rsp + 0x54], eax
test r12d, r12d
js 0x140067f42
mov eax, dword [rdi + 0x1720]
jmp 0x140067f48
mov eax, dword [rdi + 0x1714]
mov dword [rsp + 0x64], eax
test r12d, r12d
js 0x140067f61
mov ebx, dword [rdi + 0x1724]
mov dword [rsp + 0x5c], ebx
mov ebx, dword [rsp + 0x50]
jmp 0x140067f6b
mov eax, dword [rdi + 0x1718]
mov dword [rsp + 0x5c], eax
lea rcx, [rdi + 0x10]
call fcn.1400470e0
mov edx, r15d
cmp esi, dword [rsp + 0x54]
sete dl
mov ecx, dword [rbp - 0x80]
cmp ecx, 2
jne 0x140067fa1
mov eax, dword [rbp - 0x7c]
add eax, 0xfffffff6
cmp eax, 1
ja 0x140067fa1
mov r8d, 1
mov dword [rsp + 0x58], r8d
mov ecx, r15d
jmp 0x140067fbd
mov r8d, r15d
mov dword [rsp + 0x58], r15d
lea eax, [rcx - 8]
test eax, 0xfffffffd
je 0x140067fb8
mov ecx, r15d
jmp 0x140067fbd
mov ecx, 1
mov dword [rsp + 0x60], ecx
cmp dword [0x140169dd8], r15d
je 0x140068016
cmp dword [0x140169da4], r15d
jne 0x140067fe0
mov rax, qword [0x1401631e0]
test byte [rax + 0x1c], 1
je 0x140068016
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], esi
mov r9d, r14d
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.140061d00
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp]
call fcn.1400cc120
lea rcx, [rbp]
call fcn.14008be50
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x30], xmm1
mov qword [rbp + 0x40], r15
mov dword [rbp + 0x48], 0xa
movdqa xmmword [rbp + 0x50], xmm0
movdqa xmmword [rbp + 0x60], xmm1
mov qword [rbp + 0x70], r15
mov dword [rbp + 0x78], 0xa
mov dword [rbp + 0x80], r13d
mov dword [rbp + 0x1c], r15d
mov dword [rbp + 0x18], r14d
lea rcx, [rbp]
call fcn.140069e40
lea rcx, [rbp]
call fcn.14006a730
test eax, eax
jne 0x14006809e
mov r8d, 0x2eb
lea rdx, str.CJackReteskInfo::SetCurrSelPinIndex
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140061d00
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x140068923
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x58], rax
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x14006892e
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x58]
call fcn.140004a00
lea rcx, [rbp - 0x48]
call fcn.140004a00
mov rdi, qword [rbp + 0x50]
mov rbx, qword [rbp - 0x58]
test rdi, rdi
je 0x140068211
lea r9, [0x140116540]
mov r8d, dword [rbp - 0x80]
mov ecx, dword [rdi + 0x10]
mov rdi, qword [rdi]
mov edx, ecx
shr edx, 8
movzx r12d, cl
shl r12w, 8
movzx eax, dl
or r12w, ax
mov r13d, ecx
shr r13d, 0x10
mov eax, dword [rbx - 0x10]
test byte [rbp - 0x50], 8
je 0x140068179
lea rbx, [0x1400ea068]
test eax, eax
cmovne rbx, r9
movzx r9d, r12w
mov r8, rbx
lea rdx, str._s_04x
lea rcx, [rbp - 0x58]
call fcn.140068c30
mov r9d, r13d
mov r8, rbx
lea rdx, str._s_d
lea rcx, [rbp - 0x48]
call fcn.140068c30
mov r8d, dword [rbp - 0x80]
mov rbx, qword [rbp - 0x58]
jmp 0x1400681c8
movzx r15d, dl
movzx r14d, cl
mov eax, dword [rbp - 0x7c]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r8d
mov r9d, r14d
mov r8d, 0x1ad
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RtskOptionData.nDeviceType_d_dwDevType_d_RtskOptionData.nSequence_d_dwSeq_d
call fcn.140061d00
mov r8d, dword [rbp - 0x80]
cmp r14d, r8d
je 0x1400681c2
test r8d, r8d
jne 0x1400681c8
cmp r14d, 1
jne 0x1400681c8
cmp r15d, dword [rbp - 0x7c]
je 0x1400681da
test rdi, rdi
lea r9, [0x140116540]
jne 0x14006810a
jmp 0x140068205
movzx r8d, r12w
lea rdx, str._04x
lea rcx, [rbp - 0x58]
call fcn.140068c30
mov r8d, r13d
lea rdx, [0x140106dec]
lea rcx, [rbp - 0x48]
call fcn.140068c30
mov rbx, qword [rbp - 0x58]
xor r15d, r15d
mov r12d, dword [rsp + 0x78]
lea r13, [r15 - 1]
test rbx, rbx
je 0x14006825a
mov rax, r13
nop dword [rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x140068220
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.JackListTypeSequence
mov rdi, qword [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x14006825e
mov rdi, qword [rbp - 0x70]
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x1400682a4
mov rcx, r13
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x140068270
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 eax, dword [rbp + 0x80]
mov dword [rbp - 0x50], eax
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.140004ea0
mov rcx, rax
test rax, rax
je 0x140068939
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rbx, [0x1400ea068]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140004660
test al, al
jne 0x14006832d
mov rax, r13
inc rax
cmp word [rbx + rax*2], 0
jne 0x140068312
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400048e0
nop
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x140068944
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x78], rax
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140004660
test al, al
jne 0x14006837a
mov rax, r13
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140068360
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.1400048e0
nop
call fcn.14000b440
mov rcx, rax
call fcn.140091640
call fcn.14000b440
mov rcx, rax
call fcn.1400915e0
mov rbx, rax
test rax, rax
je 0x14006852c
mov edi, dword [rsp + 0x5c]
mov r14d, dword [rsp + 0x50]
nop dword [rax]
call fcn.14000b440
call fcn.14000b440
test rbx, rbx
je 0x14006890d
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x1400684bf
cmp esi, dword [rsp + 0x54]
jne 0x140068485
cmp dword [rsp + 0x58], 0
jne 0x140068440
cmp dword [rsp + 0x60], 0
je 0x140068485
mov r14d, dword [rsp + 0x50]
cmp r14d, dword [rdx + 0x188]
jne 0x1400684bf
cmp r12d, dword [rdx + 0x180]
jne 0x1400684bf
mov ecx, r15d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x1400684bf
lea rax, [rdx + 0x22c]
cmp dword [rax], edi
je 0x1400684c9
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140068428
jmp 0x1400684bf
mov r14d, dword [rsp + 0x50]
cmp r14d, dword [rdx + 0x188]
jne 0x1400684bf
cmp r12d, dword [rdx + 0x180]
jne 0x1400684bf
mov ecx, r15d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x1400684bf
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], esi
je 0x140068558
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140068470
jmp 0x1400684bf
cmp r14d, dword [rdx + 0x188]
jne 0x1400684bf
cmp r12d, dword [rdx + 0x180]
jne 0x1400684bf
mov ecx, r15d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x1400684bf
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], esi
je 0x1400684c9
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x1400684b0
test rbx, rbx
je 0x140068528
jmp 0x1400683b0
mov rbx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x10]
add rbx, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x140068528
cmp dword [rbx + 0x10], 0
jl 0x14006851a
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14006851a
call fcn.140006b40
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14006850f
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x140068528
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.1400048e0
mov rdi, qword [rbp - 0x70]
call fcn.14000b440
mov ecx, dword [rax + 0x140]
sub ecx, 1
mov dword [rax + 0x140], ecx
jne 0x14006869d
mov rcx, qword [rax + 0x150]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x1400686bb
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400685b7
cmp dword [rbx + 0x10], 0
jl 0x1400685a9
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400685a9
call fcn.140006b40
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14006859e
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x1400685b7
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.1400048e0
call fcn.14000b440
mov rcx, rax
call fcn.1400915e0
mov rbx, rax
test rax, rax
je 0x140068528
mov edi, dword [rsp + 0x64]
call fcn.14000b440
call fcn.14000b440
test rbx, rbx
je 0x14006894f
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x14006862f
cmp r14d, dword [rdx + 0x188]
jne 0x14006862f
cmp r12d, dword [rdx + 0x180]
jne 0x14006862f
mov ecx, r15d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x14006862f
lea rax, [rdx + 0x22c]
nop dword [rax + rax]
cmp dword [rax], edi
je 0x14006863a
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140068620
test rbx, rbx
je 0x140068528
jmp 0x1400685d4
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140068528
cmp dword [rbx + 0x10], 0
jl 0x140068690
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140068690
call fcn.140006b40
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140068683
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 0x140068528
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x78]
jmp 0x140068523
cmp ecx, 0x32
jle 0x1400686bb
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.140061d00
mov rax, qword [rsp + 0x78]
mov ebx, dword [rsp + 0x68]
cmp dword [rax - 0x10], 0
je 0x140068787
test ebx, ebx
jne 0x1400686e5
cmp dword [rsp + 0x58], ebx
je 0x1400686e5
mov rax, qword [rbp - 0x78]
cmp dword [rax - 0x10], ebx
je 0x140068787
mov esi, 1
mov rcx, qword [rsp + 0x78]
mov rax, r13
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400686f2
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
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 0x140068744
lea rdx, str.EndpointIdForHiddenJack
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x14006878b
mov rcx, qword [rbp - 0x78]
mov rax, r13
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140068750
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 0x14006878b
mov esi, dword [rsp + 0x6c]
test rdi, rdi
je 0x14006879d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], r15d
cmp dword [0x140169dd8], 0
je 0x1400687f3
cmp dword [0x140169da4], 0
jne 0x1400687c0
mov rax, qword [0x1401631e0]
test byte [rax + 0x1c], 1
je 0x1400687f3
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8d, 0x216
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_FoundEp_d_AutoDetectHeadset_d_EpId_s_HeadsetMicEpId_s
call fcn.140061d00
mov r15d, esi
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140068815
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140068835
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, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140068854
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140068873
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x50]
call fcn.14000c1f0
lea rcx, [rbp + 0x20]
call fcn.140017730
lea rcx, [rbp]
call fcn.14008bf30
mov rbx, qword [rbp - 8]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x1400688ad
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400688bc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r15d
jmp 0x1400688e3
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.140061d00
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400c5860
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
int3