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

Disassembly:
sub esp, 0x968
mov eax, dword [0x4130c8]
xor eax, esp
mov dword [esp + 0x964], eax
push ebp
mov ebp, dword [esp + 0x970]
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x772]
mov dword [esp + 0x14], 0
push ecx
mov word [esp + 0x774], ax
call fcn.00404a00
mov ecx, 0xc
mov esi, str.Unknown_operating_system
lea edi, [esp + 0x15c]
rep movsd dword es:[edi], dword [esi]
push 0x1d6
lea edx, [esp + 0x192]
push 0
push edx
movsw word es:[edi], word [esi]
call fcn.00404a00
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x37a]
push ecx
mov word [esp + 0x37c], ax
call fcn.00404a00
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x58e]
push eax
mov word [esp + 0x590], dx
call fcn.00404a00
push 0x11c
lea ecx, [esp + 0x68]
push 0
push ecx
call fcn.00404a00
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
add esp, 0x3c
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0x11c
call esi
test eax, eax
jne 0x401c70
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 0x114
call esi
test eax, eax
je 0x401fb8
push ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401cba
push str.RtlGetNtVersionNumbers
push edi
call ebx
mov esi, eax
test esi, esi
je 0x401caf
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x44]
push eax
call esi
and dword [esp + 0x44], 0xffff
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x401cf0
lea ecx, [esp + 0x10]
push ecx
push 0x64
push 0
mov dword [esp + 0x1c], 0
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x401cf0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401cf0
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 0x10]
push eax
mov dword [esp + 0x44], ecx
call sub.NETAPI32.dll_NetApiBufferFree
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call ebx
test eax, eax
je 0x401d10
lea edx, [esp + 0x14]
push edx
call eax
jmp 0x401d1b
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x3c], 0xa
mov ebx, 1
lea esi, [ebx + 5]
jne 0x401d90
cmp dword [esp + 0x40], 0
jne 0x401eab
cmp byte [esp + 0x152], bl
jne 0x401d52
push str.Microsoft_Windows_10
push 0x104
lea ecx, [esp + 0x15c]
push ecx
jmp 0x401d64
push str.Microsoft_Windows_Server_2016
push 0x104
lea edx, [esp + 0x15c]
push edx
call fcn.004044d0
add esp, 0xc
cmp dword [esp + 0x44], 0x55f0
jb 0x401d90
push 0x40f1d8
lea eax, [esp + 0x158]
push 0x104
push eax
call fcn.004044d0
add esp, 0xc
cmp dword [esp + 0x3c], esi
jne 0x401eab
cmp dword [esp + 0x40], 3
jne 0x401de2
cmp byte [esp + 0x152], bl
jne 0x401dbe
push str.Microsoft_Windows_8.1
push 0x104
lea ecx, [esp + 0x15c]
push ecx
jmp 0x401dd0
push str.Microsoft_Windows_Server_2012_R2
push 0x104
lea edx, [esp + 0x15c]
push edx
call fcn.004044d0
add esp, 0xc
cmp dword [esp + 0x3c], esi
jne 0x401eab
cmp dword [esp + 0x40], 2
jne 0x401e2a
cmp byte [esp + 0x152], bl
jne 0x401e06
push str.Microsoft_Windows_8
push 0x104
lea eax, [esp + 0x15c]
push eax
jmp 0x401e18
push str.Microsoft_Windows_Server_2012
push 0x104
lea ecx, [esp + 0x15c]
push ecx
call fcn.004044d0
add esp, 0xc
cmp dword [esp + 0x3c], esi
jne 0x401eab
cmp dword [esp + 0x40], ebx
jne 0x401e6d
cmp byte [esp + 0x152], bl
jne 0x401e4d
push str.Microsoft_Windows_7
push 0x104
lea edx, [esp + 0x15c]
push edx
jmp 0x401e5f
push str.Microsoft_Windows_Server_2008_R2
push 0x104
lea eax, [esp + 0x15c]
push eax
call fcn.004044d0
add esp, 0xc
cmp dword [esp + 0x3c], esi
jne 0x401eab
cmp dword [esp + 0x40], 0
jne 0x401eab
cmp byte [esp + 0x152], bl
jne 0x401e91
push str.Microsoft_Windows_Vista
push 0x104
lea ecx, [esp + 0x15c]
push ecx
jmp 0x401ea3
push str.Microsoft_Windows_Server_2008
push 0x104
lea edx, [esp + 0x15c]
push edx
call fcn.004044d0
add esp, 0xc
lea eax, [esp + 0x564]
push eax
lea ecx, [esp + 0x360]
push ecx
lea edx, [esp + 0x15c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00401040
add esp, 0x14
cmp dword [esp + 0x3c], 5
jne 0x401f37
cmp dword [esp + 0x40], ebx
jne 0x401f37
push str.Microsoft_Windows_XP
lea edx, [esp + 0x158]
push 0x104
push edx
call fcn.004044d0
add esp, 0xc
test dword [esp + 0x150], 0x200
je 0x401f1d
push str.Home_Edition
push 0x104
lea eax, [esp + 0x364]
push eax
jmp 0x401f2f
push str.Professional
push 0x104
lea ecx, [esp + 0x364]
push ecx
call fcn.004044d0
add esp, 0xc
lea edx, [esp + 0x35c]
push edx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004011c0
lea edx, [esp + 0x368]
push edx
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00401270
mov eax, dword [esp + 0x54]
add esp, 0x18
pop ebx
cmp eax, esi
je 0x401f7c
cmp eax, 0xa
jne 0x401fb8
movzx eax, word [esp + 0x10]
test eax, eax
je 0x401f9e
cmp eax, 9
jne 0x401fb8
push str.64_bit
push 0x104
lea edx, [esp + 0x568]
push edx
jmp 0x401fb0
push str.32_bit
push 0x104
lea eax, [esp + 0x568]
push eax
call fcn.004044d0
add esp, 0xc
movzx ecx, word [esp + 0x14c]
movzx edx, byte [esp + 0x14e]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x578]
push ecx
lea edx, [esp + 0x374]
push edx
lea eax, [esp + 0x170]
push eax
push str._s__s__s__s___d._d._d._d._d_
lea ecx, [esp + 0x790]
push 0x104
push ecx
call fcn.00404a7a
add esp, 0x30
xor edx, edx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
lea eax, [esp + 0x768]
mov word [ebp + 4], dx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402030
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x76c]
push eax
mov ecx, ebp
call fcn.004019c0
mov ecx, dword [esp + 0x970]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004049f1
add esp, 0x968
ret