Function at 0x40a770
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55021d
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x5c0078]
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
mov ebx, ecx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x28c], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x290], ebx
mov dword [ebx + 0x10], 0
jb 0x40a7dc
mov eax, dword [ebx]
jmp 0x40a7de
mov eax, ebx
mov byte [eax], 0
push 0x9c
lea eax, [ebp - 0x144]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x28c], 1
call fcn.00527720
add esp, 0xc
mov dword [ebp - 0x144], 0x9c
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], 0
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x40a85f
mov eax, dword [ebp - 0x288]
push eax
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], edi
jmp 0x40a8d4
cmp dword [ebp - 0x140], 6
jne 0x40a8d4
cmp dword [ebp - 0x13c], 2
jne 0x40a8d4
push 1
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0x11c
mov edi, eax
mov esi, edx
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.00527720
add esp, 0xc
mov dword [ebp - 0x284], 0x11c
lea eax, [ebp - 0x284]
mov dword [ebp - 0x27c], 3
push esi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [ebp - 0x13c]
test eax, eax
mov edx, 3
cmovne ecx, edx
mov dword [ebp - 0x13c], ecx
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
lea ecx, [ebp - 0x168]
push ecx
cmove eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
mov eax, dword [ebp - 0x140]
cmp eax, 0xa
jne 0x40a94b
cmp byte [ebp - 0xaa], 1
je 0x40a937
push 0x13
push str.Windows_Server_2016
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 0xa
jne 0x40a94b
cmp byte [ebp - 0xaa], 1
jne 0x40ab95
push 0xa
push str.Windows_10
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40aade
mov eax, dword [ebp - 0x13c]
cmp eax, 3
jne 0x40a9c0
cmp byte [ebp - 0xaa], 1
je 0x40a99d
push 0x16
push str.Windows_Server_2012_R2
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40aade
mov eax, dword [ebp - 0x13c]
cmp eax, 3
jne 0x40a9c0
cmp byte [ebp - 0xaa], 1
jne 0x40ab95
push 0xb
push str.Windows_8.1
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40aade
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x40aa26
cmp byte [ebp - 0xaa], 1
je 0x40aa03
push 0x13
push str.Windows_Server_2012
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40aade
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x40aa26
cmp byte [ebp - 0xaa], 1
jne 0x40ab95
push 9
push str.Windows_8
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40aade
mov eax, dword [ebp - 0x13c]
cmp eax, 1
jne 0x40aa86
cmp byte [ebp - 0xaa], al
je 0x40aa67
push 0x16
push str.Windows_Server_2008_R2
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40aade
mov eax, dword [ebp - 0x13c]
cmp eax, 1
jne 0x40aa86
cmp byte [ebp - 0xaa], al
jne 0x40ab95
push 9
push str.Windows_7
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40aade
mov eax, dword [ebp - 0x13c]
test eax, eax
jne 0x40ab95
cmp byte [ebp - 0xaa], 1
je 0x40aaca
push 0x13
push str.Windows_Server_2008
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40aade
cmp dword [ebp - 0x13c], 0
jne 0x40ab95
cmp byte [ebp - 0xaa], 1
jne 0x40ab95
push 0xd
push str.Windows_Vista
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 5
jne 0x40ab85
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x40ab46
cmp byte [ebp - 0xaa], 1
jne 0x40ab27
cmp word [ebp - 0x168], 9
jne 0x40ab27
push str.Windows_XP_x64
mov ecx, ebx
call fcn.00413f00
mov eax, dword [ebp - 0x140]
cmp eax, 5
jne 0x40ab85
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x40ab46
push 0x13
push str.Windows_Server_2003
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 5
jne 0x40ab85
mov eax, dword [ebp - 0x13c]
cmp eax, 1
jne 0x40ab6a
push 0xa
push str.Windows_XP
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 5
jne 0x40ab85
mov eax, dword [ebp - 0x13c]
test eax, eax
jne 0x40ab95
push 0xc
push str.Windows_2000
mov ecx, ebx
call fcn.00404850
mov eax, dword [ebp - 0x140]
cmp eax, 5
jae 0x40ab95
push 7
push str.unknown
mov ecx, ebx
call fcn.00404850
cmp word [ebp - 0xb0], 0
je 0x40ac70
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
push 0x80
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00527720
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 0xe
push str._Service_Pack
call fcn.00404850
movzx eax, word [ebp - 0xb0]
push eax
push 0x5b2ab4
lea eax, [ebp - 0x90]
push 0x80
push eax
call fcn.004017f0
add esp, 0x10
cmp byte [ebp - 0x90], 0
jne 0x40ac1b
xor ecx, ecx
jmp 0x40ac2d
lea ecx, [ebp - 0x90]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ac24
sub ecx, edx
push ecx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00404a80
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa8]
mov ecx, ebx
push eax
call fcn.00404bb0
mov ecx, dword [ebp - 0x94]
cmp ecx, 0x10
jb 0x40ac70
inc ecx
push ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
call fcn.00404f30
mov eax, ebx
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.004351b3
mov esp, ebp
pop ebp
ret