Function at 0x14004ef40
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.140002000
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.1400906c0
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 0x14004f247
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 0x14004f1f2
cmp eax, 1
jne 0x14004f247
cmp edx, 4
ja 0x14004eff7
mov dword [rbx], 0x3ec
lea rdx, str.Microsoft_Windows_NT
jmp 0x14004f039
cmp edx, 5
jne 0x14004f04b
test ecx, ecx
jne 0x14004f00f
mov dword [rbx], 0x3ed
lea rdx, str.Microsoft_Windows_2000
jmp 0x14004f039
cmp ecx, 1
jne 0x14004f023
mov dword [rbx], 0x3ee
lea rdx, str.Microsoft_Windows_XP
jmp 0x14004f039
cmp ecx, 2
jne 0x14004f247
mov dword [rbx], 0x3ef
lea rdx, str.Microsoft_Windows_Server_2003
xor r9d, r9d
lea rcx, [rbx + 8]
call fcn.140014540
mov edx, dword [rbp - 0x4c]
mov ecx, dword [rbp - 0x48]
cmp edx, 6
jne 0x14004f0ab
test ecx, ecx
jne 0x14004f066
mov dword [rbx], 0x3f0
lea rdx, str.Microsoft_Windows_Vista
jmp 0x14004f23b
cmp ecx, 1
jne 0x14004f07d
mov dword [rbx], 0x3f1
lea rdx, str.Microsoft_Windows_7
jmp 0x14004f23b
cmp ecx, 2
jne 0x14004f094
mov dword [rbx], 0x3f2
lea rdx, str.Microsoft_Windows_8
jmp 0x14004f23b
cmp ecx, 3
jne 0x14004f0f6
mov dword [rbx], 0x3f3
lea rdx, str.Microsoft_Windows_8.1
jmp 0x14004f23b
cmp edx, 0xa
jne 0x14004f0e8
test ecx, ecx
jne 0x14004f0fc
xor r9d, r9d
lea rcx, [rbx + 8]
cmp dword [rbp - 0x44], 0x55f0
jb 0x14004f0d6
mov dword [rbx], 0x3f5
lea rdx, str.Microsoft_Windows_11
jmp 0x14004f242
mov dword [rbx], 0x3f4
lea rdx, str.Microsoft_Windows_10
jmp 0x14004f242
cmp edx, 6
ja 0x14004f0fc
jne 0x14004f247
cmp ecx, 3
jbe 0x14004f247
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.140002000
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.140044c50
lea rdx, [rbp + 0xf8]
lea rcx, [rbx + 8]
call fcn.1400103b0
nop
mov rdx, qword [rbp + 0xf8]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004f1f0
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004f1e6
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004f1f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14004f247
cmp edx, 4
jne 0x14004f247
test ecx, ecx
jne 0x14004f20a
mov dword [rbx], 0x3e8
lea rdx, str.Microsoft_Windows_95
jmp 0x14004f23b
cmp ecx, 0xa
jne 0x14004f229
cmp word [rbp - 0x3a], 0x41
sete sil
add esi, 0x3e9
mov dword [rbx], esi
lea rdx, str.Microsoft_Windows_98
jmp 0x14004f23b
cmp ecx, 0x5a
jne 0x14004f247
mov dword [rbx], 0x3eb
lea rdx, str.Microsoft_Windows_ME
xor r9d, r9d
lea rcx, [rbx + 8]
call fcn.140014540
cmp dword [rbx], 0
jne 0x14004f26a
mov rax, qword [rbx + 8]
cmp dword [rax - 0x10], 0
jne 0x14004f26a
xor r9d, r9d
lea rdx, str.Unknown_OS
lea rcx, [rbx + 8]
call fcn.140014540
nop
mov rax, rbx
mov rbx, qword [rsp + 0x200]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret