Function at 0x1401b6b00
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 - 0xf]
sub rsp, 0xe8
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, qword [rbp + 0x77]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
xor r13d, r13d
lea rax, [rsp + 0x44]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x30], rax
mov r14, r9
mov eax, dword [rbp + 0x7f]
mov r12, r8
mov rdi, rcx
mov dword [rsp + 0x28], eax
lea r9d, [r13 + 8]
mov byte [rsp + 0x20], r13b
mov r8, r14
mov byte [r15], 1
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x44], r13d
mov rsi, rdx
mov dword [rsp + 0x40], r13d
call fcn.1401b6234
test al, al
jne 0x1401b6b92
mov rdx, r12
mov rcx, rdi
call fcn.14006088c
jmp 0x1401b6d1a
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140076fa0
cmp qword [rsi + 0x18], 8
mov r8, rsi
jb 0x1401b6bad
mov r8, qword [rsi]
mov rbx, qword [rsp + 0x58]
lea rax, [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
lea r9d, [rdx + 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x1401b6d04
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401b6cb6
cmp qword [rsi + 0x18], 8
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], 0x68
jb 0x1401b6c13
mov rsi, qword [rsi]
or r8, 0xffffffffffffffff
lea rcx, [0x1402cb810]
mov rdx, rcx
mov rax, r13
test rsi, rsi
je 0x1401b6c39
mov rdx, rsi
mov rax, r8
inc rax
cmp word [rsi + rax*2], r13w
jne 0x1401b6c2f
cmp qword [r14 + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x31], eax
mov qword [rbp - 0x39], rdx
mov dword [rbp - 0x2d], r13d
jb 0x1401b6c55
mov r14, qword [r14]
mov rax, r13
test r14, r14
je 0x1401b6c6d
mov rcx, r14
mov rax, r8
inc rax
cmp word [r14 + rax*2], r13w
jne 0x1401b6c63
lea eax, [rax*2 + 2]
mov qword [rbp - 0x29], rcx
mov dword [rbp - 0x21], eax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x1d], r13d
mov qword [rbp - 0x11], 4
lea rax, [rbp - 0x69]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034cd13]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001078
mov rdx, r12
mov rcx, rdi
call fcn.14006088c
test rbx, rbx
je 0x1401b6d1a
mov rax, qword [rbp - 0x71]
sub rax, rbx
cmp rax, 0x1000
jb 0x1401b6cf3
test bl, 0x1f
jne 0x1401b6cfd
mov rax, qword [rbx - 8]
cmp rax, rbx
jae 0x1401b6cfd
sub rbx, rax
sub rbx, 8
cmp rbx, 0x1f
ja 0x1401b6cfd
mov rbx, rax
mov rcx, rbx
call fcn.14027abd8
jmp 0x1401b6d1a
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rbp - 0x79]
mov byte [r15], r13b
mov qword [rdi + 8], rax
mov rax, qword [rbp - 0x71]
mov qword [rdi + 0x10], rax
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401b6d2a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14027a710
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret