Function at 0x140127fa0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r12
sub rsp, 0x880
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x870], rax
xor r12d, r12d
lea rax, [rsp + 0x58]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionMMDevicesAudioRender
mov r9d, 0x108
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov esi, r12d
mov ebp, r12d
mov qword [rsp + 0x48], r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140128245
mov qword [rsp + 0x8a8], rdi
mov qword [rsp + 0x8b0], r13
lea r13d, [r12 + 1]
mov qword [rsp + 0x8a0], rbx
mov edi, r12d
nop
nop
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x470]
mov edx, edi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x60], 0x200
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1401281fd
lea r8, [rsp + 0x470]
lea rcx, [rsp + 0x70]
mov edx, 0x200
mov ebx, r12d
call fcn.1401469a0
lea r8, str.Properties
lea rcx, [rsp + 0x70]
mov edx, 0x200
call fcn.140146a50
mov rcx, qword [rsp + 0x58]
lea r11, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140128200
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, str.b3f8fa53_0004_438e_9003_51a46e139bfc_6
xor r8d, r8d
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012810b
lea rdx, str.Realtek
lea rcx, [rsp + 0x70]
call fcn.140145480
test rax, rax
cmovne ebx, r13d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140128200
lea r8, str.FXProperties
lea rcx, [rsp + 0x470]
mov edx, 0x200
call fcn.140146a50
mov rcx, qword [rsp + 0x58]
lea r11, [rsp + 0x48]
lea rdx, [rsp + 0x470]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140128200
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
lea rdx, str.082C429A_5A10_48ea_BE3D_DBC80F014519_6
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401281f0
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x50]
or dword [0x1402084c4], eax
lea rax, [rsp + 0x40]
lea rdx, str.082C429A_5A10_48ea_BE3D_DBC80F014519_0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
xor r8d, r8d
mov ebp, r13d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401281f0
mov eax, dword [rsp + 0x44]
or dword [0x1402084c8], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140128200
mov esi, r13d
add edi, r13d
test esi, esi
je 0x140128020
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
mov r13, qword [rsp + 0x8b0]
mov rdi, qword [rsp + 0x8a8]
mov rbx, qword [rsp + 0x8a0]
je 0x140128245
lea rdx, [0x1402084c0]
lea rcx, [0x1402084c0]
call fcn.1401277f0
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140144dc0
add rsp, 0x880
pop r12
pop rsi
pop rbp
ret