请各位高手看一下,下面这个算法怎么搞定。IL看不懂,很蛋疼,谁能帮忙写个DELPHI的注册机或者注册程序。谢过!
.method private hidebysig instance void btnSaveSn_Click(object sender,
class [mscorlib]System.EventArgs e) cil managed
{
// Code size 543 (0x21f)
.maxstack 4
.locals init (class [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL V_0,
class [ZJJ.Model]ZJJ.Model.Dictionarys V_1,
class [ZJJ.Model]ZJJ.Model.Dictionary V_2,
class [ZJJ.Model]ZJJ.Model.Dictionary V_3,
class [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.OrganSelfDAL V_4,
class [ZJJ.Model]ZJJ.Model.OrganSelf V_5,
class [mscorlib]System.Collections.IEnumerator V_6,
class [mscorlib]System.IDisposable V_7)
IL_0000: ldarg.0
IL_0001: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox ZJJ.Windows.RegistForm::txtSn
IL_0006: callvirt instance string [System.Windows.Forms]System.Windows.Forms.Control::get_Text()
IL_000b: ldstr ""
IL_0010: call bool [mscorlib]System.String::op_Equality(string,
string)
IL_0015: brtrue.s IL_0041
IL_0017: ldarg.0
IL_0018: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox ZJJ.Windows.RegistForm::txtName
IL_001d: callvirt instance string [System.Windows.Forms]System.Windows.Forms.Control::get_Text()
IL_0022: ldstr ""
IL_0027: call bool [mscorlib]System.String::op_Equality(string,
string)
IL_002c: brtrue.s IL_0041
IL_002e: ldarg.0
IL_002f: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox ZJJ.Windows.RegistForm::txtCode
IL_0034: callvirt instance string [System.Windows.Forms]System.Windows.Forms.Control::get_Text()
IL_0039: callvirt instance int32 [mscorlib]System.String::get_Length()
IL_003e: ldc.i4.3
IL_003f: beq.s IL_0059
IL_0041: ldstr bytearray (F7 8B 6B 58 99 51 63 6B 6E 78 84 76 55 53 4D 4F // ..kX.Qcknx.vUSMO
E3 4E 01 78 2C 00 0D 54 F0 79 8C 54 E8 6C 8C 51 // .N.x,..T.y.T.l.Q
01 78 02 30 ) // .x.0
IL_0046: ldstr bytearray (D0 63 3A 79 ) // .c:y
IL_004b: ldc.i4.0
IL_004c: ldc.i4.s 16
IL_004e: call valuetype [System.Windows.Forms]System.Windows.Forms.DialogResult [System.Windows.Forms]System.Windows.Forms.MessageBox::Show(string,
string,
valuetype [System.Windows.Forms]System.Windows.Forms.MessageBoxButtons,
valuetype [System.Windows.Forms]System.Windows.Forms.MessageBoxIcon)
IL_0053: pop
IL_0054: br IL_021e
IL_0059: ldarg.0
IL_005a: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox ZJJ.Windows.RegistForm::txtCode
IL_005f: callvirt instance string [System.Windows.Forms]System.Windows.Forms.Control::get_Text()
IL_0064: callvirt instance string [mscorlib]System.String::ToUpper()
IL_0069: ldarg.0
IL_006a: ldarg.0
IL_006b: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox ZJJ.Windows.RegistForm::txtSn
IL_0070: callvirt instance string [System.Windows.Forms]System.Windows.Forms.Control::get_Text()
IL_0075: callvirt instance string [mscorlib]System.String::Trim()
IL_007a: call instance string ZJJ.Windows.RegistForm::SKeyDecrypt(string)
IL_007f: call bool [mscorlib]System.String::op_Inequality(string,
string)
IL_0084: brfalse.s IL_009e
IL_0086: ldstr bytearray (E8 6C 8C 51 01 78 0D 4E 63 6B 6E 78 2C 00 F7 8B // .l.Q.x.Ncknx,...
8E 4E A2 5B 0D 67 54 80 FB 7C 2E 00 35 75 DD 8B // .N.[.gT..|..5u..
31 00 35 00 37 00 31 00 37 00 31 00 30 00 39 00 // 1.5.7.1.7.1.0.9.
33 00 39 00 30 00 02 30 ) // 3.9.0..0
IL_008b: ldstr bytearray (D0 63 3A 79 ) // .c:y
IL_0090: ldc.i4.0
IL_0091: ldc.i4.s 16
IL_0093: call valuetype [System.Windows.Forms]System.Windows.Forms.DialogResult [System.Windows.Forms]System.Windows.Forms.MessageBox::Show(string,
string,
valuetype [System.Windows.Forms]System.Windows.Forms.MessageBoxButtons,
valuetype [System.Windows.Forms]System.Windows.Forms.MessageBoxIcon)
IL_0098: pop
IL_0099: br IL_021e
IL_009e: newobj instance void [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL::.ctor()
IL_00a3: stloc.0
IL_00a4: ldloc.0
IL_00a5: ldstr "(DictionaryCode BETWEEN '1' AND '6') AND (Typ = 0)"
IL_00aa: callvirt instance class [ZJJ.Model]ZJJ.Model.Dictionarys [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL::GetDictionarysByCondition(string)
IL_00af: stloc.1
IL_00b0: ldloc.1
IL_00b1: callvirt instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Collections.CollectionBase::GetEnumerator()
IL_00b6: stloc.s V_6
.try
{
IL_00b8: br.s IL_00d4
IL_00ba: ldloc.s V_6
IL_00bc: callvirt instance object [mscorlib]System.Collections.IEnumerator::get_Current()
IL_00c1: castclass [ZJJ.Model]ZJJ.Model.Dictionary
IL_00c6: stloc.2
IL_00c7: ldloc.0
IL_00c8: ldloc.2
IL_00c9: callvirt instance int32 [ZJJ.Model]ZJJ.Model.Dictionary::get_DictionaryID()
IL_00ce: callvirt instance int32 [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL::DeleteDictionary(int32)
IL_00d3: pop
IL_00d4: ldloc.s V_6
IL_00d6: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext()
IL_00db: brtrue.s IL_00ba
IL_00dd: leave.s IL_00f4
} // end .try
finally
{
IL_00df: ldloc.s V_6
IL_00e1: isinst [mscorlib]System.IDisposable
IL_00e6: stloc.s V_7
IL_00e8: ldloc.s V_7
IL_00ea: brfalse.s IL_00f3
IL_00ec: ldloc.s V_7
IL_00ee: callvirt instance void [mscorlib]System.IDisposable::Dispose()
IL_00f3: endfinally
} // end handler
IL_00f4: newobj instance void [ZJJ.Model]ZJJ.Model.Dictionary::.ctor()
IL_00f9: stloc.3
IL_00fa: ldloc.3
IL_00fb: ldstr "1"
IL_0100: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryCode(string)
IL_0105: ldloc.3
IL_0106: ldstr bytearray (E0 65 1D 7F 14 6C F6 74 ) // .e...l.t
IL_010b: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryName(string)
IL_0110: ldloc.0
IL_0111: ldloc.3
IL_0112: callvirt instance int32 [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL::InsertDictionary(class [ZJJ.Model]ZJJ.Model.Dictionary)
IL_0117: pop
IL_0118: ldloc.3
IL_0119: ldstr "2"
IL_011e: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryCode(string)
IL_0123: ldloc.3
IL_0124: ldstr bytearray (0A 71 A5 63 14 6C F6 74 ) // .q.c.l.t
IL_0129: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryName(string)
IL_012e: ldloc.0
IL_012f: ldloc.3
IL_0130: callvirt instance int32 [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL::InsertDictionary(class [ZJJ.Model]ZJJ.Model.Dictionary)
IL_0135: pop
IL_0136: ldloc.3
IL_0137: ldstr "3"
IL_013c: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryCode(string)
IL_0141: ldloc.3
IL_0142: ldstr bytearray (B2 6D 16 53 F3 77 B9 6C 14 6C A2 94 F6 74 ) // .m.S.w.l.l...t
IL_0147: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryName(string)
IL_014c: ldloc.0
IL_014d: ldloc.3
IL_014e: callvirt instance int32 [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL::InsertDictionary(class [ZJJ.Model]ZJJ.Model.Dictionary)
IL_0153: pop
IL_0154: ldloc.3
IL_0155: ldstr "4"
IL_015a: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryCode(string)
IL_015f: ldloc.3
IL_0160: ldstr bytearray (B6 6E E3 89 59 4E 94 70 14 6C F6 74 ) // .n..YN.p.l.t
IL_0165: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryName(string)
IL_016a: ldloc.0
IL_016b: ldloc.3
IL_016c: callvirt instance int32 [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL::InsertDictionary(class [ZJJ.Model]ZJJ.Model.Dictionary)
IL_0171: pop
IL_0172: ldloc.3
IL_0173: ldstr "5"
IL_0178: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryCode(string)
IL_017d: ldloc.3
IL_017e: ldstr bytearray (66 8F 28 75 14 6C F6 74 ) // f.(u.l.t
IL_0183: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryName(string)
IL_0188: ldloc.0
IL_0189: ldloc.3
IL_018a: callvirt instance int32 [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL::InsertDictionary(class [ZJJ.Model]ZJJ.Model.Dictionary)
IL_018f: pop
IL_0190: ldloc.3
IL_0191: ldstr "6"
IL_0196: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryCode(string)
IL_019b: ldloc.3
IL_019c: ldstr bytearray (4E 4F 29 6E DD 7E ED 70 14 6C F6 74 ) // NO)n.~.p.l.t
IL_01a1: callvirt instance void [ZJJ.Model]ZJJ.Model.Dictionary::set_DictionaryName(string)
IL_01a6: ldloc.0
IL_01a7: ldloc.3
IL_01a8: callvirt instance int32 [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.DictionaryDAL::InsertDictionary(class [ZJJ.Model]ZJJ.Model.Dictionary)
IL_01ad: pop
IL_01ae: newobj instance void [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.OrganSelfDAL::.ctor()
IL_01b3: stloc.s V_4
IL_01b5: newobj instance void [ZJJ.Model]ZJJ.Model.OrganSelf::.ctor()
IL_01ba: stloc.s V_5
IL_01bc: ldloc.s V_5
IL_01be: ldarg.0
IL_01bf: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox ZJJ.Windows.RegistForm::txtCode
IL_01c4: callvirt instance string [System.Windows.Forms]System.Windows.Forms.Control::get_Text()
IL_01c9: callvirt instance string [mscorlib]System.String::Trim()
IL_01ce: callvirt instance void [ZJJ.Model]ZJJ.Model.OrganSelf::set_OrganCode(string)
IL_01d3: ldloc.s V_5
IL_01d5: ldarg.0
IL_01d6: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox ZJJ.Windows.RegistForm::txtName
IL_01db: callvirt instance string [System.Windows.Forms]System.Windows.Forms.Control::get_Text()
IL_01e0: callvirt instance string [mscorlib]System.String::Trim()
IL_01e5: callvirt instance void [ZJJ.Model]ZJJ.Model.OrganSelf::set_OrganName(string)
IL_01ea: ldloc.s V_5
IL_01ec: ldstr "44"
IL_01f1: callvirt instance void [ZJJ.Model]ZJJ.Model.OrganSelf::set_ProvinceDistrictCode(string)
IL_01f6: ldloc.s V_4
IL_01f8: ldloc.s V_5
IL_01fa: callvirt instance int32 [ZJJ.SQLServerDAL]ZJJ.SQLServerDAL.OrganSelfDAL::InsertOrgan_FillGas(class [ZJJ.Model]ZJJ.Model.OrganSelf)
IL_01ff: ldc.i4.0
IL_0200: ble.s IL_021c
IL_0202: ldstr bytearray (E8 6C 8C 51 10 62 9F 52 02 30 ) // .l.Q.b.R.0
IL_0207: ldstr bytearray (D0 63 3A 79 ) // .c:y
IL_020c: ldc.i4.0
IL_020d: ldc.i4.s 64
IL_020f: call valuetype [System.Windows.Forms]System.Windows.Forms.DialogResult [System.Windows.Forms]System.Windows.Forms.MessageBox::Show(string,
string,
valuetype [System.Windows.Forms]System.Windows.Forms.MessageBoxButtons,
valuetype [System.Windows.Forms]System.Windows.Forms.MessageBoxIcon)
IL_0214: pop
IL_0215: ldarg.0
IL_0216: ldc.i4.1
IL_0217: call instance void [System.Windows.Forms]System.Windows.Forms.Form::set_DialogResult(valuetype [System.Windows.Forms]System.Windows.Forms.DialogResult)
IL_021c: br.s IL_021e
IL_021e: ret
} // end of method RegistForm::btnSaveSn_Click
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!