Function at 0x1401c66fc
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 [0x14044e770]
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 0x1401c6990
mov qword [rsp + 0x40], 0xffffffff80000002
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
lea r9d, [r13 + 0x20]
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], 1
call fcn.1401c5b88
test eax, eax
jne 0x1401c6990
mov edx, dword [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14016b760
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x1401c67b7
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 0x1401c68d8
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401c68bf
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 0x1401c681c
mov rbx, qword [rbx]
or r8, 0xffffffffffffffff
lea rcx, [0x14030cae0]
mov rdx, rcx
mov rax, r13
test rbx, rbx
je 0x1401c6842
mov rdx, rbx
mov rax, r8
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1401c6838
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 0x1401c685e
mov rsi, qword [rsi]
mov rax, r13
test rsi, rsi
je 0x1401c6876
mov rcx, rsi
mov rax, r8
inc rax
cmp word [rsi + rax*2], r13w
jne 0x1401c686c
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, [0x14039bbde]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
mov rdx, r15
mov rcx, rdi
call fcn.140081d84
lea rcx, [rbp - 0x80]
call fcn.140084ac8
jmp 0x1401c699b
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 0x1401c695a
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbx, rax
test rax, rax
je 0x1401c695a
mov rsi, r14
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.14004a9e4
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x68]
call fcn.1400989d4
lea rcx, [rbp - 0x68]
call fcn.14004b500
mov edx, dword [rsp + 0x50]
inc r15
add r15, rbx
lea rsi, [r14 + r15*2]
test rsi, rsi
jne 0x1401c6944
mov rbx, r13
jmp 0x1401c6950
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbx, rax
test rbx, rbx
jne 0x1401c6909
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.1400565a8
jmp 0x1401c68ca
mov rdx, r15
mov rcx, rdi
call fcn.140081d84
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401c69ab
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.1402ae860
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret