Function at 0x14004a8e4
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 - 8]
sub rsp, 0x108
mov rax, qword [0x1400841b0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, qword [rbp + 0x70]
lea rax, [rsp + 0x50]
mov r13, qword [rbp + 0x78]
xor r14d, r14d
mov dword [rsp + 0x48], 0x20019
mov rdi, r9
mov qword [rsp + 0x40], 0xffffffff80000002
mov rsi, r8
mov qword [rsp + 0x38], rax
mov r15, rcx
lea rax, [rsp + 0x54]
mov byte [r12], 1
mov qword [rsp + 0x30], rax
lea r9d, [r14 + 2]
mov dword [rsp + 0x28], 0x4000000
lea rcx, [rsp + 0x58]
mov r8, rdi
mov byte [rsp + 0x20], r14b
mov rbx, rdx
mov dword [r13], r14d
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x50], r14d
call fcn.14004a5a8
mov dword [r13], eax
test eax, eax
je 0x14004a995
mov rdx, rsi
mov rcx, r15
call fcn.140006e6c
jmp 0x14004ab24
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14004435c
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x14004a9b0
mov r8, qword [rbx]
mov r14, qword [rsp + 0x60]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea r9d, [rax + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
xor edx, edx
mov dword [r13], eax
test eax, eax
je 0x14004ab00
call fcn.1400097d0
mov r8, rax
cmp dword [rax], 4
jbe 0x14004aaf3
xor r9d, r9d
mov qword [rbp - 0x58], 0x68
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x60], rax
jb 0x14004aa21
mov rbx, qword [rbx]
or r10, 0xffffffffffffffff
lea rdx, [0x14005ca08]
mov rcx, rdx
mov rax, r9
test rbx, rbx
je 0x14004aa47
mov rcx, rbx
mov rax, r10
inc rax
cmp word [rbx + rax*2], r9w
jne 0x14004aa3d
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x50], rcx
mov dword [rbp - 0x44], r9d
jb 0x14004aa63
mov rdi, qword [rdi]
mov rcx, rdx
mov rax, r9
test rdi, rdi
je 0x14004aa7e
mov rcx, rdi
mov rax, r10
inc rax
cmp word [rdi + rax*2], r9w
jne 0x14004aa74
cmp qword [rsi + 0x18], 8
lea eax, [rax*2 + 2]
mov qword [rbp - 0x40], rcx
mov rcx, rsi
mov dword [rbp - 0x38], eax
mov dword [rbp - 0x34], r9d
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], 4
jb 0x14004aaa9
mov rcx, qword [rsi]
mov rax, r9
test rcx, rcx
je 0x14004aac1
mov rdx, rcx
mov rax, r10
inc rax
cmp word [rcx + rax*2], r9w
jne 0x14004aab7
lea eax, [rax*2 + 2]
mov qword [rbp - 0x20], rdx
mov dword [rbp - 0x18], eax
mov dword [rbp - 0x14], r9d
lea rax, [rbp - 0x80]
mov rcx, r8
mov qword [rsp + 0x28], rax
lea rdx, [0x14006ef89]
mov dword [rsp + 0x20], 7
call fcn.1400011b0
mov rdx, rsi
mov rcx, r15
call fcn.140006e6c
jmp 0x14004ab1a
mov eax, dword [rsp + 0x50]
mov rcx, r15
mov byte [r12], dl
dec eax
mov word [r14 + rax*2], dx
mov rdx, r14
call fcn.140009014
lea rcx, [rsp + 0x60]
call fcn.14003a5dc
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14004ab3a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rax, r15
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14004ddf0
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret