Function at 0x1400188c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, r9
mov rdi, r8
mov r15, rdx
mov r12, rcx
xor r13d, r13d
mov dword [rax - 0x38], r13d
lea rdx, [0x1400201f0]
mov rcx, r9
call fcn.140016110
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140018ba5
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140018ba5
mov edx, dword [rsp + 0x34]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x14001894d
cmp edx, 7
jne 0x140018954
add ecx, 2
mov dword [rsp + 0x30], ecx
call fcn.140001284
mov rbx, rax
mov qword [rsp + 0x40], rax
mov r14d, dword [rsp + 0x30]
test rax, rax
jne 0x140018982
mov dword [rsp + 0x38], r13d
lea rdx, [0x1400261c8]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, r15
mov rcx, r12
call sym.WmiApSrv.exe_private:_unsigned_long_int___cdecl_CRegistry::GetCurrentRawKeyValue_struct_HKEY______ptr64__unsigned_short_int_const____ptr64__void____ptr64__unsigned_long_int____ptr64__unsigned_long_int____ptr64____ptr64
test eax, eax
je 0x1400189c9
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140018baa
mov eax, dword [rsp + 0x34]
sub eax, 1
je 0x140018b71
sub eax, 1
je 0x140018b71
sub eax, 1
je 0x140018b23
sub eax, 1
je 0x140018a96
cmp eax, 3
je 0x140018a14
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140018baa
lea eax, [r14 - 2]
cmp dword [rsp + 0x30], eax
jae 0x140018a2e
mov eax, dword [rsp + 0x30]
mov byte [rax + rbx], r13b
mov eax, dword [rsp + 0x30]
inc eax
jmp 0x140018a36
mov byte [rax + rbx], r13b
lea eax, [r14 - 1]
mov byte [rax + rbx], r13b
mov r15, rbx
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], r13w
jne 0x140018a41
mov r12d, edi
test edi, edi
je 0x140018b92
cmp r12d, r14d
ja 0x140018b92
mov rdx, r15
mov rcx, rsi
call sym.WmiApSrv.exe_public:_class_CHString_const____ptr64___cdecl_CHString::operator_unsigned_short_int_const____ptr64____ptr64
lea rdx, [0x140020f68]
mov rcx, rsi
call sym.WmiApSrv.exe_public:_class_CHString_const____ptr64___cdecl_CHString::operator_unsigned_short_int_const____ptr64____ptr64
lea eax, [rdi + 1]
movsxd rcx, eax
lea r15, [r15 + rcx*2]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [r15 + rdi*2], r13w
jne 0x140018a87
add r12d, edi
jmp 0x140018a4e
cmp dword [rsp + 0x30], 4
je 0x140018abb
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140018baa
mov ecx, 0x200
call fcn.140001284
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140018b0d
mov r9d, dword [rbx]
lea r8, [0x140020f70]
mov edx, 0x100
mov rcx, rax
call fcn.1400039cc
mov rdx, rdi
mov rcx, rsi
call fcn.140016110
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x48], r13
jmp 0x140018b92
mov dword [rsp + 0x3c], r13d
lea rdx, [0x1400261c8]
lea rcx, [rsp + 0x3c]
call sub.msvcrt.dll__CxxThrowException
mov rcx, rsi
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::Empty_void____ptr64
mov edi, dword [rsp + 0x30]
mov r14d, edi
and r14d, 1
shr edi, 1
add edi, r14d
mov edx, edi
mov rcx, rsi
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBuffer_int____ptr64
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
test r14d, r14d
je 0x140018b65
mov ecx, dword [rsp + 0x30]
mov rax, qword [rsi]
mov byte [rcx + rax], r13b
mov edx, edi
mov rcx, rsi
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBufferSetLength_int____ptr64
jmp 0x140018b92
cmp dword [rsp + 0x30], r14d
jae 0x140018b7e
mov eax, dword [rsp + 0x30]
jmp 0x140018b82
lea eax, [r14 - 1]
mov byte [rax + rbx], r13b
mov rdx, rbx
mov rcx, rsi
call fcn.140016110
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
xor eax, eax
jmp 0x140018baa
mov eax, 0x80040153
lea r11, [rsp + 0x50]
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