Function at 0x140062370
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 [0x140150010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov dword [rsp + 0x68], edx
mov esi, ecx
test edx, edx
je 0x1400623c4
call fcn.1400631f0
test eax, eax
je 0x14006245a
call fcn.140029510
mov rdi, rax
test rax, rax
jne 0x1400623ec
mov r8d, 0xcb
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005c7e0
jmp 0x14006245a
call fcn.14001feb0
mov rdx, rax
test rax, rax
jne 0x140062401
mov r8d, 0xd2
jmp 0x1400623d7
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 0x14006242a
cmp dword [rax], esi
je 0x140062486
inc ebx
inc rcx
add rax, 0xc
cmp rcx, 0x21
jl 0x140062420
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.14005c7e0
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400ba610
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 0x140062439
mov eax, ebx
lea r13, [rax + 0x14]
lea r13, [rax + r13*2]
lea r13, [rdx + r13*4]
test r13, r13
je 0x140062439
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 0x14006319f
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.140026e20
test eax, eax
je 0x140062559
mov dword [rsp + 0x28], 0x2001f
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.140063580
test eax, eax
je 0x140062559
mov rdx, rbx
lea rcx, str.CJackMgr::UpdateUIJackInfoToReg_:_Failed_to_create__s_n
call fcn.14005c7e0
mov r8d, 0xee
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005c7e0
jmp 0x140063162
mov dword [rsp + 0x64], r14d
mov r15d, dword [r13 + 4]
lea rax, [rdi + 0x10]
mov qword [rbp - 0x40], rax
mov rcx, rax
call fcn.140043140
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 0x1400625d6
mov eax, SafeArrayDestroy
cmp dword [rbp - 0x30], 4
cmovne ebx, eax
lea rcx, [r14 + 0x110]
call fcn.140061a20
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 0x140062690
test esi, esi
je 0x140062690
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 0x140062776
mov ecx, r12d
call fcn.1400842e0
test eax, eax
jne 0x140062776
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 0x140062786
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 0x140062805
imul rcx, r15, 0xb0
cmp dword [rcx + rdi + 0x1ac], r14d
je 0x1400627c6
mov eax, dword [rcx + rdi + 0x1a4]
mov dword [rbp - 0x80], eax
mov eax, dword [rcx + rdi + 0x1a8]
jmp 0x1400627e0
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.140053fb0
test rax, rax
je 0x140062805
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 0x140062812
mov eax, dword [rdi + 0x171c]
jmp 0x140062818
mov eax, dword [rdi + 0x1710]
mov dword [rsp + 0x50], eax
test r12d, r12d
js 0x140062829
mov eax, dword [rdi + 0x1720]
jmp 0x14006282f
mov eax, dword [rdi + 0x1714]
mov dword [rsp + 0x60], eax
test r12d, r12d
js 0x140062844
mov ebx, dword [rdi + 0x1724]
mov dword [rsp + 0x58], ebx
jmp 0x14006284e
mov eax, dword [rdi + 0x1718]
mov dword [rsp + 0x58], eax
mov rcx, qword [rbp - 0x40]
call fcn.1400431a0
mov edx, r14d
cmp esi, dword [rsp + 0x50]
sete dl
mov ecx, dword [rbp - 0x80]
cmp ecx, 2
jne 0x140062884
mov eax, dword [rbp - 0x70]
add eax, 0xfffffff6
cmp eax, 1
ja 0x140062884
mov r8d, 1
mov dword [rsp + 0x54], r8d
mov ecx, r14d
jmp 0x1400628a0
mov r8d, r14d
mov dword [rsp + 0x54], r14d
lea eax, [rcx - 8]
test eax, 0xfffffffd
je 0x14006289b
mov ecx, r14d
jmp 0x1400628a0
mov ecx, 1
mov dword [rsp + 0x5c], ecx
cmp dword [0x140157cb8], r14d
je 0x1400628fa
cmp dword [0x140157cb4], r14d
jne 0x1400628c3
mov rax, qword [0x140151150]
test byte [rax + 0x1c], 1
je 0x1400628fa
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.14005c7e0
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp + 0x10]
call fcn.1400c0ee0
lea rcx, [rbp + 0x10]
call fcn.140085b10
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.1400645d0
lea rcx, [rbp + 0x10]
call fcn.140064c60
test eax, eax
jne 0x14006298b
mov r8d, 0x2ad
lea rdx, str.CJackReteskInfo::SetCurrSelPinIndex
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14005c7e0
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400631aa
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 0x1400631b5
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 0x140062afe
lea r9, [0x140108190]
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 0x140062a66
lea rbx, [0x1400deef8]
test eax, eax
cmovne rbx, r9
movzx r9d, r12w
mov r8, rbx
lea rdx, str._s_04x
lea rcx, [rbp - 0x50]
call fcn.140063480
mov r9d, r13d
mov r8, rbx
lea rdx, str._s_d
lea rcx, [rbp - 0x40]
call fcn.140063480
mov r8d, dword [rbp - 0x80]
mov rbx, qword [rbp - 0x50]
jmp 0x140062ab5
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.14005c7e0
mov r8d, dword [rbp - 0x80]
cmp r14d, r8d
je 0x140062aaf
test r8d, r8d
jne 0x140062ab5
cmp r14d, 1
jne 0x140062ab5
cmp r15d, dword [rbp - 0x70]
je 0x140062ac7
test rdi, rdi
lea r9, [0x140108190]
jne 0x1400629f7
jmp 0x140062af2
movzx r8d, r12w
lea rdx, str._04x
lea rcx, [rbp - 0x50]
call fcn.140063480
mov r8d, r13d
lea rdx, [0x1400f8ddc]
lea rcx, [rbp - 0x40]
call fcn.140063480
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 0x140062b4a
mov rax, r15
nop dword [rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x140062b10
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 0x140062b4e
mov rdi, qword [rbp - 0x68]
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140062b94
mov rcx, r15
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x140062b60
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 0x1400631c0
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rbx, [0x1400deef8]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400046a0
test al, al
jne 0x140062c1d
mov rax, r15
inc rax
cmp word [rbx + rax*2], 0
jne 0x140062c02
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140004940
nop
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400631cb
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 0x140062c6a
mov rax, r15
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140062c50
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140004940
nop
call fcn.14000b4c0
mov rcx, rax
call fcn.14008b0b0
call fcn.14000b4c0
mov rcx, rax
call fcn.14008b050
mov rbx, rax
test rax, rax
je 0x140062dfd
mov edi, dword [rsp + 0x58]
call fcn.14000b4c0
call fcn.14000b4c0
test rbx, rbx
je 0x140063194
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x140062d90
cmp esi, dword [rsp + 0x50]
jne 0x140062d59
cmp dword [rsp + 0x54], 0
jne 0x140062d1c
cmp dword [rsp + 0x5c], 0
je 0x140062d59
cmp r13d, dword [rdx + 0x188]
jne 0x140062d90
cmp r12d, dword [rdx + 0x180]
jne 0x140062d90
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x140062d90
lea rax, [rdx + 0x22c]
cmp dword [rax], edi
je 0x140062d9a
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140062d07
jmp 0x140062d90
cmp r13d, dword [rdx + 0x188]
jne 0x140062d90
cmp r12d, dword [rdx + 0x180]
jne 0x140062d90
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x140062d90
lea rax, [rdx + 0x22c]
cmp dword [rax], esi
je 0x140062e29
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140062d44
jmp 0x140062d90
cmp r13d, dword [rdx + 0x188]
jne 0x140062d90
cmp r12d, dword [rdx + 0x180]
jne 0x140062d90
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x140062d90
lea rax, [rdx + 0x22c]
cmp dword [rax], esi
je 0x140062d9a
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140062d81
test rbx, rbx
je 0x140062df9
jmp 0x140062c94
mov rbx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x10]
add rbx, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x140062df9
cmp dword [rbx + 0x10], 0
jl 0x140062deb
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140062deb
call fcn.140006ba0
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140062de0
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 0x140062df9
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 0x140062f6d
mov rcx, qword [rax + 0x150]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x140062f8b
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140062e88
cmp dword [rbx + 0x10], 0
jl 0x140062e7a
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140062e7a
call fcn.140006ba0
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140062e6f
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 0x140062e88
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.140004940
call fcn.14000b4c0
mov rcx, rax
call fcn.14008b050
mov rbx, rax
test rax, rax
je 0x140062df9
mov edi, dword [rsp + 0x60]
call fcn.14000b4c0
call fcn.14000b4c0
test rbx, rbx
je 0x1400631d6
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x140062eff
cmp r13d, dword [rdx + 0x188]
jne 0x140062eff
cmp r12d, dword [rdx + 0x180]
jne 0x140062eff
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x140062eff
lea rax, [rdx + 0x22c]
nop dword [rax]
cmp dword [rax], edi
je 0x140062f0a
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140062ef0
test rbx, rbx
je 0x140062df9
jmp 0x140062ea5
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x78]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140062df9
cmp dword [rbx + 0x10], 0
jl 0x140062f60
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140062f60
call fcn.140006ba0
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140062f53
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 0x140062df9
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x78]
jmp 0x140062df4
cmp ecx, 0x32
jle 0x140062f8b
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.14005c7e0
mov rax, qword [rsp + 0x78]
mov esi, dword [rsp + 0x68]
cmp dword [rax - 0x10], 0
je 0x140063057
test esi, esi
jne 0x140062fb5
cmp dword [rsp + 0x54], esi
je 0x140062fb5
mov rax, qword [rbp - 0x78]
cmp dword [rax - 0x10], esi
je 0x140063057
mov ebx, 1
mov rcx, qword [rsp + 0x78]
mov rax, r15
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140062fc2
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 0x140063014
lea rdx, str.EndpointIdForHiddenJack
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x14006305b
mov rcx, qword [rbp - 0x78]
mov rax, r15
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140063020
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 0x14006305b
mov ebx, dword [rsp + 0x64]
test rdi, rdi
je 0x14006306d
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 [0x140157cb8], 0
je 0x1400630c3
cmp dword [0x140157cb4], 0
jne 0x140063090
mov rax, qword [0x140151150]
test byte [rax + 0x1c], 1
je 0x1400630c3
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.14005c7e0
mov r14d, ebx
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400630e5
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 0x140063105
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 0x140063124
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 0x140063143
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.140085bf0
mov rbx, qword [rbp + 8]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x14006317d
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 0x14006318c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r14d
jmp 0x14006245c
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