Function at 0x14006c500
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xe0
mov rdi, rcx
lea rcx, [rsp + 0x70]
xor r14d, r14d
movaps xmmword [rax - 0x38], xmm6
mov rsi, r8
mov r13, rdx
mov qword [rsp + 0x38], r14
call fcn.140008640
lea rcx, [rsp + 0x50]
call fcn.140008640
lea rcx, [rsp + 0x90]
call fcn.140008640
lea rdx, [0x140096618]
mov rcx, rsi
call fcn.1400148c0
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
call fcn.140058e00
lea rcx, [rsp + 0xb0]
mov rdx, rax
call fcn.1400022f0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x70]
mov rdx, rax
lea rax, [rsp + 0x90]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400662d0
mov rax, qword [rsp + 0x60]
mov r11, qword [rsp + 0x58]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x68]
lea r9, [rsp + 0x44]
inc dword [rax]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0xb0]
mov rcx, rdi
mov qword [rsp + 0xb8], r11
mov qword [rsp + 0xc8], rax
call fcn.140066130
cmp al, r14b
jne 0x14006c602
lea edx, [r14 + 2]
xor r8d, r8d
mov rcx, rdi
call fcn.140003d50
jmp 0x14006c8e1
lea rcx, [rsp + 0x70]
call fcn.140040ab0
mov r12b, al
cmp al, r14b
jne 0x14006c63c
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
cmp eax, r14d
je 0x14006c635
mov edx, 3
jmp 0x14006c5f2
mov rcx, qword [rsp + 0x38]
jmp 0x14006c641
mov rcx, qword [rsp + 0x48]
mov r9d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x90]
lea rax, [rsp + 0x30]
or r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r14d
je 0x14006c687
cmp r12b, r14b
jne 0x14006c67d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 1
jmp 0x14006c5f2
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
call fcn.140058e00
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x128]
mov rdx, rax
lea rax, [rsp + 0x118]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r8d, r8d
mov rcx, rdi
cmp eax, r14d
je 0x14006c6d2
or edx, 0xffffffff
jmp 0x14006c8c1
mov edx, dword [rsp + 0x128]
call fcn.140003ce0
mov r11d, dword [rsp + 0x128]
cmp r11d, r14d
jbe 0x14006c8b6
cmp r11d, 2
jbe 0x14006c921
cmp r11d, 3
je 0x14006c85a
cmp r11d, 4
je 0x14006c7f4
cmp r11d, 7
jne 0x14006c8b6
mov ecx, dword [rsp + 0x118]
lea eax, [r11 - 5]
shr rcx, 1
add rcx, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140017e04
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140058e00
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov rdx, rax
lea rax, [rsp + 0x118]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
jne 0x14006c9a6
mov eax, dword [rsp + 0x118]
shr eax, 1
mov dword [rsp + 0x118], eax
mov word [rbx + rax*2], r14w
mov edx, dword [rsp + 0x118]
cmp edx, 1
jbe 0x14006c999
lea ecx, [rdx - 1]
mov r8d, 0xa
cmp word [rbx + rcx*2], r14w
cmove edx, ecx
mov ecx, r14d
mov dword [rsp + 0x118], edx
cmp edx, r14d
jbe 0x14006c7e1
mov rax, rbx
cmp word [rax], r14w
jne 0x14006c7d7
mov word [rax], r8w
mov edx, dword [rsp + 0x118]
inc ecx
add rax, 2
cmp ecx, edx
jb 0x14006c7c6
lea eax, [rcx - 1]
cmp word [rbx + rax*2], r8w
jne 0x14006c999
jmp 0x14006c994
mov rax, qword [r13 + 8]
mov dword [rsp + 0x118], 4
mov rcx, qword [rax + 8]
call fcn.140058e00
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov rdx, rax
lea rax, [rsp + 0x118]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x40]
pxor xmm6, xmm6
mov rcx, rsi
cvtsi2sd xmm6, r11
call fcn.140003c60
mov dword [rsi + 8], 3
movsd qword [rsi], xmm6
jmp 0x14006c8c6
mov edx, dword [rsp + 0x118]
mov rcx, rsi
call fcn.140066a90
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140058e00
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov rdx, rax
lea rax, [rsp + 0x118]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
je 0x14006c8c6
mov rcx, rsi
call fcn.140003c60
mov dword [rsi + 8], 1
mov dword [rsi], r14d
mov rcx, rdi
mov edx, 0xfffffffe
xor r8d, r8d
call fcn.140003d50
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r12b, r14b
jne 0x14006c8e1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x90]
call fcn.1400036e0
lea rcx, [rsp + 0x50]
call fcn.1400036e0
lea rcx, [rsp + 0x70]
call fcn.1400036e0
lea r11, [rsp + 0xe0]
xor eax, eax
mov rbx, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov ecx, dword [rsp + 0x118]
mov eax, 2
shr rcx, 1
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140017e04
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140058e00
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov rdx, rax
lea rax, [rsp + 0x118]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
jne 0x14006c9a6
mov eax, dword [rsp + 0x118]
shr eax, 1
mov dword [rsp + 0x118], eax
mov word [rbx + rax*2], r14w
mov rdx, rbx
mov rcx, rsi
call fcn.1400148c0
jmp 0x14006c9b5
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 - 2]
call fcn.140003d50
mov rcx, rbx
call fcn.1400185f4
jmp 0x14006c8c6