Function at 0x1400d6020
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x4e00]
mov eax, 0x4f00
call fcn.140323790
sub rsp, rax
mov rax, qword [0x1405a9ae8]
xor rax, rsp
mov qword [rbp + 0x4df0], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
lea r8, [rsp + 0x40]
mov rdx, 0xffffffff80000002
mov rcx, rsi
call fcn.1400d6550
test al, al
jne 0x1400d60c5
lea r8, [rsp + 0x40]
mov rdx, 0xffffffff80000001
mov rcx, rsi
call fcn.1400d6550
test al, al
jne 0x1400d60c5
mov qword [rbx], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400d651e
jmp 0x1400d6518
xor edx, edx
mov r8d, 0x4e20
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x4e20
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d6123
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x1400d6123
cmp dword [rsp + 0x30], 0
je 0x1400d626b
cmp word [rbp - 0x30], 0
je 0x1400d626b
mov byte [rbp - 0x78], 0
lea rsi, vtable.vmsCommandLine.0
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x70], r15
movdqa xmm0, xmmword [0x140356b80]
movdqa xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r15w
mov qword [rbp - 0x50], r15
movdqa xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
call fcn.140033180
nop
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
mov qword [rbx], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400d61a0
mov rcx, rbx
call fcn.140032f20
nop
mov qword [rbp - 0x80], rsi
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x1400d61f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d61ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d623d
call fcn.140322dc0
movdqa xmm0, xmmword [0x140356b80]
movdqa xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x1400d6249
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d6244
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d6244
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
movdqa xmm0, xmmword [0x140356b80]
movdqa xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r15w
lea rax, vtable.vmsSerializable.0
mov qword [rbp - 0x80], rax
jmp 0x1400d6510
xor edx, edx
mov r8d, 0x4e20
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x4e20
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.Path
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d62c9
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x1400d62c9
cmp dword [rsp + 0x30], 0
je 0x1400d64fd
cmp word [rbp - 0x30], 0
je 0x1400d64fd
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400d6300
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140032f20
nop
mov r9, qword [rsp + 0x68]
cmp r9, 2
jbe 0x1400d64b8
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
mov r10, qword [rsp + 0x70]
cmp r10, 8
cmovae rax, rcx
mov r14d, 1
cmp word [rax], 0x22
jne 0x1400d63b4
lea r8, [rsp + 0x58]
cmp r10, 8
cmovae r8, rcx
lea rax, [rsp + 0x58]
cmovae rax, rcx
sub r8, rax
sar r8, 1
mov rax, r9
sub rax, r8
mov edx, r14d
cmp rax, r14
cmovb rdx, rax
lea rax, [rsp + 0x58]
cmp r10, 8
cmovae rax, rcx
lea rcx, [rax + r8*2]
sub r9, rdx
mov qword [rsp + 0x68], r9
sub r9, r8
lea r8, [r9*2 + 2]
lea rdx, [rcx + rdx*2]
call sub.VCRUNTIME140.dll_memmove
mov r10, qword [rsp + 0x70]
mov r9, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
cmp r10, 8
cmovae rax, rcx
cmp word [rax + r9*2 - 2], 0x22
jne 0x1400d643b
lea rdx, [rsp + 0x58]
cmp r10, 8
cmovae rdx, rcx
add rdx, 0xfffffffffffffffe
lea rdx, [rdx + r9*2]
lea rax, [rsp + 0x58]
cmp r10, 8
cmovae rax, rcx
sub rdx, rax
sar rdx, 1
mov rax, r9
sub rax, rdx
cmp rax, r14
cmovb r14, rax
lea rax, [rsp + 0x58]
cmp r10, 8
cmovae rax, rcx
lea rcx, [rax + rdx*2]
sub r9, r14
mov qword [rsp + 0x68], r9
sub r9, rdx
lea r8, [r9*2 + 2]
lea rdx, [rcx + r14*2]
call sub.VCRUNTIME140.dll_memmove
mov r10, qword [rsp + 0x70]
mov r9, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
cmp r10, 8
cmovae rax, rcx
cmp word [rax + r9*2 - 2], 0x5c
je 0x1400d6476
lea rax, [rsp + 0x58]
cmp r10, 8
cmovae rax, rcx
cmp word [rax + r9*2 - 2], 0x2f
je 0x1400d6476
mov edx, 0x5c
lea rcx, [rsp + 0x58]
call fcn.140034120
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x1400d6484
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140032da0
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbx + 0x10], xmm1
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
jmp 0x1400d6510
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400d64fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d64f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d64f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
mov qword [rbx], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
test rdi, rdi
je 0x1400d651e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x4df0]
xor rcx, rsp
call fcn.1403230f0
mov rbx, qword [rsp + 0x4f40]
add rsp, 0x4f00
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret