Function at 0x14007c970
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x320
mov rax, qword [0x1401ef010]
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 0x14007ca7a
cmp eax, 1
jne 0x14007ca7e
mov eax, dword [rsp + 0x154]
cmp eax, 6
jne 0x14007ca46
mov eax, dword [rsp + 0x158]
cmp eax, 2
jae 0x14007ca48
cmp eax, 1
jne 0x14007ca3c
mov byte [rbx + 0xb], al
jmp 0x14007ca7e
test eax, eax
jne 0x14007ca7a
mov byte [rbx + 0xc], 1
jmp 0x14007ca7e
jbe 0x14007ca4e
mov byte [rbx + 0xa], 1
jmp 0x14007ca7e
cmp eax, 5
jne 0x14007ca7a
mov ecx, dword [rsp + 0x158]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14007ca6c
mov byte [rbx + 0xd], 1
mov byte [rbx + 0x12], 1
jmp 0x14007ca7e
test ecx, ecx
jne 0x14007ca7a
mov byte [rbx + 0xe], 1
mov byte [rbx + 0x12], 1
jmp 0x14007ca7e
mov byte [rbx + 0x11], 1
cmp byte [rbx + 0x12], dil
sete al
mov byte [rbx + 0x13], al
cmp byte [rbx + 0xa], dil
je 0x14007cc19
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007cb65
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14007cb65
xor edx, edx
lea rcx, [rsp + 0x1f4]
mov r8d, 0x110
call fcn.140135010
lea rcx, [rsp + 0x1f0]
mov dword [rsp + 0x1f0], 0x114
call rdi
test eax, eax
jne 0x14007cb65
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 0x14007cb10
jmp 0x14007cbe3
xor edx, edx
lea rcx, [rsp + 0x1f0]
mov r8d, 0x114
call fcn.140135010
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 0x14007cb90
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 0x14007cc19
mov rax, qword [rsp + 0x40]
shr rax, 0x20
mov byte [rbx + 0xa], 0
mov byte [rbx + 8], 1
cmp eax, 0x4a61
jb 0x14007cc19
mov byte [rbx + 9], 1
cmp qword [rbx + 0x18], 0
jne 0x14007cc5f
lea rcx, [0x1401cf678]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14007cc5f
lea rdx, [0x1401cf6b8]
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.140132620
mov rbx, qword [rsp + 0x338]
add rsp, 0x320
pop rdi
ret