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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x248
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0xe0], 0x11c
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140018332
xor al, al
jmp 0x140018778
mov edx, 0x88
lea rcx, [rsp + 0x50]
call fcn.140004bc0
lea rcx, [rsp + 0x50]
call fcn.1400ce610
nop
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
je 0x140018384
cmp dword [rsp + 0x24], 5
je 0x140018444
cmp dword [rsp + 0x24], 6
je 0x140018530
cmp dword [rsp + 0x24], 0xa
je 0x1400186c3
jmp 0x140018733
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x1400183a9
cmp dword [rsp + 0x2c], 0xa
je 0x1400183ff
cmp dword [rsp + 0x2c], 0x5a
je 0x140018420
jmp 0x14001843f
cmp dword [rsp + 0xf0], 2
jne 0x1400183d4
lea rdx, [0x1402a5a38]
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 1
jmp 0x1400183fd
cmp dword [rsp + 0xf0], 1
jne 0x1400183fd
lea rdx, [0x1402a5a70]
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 0
jmp 0x14001843f
lea rdx, str.Microsoft_Windows_98
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 3
jmp 0x14001843f
lea rdx, [0x1402a5ad0]
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 5
jmp 0x140018752
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140018469
cmp dword [rsp + 0x30], 1
je 0x14001848d
cmp dword [rsp + 0x30], 2
je 0x1400184ae
jmp 0x14001852b
lea rdx, [0x1402a5b00]
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 4
jmp 0x14001852b
lea rdx, str.Microsoft_Windows_XP
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 6
jmp 0x14001852b
lea rdx, str.Windows_XP_64_Bit_Edition
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 7
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x1400184fd
lea rdx, str.Microsoft_Windows_Server_2003
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 8
jmp 0x14001852b
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14001852b
lea rdx, str.Microsoft_Windows_Server_2003_R2
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 9
jmp 0x140018752
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140018564
cmp dword [rsp + 0x28], 1
je 0x1400185b6
cmp dword [rsp + 0x28], 2
je 0x140018608
cmp dword [rsp + 0x28], 3
je 0x140018664
jmp 0x1400186be
movzx eax, byte [rsp + 0x1fa]
cmp eax, 1
jne 0x140018592
lea rdx, str.Microsoft_Windows_Vista
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 0xa
jmp 0x1400185b1
lea rdx, str.Microsoft_Windows_Server_2008
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], inet_ntoa
jmp 0x1400186be
movzx eax, byte [rsp + 0x1fa]
cmp eax, 1
jne 0x1400185e4
lea rdx, str.Microsoft_Windows_7
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], InitCommonControls
jmp 0x140018603
lea rdx, str.Microsoft_Windows_Server_2008_R2
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x1400186be
movzx eax, byte [rsp + 0x1fa]
cmp eax, 1
jne 0x140018636
lea rdx, str.Microsoft_Windows_8
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], InitCommonControls
jmp 0x140018662
movzx eax, byte [rsp + 0x1fa]
cmp eax, 1
je 0x140018662
lea rdx, str.Microsoft_Windows_Server_2012
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], reloc.libcurl_x64.dll_Ordinal_14
jmp 0x1400186be
movzx eax, byte [rsp + 0x1fa]
cmp eax, 1
je 0x140018692
lea rdx, str.Windows_Server_2012_R2
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], InitCommonControls
jmp 0x1400186be
movzx eax, byte [rsp + 0x1fa]
cmp eax, 1
jne 0x1400186be
lea rdx, str.Windows_8.1
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], reloc.COMCTL32.dll_InitCommonControls
jmp 0x140018752
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400186d7
jmp 0x140018731
movzx eax, byte [rsp + 0x1fa]
cmp eax, 1
jne 0x140018705
lea rdx, str.Windows_10
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], Ordinal_22
jmp 0x140018731
movzx eax, byte [rsp + 0x1fa]
cmp eax, 1
je 0x140018731
lea rdx, str.Windows_Server_2016
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], Ordinal_22
jmp 0x140018752
lea rdx, [0x1402a5df8]
lea rcx, [rsp + 0x50]
call fcn.1400ce80c
mov rax, qword [rsp + 0x250]
mov dword [rax], 0xffffffff
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x258]
call fcn.1400ce7e0
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x50]
call fcn.1400ce724
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x248
ret