Function at 0x1400213e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov r13, rcx
xor r14d, r14d
mov dword [rbp + 0x40], r14d
mov rax, qword [rcx + 0xd8]
mov rsi, qword [rax + 0x10]
test rsi, rsi
jne 0x140021425
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rsi]
lea rdx, [rbp + 0x40]
mov rcx, rsi
call qword [rax + 0x40]
test eax, eax
je 0x140021414
mov ecx, dword [rbp + 0x40]
mov eax, 4
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.140153a84
mov rdi, rax
test rax, rax
je 0x140021414
mov r8d, dword [rbp + 0x40]
shl r8, 2
xor edx, edx
mov rcx, rax
call fcn.1402ef020
mov dword [rbp + 0x48], r14d
lea rdx, str.PbDefaultVol_IntSpk
lea rcx, [rbp - 0x30]
call fcn.1400169b0
lea r8, [rbp + 0x48]
mov rdx, rax
lea rcx, str.SOFTWARERealtekRealtekEffectsDriver
call fcn.140040170
test eax, eax
je 0x1400214b2
mov ecx, r14d
cmp dword [rbp + 0x40], ecx
jbe 0x1400214c5
mov edx, dword [rbp + 0x48]
mov eax, ecx
mov dword [rdi + rax*4], edx
inc ecx
cmp ecx, dword [rbp + 0x40]
jb 0x1400214a4
jmp 0x1400214c5
mov rax, qword [rsi]
mov r8d, dword [rbp + 0x40]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0x98]
call fcn.140155310
mov rcx, qword [rax + 8]
mov r10, qword [rcx]
mov eax, dword [rbp + 0x40]
lea eax, [rax*4]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str.SpeakerVolume
lea rdx, str.Others
call qword [r10 + 0x120]
lea rax, [rbp - 0x38]
mov qword [rbp + 0x50], rax
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x140021750
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x38], rax
lea r15, str.PbDefaultVol_Hp
mov rdx, r15
lea rcx, [rbp - 0x38]
call fcn.1400168b0
test al, al
jne 0x14002155b
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x140021540
mov r8d, eax
mov rdx, r15
lea rcx, [rbp - 0x38]
call fcn.140016ad0
nop
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x18], r14d
mov qword [rbp - 0x10], r14
mov dword [rbp + 0x58], r14d
mov r9d, 1
lea r8, str.SOFTWARERealtekRealtekEffectsDriver
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x20]
call fcn.140024490
test eax, eax
je 0x14002159e
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14002162f
jmp 0x140021629
mov dword [rbp - 0x40], 4
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x3c]
xor r8d, r8d
mov rdx, qword [rbp - 0x38]
mov r15, qword [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140021621
cmp dword [rbp - 0x3c], 4
jne 0x140021621
mov eax, dword [rbp + 0x58]
mov dword [rbp + 0x48], eax
test r15, r15
je 0x1400215ed
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140021608
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, r14d
cmp dword [rbp + 0x40], ecx
jbe 0x14002165d
mov edx, dword [rbp + 0x48]
mov eax, ecx
mov dword [rdi + rax*4], edx
inc ecx
cmp ecx, dword [rbp + 0x40]
jb 0x140021613
jmp 0x14002165d
test r15, r15
je 0x14002162f
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14002164a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov r8d, dword [rbp + 0x40]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0x98]
call fcn.140155310
mov rcx, qword [rax + 8]
mov r10, qword [rcx]
mov eax, dword [rbp + 0x40]
lea eax, [rax*4]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str.HeadphoneVolume
lea rdx, str.Others
call qword [r10 + 0x120]
mov rcx, rdi
call fcn.140153a7c
cmp dword [rsi + 0x34], 0
je 0x140021708
mov dword [rbp + 0x50], r14d
mov rax, qword [rsi]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call qword [rax + 0x28]
test eax, eax
je 0x140021708
call fcn.140155310
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
mov r9d, r14d
cmp dword [rbp + 0x50], r14d
setne r9b
lea r8, str.SpeakerMute
lea rdx, str.Others
call qword [rax + 0x100]
call fcn.140155310
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
mov r9d, r14d
cmp dword [rbp + 0x50], r14d
setne r9b
lea r8, str.HPMute
lea rdx, str.Others
call qword [rax + 0x100]
mov rcx, r13
call fcn.140020990
mov ebx, eax
call fcn.140155310
mov rcx, qword [rax + 8]
mov r10, qword [rcx]
test ebx, ebx
setne r14b
mov r9d, r14d
lea r8, str.InHPMode
lea rdx, str.Others
call qword [r10 + 0x100]
mov eax, 1
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140012800
int3