Function at 0x140091270
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 [0x140184aa8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14d, r8d
mov esi, edx
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x5c], r15d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x60]
call fcn.1400d5b20
nop
lea r12, [0x140000000]
lea rax, [r12 + 0x145288]
mov qword [rbp + 0x60], rax
lea rax, [r12 + 0x145100]
mov qword [rbp + 0x70], rax
lea r13, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0xf8], r13
mov dword [rbp + 0xf4], 0x80
mov qword [rbp + 0x68], r15
xor r8d, r8d
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0xf8]
call fcn.140016960
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.1400168b0
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], r15
mov dword [rbp + 0xe8], r15d
lea rdx, str.Controller
lea rcx, [rbp + 0x70]
call fcn.140012d80
nop
mov rcx, rax
mov edx, esi
call fcn.140083140
nop
mov rcx, rax
lea rdx, [0x140128188]
call fcn.140012d80
nop
mov rcx, rax
mov edx, r14d
call fcn.140083140
nop
mov rcx, rax
lea rdx, str.HIPM
call fcn.140012d80
nop
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x5c], 4
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.140015250
nop
cmp qword [rax + 0x18], 8
jb 0x14009141b
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 [rdi]
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 0x140091462
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140005b70
nop
test ebx, ebx
jne 0x140091471
cmp dword [rsp + 0x58], 1
jne 0x140091471
mov bl, 1
jmp 0x140091473
xor bl, bl
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.1400d5b20
nop
lea rax, [r12 + 0x145288]
mov qword [rsp + 0x60], rax
lea rax, [r12 + 0x145100]
mov qword [rsp + 0x70], rax
mov qword [rbp - 8], r13
mov dword [rbp - 0xc], 0x80
mov qword [rsp + 0x68], r15
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 8]
call fcn.140016960
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.1400168b0
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], r15
mov dword [rbp - 0x18], r15d
lea rdx, str.Controller
lea rcx, [rsp + 0x70]
call fcn.140012d80
nop
mov rcx, rax
mov edx, esi
call fcn.140083140
nop
mov rcx, rax
lea rdx, [0x140128188]
call fcn.140012d80
nop
mov rcx, rax
mov edx, r14d
call fcn.140083140
nop
mov rcx, rax
lea rdx, str.DIPM
call fcn.140012d80
nop
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x5c], 4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140015250
nop
cmp qword [rax + 0x18], 8
jb 0x1400915c5
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 [rdi]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop
mov edi, eax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14009160c
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140005b70
nop
test bl, bl
je 0x14009161f
test edi, edi
jne 0x14009161f
cmp dword [rsp + 0x58], 1
jne 0x14009161f
mov bl, 1
jmp 0x140091621
xor bl, bl
lea rcx, [rbp - 8]
call fcn.140015280
nop
lea rdi, vtable.std::ios_base.0
mov qword [rbp - 8], rdi
lea rcx, [rbp - 8]
call fcn.140099364
nop
lea rcx, [rbp + 0xf8]
call fcn.140015280
nop
mov qword [rbp + 0xf8], rdi
lea rcx, [rbp + 0xf8]
call fcn.140099364
nop
movzx eax, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400b48a0
nop
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret