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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100223d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], esi
mov byte [ebp - 0xac], 0
push 0x9c
lea eax, [ebp - 0x168]
push esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x168]
push ecx
mov dword [ebp - 0x168], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x28c]
push edx
push 0x64
push esi
mov dword [ebp - 0x28c], esi
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
lea ebx, [esi + 3]
test eax, eax
jne 0x10016d34
mov eax, dword [ebp - 0x28c]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], edi
jmp 0x10016d97
cmp dword [ebp - 0x164], 6
jne 0x10016d97
cmp dword [ebp - 0x160], 2
jne 0x10016d97
push 1
push 1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0x11c
mov esi, eax
lea eax, [ebp - 0x288]
push 0
push eax
mov edi, edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push esi
push 1
lea ecx, [ebp - 0x288]
push ecx
mov dword [ebp - 0x288], 0x11c
mov dword [ebp - 0x280], ebx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x10016d97
mov dword [ebp - 0x160], ebx
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10016db7
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edx, [ebp - 0x2b0]
push edx
call eax
mov edi, 0xa
cmp dword [ebp - 0x164], edi
jne 0x10016e1a
cmp byte [ebp - 0xce], 1
je 0x10016e03
push str.Windows_10_Server
lea esi, [edi + 7]
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016b80
cmp dword [ebp - 0x164], edi
jne 0x10016e1a
cmp byte [ebp - 0xce], 1
jne 0x1001701a
push str.Windows_10
mov esi, edi
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016b80
cmp dword [ebp - 0x164], 6
jne 0x10016fe8
cmp dword [ebp - 0x160], ebx
jne 0x10016e9b
cmp byte [ebp - 0xce], 1
je 0x10016e74
push str.Windows_Server_2012_R2
mov esi, 0x16
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016b80
cmp dword [ebp - 0x164], 6
jne 0x10016fe8
cmp dword [ebp - 0x160], ebx
jne 0x10016e9b
cmp byte [ebp - 0xce], 1
jne 0x1001701a
push str.Windows_8.1
mov esi, 0xb
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016b80
cmp dword [ebp - 0x164], 6
jne 0x10016fe8
cmp dword [ebp - 0x160], 2
jne 0x10016f11
cmp byte [ebp - 0xce], 1
je 0x10016eea
push str.Windows_Server_2012
mov esi, 0x13
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016b80
cmp dword [ebp - 0x164], 6
jne 0x10016fe8
cmp dword [ebp - 0x160], 2
jne 0x10016f11
cmp byte [ebp - 0xce], 1
jne 0x1001701a
push str.Windows_8
mov esi, 9
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016b80
cmp dword [ebp - 0x164], 6
jne 0x10016fe8
cmp dword [ebp - 0x160], 1
jne 0x10016f83
cmp byte [ebp - 0xce], 1
je 0x10016f60
push str.Windows_Server_2008_R2
mov esi, 0x16
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016a80
cmp dword [ebp - 0x164], 6
jne 0x10016fe8
cmp dword [ebp - 0x160], 1
jne 0x10016f83
cmp byte [ebp - 0xce], 1
jne 0x1001701a
push str.Windows_7
mov esi, 9
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016a80
cmp dword [ebp - 0x164], 6
jne 0x10016fe8
cmp dword [ebp - 0x160], 0
jne 0x1001701a
cmp byte [ebp - 0xce], 1
je 0x10016fce
push str.Windows_Server_2008
mov esi, 0x13
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016a80
cmp dword [ebp - 0x164], 6
jne 0x10016fe8
cmp dword [ebp - 0x160], 0
jne 0x1001701a
cmp byte [ebp - 0xce], 1
jne 0x1001701a
push str.Windows_Vista
mov esi, 0xd
lea eax, [ebp - 0xac]
call fcn.10019420
call fcn.10016a80
cmp dword [ebp - 0x164], 5
jae 0x1001701a
push str.unknown
mov esi, 7
lea eax, [ebp - 0xac]
call fcn.10019420
push 0
mov edi, 0x1002451c
mov ecx, str.Unknown
call fcn.1001f800
add esp, 4
cmp word [ebp - 0xd4], 0
mov ebx, 0x10
je 0x100170ee
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], 0
mov byte [ebp - 0xc8], 0
push 0x7f
lea eax, [ebp - 0x8f]
push 0
mov byte [ebp - 4], 1
push eax
mov byte [ebp - 0x90], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push str._Service_Pack
lea esi, [ebx - 2]
lea eax, [ebp - 0xc8]
call fcn.10019420
movzx ecx, word [ebp - 0xd4]
push ecx
push 0x10028874
lea edx, [ebp - 0x90]
push 0x80
push edx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
lea eax, [ebp - 0x90]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100170a4
sub eax, edx
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xc8]
call fcn.10018dc0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xc8]
push ecx
lea edi, [ebp - 0xac]
call fcn.10019370
cmp dword [ebp - 0xb4], ebx
jb 0x100170ee
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x98], ebx
jb 0x10017106
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001fd05
mov esp, ebp
pop ebp
ret