Function at 0x14006c320
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.140008270
lea rcx, [rsp + 0x50]
call fcn.140008270
lea rcx, [rsp + 0x90]
call fcn.140008270
lea rdx, [0x140095618]
mov rcx, rsi
call fcn.140014770
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
call fcn.140058c50
lea rcx, [rsp + 0xb0]
mov rdx, rax
call fcn.140001ec0
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.140066590
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.1400663f0
cmp al, r14b
jne 0x14006c422
lea edx, [r14 + 2]
xor r8d, r8d
mov rcx, rdi
call fcn.140003930
jmp 0x14006c701
lea rcx, [rsp + 0x70]
call fcn.140040c60
mov r12b, al
cmp al, r14b
jne 0x14006c45c
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 0x14006c455
mov edx, 3
jmp 0x14006c412
mov rcx, qword [rsp + 0x38]
jmp 0x14006c461
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 0x14006c4a7
cmp r12b, r14b
jne 0x14006c49d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 1
jmp 0x14006c412
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
call fcn.140058c50
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 0x14006c4f2
or edx, 0xffffffff
jmp 0x14006c6e1
mov edx, dword [rsp + 0x128]
call fcn.1400038c0
mov r11d, dword [rsp + 0x128]
cmp r11d, r14d
jbe 0x14006c6d6
cmp r11d, 2
jbe 0x14006c741
cmp r11d, 3
je 0x14006c67a
cmp r11d, 4
je 0x14006c614
cmp r11d, 7
jne 0x14006c6d6
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.140017e24
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140058c50
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 0x14006c7c6
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 0x14006c7b9
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 0x14006c601
mov rax, rbx
cmp word [rax], r14w
jne 0x14006c5f7
mov word [rax], r8w
mov edx, dword [rsp + 0x118]
inc ecx
add rax, 2
cmp ecx, edx
jb 0x14006c5e6
lea eax, [rcx - 1]
cmp word [rbx + rax*2], r8w
jne 0x14006c7b9
jmp 0x14006c7b4
mov rax, qword [r13 + 8]
mov dword [rsp + 0x118], 4
mov rcx, qword [rax + 8]
call fcn.140058c50
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.140003840
mov dword [rsi + 8], 3
movsd qword [rsi], xmm6
jmp 0x14006c6e6
mov edx, dword [rsp + 0x118]
mov rcx, rsi
call fcn.140066d50
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140058c50
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 0x14006c6e6
mov rcx, rsi
call fcn.140003840
mov dword [rsi + 8], 1
mov dword [rsi], r14d
mov rcx, rdi
mov edx, 0xfffffffe
xor r8d, r8d
call fcn.140003930
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r12b, r14b
jne 0x14006c701
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x90]
call fcn.1400032d0
lea rcx, [rsp + 0x50]
call fcn.1400032d0
lea rcx, [rsp + 0x70]
call fcn.1400032d0
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.140017e24
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140058c50
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 0x14006c7c6
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.140014770
jmp 0x14006c7d5
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 - 2]
call fcn.140003930
mov rcx, rbx
call fcn.140018614
jmp 0x14006c6e6