Function at 0x1400619a0
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 + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x14014f010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov dword [rsp + 0x68], edx
mov esi, ecx
test edx, edx
je 0x1400619f4
call fcn.140062820
test eax, eax
je 0x140061a8a
call fcn.1400295b0
mov rdi, rax
test rax, rax
jne 0x140061a1c
mov r8d, 0xcb
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005be10
jmp 0x140061a8a
call fcn.14001feb0
mov rdx, rax
test rax, rax
jne 0x140061a31
mov r8d, 0xd2
jmp 0x140061a07
mov r15, 0xffffffffffffffff
mov r8d, r15d
xor r14d, r14d
mov ebx, r14d
mov ecx, r14d
add rax, 0xa4
nop word [rax + rax]
cmp dword [rax - 4], r14d
je 0x140061a5a
cmp dword [rax], esi
je 0x140061ab6
inc ebx
inc rcx
add rax, 0xc
cmp rcx, 0x21
jl 0x140061a50
mov dword [rsp + 0x20], r8d
mov r9d, esi
mov r8d, 0xd8
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_nPinIndex_d_nUIJackPinIndex_d
call fcn.14005be10
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400b96d0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, ebx
cmp ebx, 0x21
jae 0x140061a69
mov eax, ebx
lea r13, [rax + 0x14]
lea r13, [rax + r13*2]
lea r13, [rdx + r13*4]
test r13, r13
je 0x140061a69
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x68], r14
mov dword [rbp - 0x60], r14d
mov qword [rbp - 0x58], r14
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400627cf
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.140006c20
mov r9d, 0x2001f
mov rbx, qword [rbp + 8]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.140026e10
test eax, eax
je 0x140061b89
mov dword [rsp + 0x28], 0x2001f
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.140062bb0
test eax, eax
je 0x140061b89
mov rdx, rbx
lea rcx, str.CJackMgr::UpdateUIJackInfoToReg_:_Failed_to_create__s_n
call fcn.14005be10
mov r8d, 0xee
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005be10
jmp 0x140062792
mov dword [rsp + 0x64], r14d
mov r15d, dword [r13 + 4]
lea rax, [rdi + 0x10]
mov qword [rbp - 0x40], rax
mov rcx, rax
call fcn.140042e30
movsxd r12, r15d
imul r14, r12, 0xb0
add r14, rdi
movzx esi, word [r14 + reloc.OLEAUT32.dll_BSTR_UserUnmarshal]
shr esi, 1
and esi, 1
mov dword [rbp - 0x34], 0
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 0x140061c06
mov eax, SafeArrayDestroy
cmp dword [rbp - 0x30], 4
cmovne ebx, eax
lea rcx, [r14 + 0x110]
call fcn.140061050
mov ecx, esi
test eax, eax
mov eax, 0
cmovne ecx, eax
mov dword [rbp - 0x28], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 4
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_RegSetValueExW]
mov eax, dword [rdi + r12*4 + 0x8c]
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.JackStatusChangedWhenPowerDown
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp ebx, 2
mov rbx, qword [rbp - 0x68]
jne 0x140061cc0
test esi, esi
je 0x140061cc0
mov dword [rbp - 0x18], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackStatusChangedWhenPowerDown
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [r13 + 8]
mov dword [rbp - 0x10], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackIconTypeColor
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, dword [r14 + 0x1a0]
mov r13d, dword [r14 + 0x1b0]
mov dword [rsp + 0x78], r13d
mov r12d, dword [r14 + 0x1b8]
mov dword [rbp - 0x78], r12d
mov ecx, r13d
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 - 8], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackWidgetId
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test r12d, r12d
js 0x140061da6
mov ecx, r12d
call fcn.140083920
test eax, eax
jne 0x140061da6
mov dword [rbp], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Docking
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x140061db6
lea rdx, str.Docking
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
movzx eax, word [r14 + reloc.OLEAUT32.dll_BSTR_UserUnmarshal]
mov dword [rbp - 0x48], eax
xor r14d, r14d
mov dword [rbp - 0x80], r14d
mov dword [rbp - 0x70], r14d
cmp r15d, dword [rdi + 0x68]
jae 0x140061e35
imul rcx, r15, 0xb0
cmp dword [rcx + rdi + 0x1ac], r14d
je 0x140061df6
mov eax, dword [rcx + rdi + 0x1a4]
mov dword [rbp - 0x80], eax
mov eax, dword [rcx + rdi + 0x1a8]
jmp 0x140061e10
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 - 0x70], eax
call fcn.1400535e0
test rax, rax
je 0x140061e35
mov r10, qword [rax]
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x80]
mov edx, r15d
mov rcx, rax
call qword [r10 + 0x80]
test r12d, r12d
js 0x140061e42
mov eax, dword [rdi + 0x171c]
jmp 0x140061e48
mov eax, dword [rdi + 0x1710]
mov dword [rsp + 0x50], eax
test r12d, r12d
js 0x140061e59
mov eax, dword [rdi + 0x1720]
jmp 0x140061e5f
mov eax, dword [rdi + 0x1714]
mov dword [rsp + 0x60], eax
test r12d, r12d
js 0x140061e74
mov ebx, dword [rdi + 0x1724]
mov dword [rsp + 0x58], ebx
jmp 0x140061e7e
mov eax, dword [rdi + 0x1718]
mov dword [rsp + 0x58], eax
mov rcx, qword [rbp - 0x40]
call fcn.140042e90
mov edx, r14d
cmp esi, dword [rsp + 0x50]
sete dl
mov ecx, dword [rbp - 0x80]
cmp ecx, 2
jne 0x140061eb4
mov eax, dword [rbp - 0x70]
add eax, 0xfffffff6
cmp eax, 1
ja 0x140061eb4
mov r8d, 1
mov dword [rsp + 0x54], r8d
mov ecx, r14d
jmp 0x140061ed0
mov r8d, r14d
mov dword [rsp + 0x54], r14d
lea eax, [rcx - 8]
test eax, 0xfffffffd
je 0x140061ecb
mov ecx, r14d
jmp 0x140061ed0
mov ecx, 1
mov dword [rsp + 0x5c], ecx
cmp dword [0x140156cb4], r14d
je 0x140061f2a
cmp dword [0x140156cbc], r14d
jne 0x140061ef3
mov rax, qword [0x140150140]
test byte [rax + 0x1c], 1
je 0x140061f2a
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], esi
mov r9d, r15d
mov r8d, 0x144
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.14005be10
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp + 0x10]
call fcn.1400bffa0
lea rcx, [rbp + 0x10]
call fcn.140085150
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.140063c00
lea rcx, [rbp + 0x10]
call fcn.140064290
test eax, eax
jne 0x140061fbb
mov r8d, 0x2ad
lea rdx, str.CJackReteskInfo::SetCurrSelPinIndex
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14005be10
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400627da
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x50], rax
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400627e5
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x50]
call fcn.140004a60
lea rcx, [rbp - 0x40]
call fcn.140004a60
mov rdi, qword [rbp + 0x60]
mov rbx, qword [rbp - 0x50]
test rdi, rdi
je 0x14006212e
lea r9, [0x1401071a0]
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 - 0x48], 8
je 0x140062096
lea rbx, [0x1400ddee8]
test eax, eax
cmovne rbx, r9
movzx r9d, r12w
mov r8, rbx
lea rdx, str._s_04x
lea rcx, [rbp - 0x50]
call fcn.140062ab0
mov r9d, r13d
mov r8, rbx
lea rdx, str._s_d
lea rcx, [rbp - 0x40]
call fcn.140062ab0
mov r8d, dword [rbp - 0x80]
mov rbx, qword [rbp - 0x50]
jmp 0x1400620e5
movzx r15d, dl
movzx r14d, cl
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r8d
mov r9d, r14d
mov r8d, 0x166
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RtskOptionData.nDeviceType_d_dwDevType_d_RtskOptionData.nSequence_d_dwSeq_d
call fcn.14005be10
mov r8d, dword [rbp - 0x80]
cmp r14d, r8d
je 0x1400620df
test r8d, r8d
jne 0x1400620e5
cmp r14d, 1
jne 0x1400620e5
cmp r15d, dword [rbp - 0x70]
je 0x1400620f7
test rdi, rdi
lea r9, [0x1401071a0]
jne 0x140062027
jmp 0x140062122
movzx r8d, r12w
lea rdx, str._04x
lea rcx, [rbp - 0x50]
call fcn.140062ab0
mov r8d, r13d
lea rdx, [0x1400f7dc8]
lea rcx, [rbp - 0x40]
call fcn.140062ab0
mov rbx, qword [rbp - 0x50]
xor r14d, r14d
mov r12d, dword [rbp - 0x78]
mov r13d, dword [rsp + 0x78]
mov r15, 0xffffffffffffffff
test rbx, rbx
je 0x14006217a
mov rax, r15
nop dword [rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x140062140
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 - 0x68]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x14006217e
mov rdi, qword [rbp - 0x68]
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1400621c4
mov rcx, r15
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x140062190
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 + 0x90]
mov dword [rbp - 0x48], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x48]
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.140004f00
mov rcx, rax
test rax, rax
je 0x1400627f0
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rbx, [0x1400ddee8]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400046a0
test al, al
jne 0x14006224d
mov rax, r15
inc rax
cmp word [rbx + rax*2], 0
jne 0x140062232
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140004940
nop
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400627fb
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.1400046a0
test al, al
jne 0x14006229a
mov rax, r15
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140062280
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140004940
nop
call fcn.14000b4c0
mov rcx, rax
call fcn.14008a6f0
call fcn.14000b4c0
mov rcx, rax
call fcn.14008a690
mov rbx, rax
test rax, rax
je 0x14006242d
mov edi, dword [rsp + 0x58]
call fcn.14000b4c0
call fcn.14000b4c0
test rbx, rbx
je 0x1400627c4
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x1400623c0
cmp esi, dword [rsp + 0x50]
jne 0x140062389
cmp dword [rsp + 0x54], 0
jne 0x14006234c
cmp dword [rsp + 0x5c], 0
je 0x140062389
cmp r13d, dword [rdx + 0x188]
jne 0x1400623c0
cmp r12d, dword [rdx + 0x180]
jne 0x1400623c0
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x1400623c0
lea rax, [rdx + 0x22c]
cmp dword [rax], edi
je 0x1400623ca
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140062337
jmp 0x1400623c0
cmp r13d, dword [rdx + 0x188]
jne 0x1400623c0
cmp r12d, dword [rdx + 0x180]
jne 0x1400623c0
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x1400623c0
lea rax, [rdx + 0x22c]
cmp dword [rax], esi
je 0x140062459
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140062374
jmp 0x1400623c0
cmp r13d, dword [rdx + 0x188]
jne 0x1400623c0
cmp r12d, dword [rdx + 0x180]
jne 0x1400623c0
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x1400623c0
lea rax, [rdx + 0x22c]
cmp dword [rax], esi
je 0x1400623ca
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x1400623b1
test rbx, rbx
je 0x140062429
jmp 0x1400622c4
mov rbx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x10]
add rbx, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x140062429
cmp dword [rbx + 0x10], 0
jl 0x14006241b
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14006241b
call fcn.140006ba0
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140062410
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 0x140062429
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.140004940
mov rdi, qword [rbp - 0x68]
call fcn.14000b4c0
mov ecx, dword [rax + 0x140]
sub ecx, 1
mov dword [rax + 0x140], ecx
jne 0x14006259d
mov rcx, qword [rax + 0x150]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x1400625bb
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400624b8
cmp dword [rbx + 0x10], 0
jl 0x1400624aa
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400624aa
call fcn.140006ba0
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14006249f
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 0x1400624b8
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.140004940
call fcn.14000b4c0
mov rcx, rax
call fcn.14008a690
mov rbx, rax
test rax, rax
je 0x140062429
mov edi, dword [rsp + 0x60]
call fcn.14000b4c0
call fcn.14000b4c0
test rbx, rbx
je 0x140062806
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x14006252f
cmp r13d, dword [rdx + 0x188]
jne 0x14006252f
cmp r12d, dword [rdx + 0x180]
jne 0x14006252f
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x14006252f
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], edi
je 0x14006253a
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140062520
test rbx, rbx
je 0x140062429
jmp 0x1400624d5
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140062429
cmp dword [rbx + 0x10], 0
jl 0x140062590
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140062590
call fcn.140006ba0
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140062583
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 0x140062429
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x78]
jmp 0x140062424
cmp ecx, 0x32
jle 0x1400625bb
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.14005be10
mov rax, qword [rsp + 0x78]
mov esi, dword [rsp + 0x68]
cmp dword [rax - 0x10], 0
je 0x140062687
test esi, esi
jne 0x1400625e5
cmp dword [rsp + 0x54], esi
je 0x1400625e5
mov rax, qword [rbp - 0x78]
cmp dword [rax - 0x10], esi
je 0x140062687
mov ebx, 1
mov rcx, qword [rsp + 0x78]
mov rax, r15
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400625f2
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 0x140062644
lea rdx, str.EndpointIdForHiddenJack
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x14006268b
mov rcx, qword [rbp - 0x78]
mov rax, r15
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140062650
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 0x14006268b
mov ebx, dword [rsp + 0x64]
test rdi, rdi
je 0x14006269d
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 [0x140156cb4], 0
je 0x1400626f3
cmp dword [0x140156cbc], 0
jne 0x1400626c0
mov rax, qword [0x140150140]
test byte [rax + 0x1c], 1
je 0x1400626f3
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, 0x1cf
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_FoundEp_d_AutoDetectHeadset_d_EpId_s_HeadsetMicEpId_s
call fcn.14005be10
mov r14d, ebx
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062715
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, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062735
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, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062754
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062773
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x60]
call fcn.14000c270
lea rcx, [rbp + 0x30]
call fcn.140017280
lea rcx, [rbp + 0x10]
call fcn.140085230
mov rbx, qword [rbp + 8]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x1400627ad
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 0x1400627bc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r14d
jmp 0x140061a8c
mov ecx, 0x80004005
call fcn.140005030
nop
mov ecx, 0x80004005
call fcn.140005030
nop
mov ecx, 0x80004005
call fcn.140005030
nop
mov ecx, 0x80004005
call fcn.140005030
nop
mov ecx, 0x80004005
call fcn.140005030
nop
mov ecx, 0x80004005
call fcn.140005030
nop
mov ecx, 0x80004005
call fcn.140005030
int3