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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x18003c060]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov dword [rbp - 0x68], 4
xor edi, edi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], dil
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20007
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800024d4
mov dword [rsp + 0x74], 1
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x180037298]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x18000226d
lea r8d, [rdi + 1]
lea rdx, [0x180037354]
lea rcx, [rsp + 0x78]
call fcn.1800040f0
jmp 0x1800022e7
test eax, eax
jne 0x1800024d4
mov eax, dword [rsp + 0x74]
mov r8d, 1
lea rcx, [rsp + 0x78]
cmp dword [rsp + 0x70], eax
jne 0x180002298
lea rdx, [0x180037358]
call fcn.1800040f0
jmp 0x1800022e7
lea rdx, [0x18003735c]
call fcn.1800040f0
movzx r9d, byte [rsp + 0x70]
add r9b, 0x30
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
cmp rcx, rdx
jae 0x1800022dd
lea rax, [rcx + 1]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x78]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x78]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1800022e7
lea rcx, [rsp + 0x78]
call fcn.180004510
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x180037298]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, edi
test eax, eax
sete bl
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov r8d, 0x1b
lea rdx, [0x180037360]
lea rcx, [rbp - 0x60]
call fcn.180003f90
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
lea rdx, [0x180037294]
call fcn.18000f4ac
test rax, rax
je 0x180002372
mov rcx, rax
call fcn.18000f53c
jmp 0x18000247b
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call fcn.180008540
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x40]
call fcn.180003bc0
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rsi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
lea rcx, [rbp - 0x40]
call fcn.1800049b0
lea rcx, [rbp - 0x38]
call fcn.180003ac0
test rax, rax
jne 0x18000241b
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 8], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x30]
and eax, 0x17
mov dword [rbp + rcx - 0x30], eax
and eax, dword [rbp + rcx - 0x2c]
jne 0x18000253e
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rsi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x38]
call fcn.1800032a0
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x44], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0x68]
call fcn.1800058b8
nop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1800024c2
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800024bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002588
call fcn.180005e70
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
jmp 0x1800024d6
mov ebx, edi
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x18000250e
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002509
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002538
call fcn.180005e70
mov eax, ebx
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.180005e50
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.18000ef68
nop
test al, 4
je 0x18000254b
lea rdx, str.ios_base::badbit_set
jmp 0x18000255f
test dl, al
lea rdx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180001420
mov r8, rax
lea rcx, [rsp + 0x40]
call fcn.180001c90
lea rdx, [0x18003b1d0]
lea rcx, [rsp + 0x40]
call fcn.180007d14
nop
call fcn.18000ef68
int3