Function at 0x140077fa0
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, 0xe0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rbp + 7], rax
xor r12d, r12d
mov dword [rbp - 0x15], r12d
mov r8d, 0x1e0
lea rdx, str.CMMPlatform::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, [0x1400c4050]
call fcn.14004c3d0
call fcn.14000adc0
mov rcx, rax
call fcn.140077520
call fcn.14000adc0
cmp dword [rax + 0x138], r12d
jne 0x140078054
cmp dword [0x140125c9c], r12d
je 0x140078054
cmp dword [0x140125c98], r12d
jne 0x14007803b
mov rax, qword [0x14011faa0]
test byte [rax + 0x1c], 1
je 0x140078054
mov r8d, 0x3c
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.14004c3d0
call fcn.14000adc0
mov r13, qword [rax + 0xd8]
test r13, r13
je 0x140078564
mov r14, 0xffffffffffffffff
movss xmm7, dword [0x1400f4108]
mov ebx, 1
call fcn.14000adc0
call fcn.14000adc0
test r13, r13
je 0x140078604
mov rsi, qword [r13 + 0x10]
mov r13, qword [r13]
test rsi, rsi
je 0x14007855b
xor edx, edx
mov rcx, qword [rsi + 0x110]
test rcx, rcx
je 0x1400780e3
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400780e3
mov r8, qword [rcx + 0x10]
mov rcx, qword [rcx]
test r8, r8
je 0x1400780ce
cmp dword [r8 + 0x118], 0
cmove edx, ebx
test rcx, rcx
jne 0x1400780b7
test edx, edx
je 0x1400780e3
lea rcx, [rsi + 0xc8]
call fcn.14000f670
mov rcx, rsi
call fcn.14000ee80
cmp dword [rsi + 0x178], 0
jne 0x140078101
cmp dword [rsi + 0x180], 0
je 0x14007830c
mov r15, qword [rsi + 0x110]
test r15, r15
je 0x14007830c
mov r15, qword [r15]
test r15, r15
je 0x14007830c
mov rdi, qword [r15 + 0x10]
mov r15, qword [r15]
test rdi, rdi
je 0x140078303
mov rcx, qword [rdi + 0x40]
sub rcx, 0x18
call fcn.140006110
lea r14, [rax + 0x18]
mov qword [rbp - 0x59], r14
or r12d, 1
mov rcx, qword [rdi + 0x10]
sub rcx, 0x18
call fcn.140006110
lea rbx, [rax + 0x18]
mov qword [rbp - 0x51], rbx
or r12d, 2
mov qword [rsp + 0x20], r14
mov r9, rbx
mov r8d, 0x1f6
lea rdx, str.CMMPlatform::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d___Endpoint_ID___s__Line_Name___s
call fcn.14004c3d0
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007819e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [r14 - 0x18]
mov r14, 0xffffffffffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400781bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14000ac00
test dword [rax + 0xac], 0x100
je 0x1400781fd
mov rcx, rsi
call fcn.1400145b0
cmp dword [rsi + 0x84], 0
jne 0x1400781fd
call fcn.14000ac00
cmp dword [rax + 0x22c], 0x33
jge 0x1400781fd
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
jmp 0x140078303
cmp dword [rsi + 0x1ac], 1
jne 0x14007824f
lea rcx, [rsi + 0x10]
mov r9d, 1
lea r8, [rbp - 0x79]
lea rdx, [0x1400c2b08]
call fcn.140002920
mov ebx, eax
mov r14d, dword [rbp - 0x79]
mov r9d, r14d
mov r8d, eax
lea rdx, str.CAudioDevice::IsInHeadphonesMode
lea rcx, str._s_bSuccess_d_dwHpMode_d
call fcn.14004c3d0
test ebx, ebx
je 0x14007824f
test r14d, r14d
je 0x14007824f
mov edx, 1
jmp 0x140078251
xor edx, edx
cmp dword [rsi + 0x1ac], 8
jne 0x1400782f3
cmp dword [rdi + 0x114], 0
je 0x1400782fc
mov dword [rbp - 0x29], 0
mov rax, qword [rdi]
lea rdx, [rbp - 0x29]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov r14, 0xffffffffffffffff
test eax, eax
je 0x140078303
mov ecx, dword [rbp - 0x29]
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400a4688
mov rbx, rax
test rax, rax
je 0x140078303
xor edx, edx
mov r8d, dword [rbp - 0x29]
test r8d, r8d
je 0x1400782d2
nop dword [rax]
nop dword [rax + rax]
mov dword [rax + rdx*4], 0x64
inc edx
mov r8d, dword [rbp - 0x29]
cmp edx, r8d
jb 0x1400782c0
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x28]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, rbx
call fcn.1400a404c
jmp 0x140078303
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
mov r14, 0xffffffffffffffff
test r15, r15
jne 0x14007811d
cmp dword [rsi + 0x184], 0
je 0x14007855b
mov eax, dword [rsi + 0x1ac]
dec eax
test eax, 0xfffffffd
jne 0x14007855b
mov dword [rbp - 0x19], 0
lea rcx, [rsi + 0xc8]
call fcn.14000f590
mov rdi, rax
test rax, rax
je 0x14007855b
mov qword [rbp - 0x21], 0
mov dword [rbp - 0x15], 3
mov dword [rbp - 9], 4
mov rcx, qword [rsi + 0x128]
sub rcx, 0x18
call fcn.140006110
lea rbx, [rax + 0x18]
mov qword [rbp - 1], rbx
cmp dword [rbx - 0x10], 0
jl 0x1400783d8
lea rdx, [0x1400d290c]
mov rcx, rbx
call fcn.1400aa2c0
test rax, rax
je 0x1400783d8
sub rax, rbx
sar rax, 1
test eax, eax
js 0x1400783d8
cmp dword [rbx - 0x10], 0
jge 0x1400783a8
mov eax, r14d
jmp 0x1400783c7
lea rdx, [0x1400d290c]
mov rcx, rbx
call fcn.1400aa2c0
test rax, rax
jne 0x1400783c1
mov eax, r14d
jmp 0x1400783c7
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
lea rcx, [rbp - 1]
call fcn.140037d20
mov rbx, qword [rbp - 1]
mov qword [rbp - 0x11], 0
lea rcx, [rbx - 0x18]
call fcn.140006110
add rax, 0x18
mov qword [rbp - 0x71], rax
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x11]
call fcn.140076be0
nop
mov r8d, 7
lea rdx, str.Device
lea rcx, [rbp - 0x11]
call fcn.14000f360
lea rcx, [rsi + 0x130]
mov r8d, SafeArrayUnaccessData
lea rdx, [rbp - 0x69]
call fcn.14000b0f0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x11]
call fcn.14000f360
nop
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007845b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x11]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400784bb
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400784bb
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x15]
xor r8d, r8d
lea rdx, str.Gain
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rbp - 0x19]
test eax, eax
je 0x140078521
movd xmm6, eax
cvtdq2ps xmm6, xmm6
mulss xmm6, xmm7
movups xmm0, xmmword [0x1400c94e0]
movaps xmmword [rbp - 0x39], xmm0
mov rax, qword [rdi]
lea r8, [rbp - 0x39]
movaps xmm1, xmm6
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x10]
cvtps2pd xmm0, xmm6
mov eax, dword [rbp - 0x19]
mov dword [rsp + 0x28], eax
movsd qword [rsp + 0x20], xmm0
mov r9, qword [rsi + 0x10]
mov r8d, 0x24a
lea rdx, str.CMMPlatform::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d__s_RtkSndwAudio_SetDBLevel__f__SetMute_FALSE__DrvDefVol_x
call fcn.14004c3d0
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140078540
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, r14d
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14007855b
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r13, r13
jne 0x140078078
call fcn.14000adc0
mov ecx, dword [rax + 0x138]
sub ecx, 1
mov dword [rax + 0x138], ecx
jne 0x140078589
mov rcx, qword [rax + 0x148]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x1400785a7
cmp ecx, 0x32
jle 0x1400785a7
mov r8d, 0x82
lea rdx, str.CMMPlatform::AudioDevList_Release
lea rcx, str._s__d_calling_AudioDevList_Release_isnt_matched_AudioDevList_AddRef_or_directly_return_in_EnumAudioDeviceStart_loop
call fcn.14004c3d0
call fcn.14000ac00
test dword [rax + 0xd0], 0x100
je 0x1400785bf
xor ecx, ecx
call fcn.140049280
call fcn.140043fd0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x70]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400a4020
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004670
int3