Function at 0x140071d10
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 [0x1401eb978]
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.14010ef60
nop
lea r13, [0x140000000]
lea rax, [r13 + 0x196890]
mov qword [rbp + 0x60], rax
lea rax, [r13 + 0x197a28]
mov qword [rbp + 0x70], rax
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0xf8], rax
mov dword [rbp + 0xf4], 0x80
mov qword [rbp + 0x68], r12
xor r8d, r8d
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0xf8]
call fcn.140012060
nop
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x6c], edx
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx + 0x5c], edx
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.140011fb0
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, [0x1401603d8]
lea rcx, [rbp + 0x70]
call fcn.14001ae90
nop
mov rcx, rax
mov edx, r14d
call fcn.14005c040
nop
mov rcx, rax
lea rdx, [0x140164180]
call fcn.14001ae90
nop
mov rcx, rax
mov edx, r15d
call fcn.14005c040
nop
mov rcx, rax
lea rdx, str.HIPM
call fcn.14001ae90
nop
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], 4
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.14000c7a0
nop
cmp qword [rax + 0x18], 8
jb 0x140071ebb
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 0x140071f02
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.14000fcf0
nop
cmp ebx, 2
je 0x140071f17
test ebx, ebx
jne 0x140071f12
cmp dword [rsp + 0x58], 1
je 0x140071f17
xor dil, dil
jmp 0x140071f1a
mov dil, 1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.14010ef60
nop
lea rax, [r13 + 0x196890]
mov qword [rsp + 0x60], rax
lea rax, [r13 + 0x197a28]
mov qword [rsp + 0x70], rax
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0x80
mov qword [rsp + 0x68], r12
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 8]
call fcn.140012060
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x5c], edx
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.140011fb0
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, [0x1401603d8]
lea rcx, [rsp + 0x70]
call fcn.14001ae90
nop
mov rcx, rax
mov edx, r14d
call fcn.14005c040
nop
mov rcx, rax
lea rdx, [0x140164180]
call fcn.14001ae90
nop
mov rcx, rax
mov edx, r15d
call fcn.14005c040
nop
mov rcx, rax
lea rdx, str.DIPM
call fcn.14001ae90
nop
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], 4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14000c7a0
nop
cmp qword [rax + 0x18], 8
jb 0x140072072
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 0x1400720b9
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.14000fcf0
nop
test dil, dil
je 0x1400720d2
cmp ebx, 2
je 0x1400720ce
test ebx, ebx
jne 0x1400720d2
cmp dword [rsp + 0x58], 1
jne 0x1400720d2
mov bl, 1
jmp 0x1400720d4
xor bl, bl
lea rcx, [rbp - 8]
call fcn.14000c7d0
nop
lea rdi, vtable.std::ios_base.0
mov qword [rbp - 8], rdi
lea rcx, [rbp - 8]
call fcn.1400e8708
nop
lea rcx, [rbp + 0xf8]
call fcn.14000c7d0
nop
mov qword [rbp + 0xf8], rdi
lea rcx, [rbp + 0xf8]
call fcn.1400e8708
nop
movzx eax, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400ede70
nop
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret