Function at 0x14006390c
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140123108]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov ebx, 0x114
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x60]
call fcn.140087fe0
mov dword [rbp + 0x60], ebx
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400639c3
call fcn.140060914
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetVersionEx_failed__err_
mov rcx, rbx
call fcn.140015a24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp]
call fcn.14000c350
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp], rax
lea rcx, [rbp]
call fcn.140067b68
nop
jmp 0x140063b8c
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140087fe0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rbp + 0x64]
cmp eax, 4
jne 0x1400639f7
cmp dword [rbp + 0x70], 1
jne 0x140063b19
xor eax, eax
jmp 0x140063b8f
cmp eax, 5
jne 0x140063a45
mov eax, dword [rbp + 0x68]
test eax, eax
jne 0x140063a0d
mov eax, 1
jmp 0x140063b8f
cmp eax, 1
je 0x140063a3b
cmp eax, 2
jne 0x140063b19
mov eax, 9
cmp word [rsp + 0x20], ax
je 0x140063a31
lea ecx, [rax - 3]
cmp word [rsp + 0x20], cx
jne 0x140063a3b
mov eax, 3
jmp 0x140063b8f
mov eax, 2
jmp 0x140063b8f
mov ecx, 6
cmp eax, ecx
jne 0x140063aed
mov edx, dword [rbp + 0x68]
test edx, edx
jne 0x140063a79
lea eax, [rcx + 3]
cmp word [rsp + 0x20], ax
je 0x140063a72
cmp word [rsp + 0x20], cx
je 0x140063a72
lea eax, [rcx - 1]
jmp 0x140063b8f
mov eax, ecx
jmp 0x140063b8f
cmp edx, 1
jne 0x140063aa1
lea eax, [rdx + 8]
cmp word [rsp + 0x20], ax
je 0x140063a97
cmp word [rsp + 0x20], cx
je 0x140063a97
lea eax, [rdx + 6]
jmp 0x140063b8f
mov eax, 8
jmp 0x140063b8f
cmp edx, 2
jne 0x140063ac5
lea eax, [rdx + 7]
cmp word [rsp + 0x20], ax
je 0x140063abb
cmp word [rsp + 0x20], cx
jne 0x140063b8f
mov eax, 0xa
jmp 0x140063b8f
cmp edx, 3
jne 0x140063b19
lea eax, [rdx + 6]
cmp word [rsp + 0x20], ax
je 0x140063ae3
cmp word [rsp + 0x20], cx
je 0x140063ae3
lea eax, [rdx + 8]
jmp 0x140063b8f
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x140063b8f
cmp eax, 0xa
jne 0x140063b19
cmp dword [rbp + 0x68], 0
jne 0x140063b19
mov eax, 9
cmp word [rsp + 0x20], ax
je 0x140063b12
cmp word [rsp + 0x20], cx
je 0x140063b12
mov eax, ntohl
jmp 0x140063b8f
mov eax, reloc.WS2_32.dll_ntohl
jmp 0x140063b8f
call fcn.140060914
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.Unknown_version:_major
mov rcx, rbx
call fcn.140015a24
mov edx, dword [rbp + 0x64]
mov rcx, rbx
call fcn.1400139a0
lea rdx, str.__minor
mov rcx, rbx
call fcn.140015a24
mov edx, dword [rbp + 0x68]
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp]
call fcn.14000c350
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp], rax
lea rcx, [rbp]
call fcn.140067b68
nop
or eax, 0xffffffff
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400697f0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rbp
ret