Function at 0x1400346a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x140123108]
xor rax, rsp
mov qword [rbp + 0x190], rax
call fcn.140060914
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.Detecting_DCH_status_using_registry
mov ebx, 3
mov edx, ebx
mov rax, qword [rax + 0x38]
call qword [case.0x140050ed0.0]
mov dword [rbp + 0x70], 0x11c
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x80]
call fcn.140087fe0
xor r15d, r15d
mov word [rbp + 0x184], r15w
xor eax, eax
mov dword [rbp + 0x186], eax
mov word [rbp + 0x18a], ax
mov qword [rbp + 0x74], 0xa
mov dword [rbp + 0x7c], 0x42ca
mov r8b, bl
lea edi, [rbx - 1]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov rcx, rax
mov r8b, bl
lea r12d, [rbx - 2]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov rcx, rax
mov r8b, bl
lea edx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8, rax
lea edx, [rbx + 4]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x1400347ba
call fcn.140060914
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.Windows_version_is_less_than_Windows_10_RS4__not_DCH_system
mov edx, ebx
mov rax, qword [rax + 0x38]
call qword [case.0x140050ed0.0]
xor eax, eax
jmp 0x14003494c
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices_nvlddmkm
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
mov rcx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rcx
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x58], rsi
test eax, eax
je 0x14003486d
call fcn.140060914
mov r9d, r12d
mov r8, qword [rax]
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_nvlddmkm_not_found__returning_clean_system_status__rc
mov rcx, rbx
call fcn.140015a24
mov edx, r14d
mov rcx, rbx
call fcn.140013ba8
nop
lea rcx, [rbp + 8]
call fcn.14000c350
lea rax, [rbp + 8]
mov qword [rsp + 0x40], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140067b68
jmp 0x14003493c
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DCHUVen
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
call fcn.140060914
mov r9d, r12d
mov r8, qword [rax]
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.DCHUVen_is
mov rcx, rbx
call fcn.140015a24
mov edx, dword [rsp + 0x30]
mov rcx, rbx
call fcn.1400139a0
lea rdx, str.__registry_read_result_code_is
mov rcx, rbx
call fcn.1400605dc
mov edx, edi
mov rcx, rbx
call fcn.140013ba8
nop
lea rcx, [rbp + 8]
call fcn.14000c350
lea rax, [rbp + 8]
mov qword [rsp + 0x40], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140067b68
test edi, edi
jne 0x140034939
cmp dword [rsp + 0x30], 0x10de
mov edi, r12d
je 0x14003493c
mov edi, r15d
test rsi, rsi
je 0x14003494a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400697f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret