Function at 0x140003930
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, 0xa0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401f8ee0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
xor eax, eax
mov qword [rbp + 0xf], 0x20
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
call fcn.140006a14
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400039a1
mov ecx, 0x80004005
call fcn.140003390
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x19], rdi
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400039d6
or r13, rax
jmp 0x140003d7d
mov dword [rbp - 0x29], 0x208
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
xor r14d, r14d
lea r8, [rbp + 0xf]
xor edx, edx
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
or r13, 0xffffffffffffffff
test eax, eax
je 0x140003d6e
nop
xor r9d, r9d
mov r8d, dword [rbp + 0x23]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x11]
call qword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
test eax, eax
jne 0x140003d53
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140003ab7
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003ac6
test rbx, rbx
je 0x140003a79
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rbp - 0x29]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140003a60
cmp word [rbx], 0
setne al
test al, al
jne 0x140003c6e
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140003b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003b57
test rbx, rbx
je 0x140003b0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rbp - 0x29]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140003af2
cmp word [rbx], 0
setne al
test al, al
jne 0x140003c6e
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 7]
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140003bdb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003bea
test rbx, rbx
je 0x140003b9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rbp - 0x29]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 7]
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140003b84
cmp word [rbx], 0
setne al
test al, al
jne 0x140003c6e
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140003c6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003c6e
test rbx, rbx
je 0x140003c30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rbp - 0x29]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140003c17
test rbx, rbx
jne 0x140003c77
xor ecx, ecx
jmp 0x140003c88
xor eax, eax
mov rcx, r13
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.1400031d0
mov rdi, qword [rbp - 0x19]
cmp dword [rdi - 0x10], 0
jl 0x140003d53
lea rdx, str.HDAUDIOFUNC_01VEN_14F1
mov rcx, rdi
call fcn.140148298
test rax, rax
je 0x140003d53
sub rax, rdi
sar rax, 1
test eax, eax
jne 0x140003d53
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8d, [rax + 1]
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140003d53
lea r8, [rbp - 9]
lea rdx, str.SettingsOEM
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140003d4a
mov dword [rbp - 0x25], 4
lea rax, [rbp - 0x25]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DefaultVREnabled
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003d4a
mov eax, dword [rbp - 0x21]
mov dword [r15], eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r14d
lea r8, [rbp + 0xf]
mov edx, r14d
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140003a10
test rbx, rbx
je 0x140003d7d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x140003d98
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401472d0
lea r11, [rsp + 0xa0]
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