Function at 0x140015d90
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 rdx, [0x14001e8f0]
mov rcx, r9
call fcn.140014350
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 0x140015e05
mov eax, 0x80040153
jmp 0x14001606f
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140015dfb
mov edx, dword [rsp + 0x34]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x140015e1e
cmp edx, 7
jne 0x140015e25
add ecx, 2
mov dword [rsp + 0x30], ecx
call fcn.140018538
mov rsi, rax
mov qword [rsp + 0x40], rax
mov edi, dword [rsp + 0x30]
test rax, rax
jne 0x140015e57
lea rcx, [rsp + 0x48]
call fcn.14001325c
lea rdx, [0x14002a250]
lea rcx, [rsp + 0x48]
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 0x140015e95
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x14001606f
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14001605d
cmp eax, 2
jbe 0x140016032
cmp eax, 3
je 0x140015fe1
cmp eax, 4
je 0x140015f5d
cmp eax, 7
jne 0x14001605d
lea eax, [rdi - 2]
cmp dword [rsp + 0x30], eax
jae 0x140015ede
mov eax, dword [rsp + 0x30]
mov byte [rax + rsi], r13b
mov eax, dword [rsp + 0x30]
inc eax
jmp 0x140015ee5
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 0x140015efa
mov r14d, ebx
mov dword [rsp + 0x38], ebx
test ebx, ebx
je 0x140016051
cmp r14d, edi
ja 0x140016051
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, [0x14001f648]
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 + 0x58], r12
or rbx, 0xffffffffffffffff
inc rbx
cmp word [r12 + rbx*2], r13w
jne 0x140015f49
add r14d, ebx
mov dword [rsp + 0x38], r14d
jmp 0x140015f0b
cmp dword [rsp + 0x30], 4
je 0x140015f7b
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x14001606f
mov ecx, 0x200
call fcn.140018538
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140015fc6
mov r9d, dword [rsi]
lea r8, [0x14001f650]
mov edx, 0x100
mov rcx, rax
call fcn.140001b38
mov rdx, rbx
mov rcx, r15
call fcn.140014350
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x50], r13
jmp 0x140016051
lea rcx, [rsp + 0x4c]
call fcn.14001325c
lea rdx, [0x14002a250]
lea rcx, [rsp + 0x4c]
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 0x140016025
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 0x140016051
cmp dword [rsp + 0x30], edi
jae 0x14001603e
mov eax, dword [rsp + 0x30]
jmp 0x140016041
lea eax, [rdi - 1]
mov byte [rax + rsi], r13b
mov rdx, rsi
mov rcx, r15
call fcn.140014350
nop
mov rcx, rsi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x14001606f
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