Function at 0x140060530
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov r14, rcx
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
mov rax, qword [rcx + 0x1e0]
mov rsi, qword [rax + 0x10]
test rsi, rsi
jne 0x140060571
xor eax, eax
jmp 0x140060a4c
mov rax, qword [rsi]
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call qword [rax + 0x28]
test eax, eax
je 0x140060a4c
mov ecx, dword [rsp + 0xe0]
mov eax, 4
mul rcx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.1401281ec
mov r13, rax
test rax, rax
je 0x140060a4c
mov r8d, dword [rsp + 0xe0]
shl r8, 2
xor edx, edx
mov rcx, rax
call fcn.1401489d0
mov dword [rsp + 0xe8], ebp
lea rdx, str.PbDefaultVol_IntSpk
lea rcx, [rsp + 0x48]
call fcn.140004c90
lea r8, [rsp + 0xe8]
mov rdx, rax
lea rcx, str.SOFTWARERealtekRealtekEffectsDriver
call fcn.1400da6d0
test eax, eax
je 0x140060673
mov eax, ebp
cmp dword [rsp + 0xe0], eax
jbe 0x140060632
mov rcx, r13
mov edx, dword [rsp + 0xe8]
nop
nop
nop
mov dword [rcx], edx
add eax, 1
add rcx, 4
cmp eax, dword [rsp + 0xe0]
jb 0x140060620
mov rcx, r14
call fcn.14005f5d0
test eax, eax
je 0x140060687
lea rcx, [rsp + 0x70]
mov rax, qword [0x14018ead0]
mov qword [rcx], rax
mov rax, qword [0x14018ead8]
mov qword [rcx + 8], rax
mov rax, qword [rsi]
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0xe0]
mov rdx, r13
mov rcx, rsi
call qword [rax + 0x60]
jmp 0x140060687
mov rax, qword [rsi]
mov r8d, dword [rsp + 0xe0]
mov rdx, r13
mov rcx, rsi
call qword [rax + 0x70]
call fcn.14013c178
mov rcx, qword [rax + 8]
mov eax, dword [rsp + 0xe0]
shl eax, 2
mov dword [rsp + 0x20], eax
mov r9, r13
lea r8, str.SpeakerVolume
lea rdx, str.Others
call fcn.140138300
lea rdx, [rsp + 0x30]
mov qword [rsp + 0xf0], rdx
call fcn.140129a50
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x1400606e0
mov ecx, 0x80004005
call fcn.140002d80
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, str.PbDefaultVol_HpForDell
test rdx, 0xffffffffffff0000
jne 0x140060723
movzx edi, dx
mov ecx, edi
call fcn.140138984
test rax, rax
je 0x140060740
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140004d70
jmp 0x140060740
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.1400032e0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140060773
cmp rax, qword [rdi - 0x18]
jne 0x140060773
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x1400607b1
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14006078f
call fcn.1400b7790
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.1401448d0
add rbx, 0x18
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0xf0], ebp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400608a5
mov rdi, qword [rsp + 0x40]
mov dword [rsp + 0x3c], 4
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140060877
cmp dword [rsp + 0x38], 4
jne 0x140060877
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0xe8], eax
test rdi, rdi
je 0x140060854
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140060870
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, 1
jmp 0x1400608c3
test rdi, rdi
je 0x140060885
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400608a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, ebp
jmp 0x1400608c3
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400608c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, ebp
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400608e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x14006092a
lea rdx, str.PbDefaultVol_Hp
lea rcx, [rsp + 0x58]
call fcn.140004c90
lea r8, [rsp + 0xe8]
mov rdx, rax
lea rcx, str.SOFTWARERealtekRealtekEffectsDriver
call fcn.1400da6d0
test eax, eax
jne 0x14006092a
mov rax, qword [rsi]
mov r8d, dword [rsp + 0xe0]
mov rdx, r13
mov rcx, rsi
call qword [rax + 0x70]
jmp 0x140060997
mov eax, ebp
cmp dword [rsp + 0xe0], eax
jbe 0x140060952
mov rcx, r13
mov edx, dword [rsp + 0xe8]
nop
mov dword [rcx], edx
add eax, 1
add rcx, 4
cmp eax, dword [rsp + 0xe0]
jb 0x140060940
mov rcx, r14
call fcn.14005ecc0
test eax, eax
je 0x140060997
lea rcx, [rsp + 0x90]
mov rax, qword [0x14018ead0]
mov qword [rcx], rax
mov rax, qword [0x14018ead8]
mov qword [rcx + 8], rax
mov rax, qword [rsi]
lea r9, [rsp + 0x90]
mov r8d, dword [rsp + 0xe0]
mov rdx, r13
mov rcx, rsi
call qword [rax + 0x60]
call fcn.14013c178
mov rcx, qword [rax + 8]
mov eax, dword [rsp + 0xe0]
shl eax, 2
mov dword [rsp + 0x20], eax
mov r9, r13
lea r8, str.HeadphoneVolume
lea rdx, str.Others
call fcn.140138300
mov rcx, r13
call fcn.1401281e4
cmp dword [rsi + 0x14], 0
je 0x140060a18
mov dword [rsp + 0xf8], ebp
mov rax, qword [rsi]
lea rdx, [rsp + 0xf8]
mov rcx, rsi
call qword [rax + 0x18]
test eax, eax
je 0x140060a18
call fcn.14013c178
mov r9d, ebp
cmp dword [rsp + 0xf8], ebp
setne r9b
lea r8, str.SpeakerMute
lea rdx, str.Others
mov rcx, qword [rax + 8]
call fcn.140138148
mov rcx, r14
call fcn.14005ecc0
mov edi, eax
call fcn.14013c178
test edi, edi
setne bpl
mov r9d, ebp
lea r8, str.InHPMode
lea rdx, str.Others
mov rcx, qword [rax + 8]
call fcn.140138148
mov eax, 1
add rsp, 0xa0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret