Function at 0x14006e930
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.1400d9eb0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x10a8], rbx
mov rax, qword [0x1401cee90]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rbx, r8
mov rsi, rcx
lea r8, str._ver
lea rcx, [rsp + 0x50]
call fcn.14001b580
nop
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x61]
call fcn.1400da240
mov dword [rsp + 0x30], 0x1000
mov dword [rsp + 0x34], 0xffffffff
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or edi, 0xffffffff
test eax, eax
jne 0x14006eb57
cmp dword [rsp + 0x34], 3
jne 0x14006eb57
cmp dword [rsp + 0x30], 0x1000
je 0x14006eb57
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14006eb50
mov ecx, dword [0x1401d6d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r8d, edx
cmp r8d, 1
jne 0x14006ea8c
lea ecx, [rdi + 5]
call fcn.1400d55c0
mov rbx, rax
call fcn.1400d57c0
mov dword [rbx], eax
mov dword [0x1401d6d80], eax
mov rcx, rbx
call fcn.1400d4de0
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, str.error_writing_ver
test rdx, 0xffffffffffff0000
jne 0x14006ead7
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14006eae2
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002960
jmp 0x14006eae2
lea rcx, [rsp + 0x40]
call fcn.140003940
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi + 0x40]
call fcn.140063370
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14006eb0a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, dword [0x1401d6d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x78787879
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub r8d, edx
cmp r8d, 3
jne 0x14006ebd9
mov dword [0x1401d87cc], 0xa6bdacce
jmp 0x14006ebd9
mov bl, 1
jmp 0x14006ebdb
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.error_reading_ver
test rdx, 0xffffffffffff0000
jne 0x14006eba2
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14006ebad
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002960
jmp 0x14006ebad
lea rcx, [rsp + 0x48]
call fcn.140003940
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rsi + 0x40]
call fcn.140063370
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14006ebd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor bl, bl
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14006ebf5
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.1400d4e00
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret