Function at 0x14005310c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1401600b0]
xor rax, rsp
mov qword [rbp + 0x180], rax
call fcn.14008b144
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.0x14007c430.0]
mov dword [rbp + 0x60], 0x11c
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x70]
call fcn.1400b4430
xor r15d, r15d
mov word [rbp + 0x174], r15w
xor eax, eax
mov dword [rbp + 0x176], eax
mov word [rbp + 0x17a], ax
mov qword [rbp + 0x64], 0xa
mov dword [rbp + 0x6c], 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 + 0x60]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x14005321b
call fcn.14008b144
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.0x14007c430.0]
xor eax, eax
jmp 0x140053389
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 + 0x48], rcx
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x50], rsi
test eax, eax
je 0x1400532bc
call fcn.14008b144
mov r9d, r12d
mov r8, qword [rax]
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_nvlddmkm_not_found__returning_clean_system_status__rc
mov rcx, rbx
call fcn.1400098d0
mov edx, r14d
mov rcx, rbx
call fcn.140045150
nop
lea rcx, [rbp]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp], rax
lea rcx, [rbp]
call fcn.140002658
nop
jmp 0x140053379
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.14008b144
mov r9d, r12d
mov r8, qword [rax]
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.DCHUVen_is
mov rcx, rbx
call fcn.1400098d0
mov edx, dword [rsp + 0x30]
mov rcx, rbx
call fcn.14003fd60
lea rdx, str.__registry_read_result_code_is
mov rcx, rbx
call fcn.14008aeac
mov edx, edi
mov rcx, rbx
call fcn.140045150
nop
lea rcx, [rbp]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp], rax
lea rcx, [rbp]
call fcn.140002658
nop
test edi, edi
jne 0x140053376
cmp dword [rsp + 0x30], 0x10de
mov edi, r12d
je 0x140053379
mov edi, r15d
test rsi, rsi
je 0x140053387
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140095410
lea r11, [rsp + 0x290]
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