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

Disassembly:
push rdi
sub rsp, 0x1e0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x1800fca30]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0xb0]
call fcn.1800a3870
mov dword [rsp + 0xb0], 0x11c
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18001925f
mov r8d, dword [rsp + 0xb4]
mov eax, r8d
sub eax, 4
je 0x1800191d4
sub eax, 1
je 0x180019105
sub eax, 1
je 0x180019037
cmp eax, 4
je 0x180018fa6
mov r9d, dword [rsp + 0xb8]
lea rdx, str.Windows__d._d
lea rcx, [rsp + 0x50]
call fcn.180005480
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.1800030a0
nop
cmp qword [rsp + 0x70], 8
jb 0x18001924e
mov rcx, qword [rsp + 0x58]
call fcn.1800a2030
jmp 0x18001924e
mov r9d, dword [rsp + 0xb8]
test r9d, r9d
je 0x180018ff9
mov r8d, 0xa
lea rdx, str.Windows__d._d
lea rcx, [rsp + 0x28]
call fcn.180005480
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.1800030a0
nop
cmp qword [rsp + 0x48], 8
jb 0x18001924e
mov rcx, qword [rsp + 0x30]
call fcn.1800a2030
jmp 0x18001924e
cmp byte [rsp + 0x1ca], 1
jne 0x18001901d
mov r8d, 0x14
lea rdx, str.Microsoft_Windows_10
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov r8d, 0x1d
lea rdx, str.Microsoft_Windows_Server_2016
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov eax, dword [rsp + 0xb8]
test eax, eax
je 0x1800190c7
cmp eax, 1
je 0x180019089
cmp byte [rsp + 0x1ca], 1
jne 0x18001906f
mov r8d, 0x13
lea rdx, str.Microsoft_Windows_8
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov r8d, 0x13
lea rdx, str.Windows_Server_2012
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
cmp byte [rsp + 0x1ca], 1
jne 0x1800190ad
mov r8d, 0x13
lea rdx, str.Microsoft_Windows_7
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov r8d, 0x20
lea rdx, str.Microsoft_Windows_Server_2008_R2
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
cmp byte [rsp + 0x1ca], 1
jne 0x1800190eb
mov r8d, 0x17
lea rdx, str.Microsoft_Windows_Vista
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov r8d, 0x1d
lea rdx, str.Microsoft_Windows_Server_2008
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov eax, dword [rsp + 0xb8]
test eax, eax
je 0x1800191bd
sub eax, 1
je 0x1800191a3
cmp eax, 1
jne 0x18001924e
cmp byte [rsp + 0x1ca], al
jne 0x18001914f
cmp word [rsp + 0x78], 9
jne 0x18001914f
lea r8d, [rax + 0x2c]
lea rdx, str.Microsoft_Windows_XP_Professional_x64_Edition
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x180019176
lea r8d, [rax + 0x1d]
lea rdx, str.Microsoft_Windows_Server_2003
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x18001924e
mov r8d, 0x20
lea rdx, str.Microsoft_Windows_Server_2003_R2
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov r8d, 0x14
lea rdx, str.Microsoft_Windows_XP
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov r8d, 0x16
lea rdx, str.Microsoft_Windows_2000
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov eax, dword [rsp + 0xb8]
test eax, eax
je 0x180019215
cmp eax, 0xa
je 0x1800191fe
cmp eax, 0x5a
jne 0x18001924e
lea r8d, [rax - 0x46]
lea rdx, str.Microsoft_Windows_Me
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov r8d, 0x14
lea rdx, str.Microsoft_Windows_98
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
mov eax, dword [rsp + 0xc0]
cmp eax, 2
jne 0x180019236
lea r8d, [rax + 0x16]
lea rdx, [0x1800d62c0]
mov rcx, rbx
call fcn.180005e10
jmp 0x18001924e
cmp eax, 1
jne 0x18001924e
lea r8d, [rax + 0x13]
lea rdx, str.Microsoft_Windows_95
mov rcx, rbx
call fcn.180005e10
mov eax, dword [rsp + 0xb4]
mov dword [rdi], eax
cmp qword [rbx + 0x18], 0
setne al
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800a3210
mov rbx, qword [rsp + 0x200]
add rsp, 0x1e0
pop rdi
ret