Function at 0x140012320
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14005d030]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r15d, r15d
xor r14b, r14b
lea rcx, [0x1400601c8]
call fcn.1400243a4
test eax, eax
jne 0x140012683
mov r8, qword [0x140060380]
mov rcx, qword [0x140060388]
cmp r8, rcx
je 0x1400125c2
mov esi, r15d
sub rcx, r8
movabs r12, 0x6666666666666667
mov rax, r12
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400125c2
mov edi, r15d
movabs r13, 0x7ffffffffffffffe
mov rbx, r15
mov qword [rbp - 0x29], rbx
mov dword [rbp - 0x21], r15d
mov qword [rbp - 0x19], r15
lea rcx, [r8 + 0x48]
add rcx, rdi
mov rdx, qword [rcx + 0x10]
mov rax, r13
sub rax, rdx
cmp rax, 0x41
jb 0x14001267d
cmp qword [rcx + 0x18], 8
jb 0x1400123f5
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0x41
lea r9, str.SoftwareMicrosoftWindowsCurrentVersionMMDevicesAudioRender_
lea rcx, [rbp + 0xf]
call fcn.140016190
nop
mov r8d, 0xb
lea rdx, str.Properties
lea rcx, [rbp + 0xf]
call fcn.1400151b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14001249d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012498
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001268b
call fcn.140024800
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
mov qword [rbp - 0x49], r15
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012529
mov rbx, qword [rbp - 0x49]
mov dword [rbp - 0x49], r15d
mov dword [rbp - 0x41], 4
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rdx, qword [0x140060360]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012518
cmp dword [rbp - 0x39], 4
je 0x1400125ff
test rbx, rbx
je 0x140012529
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140012569
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012564
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012677
call fcn.140024800
mov qword [rbp - 1], r15
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r15w
test rbx, rbx
je 0x140012588
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
add rdi, 0xa0
mov rcx, qword [0x140060388]
mov r8, qword [0x140060380]
sub rcx, r8
mov rax, r12
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, esi
cmp rax, rdx
jb 0x1400123c1
lea rcx, [0x1400601c8]
call fcn.1400243ac
movzx eax, r14b
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400247e0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r14b, 1
test rbx, rbx
je 0x140012613
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14001264f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001264a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012691
call fcn.140024800
mov qword [rbp - 1], r15
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r15w
test rbx, rbx
je 0x1400125c2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400125c2
call fcn.14002bf94
int3
call fcn.140002440
nop
mov ecx, eax
call fcn.140023e80
nop
call fcn.14002bf94
int3
call fcn.14002bf94
int3