Function at 0x140051dc0
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 + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov dword [rsp + 0x70], edx
mov esi, ecx
test edx, edx
je 0x140051e10
call fcn.140052c60
test eax, eax
je 0x140051e82
call fcn.140023e80
mov rdi, rax
test rax, rax
jne 0x140051e25
mov r8d, 0xad
jmp 0x140051e6f
call fcn.14001d9d0
mov rdx, rax
test rax, rax
jne 0x140051e3a
mov r8d, SystemTimeToVariantTime
jmp 0x140051e6f
xor r15d, r15d
mov ebx, r15d
mov ecx, r15d
add rax, 0xa4
nop dword [rax]
cmp dword [rax - 4], r15d
je 0x140051e5a
cmp dword [rax], esi
je 0x140051eae
inc ebx
inc rcx
add rax, 0xc
cmp rcx, 0x21
jl 0x140051e50
mov r8d, 0xb8
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14004c3d0
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400a4020
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp ebx, 0x21
jae 0x140051e69
mov eax, ebx
lea r14, [rax + 0x14]
lea r14, [rax + r14*2]
lea r14, [rdx + r14*4]
test r14, r14
je 0x140051e69
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], r15
mov dword [rbp - 0x50], r15d
mov qword [rbp - 0x48], r15
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140052c17
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp], rax
mov r9d, ebx
lea r8, str.SoftwareRealtekAudioGUI_INFORMATIONJackInfomation
lea rdx, str._sJack_d
lea rcx, [rbp]
call fcn.140006190
mov r9d, 0x2001f
mov rbx, qword [rbp]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x58]
call fcn.140021cb0
mov r13, 0xffffffffffffffff
test eax, eax
je 0x140051f85
mov dword [rsp + 0x28], 0x2001f
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x58]
call fcn.140052fc0
test eax, eax
je 0x140051f85
mov rdx, rbx
lea rcx, str.CJackMgr::UpdateUIJackInfoToReg_:_Failed_to_create__s_n
call fcn.14004c3d0
mov r8d, 0xcc
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14004c3d0
jmp 0x140052bda
mov dword [rsp + 0x6c], r15d
mov r12d, dword [r14 + 4]
lea rax, [rdi + 0x10]
mov qword [rbp - 0x40], rax
mov rcx, rax
call fcn.14003afe0
movsxd r13, r12d
imul r15, r13, 0xac
add r15, rdi
movzx esi, word [r15 + 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 - 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140052002
mov eax, SafeArrayDestroy
cmp dword [rbp - 0x30], 4
cmovne ebx, eax
lea rcx, [r15 + 0x110]
call fcn.1400517f0
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 - 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [rdi + r13*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 r13, qword [rbp - 0x58]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp ebx, 2
jne 0x1400520b9
test esi, esi
je 0x1400520b9
mov dword [rbp - 0x18], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 2]
xor r8d, r8d
lea rdx, str.JackStatusChangedWhenPowerDown
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [r14 + 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, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, dword [r15 + 0x1a0]
mov r13d, dword [r15 + 0x1b0]
mov dword [rsp + 0x50], r13d
mov ebx, dword [r15 + 0x1b8]
mov dword [rsp + 0x60], ebx
mov ecx, r13d
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 - 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, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
movzx r15d, word [r15 + reloc.OLEAUT32.dll_BSTR_UserUnmarshal]
mov dword [rbp - 0x68], r15d
xor r14d, r14d
mov dword [rbp - 0x78], r14d
mov dword [rbp - 0x74], r14d
cmp r12d, dword [rdi + 0x68]
jae 0x1400521d8
imul rcx, r12, 0xac
cmp dword [rcx + rdi + 0x1ac], r14d
je 0x14005219c
mov eax, dword [rcx + rdi + 0x1a4]
mov dword [rbp - 0x78], eax
mov eax, dword [rcx + rdi + 0x1a8]
jmp 0x1400521b6
mov eax, dword [rcx + rdi + 0x118]
shr eax, 8
and eax, 0xf
mov dword [rbp - 0x78], eax
mov eax, dword [rcx + rdi + 0x110]
and eax, 0xf
mov dword [rbp - 0x74], eax
call fcn.140043fd0
test rax, rax
je 0x1400521d8
mov r10, qword [rax]
lea r9, [rbp - 0x74]
lea r8, [rbp - 0x78]
mov edx, r12d
mov rcx, rax
call qword [r10 + 0x78]
test ebx, ebx
js 0x1400521e4
mov eax, dword [rdi + 0x169c]
jmp 0x1400521ea
mov eax, dword [rdi + 0x1690]
mov dword [rsp + 0x54], eax
test ebx, ebx
js 0x1400521fa
mov eax, dword [rdi + 0x16a0]
jmp 0x140052200
mov eax, dword [rdi + 0x1694]
mov dword [rsp + 0x68], eax
test ebx, ebx
js 0x140052218
mov ebx, dword [rdi + 0x16a4]
mov dword [rsp + 0x5c], ebx
mov ebx, dword [rsp + 0x60]
jmp 0x140052222
mov eax, dword [rdi + 0x1698]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rbp - 0x40]
call fcn.14003b040
mov edx, r14d
cmp esi, dword [rsp + 0x54]
sete dl
mov ecx, dword [rbp - 0x78]
cmp ecx, 2
jne 0x140052258
mov eax, dword [rbp - 0x74]
add eax, 0xfffffff6
cmp eax, 1
ja 0x140052258
mov r8d, 1
mov dword [rsp + 0x58], r8d
mov ecx, r14d
jmp 0x140052274
mov r8d, r14d
mov dword [rsp + 0x58], r14d
lea eax, [rcx - 8]
test eax, 0xfffffffd
je 0x14005226f
mov ecx, r14d
jmp 0x140052274
mov ecx, 1
mov dword [rsp + 0x64], ecx
cmp dword [0x140125c9c], r14d
je 0x1400522cd
cmp dword [0x140125c98], r14d
jne 0x140052297
mov rax, qword [0x14011faa0]
test byte [rax + 0x1c], 1
je 0x1400522cd
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], esi
mov r9d, r12d
mov r8d, pe_nt_image_headers64
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.14004c3d0
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp + 0x10]
call fcn.1400aa8f0
lea rcx, [rbp + 0x10]
call fcn.140071f00
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 r13, 0xffffffffffffffff
mov dword [rbp + 0x90], r13d
mov dword [rbp + 0x2c], r14d
mov dword [rbp + 0x28], r12d
lea rcx, [rbp + 0x10]
call fcn.140054030
lea rcx, [rbp + 0x10]
call fcn.1400545f0
test eax, eax
jne 0x140052362
mov r8d, 0x296
lea rdx, str.CJackReteskInfo::SetCurrSelPinIndex
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14004c3d0
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140052c22
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x60], rax
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140052c2d
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x60]
call fcn.1400040a0
lea rcx, [rbp - 0x40]
call fcn.1400040a0
mov rdi, qword [rbp + 0x60]
lea r12, [0x1400c4360]
mov rbx, qword [rbp - 0x60]
test rdi, rdi
je 0x1400524b5
lea r9, [0x1400dda00]
mov r8d, dword [rbp - 0x78]
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 0x140052444
lea rbx, [0x1400c4360]
test eax, eax
cmovne rbx, r9
movzx r9d, r12w
mov r8, rbx
lea rdx, str._s_04x
lea rcx, [rbp - 0x60]
call fcn.140052ec0
mov r9d, r13d
mov r8, rbx
lea rdx, str._s_d
lea rcx, [rbp - 0x40]
call fcn.140052ec0
mov r8d, dword [rbp - 0x78]
mov rbx, qword [rbp - 0x60]
jmp 0x140052497
movzx r15d, dl
movzx r14d, cl
mov eax, dword [rbp - 0x74]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r8d
mov r9d, r14d
mov r8d, 0x132
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_RtskOptionData.nDeviceType_d_dwDevType_d_RtskOptionData.nSequence_d_dwSeq_d
call fcn.14004c3d0
mov r8d, dword [rbp - 0x78]
cmp r14d, r8d
je 0x14005248d
test r8d, r8d
jne 0x140052493
cmp r14d, 1
jne 0x140052493
cmp r15d, dword [rbp - 0x74]
je 0x1400524fa
mov r15d, dword [rbp - 0x68]
test rdi, rdi
lea r9, [0x1400dda00]
jne 0x1400523d5
xor r14d, r14d
lea r13, [r14 - 1]
lea r12, [0x1400c4360]
test rbx, rbx
je 0x140052527
mov rax, r13
nop dword [rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x1400524c0
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 - 0x58]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x14005252b
movzx r8d, r12w
lea rdx, str._04x
lea rcx, [rbp - 0x60]
call fcn.140052ec0
mov r8d, r13d
lea rdx, [0x1400d898c]
lea rcx, [rbp - 0x40]
call fcn.140052ec0
mov rbx, qword [rbp - 0x60]
jmp 0x1400524a7
mov rdi, qword [rbp - 0x58]
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140052574
mov rcx, r13
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x140052540
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 - 0x68], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x68]
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.140004540
mov rcx, rax
test rax, rax
je 0x140052c38
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x80], rax
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.140003d00
test al, al
jne 0x1400525fb
mov rax, r13
nop dword [rax]
inc rax
cmp word [r12 + rax*2], 0
jne 0x1400525e0
mov r8d, eax
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.140003f80
nop
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140052c43
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x70], rax
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.140003d00
test al, al
jne 0x14005264b
mov rax, r13
nop dword [rax]
inc rax
cmp word [r12 + rax*2], 0
jne 0x140052630
mov r8d, eax
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.140003f80
nop
call fcn.14000adc0
mov rcx, rax
call fcn.140077520
call fcn.14000adc0
cmp dword [rax + 0x138], 0
jne 0x14005269e
cmp dword [0x140125c9c], 0
je 0x14005269e
cmp dword [0x140125c98], 0
jne 0x140052685
mov rax, qword [0x14011faa0]
test byte [rax + 0x1c], 1
je 0x14005269e
mov r8d, 0x3c
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.14004c3d0
call fcn.14000adc0
mov rbx, qword [rax + 0xd8]
test rbx, rbx
je 0x140052839
mov edi, dword [rsp + 0x5c]
mov r15d, dword [rsp + 0x60]
mov r12d, dword [rsp + 0x50]
call fcn.14000adc0
call fcn.14000adc0
test rbx, rbx
je 0x140052c0c
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x1400527cf
cmp esi, dword [rsp + 0x54]
jne 0x140052797
cmp dword [rsp + 0x58], 0
jne 0x140052755
cmp dword [rsp + 0x64], 0
je 0x140052797
mov r12d, dword [rsp + 0x50]
cmp r12d, dword [rcx + 0x190]
jne 0x1400527cf
cmp r15d, dword [rcx + 0x188]
jne 0x1400527cf
mov edx, r14d
mov r8d, dword [rcx + 0x228]
test r8d, r8d
je 0x1400527cf
lea rax, [rcx + 0x22c]
nop dword [rax]
cmp dword [rax], edi
je 0x1400527d9
inc edx
add rax, 4
cmp edx, r8d
jb 0x140052740
jmp 0x1400527cf
mov r12d, dword [rsp + 0x50]
cmp r12d, dword [rcx + 0x190]
jne 0x1400527cf
cmp r15d, dword [rcx + 0x188]
jne 0x1400527cf
mov edx, r14d
mov r8d, dword [rcx + 0x228]
test r8d, r8d
je 0x1400527cf
lea rax, [rcx + 0x22c]
cmp dword [rax], esi
je 0x140052865
inc edx
add rax, 4
cmp edx, r8d
jb 0x140052782
jmp 0x1400527cf
cmp r12d, dword [rcx + 0x190]
jne 0x1400527cf
cmp r15d, dword [rcx + 0x188]
jne 0x1400527cf
mov edx, r14d
mov r8d, dword [rcx + 0x228]
test r8d, r8d
je 0x1400527cf
lea rax, [rcx + 0x22c]
nop
cmp dword [rax], esi
je 0x1400527d9
inc edx
add rax, 4
cmp edx, r8d
jb 0x1400527c0
test rbx, rbx
je 0x140052835
jmp 0x1400526c1
mov rbx, qword [rbp - 0x80]
mov rdx, qword [rcx + 0x10]
add rbx, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x140052835
cmp dword [rbx + 0x10], 0
jl 0x140052828
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140052828
call fcn.140006110
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14005281e
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 - 0x80], rax
jmp 0x140052835
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x80]
call fcn.140003f80
mov rdi, qword [rbp - 0x58]
call fcn.14000adc0
mov ecx, dword [rax + 0x138]
sub ecx, 1
mov dword [rax + 0x138], ecx
jne 0x1400529a4
mov rcx, qword [rax + 0x148]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x1400529c2
mov rdx, qword [rcx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x80]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400528c1
cmp dword [rbx + 0x10], 0
jl 0x1400528b4
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400528b4
call fcn.140006110
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400528aa
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 - 0x80], rax
jmp 0x1400528c1
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x80]
call fcn.140003f80
call fcn.14000adc0
mov rcx, rax
call fcn.1400774c0
mov rbx, rax
test rax, rax
je 0x140052835
mov edi, dword [rsp + 0x68]
nop
call fcn.14000adc0
call fcn.14000adc0
test rbx, rbx
je 0x140052c4e
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdx, rdx
je 0x140052936
cmp r12d, dword [rdx + 0x190]
jne 0x140052936
cmp r15d, dword [rdx + 0x188]
jne 0x140052936
mov ecx, r14d
mov r8d, dword [rdx + 0x228]
test r8d, r8d
je 0x140052936
lea rax, [rdx + 0x22c]
cmp dword [rax], edi
je 0x140052941
inc ecx
add rax, 4
cmp ecx, r8d
jb 0x140052927
test rbx, rbx
je 0x140052835
jmp 0x1400528e0
mov rdx, qword [rdx + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x70]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140052835
cmp dword [rbx + 0x10], 0
jl 0x140052997
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140052997
call fcn.140006110
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14005298a
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 - 0x70], rax
jmp 0x140052835
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x70]
jmp 0x140052830
cmp ecx, 0x32
jle 0x1400529c2
mov r8d, 0x82
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.14004c3d0
mov rax, qword [rbp - 0x80]
mov esi, dword [rsp + 0x70]
cmp dword [rax - 0x10], 0
je 0x140052a97
test esi, esi
jne 0x1400529eb
cmp dword [rsp + 0x58], esi
je 0x1400529eb
mov rax, qword [rbp - 0x70]
cmp dword [rax - 0x10], esi
je 0x140052a97
mov ebx, 1
mov rcx, qword [rbp - 0x80]
mov rax, r13
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140052a00
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x80]
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 - 0x70]
cmp dword [rax - 0x10], 0
jne 0x140052a51
lea rdx, str.EndpointIdForHiddenJack
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x140052a9b
mov rcx, qword [rbp - 0x70]
mov rax, r13
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140052a60
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x70]
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 0x140052a9b
mov ebx, dword [rsp + 0x6c]
test rdi, rdi
je 0x140052aad
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x58], r14
mov dword [rbp - 0x50], r14d
cmp dword [0x140125c9c], 0
je 0x140052b02
cmp dword [0x140125c98], 0
jne 0x140052ad0
mov rax, qword [0x14011faa0]
test byte [rax + 0x1c], 1
je 0x140052b02
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9d, ebx
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopyData
lea rdx, str.CJackInfoRegWriter::UpdateJackInfoToReg
lea rcx, str._s__d_FoundEp_d_AutoDetectHeadset_d_EpId_s_HeadsetMicEpId_s
call fcn.14004c3d0
mov r15d, ebx
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140052b24
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140052b43
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, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140052b62
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140052b81
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x60]
call fcn.14000b9a0
lea rcx, [rbp + 0x30]
call fcn.140015380
nop
mov eax, dword [0x140125ca8]
cmp eax, 1
jne 0x140052baf
call fcn.140072dd0
call fcn.140074f40
mov eax, dword [0x140125ca8]
dec eax
mov dword [0x140125ca8], eax
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140052bd6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x140052bf5
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140052c04
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r15d
jmp 0x140051e84
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
int3