Function at 0x1400081a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3a0
xor edi, edi
mov rbp, rcx
lea rcx, [rsp + 0x50]
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x58], edi
call fcn.14006d614
cmp eax, edi
je 0x140008418
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx - 1]
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
lea ecx, [r15 + 1]
movsxd rcx, ecx
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
xor edi, edi
cmp r15, rdi
mov r13, rax
mov rsi, rdi
jle 0x140008260
lea rdi, [rbx + 2]
movzx ecx, word [rbx + rsi*4]
and word [rsp + 0x44], 0
xor edx, edx
mov word [rsp + 0x40], cx
movzx ecx, word [rdi]
lea r8d, [rdx + 0x10]
mov word [rsp + 0x42], cx
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_wcstoul
add rdi, 4
mov byte [rsi + r13], al
add rsi, 1
cmp rsi, r15
jl 0x140008226
xor edi, edi
mov esi, 0xff
lea rcx, [rsp + 0xa1]
xor edx, edx
mov r8, rsi
mov byte [rsp + 0xa0], dil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x1a2]
xor edx, edx
mov r8d, 0x1fc
mov dword [rsp + 0x3e8], edi
mov word [rsp + 0x1a0], di
call sub.msvcrt.dll_memset
mov edx, dword [rbp + 0x1088]
lea rbx, [0x14008ad40]
cmp edx, 1
jne 0x1400082df
mov edx, 0x6f
mov rcx, rbx
call fcn.140066f78
lea rdx, [rsp + 0x1a0]
movzx ecx, word [rax]
add rax, 2
mov word [rdx], cx
add rdx, 2
cmp cx, di
jne 0x1400082ca
jmp 0x14000830c
cmp edx, 2
jne 0x14000830c
mov edx, 0x70
mov rcx, rbx
call fcn.140066f78
lea rdx, [rsp + 0x1a0]
movzx ecx, word [rax]
add rax, 2
mov word [rdx], cx
add rdx, 2
cmp cx, di
jne 0x1400082f9
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x1a0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x140008387
mov edx, 0x71
mov rcx, rbx
mov dword [rsp + 0x3e8], esi
call fcn.140066f78
lea rcx, [rsp + 0x3e8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0xa0]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x3e8]
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x70], r13
call fcn.14006d694
cmp eax, edi
je 0x140008410
mov rdx, qword [rsp + 0x90]
cmp rdx, rdi
je 0x140008410
lea rcx, [r14 + 0x800]
mov r8d, esi
call fcn.140062b74
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r13
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsp + 0x50]
call fcn.14006d5b4
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret