Function at 0x14004a5a8
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, 0xe8
mov rax, qword [0x1400841b0]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r14, qword [rbp + 0x7f]
mov rbx, r8
mov r8, qword [rbp + 0x8f]
mov rdi, rdx
mov r12, qword [rbp + 0x87]
mov rdx, rcx
mov r15d, r9d
mov rsi, rcx
mov r9d, dword [rbp + 0x97]
xor r13d, r13d
mov rcx, rbx
mov dword [rsp + 0x40], r13d
call fcn.14004ab64
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14004a6aa
call fcn.1400097d0
mov r9, rax
cmp dword [rax], 5
jbe 0x14004a7b2
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_open_or_create_the_registry_path._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], 0x82
jb 0x14004a641
mov rbx, qword [rbx]
lea rdx, [0x14005ca08]
mov rcx, r13
test rbx, rbx
je 0x14004a661
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r13w
jne 0x14004a657
lea eax, [rcx*2 + 2]
mov qword [rbp - 0x61], rdx
mov dword [rbp - 0x59], eax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x55], r13d
mov qword [rbp - 0x49], 4
lea rax, [rsp + 0x50]
mov rcx, r9
mov qword [rsp + 0x28], rax
lea rdx, [0x14006ef52]
mov dword [rsp + 0x20], 5
call fcn.1400011b0
jmp 0x14004a7b2
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x14004a6b7
mov r8, qword [rdi]
mov rcx, qword [rsi]
mov r9d, r15d
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14004a7bb
call fcn.1400097d0
mov r9, rax
cmp dword [rax], 5
jbe 0x14004a7b2
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_get_registry_value_size._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], 0x70
jb 0x14004a714
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x14005ca08]
mov r8, rdx
mov rax, r13
test rdi, rdi
je 0x14004a73a
mov r8, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x14004a730
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x61], r8
mov dword [rbp - 0x55], r13d
jb 0x14004a756
mov rbx, qword [rbx]
mov rax, r13
test rbx, rbx
je 0x14004a76e
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r13w
jne 0x14004a764
lea eax, [rax*2 + 2]
mov qword [rbp - 0x51], rdx
mov dword [rbp - 0x49], eax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x45], r13d
mov qword [rbp - 0x39], 4
lea rax, [rsp + 0x50]
mov rcx, r9
mov qword [rsp + 0x28], rax
lea rdx, [0x14006f031]
mov dword [rsp + 0x20], 6
call fcn.1400011b0
mov eax, dword [rsp + 0x40]
jmp 0x14004a8bd
mov eax, dword [r14]
cmp byte [rbp + 0x6f], r13b
je 0x14004a7c6
shr eax, 1
mov dword [r12], eax
cmp eax, 1
jb 0x14004a7db
cmp eax, dword [rbp + 0x77]
ja 0x14004a7db
xor eax, eax
jmp 0x14004a8bd
call fcn.1400097d0
mov r8d, 4
mov r10, rax
cmp dword [rax], r8d
jbe 0x14004a8b8
cmp qword [rdi + 0x18], 8
lea rax, str.Registry_value_is_empty_or_bigger_than_max_length._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], SysAllocStringByteLen
jb 0x14004a80f
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x14005ca08]
mov r9, rdx
mov rax, r13
test rdi, rdi
je 0x14004a835
mov r9, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x14004a82b
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x61], r9
mov dword [rbp - 0x55], r13d
jb 0x14004a851
mov rbx, qword [rbx]
mov rax, r13
test rbx, rbx
je 0x14004a869
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r13w
jne 0x14004a85f
lea eax, [rax*2 + 2]
mov qword [rbp - 0x51], rdx
mov dword [rbp - 0x49], eax
lea rax, [rbp + 0x77]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x45], r13d
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r8
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r8
mov qword [rbp - 0x19], r8
lea rax, [rsp + 0x50]
mov rcx, r10
mov qword [rsp + 0x28], rax
lea rdx, [0x14006efd9]
mov dword [rsp + 0x20], 8
call fcn.1400011b0
mov eax, SafeArrayGetDim
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.14004ddf0
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret