Function at 0x1401d6174
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 [0x14049e510]
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 0x1401d61ee
lea eax, [rcx + 0xd]
jmp 0x1401d6234
mov dword [rsp + 0x48], 0x20019
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], 0xffffffff80000002
lea r9d, [r12 + 2]
mov qword [rsp + 0x38], rcx
mov r8, rsi
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], dl
mov rdx, rbx
call fcn.1401d5de8
mov ecx, dword [rsp + 0x50]
mov dword [r15], eax
test eax, eax
je 0x1401d624b
mov rdx, r14
mov rcx, rdi
call fcn.14004cf4c
jmp 0x1401d63ec
mov edx, ecx
lea rcx, [rsp + 0x68]
call fcn.1401776f4
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x1401d6264
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 0x1401d63b9
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401d63ac
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 0x1401d62d7
mov rbx, qword [rbx]
or r9, 0xffffffffffffffff
lea rdx, [0x140344690]
mov rcx, rdx
mov rax, r8
test rbx, rbx
je 0x1401d62fd
mov rcx, rbx
mov rax, r9
inc rax
cmp word [rbx + rax*2], r8w
jne 0x1401d62f3
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 0x1401d6319
mov rsi, qword [rsi]
mov rcx, rdx
mov rax, r8
test rsi, rsi
je 0x1401d6334
mov rcx, rsi
mov rax, r9
inc rax
cmp word [rsi + rax*2], r8w
jne 0x1401d632a
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 0x1401d635f
mov rcx, qword [r14]
mov rax, r8
test rcx, rcx
je 0x1401d6377
mov rdx, rcx
mov rax, r9
inc rax
cmp word [rcx + rax*2], r8w
jne 0x1401d636d
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, [0x1403dde02]
mov rcx, r10
mov dword [rsp + 0x20], 7
call fcn.140001158
mov rdx, r14
mov rcx, rdi
call fcn.14004cf4c
jmp 0x1401d63e2
mov eax, dword [rsp + 0x50]
mov rcx, rdi
mov byte [r13], dl
dec eax
mov word [r15 + rax*2], dx
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], 7
mov word [rdi], dx
mov rdx, r15
call fcn.14004d5c4
lea rcx, [rsp + 0x68]
call fcn.14008903c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401d63fc
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.1402dfdb0
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret