Function at 0x1401b65ac
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xf8
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r13, qword [rbp + 0x6f]
xor r15d, r15d
mov rdi, rcx
mov qword [rsp + 0x48], r15
mov cl, byte [rbp + 0x77]
mov rsi, r9
mov al, cl
mov dword [rsp + 0x44], r15d
neg al
mov byte [r13], 1
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x38], rax
sbb r12d, r12d
lea rax, [rsp + 0x44]
mov r14, r8
mov qword [rsp + 0x30], rax
and r12d, 6
mov eax, dword [rbp + 0x7f]
mov r8, rsi
mov dword [rsp + 0x28], eax
mov rbx, rdx
mov byte [rsp + 0x20], cl
lea rcx, [rsp + 0x48]
lea r9d, [r12 + 2]
call fcn.1401b6234
test al, al
jne 0x1401b664d
mov rdx, r14
mov rcx, rdi
call fcn.14005517c
jmp 0x1401b67e2
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14015fe54
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x1401b6668
mov r8, qword [rbx]
mov r15, qword [rsp + 0x58]
lea rax, [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
lea r9d, [r12 + 2]
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], r15
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
xor r12d, r12d
mov dword [rsp + 0x50], eax
test eax, eax
je 0x1401b67be
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401b67b1
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], 0x68
jb 0x1401b66d3
mov rbx, qword [rbx]
or r8, 0xffffffffffffffff
lea rdx, [0x1402cb810]
mov rcx, rdx
mov rax, r12
test rbx, rbx
je 0x1401b66f9
mov rcx, rbx
mov rax, r8
inc rax
cmp word [rbx + rax*2], r12w
jne 0x1401b66ef
cmp qword [rsi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x49], eax
mov qword [rbp - 0x51], rcx
mov dword [rbp - 0x45], r12d
jb 0x1401b6715
mov rsi, qword [rsi]
mov rcx, rdx
mov rax, r12
test rsi, rsi
je 0x1401b6730
mov rcx, rsi
mov rax, r8
inc rax
cmp word [rsi + rax*2], r12w
jne 0x1401b6726
cmp qword [r14 + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x39], eax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x41], rcx
mov rcx, r14
mov qword [rbp - 0x31], rax
mov dword [rbp - 0x35], r12d
mov qword [rbp - 0x29], 4
jb 0x1401b6760
mov rcx, qword [r14]
mov rax, r12
test rcx, rcx
je 0x1401b6778
mov rdx, rcx
mov rax, r8
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1401b676e
lea eax, [rax*2 + 2]
mov qword [rbp - 0x21], rdx
mov dword [rbp - 0x19], eax
mov dword [rbp - 0x15], r12d
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034cdcb]
xor r8d, r8d
mov dword [rsp + 0x20], 7
mov rcx, r10
call fcn.140001078
mov rdx, r14
mov rcx, rdi
call fcn.14005517c
jmp 0x1401b67d8
mov eax, dword [rsp + 0x40]
mov rdx, r15
dec eax
mov byte [r13], r12b
mov rcx, rdi
mov word [r15 + rax*2], r12w
call fcn.140048750
lea rcx, [rsp + 0x58]
call fcn.140067f0c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401b67f2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.14027a710
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret