Function at 0x1400027e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov r13, rdx
lea rcx, str.CEdid::SetEdidByRegistry__s__n
call fcn.140001000
xor ebp, ebp
mov qword [rsp + 0x38], rbp
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r14, str.SYSTEMCurrentControlSetEnum_
lea r15d, [rbp + 1]
or rsi, 0xffffffffffffffff
test r14, 0xffffffffffff0000
jne 0x14000287d
movzx edi, r14w
xor edx, edx
mov ecx, edi
call fcn.140001030
test rax, rax
je 0x14000296e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400021c0
mov rbx, qword [rsp + 0x30]
jmp 0x14000296e
xor eax, eax
mov rcx, rsi
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov rdi, rcx
test ecx, ecx
jne 0x1400028f0
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14000296e
cmp dword [rdx + 0x10], eax
jge 0x1400028c5
cmp dword [rbx - 0xc], eax
jge 0x1400028ba
mov ecx, 0x80070057
call fcn.140001010
int3
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x14000296e
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400028dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x14000296e
mov ebp, dword [rbx - 0x10]
mov r12, r14
sub r12, rbx
sar r12, 1
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000291c
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400024b0
mov rbx, qword [rsp + 0x30]
cmp r12, rbp
ja 0x14000293c
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.14000dc20
jmp 0x140002954
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
mov r8, r14
mov rdx, rbp
mov rcx, rbx
call fcn.14000dab0
test edi, edi
js 0x140002bf3
cmp edi, dword [rbx - 0xc]
jg 0x140002bf3
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
xor eax, eax
mov rcx, rsi
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
mov rbp, r13
sub rbp, rbx
sar rbp, 1
mov r12d, dword [rbx - 0x10]
lea edi, [r12 + rcx - 1]
mov edx, r15d
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, edx
jge 0x1400029b2
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400024b0
mov rbx, qword [rsp + 0x30]
cmp rbp, r12
ja 0x1400029bb
lea r13, [rbx + rbp*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rbx + r12*2]
mov r9, rdx
mov r8, r13
call fcn.14000dab0
test edi, edi
js 0x140002be8
cmp edi, dword [rbx - 0xc]
jg 0x140002be8
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
xor eax, eax
mov rcx, rsi
lea r12, str.Device_Parameters
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
mov rbp, r12
sub rbp, rbx
sar rbp, 1
mov r13d, dword [rbx - 0x10]
lea edi, [r13 + rcx - 1]
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r15d
jge 0x140002a37
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400024b0
mov rbx, qword [rsp + 0x30]
cmp rbp, r13
ja 0x140002a40
lea r12, [rbx + rbp*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rbx + r13*2]
mov r9, rdx
mov r8, r12
call fcn.14000dab0
test edi, edi
js 0x140002bdd
cmp edi, dword [rbx - 0xc]
jg 0x140002bdd
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov r8, rbx
lea rdx, str.RtkAudioService
lea rcx, str.__s__Registry_path_:__s__n
call fcn.140001000
xor r13d, r13d
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002b9e
mov rbp, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0xa0], 0x100
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov r12, qword [rsp + 0x90]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xa8]
xor r8d, r8d
lea rdx, str.EDID
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140002b1e
mov edi, r13d
mov eax, 0xd
cmp dword [rsp + 0xa8], 3
cmovne edi, eax
test rbp, rbp
je 0x140002b31
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r13
test edi, edi
jne 0x140002b70
mov rcx, r12
call fcn.140003200
mov edi, eax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140002b59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002b69
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140002bfe
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140002b8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002b9a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140002bfe
lea r9, str..EDID.cpp
mov r8d, 0x2e
lea rdx, str.RtkAudioService
lea rcx, str.__s__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140001000
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140002bd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
jmp 0x140002bfe
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
nop
mov ecx, 0x80070057
call fcn.140001010
nop
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret