Function at 0x490670
Capabilities:
Check os version
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 8]
lea esi, [edi + 8]
mov ecx, esi
call dword [eax + 0x30]
cmp eax, 0x21c
jb 0x490874
mov edx, dword [esi]
lea ebx, [edi + 0x40]
push 0xc
push ebx
mov ecx, esi
mov dword [ebp - 4], 0
call dword [edx + 0x34]
cmp dword [ebx], 0x44524745
jne 0x490874
mov eax, dword [edi + 0x44]
dec eax
cmp eax, 5
ja case.default.0x4906d2
jmp dword [eax*4 + 0x490888]
mov eax, dword [esi]
lea ecx, [edi + 0x4c]
push 0x7c
push ecx
mov ecx, esi
call dword [eax + 0x34]
jmp case.default.0x4906d2
mov edx, dword [esi]
push 0x80
jmp 0x49070a
mov edx, dword [esi]
push 0x84
jmp 0x49070a
mov edx, dword [esi]
push 0x88
jmp 0x49070a
mov edx, dword [esi]
push 0x1d0
lea eax, [edi + 0x4c]
mov ecx, esi
push eax
call dword [edx + 0x34]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [edi + 0x4c]
sub ebx, eax
shl ecx, 2
cmp ecx, ebx
ja 0x490874
xor ebx, ebx
mov eax, dword [edi + 0x4c]
mov edx, dword [esi]
cmp ebx, eax
jge 0x49074c
lea eax, [ebp - 0x18]
push 4
push eax
mov ecx, esi
call dword [edx + 0x34]
inc ebx
jmp 0x490735
mov ecx, esi
call dword [edx + 0x30]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [edi + 0x50]
sub ebx, eax
shl ecx, 2
cmp ecx, ebx
ja 0x490874
xor ebx, ebx
mov eax, dword [edi + 0x50]
mov edx, dword [esi]
cmp ebx, eax
jge 0x490783
lea eax, [ebp - 0x1c]
push 4
push eax
mov ecx, esi
call dword [edx + 0x34]
inc ebx
jmp 0x49076c
mov ecx, esi
call dword [edx + 0x30]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
sub ebx, eax
mov eax, dword [edi + 0xa0]
lea ecx, [eax + eax*4]
shl ecx, 3
cmp ecx, ebx
ja 0x490874
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 0xa0]
cmp edx, eax
jge 0x490819
mov eax, dword [esi]
lea ecx, [edi + 0x21c]
push 0x28
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [edi + 0x240]
test eax, eax
jle 0x490814
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
sub ebx, eax
mov eax, dword [edi + 0x240]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 2
cmp ecx, ebx
ja 0x490874
xor ebx, ebx
cmp ebx, dword [edi + 0x240]
jge 0x490814
mov edx, dword [esi]
lea eax, [ebp - 0x80]
push 0x64
push eax
mov ecx, esi
call dword [edx + 0x34]
inc ebx
jmp 0x4907fc
inc dword [ebp - 0x14]
jmp 0x4907ae
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
sub ebx, eax
mov eax, dword [edi + 0xa4]
lea ecx, [eax + eax*2]
shl ecx, 3
cmp ecx, ebx
ja 0x490874
xor ebx, ebx
cmp ebx, dword [edi + 0xa4]
jge 0x490858
mov edx, dword [esi]
lea eax, [edi + 0x244]
push 0x18
push eax
mov ecx, esi
call dword [edx + 0x34]
inc ebx
jmp 0x49083d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret