Function at 0x100019c04
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r13, r9
mov rdi, r8
mov r14, rdx
xor esi, esi
mov dword [rax - 0x58], esi
lea rdx, [0x100001fc0]
mov rcx, r9
call fcn.10001c448
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x100019c78
mov eax, 0x80040153
jmp 0x100019efa
mov eax, dword [rsp + 0x30]
cmp eax, esi
ja 0x100019c8a
mov eax, 0x80040153
jmp 0x100019efa
mov ecx, dword [rsp + 0x34]
cmp ecx, 1
je 0x100019c9d
cmp ecx, 2
je 0x100019c9d
cmp ecx, 7
jne 0x100019ca4
add eax, 2
mov dword [rsp + 0x30], eax
mov ecx, eax
call fcn.10001df34
mov r12, rax
mov qword [rsp + 0x40], rax
mov ebx, dword [rsp + 0x30]
cmp rax, rsi
jne 0x100019cd2
mov dword [rsp + 0x58], esi
lea rdx, [0x100029bc0]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x100019d10
mov rcx, r12
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], rsi
mov eax, 0x80040153
jmp 0x100019efa
mov eax, dword [rsp + 0x34]
cmp eax, esi
jbe 0x100019ee8
cmp eax, 2
jbe 0x100019eb9
cmp eax, 3
je 0x100019e66
cmp eax, 4
je 0x100019de7
cmp eax, 7
jne 0x100019ee8
lea eax, [rbx - 2]
cmp dword [rsp + 0x30], eax
jae 0x100019d5d
mov eax, dword [rsp + 0x30]
mov byte [rax + r12], sil
mov eax, dword [rsp + 0x30]
inc eax
mov byte [rax + r12], sil
jmp 0x100019d68
mov byte [rax + r12], sil
lea eax, [rbx - 1]
mov byte [rax + r12], sil
mov r15, r12
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x38], esi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
mov r14d, ecx
mov dword [rsp + 0x38], ecx
cmp edi, esi
je 0x100019edc
cmp r14d, ebx
ja 0x100019edc
mov rdx, r15
mov rcx, r13
call sym.WmiApSrv.exe_public:_class_CHString_const____ptr64___cdecl_CHString::operator_unsigned_short_int_const____ptr64____ptr64
lea rdx, [0x100002f40]
mov rcx, r13
call sym.WmiApSrv.exe_public:_class_CHString_const____ptr64___cdecl_CHString::operator_unsigned_short_int_const____ptr64____ptr64
lea eax, [rdi + 1]
cdqe
lea r15, [r15 + rax*2]
mov qword [rsp + 0x60], r15
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
dec rcx
mov edi, ecx
add r14d, ecx
mov dword [rsp + 0x38], r14d
jmp 0x100019d90
cmp dword [rsp + 0x30], 4
je 0x100019e05
mov rcx, r12
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], rsi
mov eax, 0x80040153
jmp 0x100019efa
mov ecx, 0x200
call fcn.10001df34
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, rsi
je 0x100019e51
mov r9d, dword [r12]
lea r8, [0x100002f48]
mov edx, 0x100
mov rcx, rax
call fcn.100006a70
mov rdx, rdi
mov rcx, r13
call fcn.10001c448
mov rcx, rdi
call sub.msvcrt.dll_free
mov qword [rsp + 0x50], rsi
jmp 0x100019edc
mov dword [rsp + 0x48], esi
lea rdx, [0x100029bc0]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
mov rcx, r13
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::Empty_void____ptr64
mov edx, dword [rsp + 0x30]
mov ebx, edx
and ebx, 1
mov r14d, edx
shr r14d, 1
add r14d, ebx
mov rdi, rdx
mov edx, r14d
mov rcx, r13
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBuffer_int____ptr64
mov rcx, rax
mov r8, rdi
mov rdx, r12
call sub.msvcrt.dll_memcpy
cmp ebx, esi
je 0x100019eac
mov rcx, qword [r13]
mov eax, dword [rsp + 0x30]
mov byte [rax + rcx], sil
mov edx, r14d
mov rcx, r13
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBufferSetLength_int____ptr64
jmp 0x100019edc
cmp dword [rsp + 0x30], ebx
jae 0x100019ec9
mov eax, dword [rsp + 0x30]
mov byte [rax + r12], sil
jmp 0x100019ed0
lea eax, [rbx - 1]
mov byte [rax + r12], sil
mov rdx, r12
mov rcx, r13
call fcn.10001c448
nop
mov rcx, r12
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x100019efa
mov rcx, r12
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], rsi
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