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

Disassembly:
push 0x48
mov eax, 0x44d8c5
call fcn.00437226
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
test byte [0x4b30e4], 1
jne 0x40b788
or dword [0x4b30e4], 1
mov edi, 0x4b30e0
push 0x492328
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004015ab
push 0x476b01
call fcn.00432e83
pop ecx
mov byte [ebp - 4], 0
jmp 0x40b78d
mov edi, 0x4b30e0
push 0x492328
mov ecx, edi
call fcn.00406bfc
test eax, eax
je 0x40b7ab
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0040177a
jmp 0x40babf
xor eax, eax
mov dword [ebp - 0x30], vtable.CRegistry.0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
call fcn.0041c6fd
push eax
lea ecx, [ebp - 0x14]
call fcn.00401755
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x18], esp
mov esi, str.SoftwareMicrosoftWindowsCurrentVersion
push esi
call fcn.004015ab
lea eax, [ebp - 0x30]
push eax
call fcn.0040eab4
test al, al
je 0x40b860
push ebx
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Version
call fcn.004015ab
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
mov byte [ebp - 4], 4
call fcn.004015ab
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.0040e84b
push 0x4966c4
lea esi, [ebp - 0x14]
call fcn.00406970
cmp eax, 0xffffffff
je 0x40b860
mov ecx, dword [ebp + 0xc]
push str.Windows_98
call fcn.004015ab
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [ebp - 0x30]
call fcn.0040e739
jmp 0x40babf
push 0x24
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00433330
mov esi, 0x11c
push esi
call fcn.00414d61
mov ebx, dword [ebp + 8]
add esp, 0x10
push esi
push 0
push eax
mov dword [ebx], eax
call fcn.00433330
mov eax, dword [ebx]
add esp, 0xc
mov dword [eax], esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40b8af
push dword [ebx]
call fcn.00414d8c
pop ecx
push edi
mov ecx, dword [ebp + 0xc]
call fcn.0040177a
jmp 0x40b848
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b8d6
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b8d6
lea ecx, [ebp - 0x54]
push ecx
call eax
jmp 0x40b8e0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
push 2
pop edx
cmp ecx, edx
jne 0x40ba4c
mov cl, byte [eax + 0x11a]
cmp cl, 1
jne 0x40b999
mov ecx, dword [eax + 4]
cmp ecx, 6
jne 0x40b933
mov eax, dword [eax + 8]
test eax, eax
je 0x40b9b4
cmp eax, 1
jne 0x40b921
push str.Windows_7
jmp 0x40b9b9
cmp eax, edx
jne 0x40ba37
push str.Windows_8
jmp 0x40b9b9
cmp ecx, 5
jne 0x40b98f
mov eax, dword [eax + 8]
cmp eax, edx
jne 0x40b949
push str.Windows_XP_64_bit
jmp 0x40ba71
cmp eax, 1
jne 0x40b97d
push str.Windows_XP
mov ecx, edi
call fcn.0040187f
mov eax, dword [ebx]
test word [eax + 0x118], 0x200
mov ecx, edi
je 0x40b973
push str._Home_Edition
jmp 0x40ba45
push str._Professional_Edition
jmp 0x40ba45
test eax, eax
jne 0x40ba78
push str.Windows_2000
jmp 0x40ba71
push str.Windows_NT_4.0
jmp 0x40ba71
cmp cl, 3
jne 0x40ba78
mov ecx, dword [eax + 4]
cmp ecx, 6
jb 0x40b9c2
cmp dword [eax + 8], 0
jne 0x40ba37
push str.Windows_Vista
mov ecx, edi
call fcn.0040187f
jmp 0x40ba37
cmp ecx, 5
mov ecx, edi
jb 0x40ba21
cmp dword [eax + 8], edx
jne 0x40b9d5
push str.Windows_.Net
jmp 0x40b9da
push str.Windows_2000
call fcn.0040187f
mov ebx, dword [ebx]
movzx eax, word [ebx + 0x118]
test al, al
jns 0x40b9f3
push str._DataCenter_Server
jmp 0x40ba30
test al, 2
mov ecx, edi
je 0x40ba0d
cmp dword [ebx + 4], 4
jne 0x40ba06
push str._Advanced_Server
jmp 0x40ba32
push str._Enterprise_Server
jmp 0x40ba32
cmp ax, 0x400
jne 0x40ba1a
push str._Web_Server
jmp 0x40ba32
push str._Server
jmp 0x40ba32
push str.Windows_NT_4.0
call fcn.0040187f
push str._Server
mov ecx, edi
call fcn.00406ce6
cmp word [ebp - 0x54], 9
jne 0x40ba78
push str._64_bit
mov ecx, edi
call fcn.00406ce6
jmp 0x40ba78
cmp ecx, 1
jne 0x40ba78
mov eax, dword [eax + 8]
cmp eax, 0xa
jae 0x40ba60
push str.Windows_95
jmp 0x40ba71
cmp eax, 0x5a
jae 0x40ba6c
push str.Windows_98
jmp 0x40ba71
push str.Windows_ME
mov ecx, edi
call fcn.0040187f
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00414d8c
pop ecx
mov ebx, edi
call fcn.00401eb3
mov edi, eax
call fcn.00401f00
push eax
jmp 0x40b8a5
mov eax, dword [ebp + 0xc]
call fcn.004372cb
ret 8