Function at 0x1401c6498
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 - 0xf]
sub rsp, 0xf8
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, qword [rbp + 0x77]
xor r13d, r13d
mov eax, dword [rbp + 0x7f]
mov r14, r9
mov qword [rsp + 0x58], r13
mov r12, r8
mov dword [rsp + 0x54], r13d
mov rdi, rdx
mov byte [r15], 1
mov rbx, rcx
mov dword [rsp + 0x50], r13d
cmp eax, 0x4000000
ja 0x1401c66bc
mov qword [rsp + 0x40], 0xffffffff80000002
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
lea r9d, [r13 + 8]
lea rcx, [rsp + 0x54]
mov r8, r14
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], r13b
call fcn.1401c5b88
test eax, eax
jne 0x1401c66bc
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.140073a64
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x1401c654d
mov r8, qword [rdi]
mov rsi, qword [rsp + 0x68]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r13
lea r9d, [rdx + 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1401c66a4
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401c6656
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], 0x68
jb 0x1401c65b3
mov rdi, qword [rdi]
or r8, 0xffffffffffffffff
lea rdx, [0x14030cae0]
mov rcx, rdx
mov rax, r13
test rdi, rdi
je 0x1401c65d9
mov rcx, rdi
mov rax, r8
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1401c65cf
cmp qword [r14 + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x31], eax
mov qword [rbp - 0x39], rcx
mov dword [rbp - 0x2d], r13d
jb 0x1401c65f5
mov r14, qword [r14]
mov rax, r13
test r14, r14
je 0x1401c660d
mov rdx, r14
mov rax, r8
inc rax
cmp word [r14 + rax*2], r13w
jne 0x1401c6603
lea eax, [rax*2 + 2]
mov qword [rbp - 0x29], rdx
mov dword [rbp - 0x21], eax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x1d], r13d
mov qword [rbp - 0x11], 4
lea rax, [rbp - 0x69]
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
mov rdx, r12
mov rcx, rbx
call fcn.140061d10
test rsi, rsi
je 0x1401c66c7
mov rax, qword [rbp - 0x71]
mov rcx, rsi
sub rax, rsi
cmp rax, 0x1000
jb 0x1401c669a
test cl, 0x1f
jne 0x1401c6693
mov rsi, qword [rsi - 8]
cmp rsi, rcx
jae 0x1401c6693
sub rcx, rsi
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1401c669a
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1402aed28
jmp 0x1401c66c7
mov rax, qword [rbp - 0x79]
mov byte [r15], r13b
mov qword [rbx + 8], rax
mov rax, qword [rbp - 0x71]
mov qword [rbx + 0x10], rax
mov qword [rbx], rsi
jmp 0x1401c66c7
mov rdx, r12
mov rcx, rbx
call fcn.140061d10
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401c66d7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret