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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xc4
cmp dword [0x4296e0], 0
push ebx
push edi
mov ebx, str.winxp
jne 0x40befa
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x27
pop ecx
xor eax, eax
push 0x422664
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x38], 0x9c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x38]
push eax
call edi
test eax, eax
jne 0x40bd58
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x94
call edi
cmp dword [ebp - 0x28], 2
jne 0x40bdd5
cmp dword [ebp - 0x34], 4
jne 0x40bd6e
push str.winnt
jmp 0x40be00
cmp dword [ebp - 0x34], 6
jne 0x40bda8
cmp dword [ebp - 0x30], 0
jne 0x40bd8e
cmp byte [ebp + 0x62], 1
jne 0x40bd87
push str.winvista
jmp 0x40be00
push str.winlong
jmp 0x40be00
cmp dword [ebp - 0x30], 1
jne 0x40be09
cmp byte [ebp + 0x62], 1
jne 0x40bda1
push str.win7
jmp 0x40be00
push str.win2008R2
jmp 0x40be00
cmp dword [ebp - 0x34], 5
jne 0x40be03
cmp dword [ebp - 0x30], 0
jne 0x40bdbb
push str.win2000
jmp 0x40be00
cmp dword [ebp - 0x30], 1
jne 0x40bdc8
push 0x4226a4
jmp 0x40be00
cmp dword [ebp - 0x30], 2
jne 0x40be09
push str.win2003
jmp 0x40be00
cmp dword [ebp - 0x28], 1
jne 0x40be03
cmp dword [ebp - 0x34], 4
jne 0x40bdfb
cmp dword [ebp - 0x30], 0xa
jne 0x40bdee
push str.win98
jmp 0x40be00
cmp dword [ebp - 0x30], 0x5a
jne 0x40bdfb
push str.winme
jmp 0x40be00
push str.win95
push ebx
call esi
cmp dword [ebp - 0x34], 0
jbe 0x40be34
cmp dword [ebp - 0x30], 0
jbe 0x40be34
push str.win32
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40be34
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push str._d._d
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40be3a
sub eax, edx
mov dword [ebp + 0x64], eax
je 0x40be5e
push 0x4296c8
lea eax, [ebp - 0x24]
push str.Service_Pack__d
push eax
call fcn.00413f81
add esp, 0xc
and word [ebp - 0x5c], 0
push str.Unknown
mov edi, 0x4296b4
push edi
call esi
push 0x4226f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 0x64], eax
je 0x40be9a
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40be9a
lea ecx, [ebp - 0x5c]
push ecx
call eax
jmp 0x40bea4
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp + 0x64], 0
je 0x40beb3
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0x5c]
test eax, eax
je 0x40bee5
cmp eax, 6
je 0x40bede
cmp eax, 9
je 0x40bed7
push eax
push 0x422730
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40beed
push str.amd64
jmp 0x40beea
push str.ia64
jmp 0x40beea
push 0x422728
push edi
call esi
mov dword [0x4296e0], 1
pop esi
jmp 0x40beff
mov edi, 0x4296b4
mov eax, dword [0x4296c8]
test eax, eax
jbe 0x40bf1d
push eax
push ebx
push str._s_sp_d
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40bf2f
push ebx
push 0x42273c
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x78], 0
je 0x40bf47
push edi
push 0x422740
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