Function at 0x14003a5a0
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 [0x140109038]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [0x14011acc0], 0
je 0x14003a9ca
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.140078b64
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea rcx, [rax + 0x18]
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x14003a99e
mov byte [rax], 0
cmp rax, 0xffffffffffffffff
je 0x14003a99e
mov byte [rax + 1], 0
cmp rax, 0xfffffffffffffffe
je 0x14003a99e
mov byte [rax + 2], 0
cmp rax, 0xfffffffffffffffd
je 0x14003a99e
mov byte [rax + 3], 0
cmp rax, 0xfffffffffffffffc
je 0x14003a99e
mov byte [rax + 4], 0
cmp rax, 0xfffffffffffffffb
je 0x14003a99e
mov byte [rax + 5], 0
cmp rax, 0xfffffffffffffffa
je 0x14003a99e
mov byte [rax + 6], 0
cmp rax, 0xfffffffffffffff9
je 0x14003a99e
mov byte [rax + 7], 0
cmp rax, 0xfffffffffffffff8
je 0x14003a99e
mov byte [rax + 8], 0
cmp rax, 0xfffffffffffffff7
je 0x14003a99e
mov byte [rax + 9], 0
cmp rax, 0xfffffffffffffff6
je 0x14003a99e
mov byte [rax + 0xa], 0
cmp rax, 0xfffffffffffffff5
je 0x14003a99e
mov byte [rax + 0xb], 0
cmp rax, 0xfffffffffffffff4
je 0x14003a99e
mov byte [rax + 0xc], 0
cmp rax, 0xfffffffffffffff3
je 0x14003a99e
mov byte [rax + 0xd], 0
cmp rax, 0xfffffffffffffff2
je 0x14003a99e
mov byte [rax + 0xe], 0
cmp rax, 0xfffffffffffffff1
je 0x14003a99e
mov byte [rax + 0xf], 0
cmp rax, 0xfffffffffffffff0
je 0x14003a99e
mov byte [rax + 0x10], 0
cmp rax, 0xffffffffffffffef
je 0x14003a99e
mov byte [rax + 0x11], 0
cmp rax, 0xffffffffffffffee
je 0x14003a99e
mov byte [rax + 0x12], 0
cmp rax, 0xffffffffffffffed
je 0x14003a99e
mov byte [rax + 0x13], 0
cmp rax, 0xffffffffffffffec
je 0x14003a99e
mov byte [rax + 0x14], 0
cmp rax, 0xffffffffffffffeb
je 0x14003a99e
mov byte [rax + 0x15], 0
cmp rax, 0xffffffffffffffea
je 0x14003a99e
mov byte [rax + 0x16], 0
cmp rax, 0xffffffffffffffe9
je 0x14003a99e
mov byte [rax + 0x17], 0
lea r14, [rsp + 0x30]
mov qword [r14 + 8], rcx
mov edx, 0x18
mov rcx, r14
call fcn.140047730
mov r14, qword [r14]
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 0x14003a7fd
cmp eax, 0xc0000023
je 0x14003a7fd
test eax, eax
js 0x14003a7f9
mov eax, dword [r14 + 4]
mov dword [rdi], eax
mov r9d, dword [r14 + 0xc]
test r9, r9
je 0x14003a88b
mov edx, dword [r14 + 8]
add rdx, r14
lea r8, [rdx + r9]
mov rcx, rsi
call fcn.14001c3b0
mov bl, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x14003a848
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007a130
mov eax, ebx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14003a7d4
mov edx, dword [rsp + 0x4c]
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.140047730
mov r14, qword [r14]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 1
mov r9, r14
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x14003a8a9
cmp eax, 0xc0000023
jne 0x14003a7a8
jmp 0x14003a8a9
mov rax, qword [rsp + 0x38]
mov rdx, rax
sub rdx, rcx
dec rax
cmp rdx, rax
jbe 0x14003a98f
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.1400aba60
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov rdx, rcx
sub rdx, rax
dec rcx
cmp rdx, rcx
ja 0x14003a85f
mov qword [rsi + 8], rax
jmp 0x14003a7d2
mov edx, dword [rsp + 0x4c]
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.140047730
mov r14, qword [r14]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 1
mov r9, r14
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x14003a8f2
cmp eax, 0xc0000023
jne 0x14003a7a8
mov edx, dword [rsp + 0x4c]
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.140047730
mov r14, qword [r14]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 1
mov r9, r14
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x14003a93b
cmp eax, 0xc0000023
jne 0x14003a7a8
mov edx, dword [rsp + 0x4c]
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.140047730
mov r14, qword [r14]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], eax
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 0x14003a7d4
cmp eax, 0xc0000023
jne 0x14003a7a8
jmp 0x14003a7d4
mov qword [rsp + 0x38], rcx
call fcn.140078ba0
jmp 0x14003a7de
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1400aba60
call fcn.140039c60
test al, al
jne 0x14003a5d3
xor ebx, ebx
jmp 0x14003a7de