Function at 0x14006e120
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x2c8], rbx
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r15d, r8d
mov r14d, edx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x5c], r12d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x60]
call fcn.140119b60
nop
lea r13, [0x1401a6f60]
mov qword [rbp + 0x60], r13
lea rax, [0x1401a8720]
mov qword [rbp + 0x70], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0xf8], rax
xor r8d, r8d
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0x60]
call fcn.140012150
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x78]
call fcn.140013e20
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0x78], rax
mov qword [rbp + 0xe0], r12
mov dword [rbp + 0xe8], r12d
lea rdx, [0x14016dee8]
lea rcx, [rbp + 0x70]
call fcn.14001c5a0
nop
mov rcx, rax
mov edx, r14d
call fcn.140057b70
nop
mov rcx, rax
lea rdx, [0x140171e80]
call fcn.14001c5a0
nop
mov rcx, rax
mov edx, r15d
call fcn.140057b70
nop
mov rcx, rax
lea rdx, str.HIPM
call fcn.14001c5a0
nop
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], 4
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.14000ef80
nop
cmp qword [rax + 0x18], 8
jb 0x14006e26d
mov rax, qword [rax]
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
mov ebx, eax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14006e2b4
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400120e0
nop
cmp ebx, 2
je 0x14006e2c9
test ebx, ebx
jne 0x14006e2c4
cmp dword [rsp + 0x58], 1
je 0x14006e2c9
xor dil, dil
jmp 0x14006e2cc
mov dil, 1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.140119b60
nop
mov qword [rsp + 0x60], r13
lea rax, [0x1401a8720]
mov qword [rsp + 0x70], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 8], rax
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.140012150
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], r8d
lea rcx, [rsp + 0x78]
call fcn.140013e20
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], r12d
lea rdx, [0x14016dee8]
lea rcx, [rsp + 0x70]
call fcn.14001c5a0
nop
mov rcx, rax
mov edx, r14d
call fcn.140057b70
nop
mov rcx, rax
lea rdx, [0x140171e80]
call fcn.14001c5a0
nop
mov rcx, rax
mov edx, r15d
call fcn.140057b70
nop
mov rcx, rax
lea rdx, str.DIPM
call fcn.14001c5a0
nop
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], 4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14000ef80
nop
cmp qword [rax + 0x18], 8
jb 0x14006e3c8
mov rax, qword [rax]
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
mov ebx, eax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14006e40f
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400120e0
nop
test dil, dil
je 0x14006e428
cmp ebx, 2
je 0x14006e424
test ebx, ebx
jne 0x14006e428
cmp dword [rsp + 0x58], 1
jne 0x14006e428
mov bl, 1
jmp 0x14006e42a
xor bl, bl
lea rcx, [rbp - 8]
call fcn.14000efb0
nop
lea rdi, vtable.std::ios_base.0
mov qword [rbp - 8], rdi
lea rcx, [rbp - 8]
call fcn.1400f3630
nop
lea rcx, [rbp + 0xf8]
call fcn.14000efb0
nop
mov qword [rbp + 0xf8], rdi
lea rcx, [rbp + 0xf8]
call fcn.1400f3630
nop
movzx eax, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400f84a0
nop
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret