Function at 0x140064fe0
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 [0x14015b010]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov dword [rsp + 0x68], edx
mov r14d, ecx
test edx, edx
je 0x140065035
call fcn.140065e00
test eax, eax
je 0x140065d81
call fcn.14002a380
mov rdi, rax
test rax, rax
jne 0x140065060
mov r8d, BSTR_UserMarshal
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
jmp 0x140065d81
call fcn.140020610
mov rsi, rax
test rax, rax
jne 0x140065075
mov r8d, reloc.OLEAUT32.dll_BSTR_UserFree
jmp 0x140065048
mov edx, r14d
mov rcx, rsi
call fcn.1400663d0
mov ebx, eax
cmp eax, 0x21
jae 0x140065d61
lea rdx, [rbx + rbx*2]
lea rsi, [rsi + rdx*4]
add rsi, 0xa0
je 0x140065d61
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 0x140065db8
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.140027bc0
lea r13, [r15 - 1]
test eax, eax
je 0x14006515f
mov dword [rsp + 0x28], 0x2001f
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x70]
call fcn.140066190
test eax, eax
je 0x14006515f
mov rdx, rbx
lea rcx, str.CJackMgr::UpdateUIJackInfoToReg_:_Failed_to_create__s_n
call fcn.14005f240
mov r8d, 0x139
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
jmp 0x140065d32
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 0x1400651b2
mov ebx, r15d
mov eax, SafeArrayDestroy
cmp dword [rbp - 0x38], 4
cmovne ebx, eax
mov ecx, r14d
call fcn.140064a50
lea rcx, [rdi + 0x10]
call fcn.140045400
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 0x140065247
test bl, r12b
je 0x140065247
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 0x14006532e
mov ecx, r12d
call fcn.1400877a0
test eax, eax
jne 0x14006532e
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 0x14006533f
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 0x1400653be
imul rcx, r14, 0xb0
cmp dword [rcx + rdi + 0x1ac], r15d
je 0x14006537f
mov eax, dword [rcx + rdi + 0x1a4]
mov dword [rbp - 0x80], eax
mov eax, dword [rcx + rdi + 0x1a8]
jmp 0x140065399
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.1400569d0
test rax, rax
je 0x1400653be
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 0x1400653cb
mov eax, dword [rdi + 0x171c]
jmp 0x1400653d1
mov eax, dword [rdi + 0x1710]
mov dword [rsp + 0x54], eax
test r12d, r12d
js 0x1400653e2
mov eax, dword [rdi + 0x1720]
jmp 0x1400653e8
mov eax, dword [rdi + 0x1714]
mov dword [rsp + 0x64], eax
test r12d, r12d
js 0x140065401
mov ebx, dword [rdi + 0x1724]
mov dword [rsp + 0x5c], ebx
mov ebx, dword [rsp + 0x50]
jmp 0x14006540b
mov eax, dword [rdi + 0x1718]
mov dword [rsp + 0x5c], eax
lea rcx, [rdi + 0x10]
call fcn.140045460
mov edx, r15d
cmp esi, dword [rsp + 0x54]
sete dl
mov ecx, dword [rbp - 0x80]
cmp ecx, 2
jne 0x140065441
mov eax, dword [rbp - 0x7c]
add eax, 0xfffffff6
cmp eax, 1
ja 0x140065441
mov r8d, 1
mov dword [rsp + 0x58], r8d
mov ecx, r15d
jmp 0x14006545d
mov r8d, r15d
mov dword [rsp + 0x58], r15d
lea eax, [rcx - 8]
test eax, 0xfffffffd
je 0x140065458
mov ecx, r15d
jmp 0x14006545d
mov ecx, 1
mov dword [rsp + 0x60], ecx
cmp dword [0x140162d94], r15d
je 0x1400654b6
cmp dword [0x140162d90], r15d
jne 0x140065480
mov rax, qword [0x14015c1e0]
test byte [rax + 0x1c], 1
je 0x1400654b6
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.14005f240
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp]
call fcn.1400c71e0
lea rcx, [rbp]
call fcn.140088fd0
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.140067290
lea rcx, [rbp]
call fcn.140067b60
test eax, eax
jne 0x14006553e
mov r8d, 0x2eb
lea rdx, str.CJackReteskInfo::SetCurrSelPinIndex
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14005f240
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x140065dc3
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 0x140065dce
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 0x1400656b1
lea r9, [0x140110260]
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 0x140065619
lea rbx, [0x1400e4fe8]
test eax, eax
cmovne rbx, r9
movzx r9d, r12w
mov r8, rbx
lea rdx, str._s_04x
lea rcx, [rbp - 0x58]
call fcn.140066090
mov r9d, r13d
mov r8, rbx
lea rdx, str._s_d
lea rcx, [rbp - 0x48]
call fcn.140066090
mov r8d, dword [rbp - 0x80]
mov rbx, qword [rbp - 0x58]
jmp 0x140065668
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.14005f240
mov r8d, dword [rbp - 0x80]
cmp r14d, r8d
je 0x140065662
test r8d, r8d
jne 0x140065668
cmp r14d, 1
jne 0x140065668
cmp r15d, dword [rbp - 0x7c]
je 0x14006567a
test rdi, rdi
lea r9, [0x140110260]
jne 0x1400655aa
jmp 0x1400656a5
movzx r8d, r12w
lea rdx, str._04x
lea rcx, [rbp - 0x58]
call fcn.140066090
mov r8d, r13d
lea rdx, [0x140100d50]
lea rcx, [rbp - 0x48]
call fcn.140066090
mov rbx, qword [rbp - 0x58]
xor r15d, r15d
mov r12d, dword [rsp + 0x78]
lea r13, [r15 - 1]
test rbx, rbx
je 0x1400656fa
mov rax, r13
nop dword [rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x1400656c0
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 0x1400656fe
mov rdi, qword [rbp - 0x70]
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x140065744
mov rcx, r13
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x140065710
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 0x140065dd9
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rbx, [0x1400e4fe8]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140004660
test al, al
jne 0x1400657cd
mov rax, r13
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400657b2
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400048e0
nop
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x140065de4
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 0x14006581a
mov rax, r13
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140065800
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.1400048e0
nop
call fcn.14000b520
mov rcx, rax
call fcn.14008e7c0
call fcn.14000b520
mov rcx, rax
call fcn.14008e760
mov rbx, rax
test rax, rax
je 0x1400659cc
mov edi, dword [rsp + 0x5c]
mov r14d, dword [rsp + 0x50]
nop dword [rax]
call fcn.14000b520
call fcn.14000b520
test rbx, rbx
je 0x140065dad
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x14006595f
cmp esi, dword [rsp + 0x54]
jne 0x140065925
cmp dword [rsp + 0x58], 0
jne 0x1400658e0
cmp dword [rsp + 0x60], 0
je 0x140065925
mov r14d, dword [rsp + 0x50]
cmp r14d, dword [rdx + 0x188]
jne 0x14006595f
cmp r12d, dword [rdx + 0x180]
jne 0x14006595f
mov ecx, r15d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x14006595f
lea rax, [rdx + 0x22c]
cmp dword [rax], edi
je 0x140065969
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x1400658c8
jmp 0x14006595f
mov r14d, dword [rsp + 0x50]
cmp r14d, dword [rdx + 0x188]
jne 0x14006595f
cmp r12d, dword [rdx + 0x180]
jne 0x14006595f
mov ecx, r15d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x14006595f
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], esi
je 0x1400659f8
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140065910
jmp 0x14006595f
cmp r14d, dword [rdx + 0x188]
jne 0x14006595f
cmp r12d, dword [rdx + 0x180]
jne 0x14006595f
mov ecx, r15d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x14006595f
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], esi
je 0x140065969
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140065950
test rbx, rbx
je 0x1400659c8
jmp 0x140065850
mov rbx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x10]
add rbx, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x1400659c8
cmp dword [rbx + 0x10], 0
jl 0x1400659ba
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400659ba
call fcn.140006b40
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400659af
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 0x1400659c8
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.1400048e0
mov rdi, qword [rbp - 0x70]
call fcn.14000b520
mov ecx, dword [rax + 0x140]
sub ecx, 1
mov dword [rax + 0x140], ecx
jne 0x140065b3d
mov rcx, qword [rax + 0x150]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x140065b5b
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140065a57
cmp dword [rbx + 0x10], 0
jl 0x140065a49
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140065a49
call fcn.140006b40
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140065a3e
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 0x140065a57
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.1400048e0
call fcn.14000b520
mov rcx, rax
call fcn.14008e760
mov rbx, rax
test rax, rax
je 0x1400659c8
mov edi, dword [rsp + 0x64]
call fcn.14000b520
call fcn.14000b520
test rbx, rbx
je 0x140065def
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x140065acf
cmp r14d, dword [rdx + 0x188]
jne 0x140065acf
cmp r12d, dword [rdx + 0x180]
jne 0x140065acf
mov ecx, r15d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x140065acf
lea rax, [rdx + 0x22c]
nop dword [rax + rax]
cmp dword [rax], edi
je 0x140065ada
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140065ac0
test rbx, rbx
je 0x1400659c8
jmp 0x140065a74
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400659c8
cmp dword [rbx + 0x10], 0
jl 0x140065b30
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140065b30
call fcn.140006b40
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140065b23
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 0x1400659c8
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x78]
jmp 0x1400659c3
cmp ecx, 0x32
jle 0x140065b5b
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.14005f240
mov rax, qword [rsp + 0x78]
mov ebx, dword [rsp + 0x68]
cmp dword [rax - 0x10], 0
je 0x140065c27
test ebx, ebx
jne 0x140065b85
cmp dword [rsp + 0x58], ebx
je 0x140065b85
mov rax, qword [rbp - 0x78]
cmp dword [rax - 0x10], ebx
je 0x140065c27
mov esi, 1
mov rcx, qword [rsp + 0x78]
mov rax, r13
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140065b92
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 0x140065be4
lea rdx, str.EndpointIdForHiddenJack
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x140065c2b
mov rcx, qword [rbp - 0x78]
mov rax, r13
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140065bf0
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 0x140065c2b
mov esi, dword [rsp + 0x6c]
test rdi, rdi
je 0x140065c3d
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 [0x140162d94], 0
je 0x140065c93
cmp dword [0x140162d90], 0
jne 0x140065c60
mov rax, qword [0x14015c1e0]
test byte [rax + 0x1c], 1
je 0x140065c93
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.14005f240
mov r15d, esi
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140065cb5
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 0x140065cd5
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 0x140065cf4
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 0x140065d13
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x50]
call fcn.14000c2d0
lea rcx, [rbp + 0x20]
call fcn.140017810
lea rcx, [rbp]
call fcn.1400890b0
mov rbx, qword [rbp - 8]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x140065d4d
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 0x140065d5c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r15d
jmp 0x140065d83
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.14005f240
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400c0920
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