Function at 0x1400156f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400382f0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [rcx - 0x38]
cmp qword [rdx + 0x18], 8
jb 0x140013551
mov rdx, qword [rdx]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rcx, qword [rcx - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140013739
mov eax, dword [rbp - 0x29]
sub eax, 1
je 0x1400136ca
sub eax, 2
je 0x14001365c
sub eax, 1
je 0x1400135fb
sub eax, 7
jne 0x1400137d2
mov rax, qword [rbx - 0x40]
movsxd rcx, dword [rax + 4]
add rcx, 0xffffffffffffffc0
add rcx, rbx
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov rax, qword [rax + 0x18]
call qword [0x140021e20]
nop
mov rdx, qword [rax + 0x10]
test rdx, rdx
jne 0x1400135e2
mov edx, 0x80004003
lea rcx, [rbp - 0x11]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rbp - 0x11]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rax, qword [rdi]
mov rdx, qword [rdx]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140021e20]
nop
jmp 0x140013732
mov rax, qword [rbx - 0x40]
movsxd rcx, dword [rax + 4]
add rcx, 0xffffffffffffffc0
add rcx, rbx
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov rax, qword [rax + 0x10]
call qword [0x140021e20]
nop
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140013644
mov edx, 0x80004003
lea rcx, [rbp - 0x11]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rbp - 0x11]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rax, qword [rdi]
mov edx, dword [rcx]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140021e20]
nop
jmp 0x140013732
mov rax, qword [rbx - 0x40]
movsxd rcx, dword [rax + 4]
add rcx, 0xffffffffffffffc0
add rcx, rbx
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov rax, qword [rax + 8]
call qword [0x140021e20]
nop
mov rdx, qword [rax + 0x20]
test rdx, rdx
jne 0x1400136a5
mov edx, 0x80004003
lea rcx, [rbp - 0x11]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rbp - 0x11]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov r8, qword [rdx + 8]
sub r8, qword [rdx]
mov rax, qword [rdi]
mov rdx, qword [rdx]
mov rcx, rdi
mov rax, qword [rax]
call qword [0x140021e20]
nop
lea rcx, [rbp + 0x17]
call fcn.14001243c
jmp 0x140013732
mov rax, qword [rbx - 0x40]
movsxd rcx, dword [rax + 4]
add rcx, 0xffffffffffffffc0
add rcx, rbx
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov rax, qword [rax + 0x28]
call qword [0x140021e20]
nop
mov rdx, qword [rax + 0x28]
test rdx, rdx
jne 0x140013713
mov edx, 0x80004003
lea rcx, [rbp - 0x11]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rbp - 0x11]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [0x140021e20]
nop
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x140013732
call fcn.140006b58
mov al, 1
jmp 0x1400137d4
mov rax, qword [rbx - 0x40]
movsxd rcx, dword [rax + 4]
add rbx, 0xffffffffffffffc0
add rcx, rbx
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
mov rax, qword [rax + 0x38]
call qword [0x140021e20]
nop
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x1400137d2
mov rax, qword [rdi]
lea rdx, [rbp + 0x17]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [0x140021e20]
nop
mov rdx, rbx
mov rcx, qword [rax]
call fcn.140011eac
nop
mov rax, qword [rbp + 0x17]
test rax, rax
je 0x1400137ae
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [0x140021e20]
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140013732
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [0x140021e20]
nop
jmp 0x140013732
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14001c630
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x140013510