Function at 0x490620
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x490668
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je case.default.0x490693
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x49082f
dec eax
je 0x490798
dec eax
jne case.default.0x490693
mov edx, dword [esp + 0x10]
lea eax, [edx - 3]
cmp eax, 3
ja case.default.0x490693
jmp dword [eax*4 + 0x4908ac]
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 4]
push eax
push str.Microsoft_Windows_NT_3._d
push ecx
call fcn.00467d68
add esp, 0xc
jmp 0x49085e
mov edx, dword [esp + 0x14]
lea eax, [ebx + 4]
push edx
push str.Microsoft_Windows_NT_4._d
push eax
call fcn.00467d68
add esp, 0xc
jmp 0x49085e
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x490700
mov edi, str.Microsoft_Windows_2000
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x49085e
cmp eax, 1
jne 0x49072f
mov edi, str.Microsoft_Windows_XP
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x49085e
cmp eax, 2
jne case.default.0x490693
mov edi, str.Microsoft_Windows_Server_2003
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x49085e
mov eax, dword [esp + 0x14]
test eax, eax
jne case.default.0x490693
mov edi, str.Microsoft_Windows_Vista
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x49085e
cmp dword [esp + 0x10], 4
jne case.default.0x490693
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4907d3
mov edi, str.Microsoft_Windows_95
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x49085e
cmp eax, 0xa
jne 0x4907ff
mov edi, str.Microsoft_Windows_98
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x49085e
cmp eax, 0x5a
jne case.default.0x490693
mov edi, str.Microsoft_Windows_Me
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x49085e
mov edi, str.Microsoft_Win32s
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 4]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
lea ecx, [ebx + 0x20c]
and eax, 0xffff
push eax
push 0x4e09ec
push ecx
call fcn.00467d68
add esp, 0xc
lea edx, [esp + 0x20]
lea esi, [ebx + 0x108]
push edx
push 0x4df9a8
push esi
call fcn.00467d68
push esi
call fcn.00494aa0
push esi
call fcn.00494b00
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x9c
ret