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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor r14d, r14d
mov edi, 3
mov dword [rsp + 0x34], r14d
mov rbx, rcx
mov qword [rcx], r14
mov byte [rcx + 8], r14b
mov dword [rcx + 0x24], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.kernel32.dll
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180022358
mov eax, r14d
jmp 0x18002237d
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], r14d
mov rcx, rsi
call rax
test eax, eax
jne 0x180022372
mov eax, 2
jmp 0x18002237d
cmp dword [rsp + 0x30], r14d
mov eax, r14d
setne al
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x38], eax
call fcn.1800054e0
xor edx, edx
mov dword [rsp + 0x70], 0x11c
mov r8d, 0x118
lea rcx, [rsp + 0x74]
call fcn.180071390
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x78]
mov edx, dword [rsp + 0x7c]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0x14], edx
cmp eax, 5
jne 0x1800223da
test ecx, ecx
jle 0x180022420
cmp ecx, 1
mov edi, r14d
setne dil
inc edi
jmp 0x180022423
cmp eax, 6
jne 0x1800223ff
test ecx, ecx
je 0x180022423
sub ecx, 1
je 0x1800223f8
cmp ecx, 1
je 0x1800223f1
mov edi, eax
jmp 0x180022423
mov edi, 5
jmp 0x180022423
mov edi, 4
jmp 0x180022423
cmp eax, 0xa
jne 0x180022416
cmp edx, 0x295a
mov edi, r14d
setge dil
add edi, 7
jmp 0x180022423
mov edi, 9
cmp eax, 6
jg 0x180022423
mov edi, r14d
movzx eax, word [rbp + 0x84]
lea rcx, [rsp + 0x38]
mov dword [rbx + 0x1c], eax
movzx eax, word [rbp + 0x86]
mov dword [rbx + 0x20], eax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rbx], edi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rdx, qword [rsp + 0x38]
movzx eax, dx
test eax, eax
je 0x18002248c
cmp eax, 6
je 0x180022483
cmp eax, 9
jne 0x180022490
mov dword [rbx + 0x24], 1
jmp 0x180022490
mov dword [rbx + 0x24], 2
jmp 0x180022490
mov dword [rbx + 0x24], r14d
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x74]
mov dword [rbx + 0x28], eax
mov eax, dword [rsp + 0x60]
mov qword [rbx + 0x30], rax
lea eax, [rcx - 6]
test eax, 0xfffffffb
je 0x180022512
cmp ecx, 5
jne case.0x18002256d.2
mov ecx, dword [rsp + 0x78]
cmp ecx, 2
jne 0x1800224f5
cmp byte [rbp + 0x8a], 1
jne 0x1800224da
cmp dx, 9
jne 0x1800224da
mov dword [rbx + 0x18], 1
jmp 0x18002257c
movzx eax, word [rbp + 0x88]
not ax
movzx ecx, ax
shr ecx, 0xe
and ecx, 2
mov dword [rbx + 0x18], ecx
jmp 0x18002257c
cmp ecx, 1
jne case.0x18002256d.2
movzx eax, word [rbp + 0x88]
not ax
movzx ecx, ax
shr ecx, 9
and ecx, 1
mov dword [rbx + 0x18], ecx
jmp 0x18002257c
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetProductInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov ecx, dword [rsp + 0x74]
xor r8d, r8d
call rax
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 0x2f
ja case.0x18002256d.2
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0x225b4]
mov ecx, dword [rdx + rax*4 + 0x225a8]
add rcx, rdx
jmp rcx
mov dword [rbx + 0x18], 2
jmp 0x18002257c
mov dword [rbx + 0x18], r14d
mov rax, rbx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.18006c2f0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret