Function at 0x14000895c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov r10, r9
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [rbp + 0x50]
mov byte [rax], 1
xor r12d, r12d
mov rbx, qword [rbp + 0x58]
mov dword [rbx], r12d
mov qword [rbp + 0x70], r12
mov dword [rbp + 0x68], r12d
mov dword [rbp + 0x60], r12d
lea rax, [rbp + 0x60]
mov qword [r11 - 0x70], rax
lea rax, [rbp + 0x68]
mov qword [r11 - 0x78], rax
lea r9d, [r12 + 2]
mov r8, r10
lea rcx, [rbp + 0x70]
call fcn.140008bc4
mov dword [rbx], eax
test eax, eax
jne 0x140008aa5
mov r13d, dword [rbp + 0x60]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov ebx, r12d
mov qword [rbp - 8], rbx
mov esi, r12d
xor eax, eax
test r13, r13
jne 0x140008ab2
mov r13, qword [rbp - 0x18]
mov r8, r14
cmp qword [r14 + 0x18], 8
jb 0x140008a13
mov r8, qword [r14]
mov r12, rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
xor edx, edx
lea r9d, [rdx + 2]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x58]
mov dword [rcx], eax
test eax, eax
jne 0x140008af1
mov rax, qword [rbp + 0x50]
xor r14d, r14d
mov byte [rax], r14b
mov eax, dword [rbp + 0x60]
dec eax
mov word [r12 + rax*2], r14w
mov rdx, r13
mov rcx, rdi
call fcn.14000e090
test rsi, rsi
jne 0x140008b95
mov rcx, qword [rbp + 0x70]
test rcx, rcx
jne 0x140008bac
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rdx, r15
mov rcx, rdi
call fcn.14000e6c4
jmp 0x140008a73
mov rdx, r13
lea rcx, [rbp - 0x18]
call fcn.14000b124
lea rbx, [r13*2]
mov r8, rbx
xor edx, edx
mov r13, qword [rbp - 0x18]
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbx + r13]
mov qword [rbp - 0x10], rax
mov rsi, r13
mov r12, r13
mov rax, r13
mov rbx, qword [rbp - 8]
jmp 0x140008a03
call fcn.14000d2fc
mov rbx, rax
cmp dword [rax], 4
jbe 0x140008b73
mov rcx, r15
call fcn.140007720
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax]
mov dword [rbp + 0x60], ecx
mov rcx, qword [rbp + 0x48]
call fcn.140007720
mov qword [rbp + 0x58], rax
mov rcx, r14
call fcn.140007720
mov qword [rbp - 0x30], rax
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea rdx, [0x140043ee4]
mov rcx, rbx
call fcn.14000255c
mov rdx, r15
mov rcx, rdi
call fcn.14000e6c4
lea rcx, [rbp - 0x18]
call fcn.14000e948
lea rcx, [rbp + 0x70]
call fcn.140010828
jmp 0x140008a80
sub rbx, rsi
sar rbx, 1
lea rdx, [rbx + rbx]
mov rcx, rsi
call fcn.1400063d0
jmp 0x140008a73
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140008a80