Function at 0x140016a30
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, [0x14001e940]
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r13w
jne 0x140016a70
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 0x140016acf
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 0x140016aab
mov edx, dword [rsp + 0x34]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x140016ae8
cmp edx, 7
jne 0x140016aef
add ecx, 2
mov dword [rsp + 0x30], ecx
call fcn.1400192cc
mov rsi, rax
mov qword [rsp + 0x40], rax
mov edi, dword [rsp + 0x30]
test rax, rax
je 0x140016d14
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 0x140016b47
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140016ab0
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140016cfd
cmp eax, 2
jbe 0x140016ccf
cmp eax, 3
je 0x140016c7e
cmp eax, 4
je 0x140016c14
cmp eax, 7
jne 0x140016cfd
lea eax, [rdi - 2]
cmp dword [rsp + 0x30], eax
jae 0x140016b90
mov eax, dword [rsp + 0x30]
mov byte [rax + rsi], r13b
mov eax, dword [rsp + 0x30]
inc eax
jmp 0x140016b97
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 0x140016bac
mov r14d, ebx
mov dword [rsp + 0x38], ebx
test ebx, ebx
je 0x140016cee
cmp r14d, edi
ja 0x140016cee
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, [0x14001f698]
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 0x140016c00
add r14d, ebx
mov dword [rsp + 0x38], r14d
jmp 0x140016bbd
cmp dword [rsp + 0x30], 4
je 0x140016c32
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140016ab0
mov ecx, 0x200
call fcn.1400192cc
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140016d30
mov r9d, dword [rsi]
lea r8, [0x14001f6a0]
mov edx, 0x100
mov rcx, rax
call fcn.140001b7c
mov rdx, rbx
mov rcx, r15
call fcn.1400150d0
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x50], r13
jmp 0x140016cee
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 fcn.14001972b
test edi, edi
je 0x140016cc2
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 0x140016cee
cmp dword [rsp + 0x30], edi
jae 0x140016cdb
mov eax, dword [rsp + 0x30]
jmp 0x140016cde
lea eax, [rdi - 1]
mov byte [rax + rsi], r13b
mov rdx, rsi
mov rcx, r15
call fcn.1400150d0
nop
mov rcx, rsi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x140016ab0
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140016ab0
lea rcx, [rsp + 0x48]
call fcn.140013f24
lea rdx, [0x14002a668]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, [rsp + 0x4c]
call fcn.140013f24
lea rdx, [0x14002a668]
lea rcx, [rsp + 0x4c]
call sub.msvcrt.dll__CxxThrowException
int3