Function at 0x1400168f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r15, r9
mov rbx, r8
mov r14, rdx
xor r13d, r13d
mov dword [rax - 0x58], r13d
lea r8, [0x140020cd0]
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r13w
jne 0x140016930
mov edx, eax
mov rcx, r15
call sym.WmiApSrv.exe_protected:_void___cdecl_CHString::AssignCopy_int__unsigned_short_int_const____ptr64____ptr64
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14001698f
mov eax, 0x80040153
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x14001696b
mov edx, dword [rsp + 0x34]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x1400169a8
cmp edx, 7
jne 0x1400169af
add ecx, 2
mov dword [rsp + 0x30], ecx
call fcn.140019114
mov rsi, rax
mov qword [rsp + 0x40], rax
mov edi, dword [rsp + 0x30]
test rax, rax
je 0x140016bd9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x140016a08
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140016970
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140016bc1
cmp eax, 2
jbe 0x140016b92
cmp eax, 3
je 0x140016b41
cmp eax, 4
je 0x140016ad5
cmp eax, 7
jne 0x140016bc1
lea eax, [rdi - 2]
cmp dword [rsp + 0x30], eax
jae 0x140016a51
mov eax, dword [rsp + 0x30]
mov byte [rax + rsi], r13b
mov eax, dword [rsp + 0x30]
inc eax
jmp 0x140016a58
mov byte [rax + rsi], r13b
lea eax, [rdi - 1]
mov byte [rax + rsi], r13b
mov r12, rsi
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x38], r13d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r13w
jne 0x140016a6d
mov r14d, ebx
mov dword [rsp + 0x38], ebx
test ebx, ebx
je 0x140016bb1
cmp r14d, edi
ja 0x140016bb1
mov rdx, r12
mov rcx, r15
call sym.WmiApSrv.exe_public:_class_CHString_const____ptr64___cdecl_CHString::operator_unsigned_short_int_const____ptr64____ptr64
lea r8, [0x140021a28]
mov edx, 1
mov rcx, r15
call sym.WmiApSrv.exe_protected:_void___cdecl_CHString::ConcatInPlace_int__unsigned_short_int_const____ptr64____ptr64
lea eax, [rbx + 1]
movsxd rcx, eax
lea r12, [r12 + rcx*2]
mov qword [rsp + 0x58], r12
or rbx, 0xffffffffffffffff
inc rbx
cmp word [r12 + rbx*2], r13w
jne 0x140016ac1
add r14d, ebx
mov dword [rsp + 0x38], r14d
jmp 0x140016a7e
cmp dword [rsp + 0x30], 4
je 0x140016af4
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140016970
mov ecx, 0x200
call fcn.140019114
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140016bf5
mov r9d, dword [rsi]
lea r8, [0x140021a30]
mov edx, 0x100
mov rcx, rax
call fcn.140001cb8
mov rdx, rbx
mov rcx, r15
call fcn.140014f80
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsp + 0x50], r13
jmp 0x140016bb1
mov rcx, r15
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::Empty_void____ptr64
mov eax, dword [rsp + 0x30]
mov edi, eax
and edi, 1
mov r14d, eax
shr r14d, 1
add r14d, edi
mov ebx, eax
mov edx, r14d
mov rcx, r15
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBuffer_int____ptr64
mov rcx, rax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll_memcpy
test edi, edi
je 0x140016b85
mov rcx, qword [r15]
mov eax, dword [rsp + 0x30]
mov byte [rax + rcx], r13b
mov edx, r14d
mov rcx, r15
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBufferSetLength_int____ptr64
jmp 0x140016bb1
cmp dword [rsp + 0x30], edi
jae 0x140016b9e
mov eax, dword [rsp + 0x30]
jmp 0x140016ba1
lea eax, [rdi - 1]
mov byte [rax + rsi], r13b
mov rdx, rsi
mov rcx, r15
call fcn.140014f80
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
xor eax, eax
jmp 0x140016970
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140016970
lea rcx, [rsp + 0x48]
call fcn.140013d9c
lea rdx, [0x14002ad98]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, [rsp + 0x4c]
call fcn.140013d9c
lea rdx, [0x14002ad98]
lea rcx, [rsp + 0x4c]
call sub.msvcrt.dll__CxxThrowException
int3