Function at 0x140058e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14044f8c0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov ebx, edx
mov r13d, ecx
mov dword [rsp + 0x34], ecx
xor r14d, r14d
mov r15d, r14d
mov dword [rsp + 0x40], r14d
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x78], r14
mov qword [rsp + 0x48], r14
mov qword [rbp - 0x68], r14
mov dword [rsp + 0x50], r14d
mov qword [rbp - 0x50], r14
mov dword [rbp - 0x48], r14d
mov qword [rbp - 0x40], r14
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x14005969b
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x1400596a6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov dword [rsp + 0x64], r14d
lea edx, [rax + 0xa]
lea rcx, [rbp - 0x30]
call fcn.140155500
lea rax, vtable.CTypedPtrList_class_CPtrList__struct__EndpointDefaultTime____ptr64_.0
mov qword [rbp - 0x30], rax
mov edi, r14d
mov dword [rsp + 0x30], r14d
mov esi, r14d
mov dword [rsp + 0x3c], r14d
mov qword [rsp + 0x68], r14
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea r12, [r14 - 1]
test ebx, ebx
jne 0x1400590bb
xor eax, eax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
mov qword [rbp - 0x58], r14
mov dword [rsp + 0x60], r14d
mov qword [rbp - 0x80], r14
xor r9d, r9d
lea rdx, str.General
lea rcx, [0x14046a640]
test r13d, r13d
lea r8, str.RenderDefaultFixed
je 0x140058fd2
lea r8, str.CaptureDefaultFixed
call fcn.140169d48
mov ebx, eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
lea r8, str.LastFixDefaultTime
lea rdx, str.General
lea rcx, [0x14046a640]
call fcn.140169b78
test eax, eax
je 0x14005908c
cmp dword [rsp + 0x60], 0x10
jne 0x14005907a
mov rax, qword [rbp - 0x80]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, r12d
jne 0x14005907a
xor r9d, r9d
lea r8, str.RenderDefaultFixed
lea rdx, str.General
lea rcx, [0x14046a640]
call fcn.14016a2dc
xor r9d, r9d
lea r8, str.CaptureDefaultFixed
lea rdx, str.General
lea rcx, [0x14046a640]
call fcn.14016a2dc
mov ebx, r14d
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14005908c
call fcn.140153a7c
mov qword [rbp - 0x80], r14
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
lea r9, [rbp + 0x20]
lea r8, str.LastFixDefaultTime
lea rdx, str.General
lea rcx, [0x14046a640]
call fcn.14016a1a4
cmp ebx, 1
je 0x1400595c3
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x1403920b0]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140392100]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400595c3
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
lea r9, [rbp - 0x78]
mov r8d, 9
mov ebx, dword [rsp + 0x34]
mov edx, ebx
call qword [rax + 0x18]
test eax, eax
js 0x1400595c3
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x18]
test eax, eax
js 0x1400595c3
mov r13d, r14d
cmp dword [rsp + 0x50], esi
jbe 0x14005944f
lea rdi, str.Render_
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140059148
mov qword [rsp + 0x48], r14
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
mov edx, r13d
call qword [rax + 0x20]
test eax, eax
js 0x140059686
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
call qword [rax + 0x28]
test eax, eax
js 0x140059686
xor r8d, r8d
lea rdx, [0x140393240]
lea rcx, [rsp + 0x58]
call fcn.140016ad0
mov rdx, qword [rbp - 0x68]
test rdx, rdx
jne 0x14005919b
mov eax, r14d
jmp 0x1400591aa
mov rax, r12
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400591a0
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.140016630
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [rsp + 0x38], r14d
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x30]
test eax, eax
js 0x140059686
mov r8d, 0x3a
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio_
lea rcx, [rsp + 0x78]
call fcn.140016ad0
lea rdx, str.Capture_
test ebx, ebx
cmove rdx, rdi
mov rax, r12
inc rax
cmp word [rdx + rax*2], 0
jne 0x140059205
mov r8d, eax
lea rcx, [rsp + 0x78]
call fcn.140016630
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 0x10], 0
jge 0x14005922c
mov eax, r12d
jmp 0x14005924b
lea rdx, [0x140393800]
mov rcx, rbx
call fcn.1402ee61c
test rax, rax
jne 0x140059245
mov eax, r12d
jmp 0x14005924b
sub rax, rbx
sar rax, 1
lea r8d, [rax + 2]
mov r9d, dword [rbx - 0x10]
sub r9d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x58]
call fcn.1400241b0
or r15d, 1
mov dword [rsp + 0x40], r15d
mov rbx, qword [rbp - 0x38]
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140016630
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005929d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400592b0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x50], r14
mov dword [rbp - 0x48], r14d
mov r9d, 0x20019
mov r8, qword [rsp + 0x78]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x50]
call fcn.140024490
test eax, eax
jne 0x140059439
xor eax, eax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov dword [rsp + 0x64], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.Role:0
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140059682
cmp dword [rbp - 0x70], 3
jne 0x140059439
lea ecx, [rax + 0x18]
call fcn.140153a34
mov rdi, rax
test rax, rax
je 0x140059363
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x1400596b1
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
jmp 0x140059366
mov rdi, r14
test rdi, rdi
je 0x140059439
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140016d50
lea rdx, [rdi + 8]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x10], eax
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x1400593d0
mov rsi, rbx
mov rcx, rbx
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140059395
add rcx, 8
lea rdx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x140059395
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.140155704
jmp 0x1400593dc
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1401555ec
lea rdx, [rsp + 0x68]
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x140059407
cmp dword [rsp + 0x38], eax
jne 0x140059412
mov edi, eax
mov dword [rsp + 0x30], eax
mov esi, dword [rsp + 0x3c]
mov r15d, dword [rsp + 0x40]
jmp 0x14005943d
cmp dword [rsp + 0x38], 1
je 0x140059679
lea rdx, [rsp + 0x68]
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esi, dword [rsp + 0x3c]
cmp eax, 1
mov eax, 1
cmove esi, eax
mov dword [rsp + 0x3c], esi
mov r15d, dword [rsp + 0x40]
mov edi, dword [rsp + 0x30]
mov ebx, dword [rsp + 0x34]
inc r13d
cmp r13d, dword [rsp + 0x50]
jb 0x14005912c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140059464
mov qword [rsp + 0x48], r14
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test edi, edi
je 0x140059538
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x140393da8]
mov r15d, 1
mov r8d, r15d
xor edx, edx
lea rcx, [0x140393dd8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140059528
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x140059528
nop dword [rax + rax]
mov rdi, rbx
test rbx, rbx
je 0x14005968f
mov rbx, qword [rbx]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x140059523
cmp dword [rdi + 0x10], r15d
jne 0x140059523
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, r15d
jne 0x140059518
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rdi]
call qword [rax + 0x60]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov r8d, r15d
mov rdx, qword [rdi]
call qword [rax + 0x60]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov r8d, 2
mov rdx, qword [rdi]
call qword [rax + 0x60]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
jne 0x1400594b0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140059538
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rdx, str.General
lea rcx, [0x14046a640]
cmp dword [rsp + 0x34], 0
lea r8, str.RenderDefaultFixed
je 0x14005955b
lea r8, str.CaptureDefaultFixed
test esi, esi
sete r14b
mov r9d, r14d
call fcn.14016a2dc
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x1400595b9
mov rdi, rbx
test rbx, rbx
je 0x140059695
mov rbx, qword [rbx]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x1400595b4
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400595a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x18
mov rcx, rdi
call fcn.1400114d0
test rbx, rbx
jne 0x140059572
lea rcx, [rbp - 0x30]
call fcn.1401557ec
nop
lea rcx, [rbp - 0x30]
call fcn.140155528
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400595ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x14005960c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14005961c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005962d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14005963d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14005964c
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1402ecc20
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov esi, dword [rsp + 0x3c]
jmp 0x140059434
mov ebx, dword [rsp + 0x34]
mov edi, dword [rsp + 0x30]
jmp 0x140059441
call fcn.140161be4
nop
call fcn.140161be4
nop
mov ecx, 0x80004005
call fcn.140012800
nop
mov ecx, 0x80004005
call fcn.140012800
nop
mov ecx, 0x80004005
call fcn.140012800
int3