Function at 0x1401c5f18
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 [0x14044e770]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, qword [rbp + 0x78]
mov rbx, rdx
mov dl, byte [rbp + 0x80]
mov rdi, rcx
mov r13, qword [rbp + 0x70]
xor ecx, ecx
mov al, dl
mov qword [rsp + 0x60], r15
neg al
mov qword [rsp + 0x58], rcx
mov eax, dword [rbp + 0x88]
mov rsi, r9
sbb r12d, r12d
mov byte [r13], 1
and r12d, 6
mov dword [r15], ecx
mov dword [rsp + 0x54], ecx
mov r14, r8
mov dword [rsp + 0x50], ecx
cmp eax, 0x4000000
jbe 0x1401c5f92
lea eax, [rcx + 0xd]
jmp 0x1401c5fd0
mov qword [rsp + 0x40], 0xffffffff80000002
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
lea r9d, [r12 + 2]
lea rcx, [rsp + 0x54]
mov r8, rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], dl
mov rdx, rbx
call fcn.1401c5b88
mov ecx, dword [rsp + 0x50]
mov dword [r15], eax
test eax, eax
je 0x1401c5fe7
mov rdx, r14
mov rcx, rdi
call fcn.14004a36c
jmp 0x1401c6179
mov edx, ecx
lea rcx, [rsp + 0x68]
call fcn.14016b760
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x1401c6000
mov r8, qword [rbx]
mov r15, qword [rsp + 0x68]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
lea r9d, [r12 + 2]
mov qword [rsp + 0x30], rax
xor edx, edx
xor eax, eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov r12, qword [rsp + 0x60]
xor edx, edx
mov dword [r12], eax
test eax, eax
je 0x1401c6155
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401c6148
xor r8d, r8d
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 0x1401c6073
mov rbx, qword [rbx]
or r9, 0xffffffffffffffff
lea rdx, [0x14030cae0]
mov rcx, rdx
mov rax, r8
test rbx, rbx
je 0x1401c6099
mov rcx, rbx
mov rax, r9
inc rax
cmp word [rbx + rax*2], r8w
jne 0x1401c608f
cmp qword [rsi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x50], rcx
mov dword [rbp - 0x44], r8d
jb 0x1401c60b5
mov rsi, qword [rsi]
mov rcx, rdx
mov rax, r8
test rsi, rsi
je 0x1401c60d0
mov rcx, rsi
mov rax, r9
inc rax
cmp word [rsi + rax*2], r8w
jne 0x1401c60c6
cmp qword [r14 + 0x18], 8
lea eax, [rax*2 + 2]
mov qword [rbp - 0x40], rcx
mov rcx, r14
mov dword [rbp - 0x38], eax
mov dword [rbp - 0x34], r8d
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 4
jb 0x1401c60fb
mov rcx, qword [r14]
mov rax, r8
test rcx, rcx
je 0x1401c6113
mov rdx, rcx
mov rax, r9
inc rax
cmp word [rcx + rax*2], r8w
jne 0x1401c6109
lea eax, [rax*2 + 2]
mov qword [rbp - 0x20], rdx
mov dword [rbp - 0x18], eax
mov dword [rbp - 0x14], r8d
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039bb59]
mov rcx, r10
mov dword [rsp + 0x20], 7
call fcn.140001158
mov rdx, r14
mov rcx, rdi
call fcn.14004a36c
jmp 0x1401c616f
mov eax, dword [rsp + 0x50]
mov rcx, rdi
mov byte [r13], dl
dec eax
mov word [r15 + rax*2], dx
mov rdx, r15
call fcn.14004a9e4
lea rcx, [rsp + 0x68]
call fcn.140084ac8
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401c6189
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret