Function at 0x14006f300
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.1400083e0
lea rcx, [rsp + 0x50]
call fcn.1400083e0
lea rcx, [rsp + 0x90]
call fcn.1400083e0
lea rdx, [0x14009a680]
mov rcx, rsi
call fcn.140015040
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
call fcn.140063fa0
lea rcx, [rsp + 0xb0]
mov rdx, rax
call fcn.140002350
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.140067cd0
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.140067b20
cmp al, r14b
jne 0x14006f409
lea edx, [r14 + 2]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
xor r8d, r8d
call fcn.140003990
jmp 0x14006f82f
lea rcx, [rsp + 0x70]
call fcn.140042300
mov r12b, al
cmp al, r14b
jne 0x14006f45e
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 0x14006f457
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, eax
movsxd rcx, dword [rcx + 4]
add rcx, rdi
call fcn.140003940
mov r11, qword [rdi]
mov edx, 3
movsxd rcx, dword [r11 + 4]
jmp 0x14006f3f9
mov rcx, qword [rsp + 0x38]
jmp 0x14006f463
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 0x14006f4bd
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, eax
movsxd rcx, dword [rcx + 4]
add rcx, rdi
call fcn.140003940
cmp r12b, r14b
jne 0x14006f4b3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 1
jmp 0x14006f3f2
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
call fcn.140063fa0
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
cmp eax, r14d
je 0x14006f51e
mov rcx, qword [rdi]
mov edx, eax
movsxd rcx, dword [rcx + 4]
add rcx, rdi
call fcn.140003940
mov r11, qword [rdi]
or rdx, 0xffffffffffffffff
movsxd rcx, dword [r11 + 4]
jmp 0x14006f809
mov rax, qword [rdi]
mov edx, dword [rsp + 0x128]
movsxd rcx, dword [rax + 4]
add rcx, rdi
call fcn.140003940
mov r11d, dword [rsp + 0x128]
cmp r11d, r14d
jbe 0x14006f7fd
cmp r11d, 2
jbe 0x14006f744
cmp r11d, 3
je 0x14006f6b5
cmp r11d, 4
je 0x14006f64c
cmp r11d, 7
jne 0x14006f7fd
mov ecx, dword [rsp + 0x118]
lea eax, [r11 - 5]
shr rcx, 1
add rcx, 2
mul rcx
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.140018cc8
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140063fa0
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]
mov edx, eax
cmp eax, r14d
jne 0x14006f7cb
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 0x14006f7be
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 0x14006f639
mov rax, rbx
cmp word [rax], r14w
jne 0x14006f62f
mov word [rax], r8w
mov edx, dword [rsp + 0x118]
inc ecx
add rax, 2
cmp ecx, edx
jb 0x14006f61e
lea eax, [rcx - 1]
cmp word [rbx + rax*2], r8w
jne 0x14006f7be
jmp 0x14006f7b9
mov rax, qword [r13 + 8]
mov dword [rsp + 0x118], 4
mov rcx, qword [rax + 8]
call fcn.140063fa0
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.1400038c0
mov dword [rsi + 8], 3
movsd qword [rsi], xmm6
jmp 0x14006f814
mov edx, dword [rsp + 0x118]
mov rcx, rsi
call fcn.1400698f0
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140063fa0
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 0x14006f814
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, eax
movsxd rcx, dword [rcx + 4]
add rcx, rdi
call fcn.140003940
mov r11, qword [rdi]
xor r8d, r8d
movsxd rcx, dword [r11 + 4]
lea edx, [r8 - 2]
add rcx, rdi
call fcn.140003990
mov rcx, rsi
call fcn.1400038c0
mov dword [rsi + 8], 1
mov dword [rsi], r14d
jmp 0x14006f814
mov ecx, dword [rsp + 0x118]
mov eax, 2
shr rcx, 1
inc rcx
mul rcx
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.140018cc8
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140063fa0
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]
mov edx, eax
cmp eax, r14d
jne 0x14006f7cb
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.140015040
jmp 0x14006f7f3
mov rax, qword [rdi]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
add rcx, rdi
call fcn.140003940
mov r11, qword [rdi]
xor r8d, r8d
movsxd rcx, dword [r11 + 4]
lea edx, [r8 - 2]
add rcx, rdi
call fcn.140003990
mov rcx, rbx
call fcn.140018ec8
jmp 0x14006f814
mov rax, qword [rdi]
mov edx, 0xfffffffe
movsxd rcx, dword [rax + 4]
xor r8d, r8d
add rcx, rdi
call fcn.140003990
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r12b, r14b
jne 0x14006f82f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x90]
call fcn.140003410
lea rcx, [rsp + 0x50]
call fcn.140003410
lea rcx, [rsp + 0x70]
call fcn.140003410
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