Function at 0x14004cbf0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbp, r8
mov r14, rdx
mov rdi, rcx
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0xb8], rbx
mov eax, dword [0x1401d6d80]
mov r8d, eax
imul r8d, eax
imul r8d, eax
mov eax, 0x6bca1af3
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub r8d, edx
cmp r8d, 3
jne 0x14004cc69
dec dword [0x1401d7ee8]
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
movzx edx, al
cmp ecx, 6
ja 0x14004cc8d
jne 0x14004cd9c
cmp edx, 1
jbe 0x14004cd9c
cmp qword [0x1401d1d58], 0xffffffff80000002
je 0x14004cd9c
mov r8b, 1
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14004c6a0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x14004cd0b
cmp dword [rbx + 0x10], 0
jl 0x14004ccf9
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004ccf9
call fcn.1400027c0
mov rsi, rax
lock add dword [rbx + 0x10], edi
jg 0x14004cceb
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0xb8], rax
jmp 0x14004cd0b
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0xb8]
call fcn.140002670
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004cd24
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [0x1401d1d58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004cd92
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004ce97
mov rcx, qword [rsp + 0x50]
jmp 0x14004ce91
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14004c6a0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x14004ce09
cmp dword [rbx + 0x10], 0
jl 0x14004cdf7
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004cdf7
call fcn.1400027c0
mov rsi, rax
lock add dword [rbx + 0x10], edi
jg 0x14004cde9
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0xb8], rax
jmp 0x14004ce09
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0xb8]
call fcn.140002670
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ce22
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [0x1401d1d58]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004ce8c
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004ce97
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rbp
mov rdx, r14
lea rcx, [rsp + 0xb8]
call fcn.14004cee0
movzx esi, al
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
jg 0x14004cec3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx eax, sil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret