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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a7eb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20c
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xd4], esi
push pe_nt_image_headers32
mov dword [ebp - 0xd4], esi
lea eax, [ebp - 0x214]
xorps xmm0, xmm0
mov dword [ebp - 0xd8], 0
push 0
push eax
movups xmmword [ebp - 0xf8], xmm0
movups xmmword [ebp - 0xe8], xmm0
call fcn.00525340
add esp, 0xc
mov dword [ebp - 0x218], 0x11c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4a8166
push 0xc
push str.Undetermined
jmp 0x4a86be
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a818c
lea ecx, [ebp - 0xf8]
push ecx
call eax
jmp 0x4a8199
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x208], 2
jne 0x4a86b7
cmp dword [ebp - 0x214], 4
jbe 0x4a86b7
push str.Microsoft
lea ecx, [ebp - 0xd0]
call fcn.00403900
mov dword [ebp - 4], 0
cmp dword [ebp - 0x214], 0xa
jne 0x4a81e5
push 0xb
push str.Windows_10
lea ecx, [ebp - 0xd0]
call fcn.004158f0
cmp dword [ebp - 0x214], 6
jne case.0x4a82db.5
cmp dword [ebp - 0x210], 0
jne 0x4a821f
cmp byte [ebp - 0xfe], 1
lea ecx, [ebp - 0xd0]
jne 0x4a8213
push 0xe
push str.Windows_Vista
jmp 0x4a821a
push 0x14
push str.Windows_Server_2008
call fcn.004158f0
cmp dword [ebp - 0x210], 1
jne 0x4a824c
cmp byte [ebp - 0xfe], 1
lea ecx, [ebp - 0xd0]
jne 0x4a8240
push 0xa
push str.Windows_7
jmp 0x4a8247
push 0x17
push str.Windows_Server_2008_R2
call fcn.004158f0
cmp dword [ebp - 0x210], 2
jne 0x4a8279
cmp byte [ebp - 0xfe], 1
lea ecx, [ebp - 0xd0]
jne 0x4a826d
push 0xa
push str.Windows_8
jmp 0x4a8274
push 0x16
push str.Windows_Server_2008_R3
call fcn.004158f0
cmp dword [ebp - 0x210], 3
jne 0x4a8294
push 0xc
push str.Windows_8.1
lea ecx, [ebp - 0xd0]
call fcn.004158f0
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xd4]
push ecx
push 0
push 0
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call eax
mov eax, dword [ebp - 0xd4]
dec eax
cmp eax, 0x2f
ja case.0x4a82db.5
movzx eax, byte [eax + 0x4a8740]
jmp dword [eax*4 + 0x4a86f8]
push 0x10
push str.Ultimate_Edition
jmp 0x4a837f
push 0xc
push str.Professional
jmp 0x4a837f
push 0x14
push str.Home_Premium_Edition
jmp 0x4a837f
push 0x12
push str.Home_Basic_Edition
jmp 0x4a837f
push 0x12
push str.Enterprise_Edition
jmp 0x4a837f
push 0x10
push str.Business_Edition
jmp 0x4a837f
push 0xf
push str.Starter_Edition
jmp 0x4a837f
push 0x16
push str.Cluster_Server_Edition
jmp 0x4a837f
push 0x12
push str.Datacenter_Edition
jmp 0x4a837f
push 0x26
push str.Datacenter_Edition__core_installation_
jmp 0x4a837f
push 0x26
push str.Enterprise_Edition__core_installation_
jmp 0x4a837f
push 0x2c
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x4a837f
push 0x15
push str.Small_Business_Server
jmp 0x4a837f
push 0x25
push str.Small_Business_Server_Premium_Edition
jmp 0x4a837f
push 0x10
push str.Standard_Edition
jmp 0x4a837f
push 0x24
push str.Standard_Edition__core_installation_
jmp 0x4a837f
push 0x12
push str.Web_Server_Edition
lea ecx, [ebp - 0xd0]
call fcn.004158f0
cmp dword [ebp - 0x214], 5
jne 0x4a8589
mov eax, dword [ebp - 0x210]
cmp eax, 2
jne 0x4a84e4
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4a83bb
push 0x18
push str.Windows_Server_2003_R2_
jmp 0x4a8404
mov eax, dword [ebp - 0x100]
test eax, 0x2000
je 0x4a83d1
push 0x1b
push str.Windows_Storage_Server_2003
jmp 0x4a8404
test eax, 0x8000
je 0x4a83e1
push 0x13
push str.Windows_Home_Server
jmp 0x4a8404
cmp byte [ebp - 0xfe], 1
jne 0x4a83fd
cmp word [ebp - 0xf8], 9
jne 0x4a83fd
push 0x23
push str.Windows_XP_Professional_x64_Edition
jmp 0x4a8404
push 0x15
push str.Windows_Server_2003_
lea ecx, [ebp - 0xd0]
call fcn.004158f0
cmp byte [ebp - 0xfe], 1
je 0x4a84d1
mov ax, word [ebp - 0xf8]
cmp ax, 6
jne 0x4a8450
mov eax, dword [ebp - 0x100]
test al, al
jns 0x4a843f
push 0x2c
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x4a84c6
test al, 2
je 0x4a84d1
push 0x2c
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x4a84c6
cmp ax, 9
mov eax, dword [ebp - 0x100]
jne 0x4a8485
test al, al
jns 0x4a8469
push 0x16
push str.Datacenter_x64_Edition
jmp 0x4a84c6
lea ecx, [ebp - 0xd0]
test al, 2
je 0x4a847c
push 0x16
push str.Enterprise_x64_Edition
jmp 0x4a84cc
push 0x14
push str.Standard_x64_Edition
jmp 0x4a84cc
test eax, 0x4000
je 0x4a8495
push 0x17
push str.Compute_Cluster_Edition
jmp 0x4a84c6
test al, al
jns 0x4a84a2
push 0x12
push str.Datacenter_Edition
jmp 0x4a84c6
test al, 2
je 0x4a84af
push 0x12
push str.Enterprise_Edition
jmp 0x4a84c6
test eax, 0x400
je 0x4a84bf
push 0xb
push str.Web_Edition
jmp 0x4a84c6
push 0x10
push str.Standard_Edition
lea ecx, [ebp - 0xd0]
call fcn.004158f0
cmp dword [ebp - 0x214], 5
jne 0x4a8589
mov eax, dword [ebp - 0x210]
cmp eax, 1
jne 0x4a852f
push 0xb
push str.Windows_XP
lea ecx, [ebp - 0xd0]
call fcn.004158f0
test dword [ebp - 0x100], 0x200
lea ecx, [ebp - 0xd0]
push 0xc
je 0x4a8516
push str.Home_Edition
jmp 0x4a851b
push str.Professional
call fcn.004158f0
cmp dword [ebp - 0x214], 5
jne 0x4a8589
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4a8589
push 0xd
push str.Windows_2000
lea ecx, [ebp - 0xd0]
call fcn.004158f0
cmp byte [ebp - 0xfe], 1
jne 0x4a8557
push 0xc
push str.Professional
jmp 0x4a857e
mov eax, dword [ebp - 0x100]
test al, al
jns 0x4a856a
push 0x11
push str.Datacenter_Server
jmp 0x4a857e
test al, 2
je 0x4a8577
push 0xf
push str.Advanced_Server
jmp 0x4a857e
push 6
push str.Server
lea ecx, [ebp - 0xd0]
call fcn.004158f0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4a85d7
push 1
push 0x594a28
lea ecx, [ebp - 0xd0]
call fcn.004158f0
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a85b5
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xd0]
call fcn.004158f0
push 0xa0
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.00525340
push dword [ebp - 0x20c]
lea eax, [ebp - 0xb8]
push str.__build__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xb8]
add esp, 0x18
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a8610
sub ecx, edx
lea eax, [ebp - 0xb8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xd0]
call fcn.004158f0
cmp dword [ebp - 0x214], 6
jb 0x4a8668
mov ax, word [ebp - 0xf8]
cmp ax, 9
jne 0x4a8651
push 8
push str.__64_bit
jmp 0x4a865d
test ax, ax
jne 0x4a8668
push 8
push str.__32_bit
lea ecx, [ebp - 0xd0]
call fcn.004158f0
movups xmm0, xmmword [ebp - 0xd0]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0xd0]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0xd0], ax
movq xmm0, qword [ebp - 0xc0]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
call fcn.00403d90
jmp 0x4a86d8
push 7
push str.Unknown
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov word [esi], ax
call fcn.00403df0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret