Function at 0x1401d6bcc
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 - 0x38]
sub rsp, 0x138
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r12, qword [rbp + 0xa0]
xor r13d, r13d
mov eax, dword [rbp + 0xa8]
mov rsi, r9
mov qword [rsp + 0x58], r13
mov r15, r8
mov dword [rsp + 0x54], r13d
mov rbx, rdx
mov byte [r12], 1
mov rdi, rcx
mov dword [rsp + 0x50], r13d
cmp eax, 0x4000000
ja 0x1401d6e79
mov dword [rsp + 0x48], 0x20019
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], 0xffffffff80000002
lea r9d, [r13 + 0x20]
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], 1
call fcn.1401d5de8
test eax, eax
jne 0x1401d6e79
mov edx, dword [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.1401776f4
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x1401d6c8f
mov r8, qword [rbx]
mov r14, qword [rbp - 0x80]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
lea r9d, [rdx + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1401d6db0
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401d6d97
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0x68
jb 0x1401d6cf4
mov rbx, qword [rbx]
or r8, 0xffffffffffffffff
lea rcx, [0x140344690]
mov rdx, rcx
mov rax, r13
test rbx, rbx
je 0x1401d6d1a
mov rdx, rbx
mov rax, r8
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1401d6d10
cmp qword [rsi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 8], eax
mov qword [rbp - 0x10], rdx
mov dword [rbp - 4], r13d
jb 0x1401d6d36
mov rsi, qword [rsi]
mov rax, r13
test rsi, rsi
je 0x1401d6d4e
mov rcx, rsi
mov rax, r8
inc rax
cmp word [rsi + rax*2], r13w
jne 0x1401d6d44
lea eax, [rax*2 + 2]
mov qword [rbp], rcx
mov dword [rbp + 8], eax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x10], rax
mov dword [rbp + 0xc], r13d
mov qword [rbp + 0x18], 4
lea rax, [rbp - 0x40]
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, r15
mov rcx, rdi
call fcn.140085f38
lea rcx, [rbp - 0x80]
call fcn.14008903c
jmp 0x1401d6e84
mov edx, dword [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x78], r13
mov rsi, r13
mov r15, r13
movdqu xmmword [rsp + 0x68], xmm0
test r14, r14
je 0x1401d6e43
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbx, rax
test rax, rax
je 0x1401d6e43
mov rsi, r14
mov rdx, rsi
mov qword [rbp - 0x58], r13
lea rcx, [rbp - 0x68]
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
call fcn.14004d5c4
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x68]
call fcn.1400a05e8
lea rcx, [rbp - 0x68]
call fcn.14004e0f0
mov edx, dword [rsp + 0x50]
inc r15
add r15, rbx
lea rsi, [r14 + r15*2]
test rsi, rsi
jne 0x1401d6e2d
mov rbx, r13
jmp 0x1401d6e39
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbx, rax
test rbx, rbx
jne 0x1401d6de1
mov rsi, qword [rsp + 0x78]
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
mov byte [r12], r13b
xorps xmm0, xmm0
mov qword [rdi], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rsi
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
call fcn.1400593e8
jmp 0x1401d6da2
mov rdx, r15
mov rcx, rdi
call fcn.140085f38
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401d6e94
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1402dfdb0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret