Function at 0x1401d6960
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 [0x14049e510]
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 0x1401d6b8c
mov dword [rsp + 0x48], 0x20019
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], 0xffffffff80000002
lea r9d, [r13 + 8]
mov qword [rsp + 0x38], rcx
mov r8, r14
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], r13b
call fcn.1401d5de8
test eax, eax
jne 0x1401d6b8c
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.140076f04
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x1401d6a1d
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 0x1401d6b74
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401d6b26
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 0x1401d6a83
mov rdi, qword [rdi]
or r8, 0xffffffffffffffff
lea rdx, [0x140344690]
mov rcx, rdx
mov rax, r13
test rdi, rdi
je 0x1401d6aa9
mov rcx, rdi
mov rax, r8
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1401d6a9f
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 0x1401d6ac5
mov r14, qword [r14]
mov rax, r13
test r14, r14
je 0x1401d6add
mov rdx, r14
mov rax, r8
inc rax
cmp word [r14 + rax*2], r13w
jne 0x1401d6ad3
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, [0x1403ddea8]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
mov rdx, r12
mov rcx, rbx
call fcn.140064ef0
test rsi, rsi
je 0x1401d6b97
mov rax, qword [rbp - 0x71]
mov rcx, rsi
sub rax, rsi
cmp rax, 0x1000
jb 0x1401d6b6a
test cl, 0x1f
jne 0x1401d6b63
mov rsi, qword [rsi - 8]
cmp rsi, rcx
jae 0x1401d6b63
sub rcx, rsi
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1401d6b6a
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1402e0278
jmp 0x1401d6b97
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 0x1401d6b97
mov rdx, r12
mov rcx, rbx
call fcn.140064ef0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401d6ba7
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.1402dfdb0
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret