Function at 0x140014cd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x20], 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 rdx, [0x14001f760]
mov rcx, r9
call fcn.140017650
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 0x140014d45
mov eax, 0x80040153
jmp 0x140014fbb
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140014d3b
mov edx, dword [rsp + 0x34]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x140014d5e
cmp edx, 7
jne 0x140014d65
add ecx, 2
mov dword [rsp + 0x30], ecx
call fcn.14001930c
mov rsi, rax
mov qword [rsp + 0x40], rax
mov edi, dword [rsp + 0x30]
test rax, rax
jne 0x140014d9d
lea rcx, [rsp + 0x58]
call fcn.140013f60
mov ecx, dword [rax]
mov dword [rsp + 0x5c], ecx
lea rdx, [0x14002acb0]
lea rcx, [rsp + 0x5c]
call sub.msvcrt.dll__CxxThrowException
nop
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 0x140014ddb
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140014fbb
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140014fa9
cmp eax, 2
jbe 0x140014f7e
cmp eax, 3
je 0x140014f2d
cmp eax, 4
je 0x140014ea3
cmp eax, 7
jne 0x140014fa9
lea eax, [rdi - 2]
cmp dword [rsp + 0x30], eax
jae 0x140014e24
mov eax, dword [rsp + 0x30]
mov byte [rax + rsi], r13b
mov eax, dword [rsp + 0x30]
inc eax
jmp 0x140014e2b
mov byte [rax + rsi], r13b
lea eax, [rdi - 1]
mov byte [rax + rsi], r13b
mov r12, rsi
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x38], r13d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r13w
jne 0x140014e40
mov r14d, ebx
mov dword [rsp + 0x38], ebx
test ebx, ebx
je 0x140014f9d
cmp r14d, edi
ja 0x140014f9d
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 rdx, [0x140020468]
mov rcx, r15
call sym.WmiApSrv.exe_public:_class_CHString_const____ptr64___cdecl_CHString::operator_unsigned_short_int_const____ptr64____ptr64
lea eax, [rbx + 1]
movsxd rcx, eax
lea r12, [r12 + rcx*2]
mov qword [rsp + 0x60], r12
or rbx, 0xffffffffffffffff
inc rbx
cmp word [r12 + rbx*2], r13w
jne 0x140014e8f
add r14d, ebx
mov dword [rsp + 0x38], r14d
jmp 0x140014e51
cmp dword [rsp + 0x30], 4
je 0x140014ec1
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x140014fbb
mov ecx, 0x200
call fcn.14001930c
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140014f0c
mov r9d, dword [rsi]
lea r8, [0x140020470]
mov edx, 0x100
mov rcx, rax
call fcn.140001bfc
mov rdx, rbx
mov rcx, r15
call fcn.140017650
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x50], r13
jmp 0x140014f9d
lea rcx, [rsp + 0x58]
call fcn.140013f60
mov ecx, dword [rax]
mov dword [rsp + 0x48], ecx
lea rdx, [0x14002acb0]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
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 0x140014f71
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 0x140014f9d
cmp dword [rsp + 0x30], edi
jae 0x140014f8a
mov eax, dword [rsp + 0x30]
jmp 0x140014f8d
lea eax, [rdi - 1]
mov byte [rax + rsi], r13b
mov rdx, rsi
mov rcx, r15
call fcn.140017650
nop
mov rcx, rsi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x140014fbb
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
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