Function at 0x4d886f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
and byte [ebp - 0x120], 0
push esi
push edi
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
and byte [ebp - 0x220], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0x21f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x1a0], 0
push 0x1f
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x19f]
mov esi, 0x9c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
push esi
lea eax, [ebp - 0xa0]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
cmp eax, edi
jne 0x4d8909
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x94
push eax
call esi
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0x90]
dec eax
je 0x4d8bca
dec eax
jne 0x4d8903
cmp dword [ebp - 0x9c], 5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x4d896c
cmp dword [ebp - 0x98], edi
jne 0x4d893e
lea eax, [ebp - 0x120]
push str.Microsoft_Windows_2000
push eax
call esi
cmp dword [ebp - 0x98], 1
jne 0x4d8955
lea eax, [ebp - 0x120]
push str.Microsoft_Windows_XP
push eax
call esi
cmp dword [ebp - 0x98], 2
jne 0x4d896c
lea eax, [ebp - 0x120]
push str.Microsoft_Windows_Server_2003_family
push eax
call esi
cmp dword [ebp - 0x9c], 4
jae 0x4d8983
lea eax, [ebp - 0x120]
push str.Windows_NT
push eax
call esi
cmp byte [ebp - 6], 1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
jne 0x4d89ba
cmp dword [ebp - 0x9c], 4
jne 0x4d899f
push str._Workstation_4.0
jmp 0x4d89b1
test byte [ebp - 7], 2
je 0x4d89ac
push str._Home_Edition
jmp 0x4d89b1
push str._Professional
lea eax, [ebp - 0x120]
push eax
call esi
cmp byte [ebp - 6], 3
jne 0x4d8a51
cmp dword [ebp - 0x9c], 5
jne 0x4d8a36
cmp dword [ebp - 0x98], 2
jne 0x4d8a0d
test byte [ebp - 8], 0x80
je 0x4d89e3
push str._Datacenter_Edition
jmp 0x4d8a04
test byte [ebp - 8], 2
je 0x4d89f0
push str._Enterprise_Edition
jmp 0x4d8a04
cmp word [ebp - 8], 0x400
jne 0x4d89ff
push str._Web_Edition
jmp 0x4d8a04
push str._Standard_Edition
lea eax, [ebp - 0x120]
push eax
call esi
cmp dword [ebp - 0x98], edi
jne 0x4d8a51
test byte [ebp - 8], 0x80
je 0x4d8a22
push str._Datacenter_Server
jmp 0x4d8a48
test byte [ebp - 8], 2
je 0x4d8a2f
push str._Advance_Server
jmp 0x4d8a48
push str._Server
jmp 0x4d8a48
test byte [ebp - 8], 2
je 0x4d8a43
push str._Server_4.0__Enterprise_Edition
jmp 0x4d8a48
push str._Server_4.0
lea eax, [ebp - 0x120]
push eax
call esi
push dword [ebp - 0x94]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x220]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push str._d._d._d
push eax
call esi
add esp, 0x14
cmp dword [ebp - 0x9c], 4
jne 0x4d8afc
lea eax, [ebp - 0x8c]
push str.Service_Pack_6
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4d8afc
lea eax, [ebp - 4]
push eax
push 1
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.BugReport.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov eax, dword [ebp - 0x94]
jne 0x4d8ad3
and eax, 0xffff
push eax
lea eax, [ebp - 0x1a0]
push str.Service_Pack_6a__Build__d_
push eax
call esi
add esp, 0xc
jmp 0x4d8af1
and eax, 0xffff
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x1a0]
push str._s__Build__d_
push eax
call esi
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4d8b20
mov eax, dword [ebp - 0x94]
and eax, 0xffff
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x1a0]
push str._s__Build__d__n
push eax
call esi
add esp, 0x10
cmp dword [ebp + 8], edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
je 0x4d8b5a
lea eax, [ebp - 0x120]
push eax
call esi
cmp dword [ebp + 0xc], eax
jle 0x4d8b44
lea eax, [ebp - 0x120]
push eax
call esi
jmp 0x4d8b47
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x10], edi
je 0x4d8b8e
lea eax, [ebp - 0x220]
push eax
call esi
cmp dword [ebp + 0x14], eax
jle 0x4d8b78
lea eax, [ebp - 0x220]
push eax
call esi
jmp 0x4d8b7b
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x18], edi
je 0x4d8bc2
lea eax, [ebp - 0x1a0]
push eax
call esi
cmp dword [ebp + 0x1c], eax
jle 0x4d8bac
lea eax, [ebp - 0x1a0]
push eax
call esi
jmp 0x4d8baf
mov eax, dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x1a0]
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 1
pop eax
jmp 0x4d8905
cmp dword [ebp - 0x9c], 4
jne 0x4d8c58
cmp dword [ebp - 0x98], edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x4d8c13
lea eax, [ebp - 0x120]
push str.Microsoft_Windows_95
push eax
call esi
cmp byte [ebp - 0x8b], 0x43
je 0x4d8c05
cmp byte [ebp - 0x8b], 0x42
jne 0x4d8c13
lea eax, [ebp - 0x1a0]
push str.OSR2
push eax
call esi
cmp dword [ebp - 0x98], 0xa
jne 0x4d8c41
lea eax, [ebp - 0x120]
push str.Microsoft_Window_98
push eax
call esi
cmp byte [ebp - 0x8b], 0x41
jne 0x4d8c41
lea eax, [ebp - 0x1a0]
push 0x52f7a8
push eax
call esi
cmp dword [ebp - 0x98], 0x5a
jne 0x4d8c58
lea eax, [ebp - 0x120]
push str.Microsoft_Windows_Millennium_Edition
push eax
call esi
push dword [ebp - 0x94]
lea eax, [ebp - 0x220]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push str._d._d._d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x4d8bc2