Function at 0x1400170f0
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, [0x14001f940]
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r13w
jne 0x140017130
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
jne 0x1400173b2
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1400173b2
mov edx, dword [rsp + 0x34]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x14001718c
cmp edx, 7
jne 0x140017193
add ecx, 2
mov dword [rsp + 0x30], ecx
call fcn.140019928
mov rsi, rax
mov qword [rsp + 0x40], rax
mov edi, dword [rsp + 0x30]
test rax, rax
je 0x1400173d6
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 0x1400171eb
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x1400173b7
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14001739e
cmp eax, 2
jbe 0x140017373
cmp eax, 3
je 0x140017322
cmp eax, 4
je 0x1400172b8
cmp eax, 7
jne 0x14001739e
lea eax, [rdi - 2]
cmp dword [rsp + 0x30], eax
jae 0x140017234
mov eax, dword [rsp + 0x30]
mov byte [rax + rsi], r13b
mov eax, dword [rsp + 0x30]
inc eax
jmp 0x14001723b
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 0x140017250
mov r14d, ebx
mov dword [rsp + 0x38], ebx
test ebx, ebx
je 0x140017392
cmp r14d, edi
ja 0x140017392
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, [0x140020698]
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 0x1400172a4
add r14d, ebx
mov dword [rsp + 0x38], r14d
jmp 0x140017261
cmp dword [rsp + 0x30], 4
je 0x1400172d6
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x1400173b7
mov ecx, 0x200
call fcn.140019928
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400173f2
mov r9d, dword [rsi]
lea r8, [0x1400206a0]
mov edx, 0x100
mov rcx, rax
call fcn.140001c58
mov rdx, rbx
mov rcx, r15
call fcn.140015780
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x50], r13
jmp 0x140017392
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 0x140017366
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 0x140017392
cmp dword [rsp + 0x30], edi
jae 0x14001737f
mov eax, dword [rsp + 0x30]
jmp 0x140017382
lea eax, [rdi - 1]
mov byte [rax + rsi], r13b
mov rdx, rsi
mov rcx, r15
call fcn.140015780
nop
mov rcx, rsi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x1400173b7
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r13
mov eax, 0x80040153
jmp 0x1400173b7
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
lea rcx, [rsp + 0x48]
call fcn.1400145ac
lea rdx, [0x140029e68]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, [rsp + 0x4c]
call fcn.1400145ac
lea rdx, [0x140029e68]
lea rcx, [rsp + 0x4c]
call sub.msvcrt.dll__CxxThrowException
int3