Function at 0x140027408
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 [0x140074020]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov ebx, 0x114
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x60]
call fcn.14002c580
mov dword [rbp + 0x60], ebx
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400274e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x58]
call fcn.14000be64
nop
lea rdx, str.GetVersionEx_failed__err_
lea rcx, [rsp + 0x58]
call fcn.14001078c
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14000e518
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14000a6ec
nop
lea rdx, [rbp + 0x40]
xor ecx, ecx
call fcn.14001b7a4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x40]
call fcn.14000b5d0
nop
lea rcx, [rbp - 0x20]
call fcn.14000a844
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.140029688
nop
jmp 0x1400276e4
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14002c580
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, 2
mov eax, dword [rbp + 0x64]
cmp eax, 4
jne 0x140027520
cmp dword [rbp + 0x70], 1
jne 0x14002764e
xor eax, eax
jmp 0x1400276e7
cmp eax, 5
jne 0x14002756a
mov eax, dword [rbp + 0x68]
test eax, eax
jne 0x140027536
mov eax, 1
jmp 0x1400276e7
cmp eax, 1
jne 0x140027542
mov eax, edx
jmp 0x1400276e7
cmp eax, edx
jne 0x14002764e
mov eax, 9
cmp word [rsp + 0x20], ax
je 0x140027560
lea ecx, [rax - 3]
cmp word [rsp + 0x20], cx
jne 0x14002753b
mov eax, 3
jmp 0x1400276e7
mov ecx, 6
cmp eax, ecx
jne 0x14002761c
mov r8d, dword [rbp + 0x68]
test r8d, r8d
jne 0x1400275a0
lea eax, [rcx + 3]
cmp word [rsp + 0x20], ax
je 0x140027599
cmp word [rsp + 0x20], cx
je 0x140027599
lea eax, [rcx - 1]
jmp 0x1400276e7
mov eax, ecx
jmp 0x1400276e7
cmp r8d, 1
jne 0x1400275cb
lea eax, [r8 + 8]
cmp word [rsp + 0x20], ax
je 0x1400275c1
cmp word [rsp + 0x20], cx
je 0x1400275c1
lea eax, [r8 + 6]
jmp 0x1400276e7
mov eax, 8
jmp 0x1400276e7
cmp r8d, edx
jne 0x1400275f1
mov eax, 9
cmp word [rsp + 0x20], ax
je 0x1400275e7
cmp word [rsp + 0x20], cx
jne 0x1400276e7
mov eax, 0xa
jmp 0x1400276e7
cmp r8d, 3
jne 0x14002764e
lea eax, [r8 + 6]
cmp word [rsp + 0x20], ax
je 0x140027612
cmp word [rsp + 0x20], cx
je 0x140027612
lea eax, [r8 + 8]
jmp 0x1400276e7
mov eax, reloc.WS2_32.dll_inet_ntoa
jmp 0x1400276e7
cmp eax, 0xa
jne 0x14002764e
cmp dword [rbp + 0x68], 0
jne 0x14002764e
mov eax, 9
cmp word [rsp + 0x20], ax
je 0x140027644
cmp word [rsp + 0x20], cx
je 0x140027644
mov eax, ntohl
jmp 0x1400276e7
mov eax, reloc.WS2_32.dll_ntohl
jmp 0x1400276e7
mov r8d, 1
lea rcx, [rsp + 0x58]
call fcn.14000be64
nop
lea rdx, str.Unknown_version:_major
lea rcx, [rsp + 0x58]
call fcn.14001078c
mov edx, dword [rbp + 0x64]
lea rcx, [rsp + 0x58]
call fcn.14000e518
lea rdx, str.__minor
lea rcx, [rsp + 0x58]
call fcn.14001078c
mov edx, dword [rbp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14000e518
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14000a6ec
nop
lea rdx, [rbp + 0x40]
xor ecx, ecx
call fcn.14001b7a4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x40]
call fcn.14000b5d0
nop
lea rcx, [rbp - 0x20]
call fcn.14000a844
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.140029688
nop
or eax, 0xffffffff
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140027920
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rbp
ret