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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x90], rax
and dword [rsp + 0x30], 0
and dword [rcx], 0
mov rbx, rcx
mov dword [rcx + 0x1c], 3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.140023de8
lea rcx, [rsp + 0x74]
xor edx, edx
mov dword [rbx + 0x30], eax
and qword [rbx + 0x48], 0
mov qword [rbx + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbx + 0x38], 0
mov r8d, 0x118
mov dword [rsp + 0x70], 0x11c
call fcn.14009c6c0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x78]
mov eax, dword [rsp + 0x7c]
mov dword [rbx + 4], edx
mov dword [rbx + 8], ecx
mov dword [rbx + 0xc], eax
cmp edx, 5
jne 0x140023b93
test ecx, ecx
jle 0x140023bc8
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [rbx], eax
jmp 0x140023bc8
cmp edx, 6
jne 0x140023bc0
test ecx, ecx
je 0x140023bb8
dec ecx
je 0x140023bb0
dec ecx
je 0x140023ba8
mov dword [rbx], edx
jmp 0x140023bc8
mov dword [rbx], 5
jmp 0x140023bc8
mov dword [rbx], 4
jmp 0x140023bc8
mov dword [rbx], 3
jmp 0x140023bc8
jle 0x140023bc8
mov dword [rbx], 7
movzx eax, word [rbp + 0x84]
and dword [rsp + 0x38], 0
xor edx, edx
mov dword [rbx + 0x14], eax
movzx eax, word [rbp + 0x86]
lea r8d, [rdx + 0x2c]
lea rcx, [rsp + 0x3c]
mov dword [rbx + 0x18], eax
call fcn.14009c6c0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x38]
mov ecx, 9
test eax, eax
je 0x140023c25
cmp eax, 6
je 0x140023c1c
cmp eax, ecx
jne 0x140023c29
mov dword [rbx + 0x1c], 1
jmp 0x140023c29
mov dword [rbx + 0x1c], 2
jmp 0x140023c29
and dword [rbx + 0x1c], 0
cmp dword [rsp + 0x74], 6
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x20], eax
mov eax, dword [rsp + 0x60]
mov qword [rbx + 0x28], rax
jne 0x140023cec
lea rcx, [0x1400cca48]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x74]
xor r9d, r9d
xor r8d, r8d
call rax
mov eax, dword [rsp + 0x30]
cmp eax, 0xf
ja 0x140023cc6
cmp eax, 0xc
jae 0x140023ce3
cmp eax, 6
ja 0x140023c97
mov ecx, 0x52
bt ecx, eax
jb 0x140023cda
add eax, 0xfffffff9
cmp eax, 3
jbe 0x140023ce3
and dword [rbx + 0x10], 0
mov rax, rbx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x1a0
pop rbp
ret
cmp eax, 0x11
jb 0x140023c9f
cmp eax, 0x12
jbe 0x140023ce3
cmp eax, 0x19
je 0x140023ce3
cmp eax, 0x30
jne 0x140023c9f
mov dword [rbx + 0x10], 1
jmp 0x140023ca3
mov dword [rbx + 0x10], 2
jmp 0x140023ca3
cmp dword [rsp + 0x74], 5
jne 0x140023c9f
cmp dword [rsp + 0x78], 2
jne 0x140023d1f
cmp byte [rbp + 0x8a], 1
jne 0x140023d0a
cmp word [rsp + 0x38], cx
je 0x140023cda
movzx eax, word [rbp + 0x88]
not ax
movzx ecx, ax
shr ecx, 0xe
and ecx, 2
jmp 0x140023d3d
cmp dword [rsp + 0x78], 1
jne 0x140023c9f
movzx eax, word [rbp + 0x88]
not ax
movzx ecx, ax
shr ecx, 9
and ecx, 1
mov dword [rbx + 0x10], ecx
jmp 0x140023ca3