Function at 0x140061930
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.1400046f0
mov rcx, rax
test rax, rax
je 0x140061bae
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.1400207f0
mov rbp, rax
mov esi, SafeArrayUnaccessData
xor r14d, r14d
mov r9d, esi
lea r8, str.SoftwareRealtekAudioGUI_INFORMATIONJackInfomation
lea rdx, str._sJack_d
lea rcx, [rsp + 0x40]
call fcn.1400064f0
mov dword [rsp + 0x30], r14d
lea r9, [rsp + 0x30]
lea r8, str.Docking
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.14007edf0
cmp dword [rsp + 0x30], 0
je 0x140061b52
test rbp, rbp
je 0x140061a07
cmp esi, 0x21
jae 0x140061a07
mov eax, esi
lea rcx, [rax + rax*2]
lea rax, [rbp + 0xa0]
lea rax, [rax + rcx*4]
test rax, rax
je 0x140061a07
cmp dword [rax], 0
jne 0x140061b52
test rbx, rbx
jne 0x140061a2a
mov r8d, 0xc0
lea rdx, str.CRegClient::SetRegUI4PropertyNoCreateKey
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
jmp 0x140061b36
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov r9d, 0x20019
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x60]
call fcn.1400280a0
mov edi, r14d
test eax, eax
sete dil
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140061a88
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x60], r14
test edi, edi
jne 0x140061a91
jmp 0x140061b36
mov r9d, 2
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400280a0
test eax, eax
je 0x140061ad5
mov r8d, 0xce
lea rdx, str.CRegClient::SetRegUI4PropertyNoCreateKey
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140061b36
jmp 0x140061b30
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.JackStatus
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x140061b28
mov r8d, 0xd2
lea rdx, str.CRegClient::SetRegUI4PropertyNoCreateKey
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
nop
test rdi, rdi
je 0x140061b36
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r9d, esi
mov r8d, 0xbc
lea rdx, str.CJackInfoRegWriter::DeleteUSBJackPlugStatusInReg
lea rcx, str._s__d_UIJackIndex_d_PlugState0
call fcn.14005b9a0
inc esi
cmp esi, 0x20
jl 0x140061993
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140061b83
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c17f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov ecx, 0x80004005
call fcn.140004820
int3