Function at 0x140069930
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 [0x1401b4808]
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.1400f2f50
nop
lea r13, [0x14016de58]
mov qword [rbp + 0x60], r13
lea rax, [0x14016e3d8]
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.140018dd0
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.140018f50
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, [0x140145db0]
lea rcx, [rbp + 0x70]
call fcn.140015090
nop
mov rcx, rax
mov edx, r14d
call fcn.1400685b0
nop
mov rcx, rax
lea rdx, [0x140145da8]
call fcn.140015090
nop
mov rcx, rax
mov edx, r15d
call fcn.1400685b0
nop
mov rcx, rax
lea rdx, str.HIPM
call fcn.140015090
nop
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], 4
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.140017770
nop
cmp qword [rax + 0x18], 8
jb 0x140069a7d
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.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop
mov ebx, eax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140069ac4
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140007560
nop
cmp ebx, 2
je 0x140069ad9
test ebx, ebx
jne 0x140069ad4
cmp dword [rsp + 0x58], 1
je 0x140069ad9
xor dil, dil
jmp 0x140069adc
mov dil, 1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.1400f2f50
nop
mov qword [rsp + 0x60], r13
lea rax, [0x14016e3d8]
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.140018dd0
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.140018f50
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, [0x140145db0]
lea rcx, [rsp + 0x70]
call fcn.140015090
nop
mov rcx, rax
mov edx, r14d
call fcn.1400685b0
nop
mov rcx, rax
lea rdx, [0x140145da8]
call fcn.140015090
nop
mov rcx, rax
mov edx, r15d
call fcn.1400685b0
nop
mov rcx, rax
lea rdx, str.DIPM
call fcn.140015090
nop
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], 4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140017770
nop
cmp qword [rax + 0x18], 8
jb 0x140069bd8
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.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop
mov ebx, eax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140069c1f
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140007560
nop
test dil, dil
je 0x140069c38
cmp ebx, 2
je 0x140069c34
test ebx, ebx
jne 0x140069c38
cmp dword [rsp + 0x58], 1
jne 0x140069c38
mov bl, 1
jmp 0x140069c3a
xor bl, bl
lea rcx, [rbp - 8]
call fcn.1400177a0
nop
lea rdi, vtable.std::ios_base.0
mov qword [rbp - 8], rdi
lea rcx, [rbp - 8]
call fcn.1400b5f74
nop
lea rcx, [rbp + 0xf8]
call fcn.1400177a0
nop
mov qword [rbp + 0xf8], rdi
lea rcx, [rbp + 0xf8]
call fcn.1400b5f74
nop
movzx eax, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400d1740
nop
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret