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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bb28
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x11c
lea eax, [ebp - 0x148]
push esi
push eax
mov dword [ebp - 0x14c], esi
mov dword [edi + 0x344], esi
mov dword [edi + 0x34c], esi
mov dword [edi + 0x358], esi
call fcn.00454850
add esp, 0xc
lea ecx, [ebp - 0x148]
push ecx
mov dword [ebp - 0x148], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x144]
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
mov dword [edi + 0x32c], eax
mov eax, dword [ebp - 0x138]
mov dword [edi + 0x338], eax
lea eax, [ebp - 0x134]
mov dword [edi + 0x334], edx
mov dword [edi + 0x330], ecx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401120
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [edi + 0x310]
call fcn.00401740
mov ax, word [ebp - 0x32]
mov dx, word [ebp - 0x34]
mov cx, word [ebp - 0x30]
mov word [edi + 0x33e], ax
mov al, byte [ebp - 0x2d]
mov byte [edi + 0x343], al
movzx eax, word [ebp - 0x174]
mov word [edi + 0x33c], dx
mov dl, byte [ebp - 0x2e]
mov word [edi + 0x340], cx
mov byte [edi + 0x342], dl
cmp eax, 9
jg 0x4011e8
je 0x4011ca
cmp eax, esi
je 0x4011b0
cmp eax, 6
jne 0x40120b
lea ecx, [edi + 0x2bc]
push ecx
mov edx, str.Itanium
call fcn.00401530
mov eax, 1
mov dword [edi + 0x34c], eax
mov dword [ebp - 0x14c], eax
jmp 0x40120b
push 3
push 0x472b9c
lea ecx, [edi + 0x2bc]
call fcn.00401740
mov dword [edi + 0x34c], esi
jmp 0x40120b
push 3
push 0x472b84
lea ecx, [edi + 0x2bc]
call fcn.00401740
mov dword [edi + 0x34c], 1
jmp 0x40120b
cmp eax, 0xffff
jne 0x40120b
push 7
push str.Unknown
lea ecx, [edi + 0x2bc]
call fcn.00401740
mov dword [ebp - 0x14c], 1
mov ecx, str.ProductName
mov ebx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov edx, 0x80000002
lea esi, [ebp - 0x2c]
call fcn.00419920
lea ecx, [edi + 0x1c]
push eax
mov dword [ebp - 4], 0
call fcn.00401560
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x40124b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0044e60d
add esp, 4
lea eax, [ebp - 0x150]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlSafeBootOption
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x150]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
test esi, esi
jne 0x401287
mov dword [edi + 0x358], ebx
mov eax, dword [ebp - 0x144]
cmp eax, 5
jne 0x401394
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x4012cf
push 0xc
push str.Windows_2000
mov ecx, edi
call fcn.00401740
push 0x3b
push str.Your_version_of_Windows_is_not_supported_by_this_program._r_n
lea ecx, [edi + 0x2d8]
mov dword [edi + 0x344], 0
call fcn.00401740
jmp 0x401470
cmp eax, ebx
jne 0x4012ec
push 0xa
push str.Windows_XP
mov ecx, edi
call fcn.00401740
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 2
jne 0x401458
cmp byte [ebp - 0x2e], bl
jne 0x40131a
cmp word [ebp - 0x174], 9
jne 0x40131a
push edi
mov edx, str.Windows_XP_Professional_x64
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x40133e
push edi
mov edx, str.Windows_Server_2003
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
test dword [ebp - 0x30], 0x8000
je 0x401372
push edi
mov edx, str.Windows_Home_Server
call fcn.00401530
lea edx, [edi + 0x2d8]
push edx
mov edx, str.Your_version_of_Windows_is_not_supported_by_this_program._r_n
mov dword [edi + 0x344], 0
call fcn.00401530
jmp 0x401470
push 0x59
call esi
test eax, eax
je 0x401470
push edi
mov edx, str.Windows_Server_2003_R2
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 6
jne 0x4014c3
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x4013d7
push edi
cmp byte [ebp - 0x2e], bl
jne 0x4013c2
mov edx, str.Windows_Vista
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov edx, str.Windows_Server_2008
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, ebx
jne 0x401405
push edi
cmp byte [ebp - 0x2e], bl
jne 0x4013f3
mov edx, str.Windows_7
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov edx, str.Windows_Server_2008_R2
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 2
jne 0x401453
cmp byte [ebp - 0x2e], bl
jne 0x4014b0
cmp dword [edi + 0x30], 8
lea eax, [edi + 0x1c]
jb 0x40141e
mov eax, dword [eax]
push str.Windows_8.1
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push edi
test eax, eax
je 0x401441
mov edx, str.Windows_8.1
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov edx, str.Windows_8
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 3
je 0x40140a
push 0xf
push str.Unknown_Version
mov ecx, edi
call fcn.00401740
mov dword [edi + 0x344], 0
cmp dword [edi + 0x2c], 0
jne 0x401483
push 0xffffffffffffffff
push 0
push edi
lea ecx, [edi + 0x1c]
call fcn.004015e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x348], eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
push edi
mov edx, str.Windows_Server_8
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 0xa
jne 0x401458
cmp dword [ebp - 0x140], 0
jne 0x401458
push edi
cmp byte [ebp - 0x2e], bl
jne 0x4014e9
mov edx, str.Windows_10
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov edx, str.Windows_Server_2016
call fcn.00401530
jmp 0x401466