Function at 0x14002de10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r9
mov rax, r8
mov rdi, rcx
mov qword [rbp + 7], rcx
xor r15d, r15d
cmp qword [r8 + 0x18], 0x10
jb 0x14002de50
mov rax, qword [r8]
lea rcx, [rbp + 7]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002e015
mov dword [rbp + 0xf], r15d
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14002de8b
mov rdx, qword [rsi]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x13]
xor r8d, r8d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x14002e052
cmp dword [rbp + 0x13], 1
jne 0x14002e099
xorps xmm0, xmm0
mov r14d, dword [rbp + 0xf]
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r15
test r14, r14
je 0x14002def5
mov edx, r14d
lea rcx, [rbp + 0x17]
call fcn.140023670
mov rcx, qword [rbp + 0x17]
lea rbx, [rcx + r14]
mov r8d, r14d
xor edx, edx
call fcn.140094aba
mov qword [rbp + 0x1f], rbx
cmp qword [rsi + 0x18], 0x10
jb 0x14002deff
mov rsi, qword [rsi]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x17]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x13]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14002dfd8
mov r8, qword [rbp + 0x1f]
dec r8
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
mov rcx, qword [rbp + 0x17]
cmp rcx, r8
jne 0x14002df67
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], bl
jmp 0x14002df79
sub r8, rcx
mov rdx, rcx
mov rcx, rdi
call fcn.140026e10
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14002dfb2
mov rdx, qword [rbp + 0x27]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002dfad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002dfad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400931f4
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140092d50
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov edx, ebx
lea rcx, [rbp - 0x19]
call fcn.14000ff70
nop
mov r8, rax
lea rdx, str.Error_reading_registry_value:
lea rcx, [rbp - 0x39]
call fcn.1400206e0
nop
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.14002db10
lea rdx, [0x1400c10e8]
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.14000ff70
nop
mov r8, rax
lea rdx, str.Error_opening_registry_key:
lea rcx, [rbp - 0x19]
call fcn.1400206e0
nop
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.14002db10
lea rdx, [0x1400c10e8]
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, ebx
lea rcx, [rbp - 0x19]
call fcn.14000ff70
nop
mov r8, rax
lea rdx, str.Error_reading_registry_value_size:
lea rcx, [rbp - 0x39]
call fcn.1400206e0
nop
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.14002db10
lea rdx, [0x1400c10e8]
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Registry_value_is_not_a_string
lea rcx, [rbp - 0x59]
call fcn.14002db80
lea rdx, [0x1400c10e8]
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll__CxxThrowException
int3