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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x7e8]
sub rsp, 0x8c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140121108]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rbx, r8
mov qword [rsp + 0x70], rbx
mov rdi, rdx
mov qword [rsp + 0x78], rdx
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x60], r15
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x3b0]
call fcn.140086ad0
mov r14b, r15b
mov byte [rsp + 0x40], r15b
test rdi, rdi
je 0x140035105
test rbx, rbx
je 0x140035105
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 9]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetEnumDisplay
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
je 0x140035132
call fcn.14005f3e4
lea r9d, [r15 + 1]
mov r8, qword [rax]
lea edx, [r15 + 2]
lea rcx, [rbp - 0x78]
call fcn.14000c28c
nop
lea rbx, [rax + 0x10]
lea rdx, str.Open_key:
mov rcx, rbx
call fcn.140015984
lea rdx, str.SYSTEMCurrentControlSetEnumDisplay
mov rcx, rbx
call fcn.140015984
lea rdx, str._failed_ec
mov rcx, rbx
call fcn.140015984
mov edx, esi
mov rcx, rbx
call fcn.1400138fc
nop
lea rcx, [rbp + 0x30]
call fcn.14000c21c
lea rax, [rbp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x30], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.140066758
xor al, al
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400683e0
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov dword [rsp + 0x44], 0x200
mov edi, 1
lea r12, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
cmp r15d, 0x400
jae 0x140035451
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x3b0]
mov edx, r15d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140035451
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
lea rdx, [rbp + 0x3b0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
je 0x14003522e
call fcn.14005f3e4
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp - 0x78]
call fcn.14000c28c
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.140015984
lea rdx, str._RegEnumKeyEx_failed_with_code
mov rcx, rbx
call fcn.140015984
mov edx, esi
mov rcx, rbx
call fcn.1400138fc
nop
lea rcx, [rbp + 0x30]
call fcn.14000c21c
lea rax, [rbp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x30], r12
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.140066758
jmp 0x140035440
xor esi, esi
test r14b, r14b
jne 0x140035435
cmp esi, 0x400
jae 0x14003542e
mov dword [rsp + 0x44], 0x200
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x3b0]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r12d, eax
test eax, eax
jne 0x1400354f0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x3b0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140035418
mov dword [rsp + 0x44], 0x400
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Driver
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r12d, eax
test eax, eax
jne 0x140035465
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140035418
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Device_Parameters
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140035415
mov dword [rsp + 0x44], 0x100
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.EDID
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003537b
mov byte [rsp + 0x40], dil
jmp 0x14003540a
call fcn.14005f3e4
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x90]
call fcn.14000c28c
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.140015984
lea rdx, str._RegQueryValueEx_on_EDID_failed_with_code
mov rcx, rbx
call fcn.140015984
xor edx, edx
mov rcx, rbx
call fcn.1400138fc
nop
lea rcx, [rbp + 0x138]
call fcn.14000c21c
lea rax, [rbp + 0x138]
mov qword [rsp + 0x68], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x138], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x138], rax
lea rcx, [rbp + 0x138]
call fcn.140066758
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14b, dil
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, edi
test r14b, r14b
je 0x140035239
lea r12, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add r15d, edi
test r14b, r14b
mov rbx, qword [rsp + 0x70]
je 0x140035146
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [rsp + 0x40]
jmp 0x140035107
call fcn.14005f3e4
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x198]
call fcn.14000c28c
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.140015984
lea rdx, str._RegQueryValueEx_failed_with_code
mov rcx, rbx
call fcn.140015984
mov edx, r12d
mov rcx, rbx
call fcn.1400138fc
nop
lea rcx, [rbp + 0x240]
call fcn.14000c21c
lea rax, [rbp + 0x240]
mov qword [rsp + 0x68], rax
lea r12, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x240], r12
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x240], rax
lea rcx, [rbp + 0x240]
jmp 0x14003559c
cmp r12d, 0x103
je 0x14003542e
call fcn.14005f3e4
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x2a0]
call fcn.14000c28c
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.140015984
lea rdx, str._RegEnumKeyEx_failed__subIndex
mov rcx, rbx
call fcn.140015984
mov edx, esi
mov rcx, rbx
call fcn.1400138fc
lea rdx, str.__code
mov rcx, rbx
call fcn.140015984
mov edx, r12d
mov rcx, rbx
call fcn.1400138fc
nop
lea rcx, [rbp + 0x348]
call fcn.14000c21c
lea rax, [rbp + 0x348]
mov qword [rsp + 0x68], rax
lea r12, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x348], r12
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x348], rax
lea rcx, [rbp + 0x348]
call fcn.140066758
jmp 0x140035435