Function at 0x1401b5d3c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r14d, r14d
mov byte [r9], 1
cmp qword [r8 + 0x18], 8
mov rsi, r9
mov rbx, r8
mov qword [rbp - 0x61], r14
mov rdi, rcx
mov qword [rbp - 0x59], r14
mov rdx, r8
jb 0x1401b5d82
mov rdx, qword [r8]
lea rax, [rbp - 0x59]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov dword [rbp - 0x69], eax
test eax, eax
je 0x1401b5e59
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b5f7c
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_open_or_create_the_registry_path._Return_default_value
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x69]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x21], 0x82
mov qword [rbp - 0x11], 4
jb 0x1401b5dec
mov rbx, qword [rbx]
lea rdx, [0x1402cb810]
mov rcx, r14
test rbx, rbx
je 0x1401b5e0c
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r14w
jne 0x1401b5e02
lea eax, [rcx*2 + 2]
mov qword [rbp - 9], rdx
mov dword [rbp - 1], eax
lea rax, [rbp - 0x61]
mov qword [rbp + 7], rax
mov dword [rbp + 3], r14d
mov qword [rbp + 0xf], 8
lea rax, [rbp - 0x49]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034cc8e]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001078
jmp 0x1401b5f7c
cmp qword [rdi + 0x18], 8
mov rdx, rdi
mov dword [rbp - 0x65], 8
jb 0x1401b5e6d
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x59]
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x51]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov dword [rbp - 0x69], eax
test eax, eax
je 0x1401b5f82
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401b5f7c
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], 0x68
jb 0x1401b5eca
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x1402cb810]
mov r8, rdx
mov rax, r14
test rdi, rdi
je 0x1401b5ef0
mov r8, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r14w
jne 0x1401b5ee6
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x11], eax
mov qword [rbp - 0x19], r8
mov dword [rbp - 0xd], r14d
jb 0x1401b5f0c
mov rbx, qword [rbx]
mov rax, r14
test rbx, rbx
je 0x1401b5f24
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1401b5f1a
lea eax, [rax*2 + 2]
mov qword [rbp - 9], rdx
mov dword [rbp - 1], eax
lea rax, [rbp - 0x69]
mov qword [rbp + 7], rax
lea rax, [rbp - 0x61]
mov qword [rbp + 0x17], rax
mov dword [rbp + 3], r14d
mov qword [rbp + 0xf], 4
mov qword [rbp + 0x1f], 8
lea rax, [rbp - 0x49]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034cc3f]
xor r8d, r8d
mov dword [rsp + 0x20], 7
mov rcx, r10
call fcn.140001078
mov rbx, qword [rbp - 0x61]
jmp 0x1401b5f89
mov rbx, qword [rbp - 0x51]
mov byte [rsi], r14b
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1401b5f98
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14027a710
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret