Function at 0x1400af6e4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0x58], r14
xor r8d, r8d
lea rcx, str.Console
call fcn.1401186ec
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140114b38
nop
lea rcx, [rsp + 0x78]
call fcn.140054ee8
mov rdx, rax
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400af9c5
lea r15d, [r14 + 4]
mov dword [rsp + 0x60], r15d
lea rax, str.HistoryBufferSize
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], r15d
mov qword [rbp - 0x50], 0x32
lea edx, [rbx + 0x10]
mov dword [rbp - 0x48], edx
mov ecx, 0x3e7
mov dword [rbp - 0x44], ecx
lea rax, str.NumberOfHistoryBuffers
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], r15d
mov qword [rbp - 0x30], 0x20
mov dword [rbp - 0x28], edx
mov dword [rbp - 0x24], ecx
lea rax, str.FaceName
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], 1
mov rcx, qword [0x14022ab50]
lea rax, [rcx + 0xc98]
mov qword [rbp - 0x10], rax
xor eax, eax
mov qword [rbp - 8], rax
lea rax, str.FontSize
mov qword [rbp], rax
mov dword [rbp + 8], r15d
movzx eax, word [rcx + 0xc7c]
shl eax, 0x10
cdqe
mov qword [rbp + 0x10], rax
xor eax, eax
mov qword [rbp + 0x18], rax
lea rax, str.ScreenBufferSize
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x28], r15d
mov rcx, qword [rdi + 0x4250]
call fcn.1400970f0
movzx eax, ax
shl eax, 0x10
movsxd rbx, eax
mov rcx, qword [rdi + 0x4250]
call fcn.14009710c
movzx eax, ax
or rax, rbx
mov qword [rbp + 0x30], rax
xor eax, eax
mov qword [rbp + 0x38], rax
lea rax, str.WindowSize
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x48], r15d
mov rcx, qword [rdi + 0x4250]
call fcn.14009835c
movzx ecx, ax
shl ecx, 0x10
movsxd rbx, ecx
mov rcx, qword [rdi + 0x4250]
call fcn.140098370
movzx ecx, ax
or rcx, rbx
mov qword [rbp + 0x50], rcx
xor eax, eax
mov qword [rbp + 0x58], rax
lea rbx, [rbp - 0x44]
lea esi, [rax + 6]
mov eax, dword [rbx - 0x14]
cmp eax, r15d
jne 0x1400af8bd
cmp dword [rbx - 4], r14d
jne 0x1400af8b8
cmp dword [rbx], r14d
je 0x1400af8bd
mov dil, 1
jmp 0x1400af8d2
mov dil, r14b
sub eax, 1
je 0x1400af972
cmp eax, 3
jne 0x1400af9b5
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rbx - 0x1c]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, eax
mov ecx, dword [rsp + 0x64]
test eax, eax
jne 0x1400af933
cmp dword [rsp + 0x68], r15d
jne 0x1400af933
cmp dword [rsp + 0x60], r15d
jne 0x1400af933
test dil, dil
je 0x1400af929
cmp ecx, dword [rbx - 4]
jb 0x1400af933
cmp ecx, dword [rbx]
ja 0x1400af933
jmp 0x1400af9b5
cmp rcx, qword [rbx - 0xc]
je 0x1400af9b5
mov eax, dword [rbx - 0xc]
mov dword [rsp + 0x50], eax
mov edx, dword [rbx - 4]
test edx, edx
jne 0x1400af946
cmp dword [rbx], r14d
je 0x1400af95e
test r8d, r8d
jne 0x1400af95e
cmp ecx, edx
jae 0x1400af955
mov dword [rsp + 0x50], edx
jmp 0x1400af95e
cmp ecx, dword [rbx]
cmova eax, dword [rbx]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, r15d
jmp 0x1400af9a3
mov rcx, qword [rbx - 0xc]
test rcx, rcx
je 0x1400af9b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400af97f
lea eax, [rax*2 + 2]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbx - 0x1c]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rbx, 0x20
sub rsi, 1
jne 0x1400af8a5
jmp 0x1400afa3b
lea rcx, [rsp + 0x78]
call fcn.140054ee8
mov r9, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [0x1401ada18]
mov qword [rsp + 0x20], rax
lea r8, str._n_HKCU_
lea rdx, str.Failed_to_create_open_registry_key
lea rcx, [rbp - 0x78]
call fcn.140114ba8
nop
lea rcx, [rbp - 0x78]
call fcn.140054ee8
mov rcx, rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
call fcn.140113304
mov qword [rsp + 0x58], r14
lea rcx, [rbp - 0x78]
call fcn.140114ca4
mov rbx, qword [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.140114ca4
mov rax, rbx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret