Function at 0x140034e78
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 [0x140123108]
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.140087fe0
mov r14b, r15b
mov byte [rsp + 0x40], r15b
test rdi, rdi
je 0x140034fbd
test rbx, rbx
je 0x140034fbd
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 0x140034fea
call fcn.140060914
lea r9d, [r15 + 1]
mov r8, qword [rax]
lea edx, [r15 + 2]
lea rcx, [rbp - 0x78]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.Open_key:
mov rcx, rbx
call fcn.140015a24
lea rdx, str.SYSTEMCurrentControlSetEnumDisplay
mov rcx, rbx
call fcn.140015a24
lea rdx, str._failed_ec
mov rcx, rbx
call fcn.140015a24
mov edx, esi
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 0x30]
call fcn.14000c350
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.140067b68
xor al, al
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400697f0
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 0x140035309
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 0x140035309
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 0x1400350e6
call fcn.140060914
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp - 0x78]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.140015a24
lea rdx, str._RegEnumKeyEx_failed_with_code
mov rcx, rbx
call fcn.140015a24
mov edx, esi
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 0x30]
call fcn.14000c350
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.140067b68
jmp 0x1400352f8
xor esi, esi
test r14b, r14b
jne 0x1400352ed
cmp esi, 0x400
jae 0x1400352e6
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 0x1400353a8
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 0x1400352d0
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 0x14003531d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400352d0
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 0x1400352cd
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 0x140035233
mov byte [rsp + 0x40], dil
jmp 0x1400352c2
call fcn.140060914
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x90]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.140015a24
lea rdx, str._RegQueryValueEx_on_EDID_failed_with_code
mov rcx, rbx
call fcn.140015a24
xor edx, edx
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 0x138]
call fcn.14000c350
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.140067b68
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 0x1400350f1
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 0x140034ffe
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [rsp + 0x40]
jmp 0x140034fbf
call fcn.140060914
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x198]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.140015a24
lea rdx, str._RegQueryValueEx_failed_with_code
mov rcx, rbx
call fcn.140015a24
mov edx, r12d
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 0x240]
call fcn.14000c350
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 0x140035454
cmp r12d, 0x103
je 0x1400352e6
call fcn.140060914
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x2a0]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.140015a24
lea rdx, str._RegEnumKeyEx_failed__subIndex
mov rcx, rbx
call fcn.140015a24
mov edx, esi
mov rcx, rbx
call fcn.1400139a0
lea rdx, str.__code
mov rcx, rbx
call fcn.140015a24
mov edx, r12d
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 0x348]
call fcn.14000c350
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.140067b68
jmp 0x1400352ed