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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xc4
cmp dword [0x43a318], 0
push ebx
push edi
mov edi, 0x43a304
jne 0x40f0ac
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00411920
add esp, 0xc
push 0x430a08
mov dword [ebp - 0x38], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x38]
push eax
call ebx
test eax, eax
jne 0x40ef2a
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x94
call ebx
cmp dword [ebp - 0x28], 2
jne 0x40efa7
cmp dword [ebp - 0x34], 4
jne 0x40ef40
push str.winnt
jmp 0x40efd2
cmp dword [ebp - 0x34], 6
jne 0x40ef7a
cmp dword [ebp - 0x30], 0
jne 0x40ef60
cmp byte [ebp + 0x62], 1
jne 0x40ef59
push str.winvista
jmp 0x40efd2
push str.winlong
jmp 0x40efd2
cmp dword [ebp - 0x30], 1
jne 0x40efdb
cmp byte [ebp + 0x62], 1
jne 0x40ef73
push str.win7
jmp 0x40efd2
push str.win2008R2
jmp 0x40efd2
cmp dword [ebp - 0x34], 5
jne 0x40efd5
cmp dword [ebp - 0x30], 0
jne 0x40ef8d
push str.win2000
jmp 0x40efd2
cmp dword [ebp - 0x30], 1
jne 0x40ef9a
push str.winxp
jmp 0x40efd2
cmp dword [ebp - 0x30], 2
jne 0x40efdb
push str.win2003
jmp 0x40efd2
cmp dword [ebp - 0x28], 1
jne 0x40efd5
cmp dword [ebp - 0x34], 4
jne 0x40efcd
cmp dword [ebp - 0x30], 0xa
jne 0x40efc0
push str.win98
jmp 0x40efd2
cmp dword [ebp - 0x30], 0x5a
jne 0x40efcd
push str.winme
jmp 0x40efd2
push str.win95
push edi
call esi
cmp dword [ebp - 0x34], 0
jbe 0x40f006
cmp dword [ebp - 0x30], 0
jbe 0x40f006
push str.win32
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40f006
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push str._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
movzx eax, word [ebp + 0x5c]
mov dword [0x43a300], eax
push str.Unknown
xor eax, eax
mov ebx, 0x43a2ec
push ebx
mov word [ebp - 0x5c], ax
call esi
push 0x430a88
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 0x64], eax
test eax, eax
je 0x40f04c
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f04c
lea ecx, [ebp - 0x5c]
push ecx
call eax
jmp 0x40f056
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp + 0x64], 0
je 0x40f065
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0x5c]
test eax, eax
je 0x40f097
cmp eax, 6
je 0x40f090
cmp eax, 9
je 0x40f089
push eax
push 0x430ac4
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40f09f
push str.amd64
jmp 0x40f09c
push str.ia64
jmp 0x40f09c
push 0x430abc
push ebx
call esi
mov dword [0x43a318], 1
pop esi
jmp 0x40f0b1
mov ebx, 0x43a2ec
mov eax, dword [0x43a300]
test eax, eax
jbe 0x40f0cf
push eax
push edi
push str._s_sp_d
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40f0e1
push edi
push 0x430ad0
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x78], 0
je 0x40f0f9
push ebx
push 0x430ad4
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
pop edi
inc eax
pop ebx
add ebp, 0x68
leave
ret