annotate stru11.h @ 16:5a95b9ed31f3

13.10.12
author Lower
date Sat, 13 Oct 2012 20:25:41 +0600
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 /* 128 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 struct stru11
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 //----- (00438526) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 stru11()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 stru11 *v1; // esi@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 signed int v2; // eax@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 char *v3; // edx@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 v1 = this;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 v2 = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 this->cpuid_00000000_eax_numops = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 this->cpuid_00000001_eax = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 this->cpuid_00000001_edx = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 this->field_38 = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 this->field_3C = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 this->cpuid_80000000_edx = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 this->cpuid_80000001_eax = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 this->cpuid_80000001_edx = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 this->cpuid_80000005_ebx = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 this->cpuid_80000005_ecx = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 this->cpuid_80000005_edx = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 this->cpuid_80000006_ecx = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 this->field_AC = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 this->uProcessorManufacturer = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 LOBYTE(this->cpuid_80000002_registers2[0]) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 v3 = (char *)&this->cpuid_00000002_eax;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 do
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 if ( v2 < 3 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 *((int *)v3 - 9) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 if ( v2 < 4 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 *(int *)v3 = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 if ( v2 < 12 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 *((int *)v3 + 17) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 if ( v2 < 13 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 this->pCPUString[v2] = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 if ( v2 < 30 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 *((char *)this->field_40 + v2) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 *((char *)&this->cpuid_80000002_registers2[0] + v2++ + 1) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 v3 += 4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 while ( v2 < 48 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 CheckCPU();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 void CheckCPU();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 void RunCPUID();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 void RunCPUID_op1();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 void RunCPUID_op2();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 void RunCPUID_ext2_3_4();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 int cpuid_00000000_eax_numops;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 int cpuid_00000000_ebx_vendorstr1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 int cpuid_00000000_edx_vendorstr2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 int cpuid_00000000_ecx_vendorstr3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 char pCPUString[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 int cpuid_00000001_eax;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 int cpuid_00000001_edx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 int cpuid_00000002_eax;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 int cpuid_00000002_ebx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 int cpuid_00000002_ecx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 int cpuid_00000002_edx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 int field_38;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 int field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 int field_40[8];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 int cpuid_80000000_edx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 int cpuid_80000001_eax;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 int cpuid_80000001_edx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 int cpuid_80000002_registers[4];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 int cpuid_80000003_registers[4];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 int cpuid_80000004_registers[4];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 int cpuid_80000005_ebx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 int cpuid_80000005_ecx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 int cpuid_80000005_edx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 int cpuid_80000006_ecx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 int field_AC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 int uProcessorManufacturer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 int cpuid_80000002_registers2[4];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 int cpuid_80000003_registers2[4];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 int cpuid_80000004_registers2[4];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 int field_E4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 #pragma pack(pop)