Function at 0x140163110
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [0x140467978], 0
je 0x14016356c
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
movaps xmmword [rcx], xmm0
mov rdx, r14
call sub.ntdll.dll_RtlInitUnicodeString
mov dword [rsp + 0x4c], 0x18
mov ecx, 0x18
call fcn.140252388
mov r14, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
add rax, 0x18
mov qword [rsp + 0x40], rax
test r14, r14
je 0x140163540
mov byte [r14], 0
cmp r14, 0xffffffffffffffff
je 0x140163540
mov byte [r14 + 1], 0
cmp r14, 0xfffffffffffffffe
je 0x140163540
mov byte [r14 + 2], 0
cmp r14, 0xfffffffffffffffd
je 0x140163540
mov byte [r14 + 3], 0
cmp r14, 0xfffffffffffffffc
je 0x140163540
mov byte [r14 + 4], 0
cmp r14, 0xfffffffffffffffb
je 0x140163540
mov byte [r14 + 5], 0
cmp r14, 0xfffffffffffffffa
je 0x140163540
mov byte [r14 + 6], 0
cmp r14, 0xfffffffffffffff9
je 0x140163540
mov byte [r14 + 7], 0
cmp r14, 0xfffffffffffffff8
je 0x140163540
mov byte [r14 + 8], 0
cmp r14, 0xfffffffffffffff7
je 0x140163540
mov byte [r14 + 9], 0
cmp r14, 0xfffffffffffffff6
je 0x140163540
mov byte [r14 + 0xa], 0
cmp r14, 0xfffffffffffffff5
je 0x140163540
mov byte [r14 + 0xb], 0
cmp r14, 0xfffffffffffffff4
je 0x140163540
mov byte [r14 + 0xc], 0
cmp r14, 0xfffffffffffffff3
je 0x140163540
mov byte [r14 + 0xd], 0
cmp r14, 0xfffffffffffffff2
je 0x140163540
mov byte [r14 + 0xe], 0
cmp r14, 0xfffffffffffffff1
je 0x140163540
mov byte [r14 + 0xf], 0
cmp r14, 0xfffffffffffffff0
je 0x140163540
mov byte [r14 + 0x10], 0
cmp r14, 0xffffffffffffffef
je 0x140163540
mov byte [r14 + 0x11], 0
cmp r14, 0xffffffffffffffee
je 0x140163540
mov byte [r14 + 0x12], 0
cmp r14, 0xffffffffffffffed
je 0x140163540
mov byte [r14 + 0x13], 0
cmp r14, 0xffffffffffffffec
je 0x140163540
mov byte [r14 + 0x14], 0
cmp r14, 0xffffffffffffffeb
je 0x140163540
mov byte [r14 + 0x15], 0
cmp r14, 0xffffffffffffffea
je 0x140163540
mov byte [r14 + 0x16], 0
cmp r14, 0xffffffffffffffe9
je 0x140163540
mov byte [r14 + 0x17], 0
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x18
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 1
mov r9, r14
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x140163379
cmp eax, 0xc0000023
je 0x140163379
test eax, eax
js 0x14016339c
mov eax, dword [r14 + 4]
mov dword [rdi], eax
mov r8d, dword [r14 + 0xc]
test r8, r8
je 0x14016340b
mov edx, dword [r14 + 8]
add rdx, r14
add r8, rdx
mov rcx, rsi
call fcn.1401d8f50
mov bl, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14016335e
mov qword [rsp + 0x38], rcx
call fcn.1402523c4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140253b80
mov eax, ebx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov edx, dword [rsp + 0x4c]
mov r14, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
sub rax, r14
cmp rax, rdx
jb 0x1401633a0
jbe 0x1401633b7
lea rax, [r14 + rdx]
mov qword [rsp + 0x38], rax
jmp 0x1401633b7
xor ebx, ebx
jmp 0x14016334a
sub rdx, rax
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.1401d5700
mov r14, qword [r14]
mov edx, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], edx
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 1
mov r9, r14
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1401633e8
cmp eax, 0xc0000023
jne 0x14016331f
mov edx, dword [rsp + 0x4c]
mov r14, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
sub rax, r14
cmp rax, rdx
jb 0x140163417
jbe 0x14016342e
lea rax, [r14 + rdx]
mov qword [rsp + 0x38], rax
jmp 0x14016342e
mov rax, qword [rsi]
mov qword [rsi + 8], rax
jmp 0x140163348
sub rdx, rax
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.1401d5700
mov r14, qword [r14]
mov edx, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], edx
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 1
mov r9, r14
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x14016345f
cmp eax, 0xc0000023
jne 0x14016331f
mov edx, dword [rsp + 0x4c]
mov r14, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
sub rax, r14
cmp rax, rdx
jb 0x140163482
jbe 0x140163499
lea rax, [r14 + rdx]
mov qword [rsp + 0x38], rax
jmp 0x140163499
sub rdx, rax
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.1401d5700
mov r14, qword [r14]
mov edx, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], edx
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 1
mov r9, r14
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1401634ca
cmp eax, 0xc0000023
jne 0x14016331f
mov edx, dword [rsp + 0x4c]
mov r14, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
sub rax, r14
cmp rax, rdx
jb 0x1401634ed
jbe 0x140163504
lea rax, [r14 + rdx]
mov qword [rsp + 0x38], rax
jmp 0x140163504
sub rdx, rax
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.1401d5700
mov r14, qword [r14]
mov edx, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], edx
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 1
mov r9, r14
call sub.ntdll.dll_NtQueryValueKey
xor ebx, ebx
cmp eax, 0x80000005
je 0x14016334a
cmp eax, 0xc0000023
jne 0x14016331f
jmp 0x14016334a
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1402984b0
call fcn.140162810
test al, al
jne 0x140163143
xor ebx, ebx
jmp 0x14016335e