Function at 0x140063880
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 [0x140158010]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov dword [rsp + 0x6c], edx
mov esi, ecx
test edx, edx
je 0x1400638d4
call fcn.1400646c0
test eax, eax
je 0x14006396a
call fcn.14002a070
mov rdi, rax
test rax, rax
jne 0x1400638fc
mov r8d, 0xeb
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005dbf0
jmp 0x14006396a
call fcn.140020470
mov rdx, rax
test rax, rax
jne 0x140063911
mov r8d, 0xf2
jmp 0x1400638e7
mov r14, 0xffffffffffffffff
mov r8d, r14d
xor r12d, r12d
mov ebx, r12d
mov ecx, r12d
add rax, 0xa4
nop word [rax + rax]
cmp dword [rax - 4], r12d
je 0x14006393a
cmp dword [rax], esi
je 0x140063996
inc ebx
inc rcx
add rax, 0xc
cmp rcx, 0x21
jl 0x140063930
mov dword [rsp + 0x20], r8d
mov r9d, esi
mov r8d, 0xf8
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_nPinIndex_d_nUIJackPinIndex_d
call fcn.14005dbf0
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400beb20
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, ebx
cmp ebx, 0x21
jae 0x140063949
mov eax, ebx
lea r15, [rax + 0x14]
lea r15, [rax + r15*2]
lea r15, [rdx + r15*4]
test r15, r15
je 0x140063949
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x58], r12d
mov qword [rbp - 0x50], r12
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x14006466f
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 - 0x60]
call fcn.1400278b0
test eax, eax
je 0x140063a69
mov dword [rsp + 0x28], 0x2001f
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x60]
call fcn.140064a50
test eax, eax
je 0x140063a69
mov rdx, rbx
lea rcx, str.CJackMgr::UpdateUIJackInfoToReg_:_Failed_to_create__s_n
call fcn.14005dbf0
mov r8d, 0x10e
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005dbf0
jmp 0x140064632
mov dword [rsp + 0x68], r12d
mov r14d, dword [r15 + 4]
mov dword [rbp - 0x3c], r12d
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 - 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140063abc
mov ebx, r12d
mov eax, SafeArrayDestroy
cmp dword [rbp - 0x38], 4
cmovne ebx, eax
mov ecx, r14d
call fcn.1400633d0
lea rax, [rdi + 0x10]
mov qword [rbp - 0x48], rax
mov rcx, rax
call fcn.140044480
movsxd rcx, r14d
imul r13, rcx, 0xb0
add r13, rdi
movzx esi, word [r13 + 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 - 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp ebx, 2
jne 0x140063b58
test bl, sil
je 0x140063b58
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 - 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [r15 + 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 r15, qword [rbp - 0x60]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, dword [r13 + 0x1a0]
mov eax, dword [r13 + 0x1b0]
mov dword [rsp + 0x50], eax
mov ebx, dword [r13 + 0x1b8]
mov dword [rsp + 0x78], ebx
mov ecx, eax
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 - 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, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test ebx, ebx
js 0x140063c3d
mov ecx, ebx
call fcn.140085d20
test eax, eax
jne 0x140063c3d
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, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x140063c4d
lea rdx, str.Docking
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
movzx r15d, word [r13 + reloc.OLEAUT32.dll_BSTR_UserUnmarshal]
mov dword [rbp - 0x70], r15d
mov dword [rbp - 0x80], r12d
mov dword [rbp - 0x7c], r12d
cmp r14d, dword [rdi + 0x68]
jae 0x140063cca
imul rcx, r14, 0xb0
cmp dword [rcx + rdi + 0x1ac], 0
je 0x140063c8b
mov eax, dword [rcx + rdi + 0x1a4]
mov dword [rbp - 0x80], eax
mov eax, dword [rcx + rdi + 0x1a8]
jmp 0x140063ca5
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.140055380
test rax, rax
je 0x140063cca
mov r10, qword [rax]
lea r9, [rbp - 0x7c]
lea r8, [rbp - 0x80]
mov edx, r14d
mov rcx, rax
call qword [r10 + 0x80]
mov r13d, ebx
test ebx, ebx
js 0x140063cd9
mov eax, dword [rdi + 0x171c]
jmp 0x140063cdf
mov eax, dword [rdi + 0x1710]
mov dword [rsp + 0x54], eax
test r13d, r13d
js 0x140063cf0
mov eax, dword [rdi + 0x1720]
jmp 0x140063cf6
mov eax, dword [rdi + 0x1714]
mov dword [rsp + 0x64], eax
test r13d, r13d
js 0x140063d0b
mov ebx, dword [rdi + 0x1724]
mov dword [rsp + 0x5c], ebx
jmp 0x140063d15
mov eax, dword [rdi + 0x1718]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rbp - 0x48]
call fcn.1400444e0
mov edx, r12d
cmp esi, dword [rsp + 0x54]
sete dl
mov ecx, dword [rbp - 0x80]
cmp ecx, 2
jne 0x140063d4b
mov eax, dword [rbp - 0x7c]
add eax, 0xfffffff6
cmp eax, 1
ja 0x140063d4b
mov r8d, 1
mov dword [rsp + 0x58], r8d
mov ecx, r12d
jmp 0x140063d67
mov r8d, r12d
mov dword [rsp + 0x58], r12d
lea eax, [rcx - 8]
test eax, 0xfffffffd
je 0x140063d62
mov ecx, r12d
jmp 0x140063d67
mov ecx, 1
mov dword [rsp + 0x60], ecx
cmp dword [0x14015fde8], 0
je 0x140063dc4
cmp dword [0x14015fdb4], 0
jne 0x140063d8a
mov rax, qword [0x1401591e0]
test byte [rax + 0x1c], 1
je 0x140063dc4
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r13d
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov r8d, 0x160
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.14005dbf0
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp]
call fcn.1400c53e0
lea rcx, [rbp]
call fcn.140087550
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x30], xmm1
mov qword [rbp + 0x40], r12
mov dword [rbp + 0x48], 0xa
movdqa xmmword [rbp + 0x50], xmm0
movdqa xmmword [rbp + 0x60], xmm1
mov qword [rbp + 0x70], r12
mov dword [rbp + 0x78], 0xa
mov dword [rbp + 0x80], 0xffffffff
mov dword [rbp + 0x1c], r12d
mov dword [rbp + 0x18], r14d
lea rcx, [rbp]
call fcn.140065aa0
lea rcx, [rbp]
call fcn.140066130
test eax, eax
jne 0x140063e4f
mov r8d, 0x2ad
lea rdx, str.CJackReteskInfo::SetCurrSelPinIndex
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14005dbf0
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x14006467a
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x68], rax
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x140064685
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x68]
call fcn.140004a00
lea rcx, [rbp - 0x48]
call fcn.140004a00
mov rdi, qword [rbp + 0x50]
mov rbx, qword [rbp - 0x68]
test rdi, rdi
je 0x140063fc2
lea r9, [0x14010d590]
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 r15b, 8
je 0x140063f2a
lea rbx, [0x1400e2fc8]
test eax, eax
cmovne rbx, r9
movzx r9d, r12w
mov r8, rbx
lea rdx, str._s_04x
lea rcx, [rbp - 0x68]
call fcn.140064950
mov r9d, r13d
mov r8, rbx
lea rdx, str._s_d
lea rcx, [rbp - 0x48]
call fcn.140064950
mov r8d, dword [rbp - 0x80]
mov rbx, qword [rbp - 0x68]
jmp 0x140063f7d
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, 0x182
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RtskOptionData.nDeviceType_d_dwDevType_d_RtskOptionData.nSequence_d_dwSeq_d
call fcn.14005dbf0
mov r8d, dword [rbp - 0x80]
cmp r14d, r8d
je 0x140063f73
test r8d, r8d
jne 0x140063f79
cmp r14d, 1
jne 0x140063f79
cmp r15d, dword [rbp - 0x7c]
je 0x140063f8f
mov r15d, dword [rbp - 0x70]
test rdi, rdi
lea r9, [0x14010d590]
jne 0x140063ebb
jmp 0x140063fba
movzx r8d, r12w
lea rdx, str._04x
lea rcx, [rbp - 0x68]
call fcn.140064950
mov r8d, r13d
lea rdx, [0x1400fdf9c]
lea rcx, [rbp - 0x48]
call fcn.140064950
mov rbx, qword [rbp - 0x68]
xor r12d, r12d
mov r13d, dword [rsp + 0x78]
mov r14, 0xffffffffffffffff
test rbx, rbx
je 0x14006400b
mov rax, r14
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x140063fd1
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 - 0x60]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x14006400f
mov rdi, qword [rbp - 0x60]
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x140064054
mov rcx, r14
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x140064020
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 - 0x70], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x70]
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 0x140064690
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rbx, [0x1400e2fc8]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140004660
test al, al
jne 0x1400640dd
mov rax, r14
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400640c2
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400048e0
nop
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x14006469b
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 0x14006412a
mov rax, r14
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140064110
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.1400048e0
nop
call fcn.14000b470
mov rcx, rax
call fcn.14008cd40
call fcn.14000b470
mov rcx, rax
call fcn.14008cce0
mov rbx, rax
test rax, rax
je 0x1400642ce
mov edi, dword [rsp + 0x5c]
call fcn.14000b470
call fcn.14000b470
test rbx, rbx
je 0x140064664
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x140064261
cmp esi, dword [rsp + 0x54]
jne 0x140064227
cmp dword [rsp + 0x58], 0
jne 0x1400641e5
cmp dword [rsp + 0x60], 0
je 0x140064227
mov r15d, dword [rsp + 0x50]
cmp r15d, dword [rdx + 0x188]
jne 0x140064261
cmp r13d, dword [rdx + 0x180]
jne 0x140064261
mov ecx, r12d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x140064261
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], edi
je 0x14006426b
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x1400641d0
jmp 0x140064261
mov r15d, dword [rsp + 0x50]
cmp r15d, dword [rdx + 0x188]
jne 0x140064261
cmp r13d, dword [rdx + 0x180]
jne 0x140064261
mov ecx, r12d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x140064261
lea rax, [rdx + 0x22c]
cmp dword [rax], esi
je 0x1400642fa
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140064212
jmp 0x140064261
mov eax, dword [rsp + 0x50]
cmp eax, dword [rdx + 0x188]
jne 0x140064261
cmp r13d, dword [rdx + 0x180]
jne 0x140064261
mov ecx, r12d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x140064261
lea rax, [rdx + 0x22c]
cmp dword [rax], esi
je 0x14006426b
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140064252
test rbx, rbx
je 0x1400642ca
jmp 0x140064154
mov rbx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x10]
add rbx, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x1400642ca
cmp dword [rbx + 0x10], 0
jl 0x1400642bc
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400642bc
call fcn.140006b40
mov rdi, rax
mov ecx, r14d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400642b1
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 0x1400642ca
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.1400048e0
mov rdi, qword [rbp - 0x60]
call fcn.14000b470
mov ecx, dword [rax + 0x140]
sub ecx, 1
mov dword [rax + 0x140], ecx
jne 0x14006443d
mov rcx, qword [rax + 0x150]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14006445b
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140064359
cmp dword [rbx + 0x10], 0
jl 0x14006434b
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14006434b
call fcn.140006b40
mov rdi, rax
mov ecx, r14d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140064340
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 0x140064359
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.1400048e0
call fcn.14000b470
mov rcx, rax
call fcn.14008cce0
mov rbx, rax
test rax, rax
je 0x1400642ca
mov edi, dword [rsp + 0x64]
call fcn.14000b470
call fcn.14000b470
test rbx, rbx
je 0x1400646a6
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x1400643cf
cmp r15d, dword [rdx + 0x188]
jne 0x1400643cf
cmp r13d, dword [rdx + 0x180]
jne 0x1400643cf
mov ecx, r12d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x1400643cf
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], edi
je 0x1400643da
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x1400643c0
test rbx, rbx
je 0x1400642ca
jmp 0x140064376
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400642ca
cmp dword [rbx + 0x10], 0
jl 0x140064430
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140064430
call fcn.140006b40
mov rdi, rax
mov ecx, r14d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140064423
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 0x1400642ca
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x78]
jmp 0x1400642c5
cmp ecx, 0x32
jle 0x14006445b
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.14005dbf0
mov rax, qword [rsp + 0x78]
mov esi, dword [rsp + 0x6c]
cmp dword [rax - 0x10], 0
je 0x140064527
test esi, esi
jne 0x140064485
cmp dword [rsp + 0x58], esi
je 0x140064485
mov rax, qword [rbp - 0x78]
cmp dword [rax - 0x10], esi
je 0x140064527
mov ebx, 1
mov rcx, qword [rsp + 0x78]
mov rax, r14
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140064492
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, ebx
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 0x1400644e4
lea rdx, str.EndpointIdForHiddenJack
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x14006452b
mov rcx, qword [rbp - 0x78]
mov rax, r14
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400644f0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, ebx
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 0x14006452b
mov ebx, dword [rsp + 0x68]
test rdi, rdi
je 0x14006453d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x58], r12d
cmp dword [0x14015fde8], 0
je 0x140064593
cmp dword [0x14015fdb4], 0
jne 0x140064560
mov rax, qword [0x1401591e0]
test byte [rax + 0x1c], 1
je 0x140064593
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9d, ebx
mov r8d, 0x1eb
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_FoundEp_d_AutoDetectHeadset_d_EpId_s_HeadsetMicEpId_s
call fcn.14005dbf0
mov r12d, ebx
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400645b5
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, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400645d5
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, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400645f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140064613
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x50]
call fcn.14000c220
lea rcx, [rbp + 0x20]
call fcn.140017700
lea rcx, [rbp]
call fcn.140087630
mov rbx, qword [rbp - 8]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14006464d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14006465c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r12d
jmp 0x14006396c
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