Function at 0x14007e8d0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x320
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x310], rax
xor edi, edi
mov byte [rcx + 0x14], 0
lea rax, vtable.VNC_OSVersion.0
mov qword [rcx + 0x20], rdi
mov qword [rcx], rax
mov rbx, rcx
mov qword [rcx + 0x28], rdi
mov qword [rcx + 0x18], rdi
mov dword [rcx + 0xf], edi
mov dword [rcx + 0xa], edi
mov byte [rcx + 0xe], dil
mov word [rcx + 8], di
lea rcx, [rsp + 0x150]
mov dword [rsp + 0x150], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinPE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete al
mov byte [rbx + 0x15], al
mov eax, dword [rsp + 0x160]
sub eax, 1
je 0x14007e9da
cmp eax, 1
jne 0x14007e9de
mov eax, dword [rsp + 0x154]
cmp eax, 6
jne 0x14007e9a6
mov eax, dword [rsp + 0x158]
cmp eax, 2
jae 0x14007e9a8
cmp eax, 1
jne 0x14007e99c
mov byte [rbx + 0xb], al
jmp 0x14007e9de
test eax, eax
jne 0x14007e9da
mov byte [rbx + 0xc], 1
jmp 0x14007e9de
jbe 0x14007e9ae
mov byte [rbx + 0xa], 1
jmp 0x14007e9de
cmp eax, 5
jne 0x14007e9da
mov ecx, dword [rsp + 0x158]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14007e9cc
mov byte [rbx + 0xd], 1
mov byte [rbx + 0x12], 1
jmp 0x14007e9de
test ecx, ecx
jne 0x14007e9da
mov byte [rbx + 0xe], 1
mov byte [rbx + 0x12], 1
jmp 0x14007e9de
mov byte [rbx + 0x11], 1
cmp byte [rbx + 0x12], dil
sete al
mov byte [rbx + 0x13], al
cmp byte [rbx + 0xa], dil
je 0x14007eb79
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007eac5
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14007eac5
xor edx, edx
lea rcx, [rsp + 0x1f4]
mov r8d, 0x110
call fcn.14014a5c0
lea rcx, [rsp + 0x1f0]
mov dword [rsp + 0x1f0], 0x114
call rdi
test eax, eax
jne 0x14007eac5
lea rcx, [rsp + 0x38]
mov edx, 2
lea rax, [rsp + 0x1f0]
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14007ea70
jmp 0x14007eb43
xor edx, edx
lea rcx, [rsp + 0x1f0]
mov r8d, 0x114
call fcn.14014a5c0
lea rcx, [rsp + 0x38]
mov edx, 2
lea rax, [rsp + 0x1f0]
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14007eaf0
movups xmm0, xmmword [rax]
mov eax, dword [rax + 0x10]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x38]
shr rax, 0x20
cmp eax, 0xa
jne 0x14007eb79
mov rax, qword [rsp + 0x40]
shr rax, 0x20
mov byte [rbx + 0xa], 0
mov byte [rbx + 8], 1
cmp eax, 0x4a61
jb 0x14007eb79
mov byte [rbx + 9], 1
cmp qword [rbx + 0x18], 0
jne 0x14007ebbf
lea rcx, [0x1401fbd20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14007ebbf
lea rdx, [0x1401fbd60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x18]
lea rdx, str.DwmEnableComposition
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140147af0
mov rbx, qword [rsp + 0x338]
add rsp, 0x320
pop rdi
ret