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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
cmp dword [0x43b420], 0
push ebx
push edi
mov edi, 0x43b40c
jne 0x40f9f5
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00412420
add esp, 0xc
push 0x431498
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xa0]
push eax
call ebx
test eax, eax
jne 0x40f826
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call ebx
cmp dword [ebp - 0x90], 2
jne 0x40f8cc
cmp dword [ebp - 0x9c], 4
jne 0x40f846
push str.winnt
jmp 0x40f903
cmp dword [ebp - 0x9c], 6
jne 0x40f893
cmp dword [ebp - 0x98], 0
jne 0x40f872
cmp byte [ebp - 6], 1
jne 0x40f868
push str.winvista
jmp 0x40f903
push str.winlong
jmp 0x40f903
cmp dword [ebp - 0x98], 1
jne 0x40f90f
cmp byte [ebp - 6], 1
jne 0x40f88c
push str.win7
jmp 0x40f903
push str.win2008R2
jmp 0x40f903
cmp dword [ebp - 0x9c], 5
jne 0x40f906
cmp dword [ebp - 0x98], 0
jne 0x40f8ac
push str.win2000
jmp 0x40f903
cmp dword [ebp - 0x98], 1
jne 0x40f8bc
push str.winxp
jmp 0x40f903
cmp dword [ebp - 0x98], 2
jne 0x40f90f
push str.win2003
jmp 0x40f903
cmp dword [ebp - 0x90], 1
jne 0x40f906
cmp dword [ebp - 0x9c], 4
jne 0x40f8fe
cmp dword [ebp - 0x98], 0xa
jne 0x40f8ee
push str.win98
jmp 0x40f903
cmp dword [ebp - 0x98], 0x5a
jne 0x40f8fe
push str.winme
jmp 0x40f903
push str.win95
push edi
call esi
cmp dword [ebp - 0x9c], 0
jbe 0x40f943
cmp dword [ebp - 0x98], 0
jbe 0x40f943
push str.win32
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40f943
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push str._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
movzx eax, word [ebp - 0xc]
mov dword [0x43b408], eax
push str.Unknown
xor eax, eax
mov ebx, 0x43b3f4
push ebx
mov word [ebp - 0xc4], ax
call esi
push 0x431518
call fcn.0040113f
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40f98f
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f98f
lea ecx, [ebp - 0xc4]
push ecx
call eax
jmp 0x40f99c
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 4], 0
je 0x40f9ab
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0xc4]
test eax, eax
je 0x40f9e0
cmp eax, 6
je 0x40f9d9
cmp eax, 9
je 0x40f9d2
push eax
push 0x431554
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40f9e8
push str.amd64
jmp 0x40f9e5
push str.ia64
jmp 0x40f9e5
push 0x43154c
push ebx
call esi
mov dword [0x43b420], 1
pop esi
jmp 0x40f9fa
mov ebx, 0x43b3f4
mov eax, dword [0x43b408]
test eax, eax
je 0x40fa18
push eax
push edi
push str._s_sp_d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40fa2a
push edi
push 0x431560
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x40fa42
push ebx
push 0x431564
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret