Function at 0x140053920
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 - 0x7d8]
sub rsp, 0x8b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401600b0]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov rbx, r8
mov qword [rsp + 0x68], rbx
mov rdi, rdx
mov qword [rsp + 0x70], 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 + 0x3a0]
call fcn.1400b4430
mov r14b, r15b
mov byte [rsp + 0x40], r15b
test rdi, rdi
je 0x140053a54
test rbx, rbx
je 0x140053a54
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 0x140053a81
call fcn.14008b144
lea r9d, [r15 + 1]
mov r8, qword [rax]
lea edx, [r15 + 2]
lea rcx, [rbp - 0x80]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.Open_key:
mov rcx, rbx
call fcn.1400098d0
lea rdx, str.SYSTEMCurrentControlSetEnumDisplay
mov rcx, rbx
call fcn.1400098d0
lea rdx, str._failed_ec
mov rcx, rbx
call fcn.1400098d0
mov edx, esi
mov rcx, rbx
call fcn.14003fd60
nop
lea rcx, [rbp + 0x28]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.140002658
nop
xor al, al
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.140095410
lea r11, [rsp + 0x8b0]
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 0x140053d73
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 + 0x3a0]
mov edx, r15d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140053d73
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
lea rdx, [rbp + 0x3a0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
je 0x140053b6b
call fcn.14008b144
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp - 0x80]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.1400098d0
lea rdx, str._RegEnumKeyEx_failed_with_code
mov rcx, rbx
call fcn.1400098d0
mov edx, esi
mov rcx, rbx
call fcn.14003fd60
nop
lea rcx, [rbp + 0x28]
call fcn.140004938
nop
mov qword [rbp + 0x28], r12
lea rcx, [rbp + 0x28]
call fcn.140002658
nop
jmp 0x140053d62
xor esi, esi
test r14b, r14b
jne 0x140053d57
cmp esi, 0x400
jae 0x140053d50
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 + 0x3a0]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r12d, eax
test eax, eax
jne 0x140053dff
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x3a0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140053d3a
mov dword [rsp + 0x44], 0x400
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3a0]
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 0x140053d87
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140053d3a
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 0x140053d37
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 0x140053cb5
mov byte [rsp + 0x40], dil
jmp 0x140053d2c
call fcn.14008b144
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x88]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.1400098d0
lea rdx, str._RegQueryValueEx_on_EDID_failed_with_code
mov rcx, rbx
call fcn.1400098d0
xor edx, edx
mov rcx, rbx
call fcn.14003fd60
nop
lea rcx, [rbp + 0x130]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x130], rax
lea rcx, [rbp + 0x130]
call fcn.140002658
nop
mov rbx, qword [rsp + 0x68]
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 0x140053b76
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 + 0x68]
je 0x140053a95
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [rsp + 0x40]
jmp 0x140053a56
call fcn.14008b144
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x190]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.1400098d0
lea rdx, str._RegQueryValueEx_failed_with_code
mov rcx, rbx
call fcn.1400098d0
mov edx, r12d
mov rcx, rbx
call fcn.14003fd60
nop
lea rcx, [rbp + 0x238]
call fcn.140004938
nop
lea r12, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x238], r12
lea rcx, [rbp + 0x238]
call fcn.140002658
nop
jmp 0x140053d57
cmp r12d, 0x103
je 0x140053d50
call fcn.14008b144
mov r9d, edi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x298]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.updtDispDevEnumClass::GetEDIDData
mov rcx, rbx
call fcn.1400098d0
lea rdx, str._RegEnumKeyEx_failed__subIndex
mov rcx, rbx
call fcn.1400098d0
mov edx, esi
mov rcx, rbx
call fcn.14003fd60
lea rdx, str.__code
mov rcx, rbx
call fcn.1400098d0
mov edx, r12d
mov rcx, rbx
call fcn.14003fd60
nop
lea rcx, [rbp + 0x340]
call fcn.140004938
nop
lea r12, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x340], r12
lea rcx, [rbp + 0x340]
call fcn.140002658
nop
jmp 0x140053d57