Function at 0x140033a88
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 [0x140126108]
xor rax, rsp
mov qword [rbp + 0x190], rax
call fcn.140062444
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 [str._K_f_]
mov dword [rbp + 0x70], 0x11c
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x80]
call fcn.140089b10
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 0x140033b9a
call fcn.140062444
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 [str._K_f_]
xor eax, eax
jmp 0x140033d2c
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 0x140033c4d
call fcn.140062444
mov r9d, r12d
mov r8, qword [rax]
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.14000c39c
nop
lea rbx, [rax + 0x10]
lea rdx, str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_nvlddmkm_not_found__returning_clean_system_status__rc
mov rcx, rbx
call fcn.140015a04
mov edx, r14d
mov rcx, rbx
call fcn.140013b88
nop
lea rcx, [rbp + 8]
call fcn.14000c32c
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.140069698
jmp 0x140033d1c
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.140062444
mov r9d, r12d
mov r8, qword [rax]
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.14000c39c
nop
lea rbx, [rax + 0x10]
lea rdx, str.DCHUVen_is
mov rcx, rbx
call fcn.140015a04
mov edx, dword [rsp + 0x30]
mov rcx, rbx
call fcn.140013980
lea rdx, str.__registry_read_result_code_is
mov rcx, rbx
call fcn.14006210c
mov edx, edi
mov rcx, rbx
call fcn.140013b88
nop
lea rcx, [rbp + 8]
call fcn.14000c32c
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.140069698
test edi, edi
jne 0x140033d19
cmp dword [rsp + 0x30], 0x10de
mov edi, r12d
je 0x140033d1c
mov edi, r15d
test rsi, rsi
je 0x140033d2a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14006b320
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