Function at 0x1401c5b88
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 [0x14044e770]
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
xor r13d, r13d
mov rcx, rbx
mov r9d, 0x20019
mov dword [rsp + 0x40], r13d
call fcn.1401c773c
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1401c5c95
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401c5c8c
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 0x1401c5c22
mov rbx, qword [rbx]
lea rdx, [0x14030cae0]
mov rcx, r13
test rbx, rbx
je 0x1401c5c42
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r13w
jne 0x1401c5c38
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]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039bba8]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov eax, dword [rsp + 0x40]
jmp 0x1401c5eaa
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x1401c5ca2
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]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1401c5da1
call fcn.14004acb4
mov r8d, 4
mov r10, qword [rax + 8]
cmp dword [r10], r8d
jbe 0x1401c5c8c
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], WSACleanup
jb 0x1401c5cfc
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x14030cae0]
mov r9, rdx
mov rax, r13
test rdi, rdi
je 0x1401c5d22
mov r9, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1401c5d18
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 0x1401c5d3e
mov rbx, qword [rbx]
mov rax, r13
test rbx, rbx
je 0x1401c5d56
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1401c5d4c
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], r8
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039bbde]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
jmp 0x1401c5c8c
mov eax, dword [r14]
cmp byte [rbp + 0x6f], r13b
je 0x1401c5dac
shr eax, 1
mov dword [r12], eax
cmp eax, 1
jb 0x1401c5dc1
cmp eax, dword [rbp + 0x77]
ja 0x1401c5dc1
xor eax, eax
jmp 0x1401c5eaa
call fcn.14004acb4
mov r8d, 4
mov r10, qword [rax + 8]
cmp dword [r10], r8d
jbe 0x1401c5ea5
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], 0x90
jb 0x1401c5df6
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x14030cae0]
mov r9, rdx
mov rax, r13
test rdi, rdi
je 0x1401c5e1c
mov r9, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1401c5e12
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 0x1401c5e38
mov rbx, qword [rbx]
mov rax, r13
test rbx, rbx
je 0x1401c5e50
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1401c5e46
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]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039bb02]
xor r8d, r8d
mov dword [rsp + 0x20], 8
mov rcx, r10
call fcn.140001158
mov eax, SafeArrayGetDim
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret