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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c460
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 0x101207f4
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 0x101207f4
mov eax, dword [edi + 0x44]
dec eax
cmp eax, 5
ja case.default.0x10120652
jmp dword [eax*4 + 0x10120808]
mov eax, dword [esi]
lea ecx, [edi + 0x4c]
push 0x7c
push ecx
mov ecx, esi
call dword [eax + 0x34]
jmp case.default.0x10120652
mov edx, dword [esi]
push 0x80
jmp 0x1012068a
mov edx, dword [esi]
push 0x84
jmp 0x1012068a
mov edx, dword [esi]
push 0x88
jmp 0x1012068a
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 0x101207f4
xor ebx, ebx
mov eax, dword [edi + 0x4c]
mov edx, dword [esi]
cmp ebx, eax
jge 0x101206cc
lea eax, [ebp - 0x18]
push 4
push eax
mov ecx, esi
call dword [edx + 0x34]
inc ebx
jmp 0x101206b5
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 0x101207f4
xor ebx, ebx
mov eax, dword [edi + 0x50]
mov edx, dword [esi]
cmp ebx, eax
jge 0x10120703
lea eax, [ebp - 0x1c]
push 4
push eax
mov ecx, esi
call dword [edx + 0x34]
inc ebx
jmp 0x101206ec
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 0x101207f4
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 0xa0]
cmp edx, eax
jge 0x10120799
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 0x10120794
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 0x101207f4
xor ebx, ebx
cmp ebx, dword [edi + 0x240]
jge 0x10120794
mov edx, dword [esi]
lea eax, [ebp - 0x80]
push 0x64
push eax
mov ecx, esi
call dword [edx + 0x34]
inc ebx
jmp 0x1012077c
inc dword [ebp - 0x14]
jmp 0x1012072e
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 0x101207f4
xor ebx, ebx
cmp ebx, dword [edi + 0xa4]
jge 0x101207d8
mov edx, dword [esi]
lea eax, [edi + 0x244]
push 0x18
push eax
mov ecx, esi
call dword [edx + 0x34]
inc ebx
jmp 0x101207bd
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