Function at 0x14004faa0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rbx, rcx
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbx + 8], rax
xor esi, esi
mov qword [rbx + 0x10], rsi
mov dword [rbx], esi
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x44]
call fcn.1400e24f0
mov dword [rbp - 0x50], 0x114
mov dword [rbp - 0x4c], 5
mov dword [rbp - 0x48], 1
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14004fda7
mov edx, dword [rbp - 0x4c]
mov dword [rbp + 0xf8], edx
mov ecx, dword [rbp - 0x48]
mov dword [rbp + 0xfc], ecx
mov rax, qword [rbp + 0xf8]
mov qword [rbx + 0x10], rax
mov eax, dword [rbp - 0x40]
sub eax, 1
je 0x14004fd52
cmp eax, 1
jne 0x14004fda7
cmp edx, 4
ja 0x14004fb57
mov dword [rbx], 0x3ec
lea rdx, [0x140135af0]
jmp 0x14004fb99
cmp edx, 5
jne 0x14004fbab
test ecx, ecx
jne 0x14004fb6f
mov dword [rbx], 0x3ed
lea rdx, str.Microsoft_Windows_2000
jmp 0x14004fb99
cmp ecx, 1
jne 0x14004fb83
mov dword [rbx], 0x3ee
lea rdx, str.Microsoft_Windows_XP
jmp 0x14004fb99
cmp ecx, 2
jne 0x14004fda7
mov dword [rbx], 0x3ef
lea rdx, str.Microsoft_Windows_Server_2003
xor r9d, r9d
lea rcx, [rbx + 8]
call fcn.140038290
mov edx, dword [rbp - 0x4c]
mov ecx, dword [rbp - 0x48]
cmp edx, 6
jne 0x14004fc0b
test ecx, ecx
jne 0x14004fbc6
mov dword [rbx], 0x3f0
lea rdx, str.Microsoft_Windows_Vista
jmp 0x14004fd9b
cmp ecx, 1
jne 0x14004fbdd
mov dword [rbx], 0x3f1
lea rdx, str.Microsoft_Windows_7
jmp 0x14004fd9b
cmp ecx, 2
jne 0x14004fbf4
mov dword [rbx], 0x3f2
lea rdx, str.Microsoft_Windows_8
jmp 0x14004fd9b
cmp ecx, 3
jne 0x14004fc56
mov dword [rbx], 0x3f3
lea rdx, str.Microsoft_Windows_8.1
jmp 0x14004fd9b
cmp edx, 0xa
jne 0x14004fc48
test ecx, ecx
jne 0x14004fc5c
xor r9d, r9d
lea rcx, [rbx + 8]
cmp dword [rbp - 0x44], 0x55f0
jb 0x14004fc36
mov dword [rbx], 0x3f5
lea rdx, str.Microsoft_Windows_11
jmp 0x14004fda2
mov dword [rbx], 0x3f4
lea rdx, str.Microsoft_Windows_10
jmp 0x14004fda2
cmp edx, 6
ja 0x14004fc5c
jne 0x14004fda7
cmp ecx, 3
jbe 0x14004fda7
mov dword [rbx], 0x3f6
mov dword [rsp + 0x30], esi
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x30], esi
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x70], xmm1
mov dword [rsp + 0x40], 4
mov eax, ecx
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x30], 4
mov eax, edx
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbp + 0xf8], rax
lea r9, [rbp + 0xf8]
mov r8d, 4
lea rdx, [rsp + 0x50]
lea rcx, str.Microsoft_Windows_New___d._d_
call fcn.14005db80
lea rdx, [rbp + 0xf8]
lea rcx, [rbx + 8]
call fcn.1400333a0
nop
mov rdx, qword [rbp + 0xf8]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004fd50
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004fd46
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004fd50
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14004fda7
cmp edx, 4
jne 0x14004fda7
test ecx, ecx
jne 0x14004fd6a
mov dword [rbx], 0x3e8
lea rdx, str.Microsoft_Windows_95
jmp 0x14004fd9b
cmp ecx, 0xa
jne 0x14004fd89
cmp word [rbp - 0x3a], 0x41
sete sil
add esi, 0x3e9
mov dword [rbx], esi
lea rdx, str.Microsoft_Windows_98
jmp 0x14004fd9b
cmp ecx, 0x5a
jne 0x14004fda7
mov dword [rbx], 0x3eb
lea rdx, str.Microsoft_Windows_ME
xor r9d, r9d
lea rcx, [rbx + 8]
call fcn.140038290
cmp dword [rbx], 0
jne 0x14004fdca
mov rax, qword [rbx + 8]
cmp dword [rax - 0x10], 0
jne 0x14004fdca
xor r9d, r9d
lea rdx, [0x140135ac8]
lea rcx, [rbx + 8]
call fcn.140038290
nop
mov rax, rbx
mov rbx, qword [rsp + 0x200]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret