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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xc4
cmp dword [0x426dfc], 0
push ebx
push esi
push edi
mov edi, 0x426de8
jne 0x40b135
mov esi, 0x9c
push esi
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00412120
add esp, 0xc
push str.win32
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 0x40afb5
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x94
call ebx
cmp dword [ebp - 0x28], 2
jne 0x40b032
cmp dword [ebp - 0x34], 4
jne 0x40afcb
push str.winnt
jmp 0x40b05d
cmp dword [ebp - 0x34], 6
jne 0x40b005
cmp dword [ebp - 0x30], 0
jne 0x40afeb
cmp byte [ebp + 0x62], 1
jne 0x40afe4
push str.winvista
jmp 0x40b05d
push str.winlong
jmp 0x40b05d
cmp dword [ebp - 0x30], 1
jne 0x40b066
cmp byte [ebp + 0x62], 1
jne 0x40affe
push str.win7
jmp 0x40b05d
push str.win2008R2
jmp 0x40b05d
cmp dword [ebp - 0x34], 5
jne 0x40b060
cmp dword [ebp - 0x30], 0
jne 0x40b018
push str.win2000
jmp 0x40b05d
cmp dword [ebp - 0x30], 1
jne 0x40b025
push str.winxp
jmp 0x40b05d
cmp dword [ebp - 0x30], 2
jne 0x40b066
push str.win2003
jmp 0x40b05d
cmp dword [ebp - 0x28], 1
jne 0x40b060
cmp dword [ebp - 0x34], 4
jne 0x40b058
cmp dword [ebp - 0x30], 0xa
jne 0x40b04b
push str.win98
jmp 0x40b05d
cmp dword [ebp - 0x30], 0x5a
jne 0x40b058
push str.winme
jmp 0x40b05d
push str.win95
push edi
call esi
cmp dword [ebp - 0x34], 0
jbe 0x40b091
cmp dword [ebp - 0x30], 0
jbe 0x40b091
push str.win32
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40b091
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]
and word [ebp - 0x5c], 0
push str.Unknown
mov ebx, 0x426dd4
push ebx
mov dword [0x426dd0], eax
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 0x64], eax
je 0x40b0d6
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b0d6
lea ecx, [ebp - 0x5c]
push ecx
call eax
jmp 0x40b0e0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp + 0x64], 0
je 0x40b0ef
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0x5c]
test eax, eax
je 0x40b121
cmp eax, 6
je 0x40b11a
cmp eax, 9
je 0x40b113
push eax
push 0x41fe84
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40b129
push str.amd64
jmp 0x40b126
push str.ia64
jmp 0x40b126
push str.i586
push ebx
call esi
mov dword [0x426dfc], 1
jmp 0x40b13a
mov ebx, 0x426dd4
mov eax, dword [0x426dd0]
test eax, eax
mov esi, 0x41e88c
jbe 0x40b15d
push eax
push edi
push str._s_sp_d
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40b16b
push edi
push esi
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x78], 0
je 0x40b17f
push ebx
push esi
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
add ebp, 0x68
leave
ret