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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rbx, qword [rbp + 0x2f8]
mov r12, r9
mov r15, r8
mov r14, rdx
test rbx, rbx
je 0x1800595cf
and dword [rbx], 0
test r14, r14
je 0x180059854
test r15, r15
je 0x180059854
test r12, r12
je 0x180059854
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetEnumDISPLAY_]
lea rcx, [rbp - 0x42]
movaps xmm1, xmmword [0x180092870]
xor edx, edx
mov eax, dword [0x1800928a8]
mov r8d, 0x1ba
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x180092880]
movaps xmmword [rbp - 0x70], xmm0
movsd xmm0, qword [0x1800928a0]
movaps xmmword [rbp - 0x80], xmm1
movaps xmm1, xmmword [0x180092890]
mov dword [rbp - 0x48], eax
movzx eax, word [0x1800928ac]
movsd qword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm1
mov word [rbp - 0x44], ax
call sub.msvcrt.dll_memset
mov r8, r14
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1800703c0
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180059854
mov esi, 0x100
lea rcx, [rbp + 0x180]
mov r8d, esi
xor edx, edx
xor edi, edi
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], esi
xor esi, esi
mov dword [rsp + 0x44], 0x104
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov edx, esi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180059845
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18005983b
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, str.Driver
lea rax, [rsp + 0x70]
mov dword [rsp + 0x44], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180059830
mov rdx, r15
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x180059830
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Device_Parameters
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180059830
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x100
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.EDID
lea rax, [rbp + 0x180]
mov dword [rsp + 0x40], 0x100
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180059825
mov edx, dword [rsp + 0x40]
lea rcx, [rbp + 0x180]
mov r8, r14
call fcn.18005944c
cmp eax, 1
jne 0x180059825
mov eax, 0x100
cmp dword [rsp + 0x40], eax
cmovb eax, dword [rsp + 0x40]
test rbx, rbx
je 0x18005980e
mov dword [rbx], eax
mov r8d, eax
lea rdx, [rbp + 0x180]
mov rcx, r12
call sub.msvcrt.dll_memcpy
mov edi, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
test edi, edi
je 0x1800596ae
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x180059856
xor eax, eax
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1800782d0
add rsp, 0x390
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret