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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140136188]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor r14d, r14d
cmp dword [0x14013c9d0], r14d
je 0x1400d19e8
lea rbx, [0x14013c9e0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1400d19bb
test rax, rax
je 0x1400d1fec
test rcx, rcx
je 0x1400d1fec
movsxd rdx, edx
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400d1fec
xorps xmm0, xmm0
lea rcx, [rsp + 0x74]
xor edx, edx
mov r8d, 0x118
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400d1fec
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x1400d1fec
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x38]
test rax, rax
je 0x1400d1a62
call qword [0x140117ae0]
jmp 0x1400d1a68
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x80], 2
jne 0x1400d1fe5
cmp dword [rsp + 0x74], 4
jbe 0x1400d1fe5
mov esi, 0x100
lea rbx, [0x14013c9e0]
mov edx, esi
lea r8, str.Microsoft
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ecx, dword [rsp + 0x74]
mov r13d, 6
mov edx, dword [rsp + 0x78]
lea eax, [rcx + rcx*4]
lea eax, [rdx + rax*2]
mov dword [0x14013c9d0], eax
cmp ecx, 0xa
jne 0x1400d1aee
test edx, edx
jne 0x1400d1f46
cmp byte [rbp + 0x8a], 1
lea r8, str.Windows_10
mov edx, esi
mov rcx, rbx
je 0x1400d1ade
lea r8, str.Windows_Server_2016
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov dword [0x14013c9d0], 0x64
cmp dword [rsp + 0x74], 6
lea r13, str.Professional
jne 0x1400d1d2a
cmp dword [rsp + 0x78], r14d
jne 0x1400d1b34
cmp byte [rbp + 0x8a], 1
lea r8, str.Windows_Vista
mov rdx, rsi
mov rcx, rbx
je 0x1400d1b24
lea r8, str.Windows_Server_2008
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov dword [0x14013c9d0], 0x3c
cmp dword [rsp + 0x78], 1
jne 0x1400d1b68
cmp byte [rbp + 0x8a], 1
lea r8, str.Windows_7
mov rdx, rsi
mov rcx, rbx
je 0x1400d1b58
lea r8, str.Windows_Server_2008_R2
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov dword [0x14013c9d0], 0x3d
cmp dword [rsp + 0x78], 2
jne 0x1400d1b9c
cmp byte [rbp + 0x8a], 1
lea r8, str.Windows_8
mov rdx, rsi
mov rcx, rbx
je 0x1400d1b8c
lea r8, str.Windows_Server_2012
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov dword [0x14013c9d0], 0x3e
cmp dword [rsp + 0x78], 3
jne 0x1400d1bd0
cmp byte [rbp + 0x8a], 1
lea r8, str.Windows_8.1
mov rdx, rsi
mov rcx, rbx
je 0x1400d1bc0
lea r8, str.Windows_Server_2012_R2
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov dword [0x14013c9d0], 0x3f
lea rdx, str.GetProductInfo
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d1fec
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov ecx, dword [rsp + 0x74]
xor r8d, r8d
call qword [0x140117ae0]
mov eax, dword [rsp + 0x30]
cmp eax, 0x19
ja 0x1400d1d16
je 0x1400d1d0d
cmp eax, 0xa
ja 0x1400d1cab
je 0x1400d1ca2
sub eax, 1
je 0x1400d1c99
sub eax, 1
je 0x1400d1c8d
sub eax, 1
je 0x1400d1c81
sub eax, 1
je 0x1400d1ca2
sub eax, 2
je 0x1400d1c75
sub eax, 1
je 0x1400d1c69
sub eax, 1
je 0x1400d1c5d
cmp eax, 1
jne 0x1400d1d2a
lea r8, str.Small_Business_Server
jmp 0x1400d1d1e
lea r8, str.Datacenter_Edition
jmp 0x1400d1d1e
lea r8, str.Standard_Edition
jmp 0x1400d1d1e
lea r8, str.Business_Edition
jmp 0x1400d1d1e
lea r8, str.Home_Premium_Edition
jmp 0x1400d1d1e
lea r8, str.Home_Basic_Edition
jmp 0x1400d1d1e
lea r8, str.Ultimate_Edition
jmp 0x1400d1d1e
lea r8, str.Enterprise_Edition
jmp 0x1400d1d1e
sub eax, 0xb
je 0x1400d1d04
sub eax, 1
je 0x1400d1cfb
sub eax, 1
je 0x1400d1cf2
sub eax, 1
je 0x1400d1ce9
sub eax, 1
je 0x1400d1ce0
sub eax, 2
je 0x1400d1cd7
cmp eax, 1
jne 0x1400d1d2a
lea r8, str.Cluster_Server_Edition
jmp 0x1400d1d1e
lea r8, str.Web_Server_Edition
jmp 0x1400d1d1e
lea r8, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x1400d1d1e
lea r8, str.Enterprise_Edition__core_installation_
jmp 0x1400d1d1e
lea r8, str.Standard_Edition__core_installation_
jmp 0x1400d1d1e
lea r8, str.Datacenter_Edition__core_installation_
jmp 0x1400d1d1e
lea r8, str.Starter_Edition
jmp 0x1400d1d1e
lea r8, str.Small_Business_Server_Premium_Edition
jmp 0x1400d1d1e
cmp eax, 0x30
jne 0x1400d1d2a
mov r8, r13
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
cmp dword [rsp + 0x74], 5
jne 0x1400d1f40
cmp dword [rsp + 0x78], 2
mov dil, 0x80
jne 0x1400d1e9b
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400d1d5b
lea r8, str.Windows_Server_2003_R2_
jmp 0x1400d1da8
mov eax, 0x2000
test word [rbp + 0x88], ax
je 0x1400d1d72
lea r8, str.Windows_Storage_Server_2003
jmp 0x1400d1da8
mov eax, 0x8000
test word [rbp + 0x88], ax
je 0x1400d1d89
lea r8, str.Windows_Home_Server
jmp 0x1400d1da8
cmp byte [rbp + 0x8a], 1
jne 0x1400d1da1
cmp word [rsp + 0x38], 9
lea r8, str.Windows_XP_Professional_x64_Edition
je 0x1400d1da8
lea r8, str.Windows_Server_2003_
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
cmp byte [rbp + 0x8a], 1
je 0x1400d1e90
mov eax, 6
cmp word [rsp + 0x38], ax
jne 0x1400d1df8
mov al, byte [rbp + 0x88]
test dil, al
je 0x1400d1de4
lea r8, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x1400d1e84
test al, 2
je 0x1400d1e90
lea r8, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x1400d1e84
cmp word [rsp + 0x38], 9
jne 0x1400d1e30
mov al, byte [rbp + 0x88]
test dil, al
je 0x1400d1e14
lea r8, str.Datacenter_x64_Edition
jmp 0x1400d1e84
mov rdx, rsi
mov rcx, rbx
test al, 2
je 0x1400d1e27
lea r8, str.Enterprise_x64_Edition
jmp 0x1400d1e8a
lea r8, str.Standard_x64_Edition
jmp 0x1400d1e8a
mov eax, 0x4000
test word [rbp + 0x88], ax
je 0x1400d1e47
lea r8, str.Compute_Cluster_Edition
jmp 0x1400d1e84
mov al, byte [rbp + 0x88]
test dil, al
je 0x1400d1e5b
lea r8, str.Datacenter_Edition
jmp 0x1400d1e84
test al, 2
je 0x1400d1e68
lea r8, str.Enterprise_Edition
jmp 0x1400d1e84
mov eax, 0x400
lea r8, str.Web_Edition
test word [rbp + 0x88], ax
jne 0x1400d1e84
lea r8, str.Standard_Edition
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
cmp dword [rsp + 0x74], 5
jne 0x1400d1f40
cmp dword [rsp + 0x78], 1
jne 0x1400d1ee0
lea r8, str.Windows_XP
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov eax, 0x200
lea r8, str.Home_Edition
mov rdx, rsi
mov rcx, rbx
test word [rbp + 0x88], ax
jne 0x1400d1ed3
mov r8, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
cmp dword [rsp + 0x74], 5
jne 0x1400d1f40
cmp dword [rsp + 0x78], r14d
jne 0x1400d1f40
lea r8, str.Windows_2000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
cmp byte [rbp + 0x8a], 1
jne 0x1400d1f0e
mov r8, r13
mov rdx, rsi
mov rcx, rbx
jmp 0x1400d1f3a
mov al, byte [rbp + 0x88]
test dil, al
je 0x1400d1f22
lea r8, str.Datacenter_Server
jmp 0x1400d1f06
lea r8, str.Advanced_Server
mov rdx, rsi
mov rcx, rbx
test al, 2
jne 0x1400d1f3a
lea r8, str.Server
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r13d, 6
lea rcx, [rbp - 0x7c]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400d1f4e
test rax, rax
je 0x1400d1f80
lea r8, [0x14011c768]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp - 0x7c]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r9d, dword [rsp + 0x7c]
lea r8, str.__build__d_
mov edx, 0x50
lea rcx, [rbp + 0x90]
call fcn.1400d31f8
lea r8, [rbp + 0x90]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
cmp dword [rsp + 0x74], r13d
jb 0x1400d1fec
movzx eax, word [rsp + 0x38]
cmp ax, 9
jne 0x1400d1fcb
lea r8, str.__64_bit
jmp 0x1400d1fd7
test ax, ax
jne 0x1400d1fec
lea r8, str.__32_bit
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x1400d1fec
mov dword [0x14013c9d0], r14d
mov eax, dword [0x14013c9d0]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400d7200
mov rbx, qword [rsp + 0x280]
add rsp, 0x240
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret