{"id":308202,"date":"2020-08-09T15:00:25","date_gmt":"2020-08-09T15:00:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=308202"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=308202","title":{"rendered":"\u041c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c Last Epoch \u2014 \u041e\u0442 dnSpy \u0434\u043e Ghidra"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/514416\/\">\n<p>Last Epoch \u2014 \u044d\u0442\u043e \u043e\u0434\u043d\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f ARPG \u043d\u0430 Unity \u0438 C#. \u0412 \u0438\u0433\u0440\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u0440\u0430\u0444\u0442\u0430 \u2014 \u0438\u0433\u0440\u043e\u043a \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 \u043a \u044d\u043a\u0438\u043f\u0438\u0440\u043e\u0432\u043a\u0435. \u0421 \u043a\u0430\u0436\u0434\u044b\u043c \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f &quot;\u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c&quot;, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0448\u0430\u043d\u0441 \u043f\u043e\u043b\u043e\u043c\u043a\u0438 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430<\/p>\n<p>  <\/p>\n<p>\u042f \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0434\u0432\u0435 \u0446\u0435\u043b\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0423\u0431\u0440\u0430\u0442\u044c &quot;\u043f\u043e\u043b\u043e\u043c\u043a\u0443&quot; \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432<\/li>\n<li>\u041d\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u0438 \u043a\u0440\u0430\u0444\u0442\u0435<\/li>\n<\/ul>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/b_\/ug\/5a\/b_ug5afuptzoqr9bqavm3yjooc0.png\" alt=\"cut\"><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u043a\u043d\u043e \u043a\u0440\u0430\u0444\u0442\u0430 \u0432 \u0438\u0433\u0440\u0435:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/584\/c17\/bd3\/584c17bd3af141dcba6ec537e0950420.png\" alt=\"\u041e\u043a\u043d\u043e \u043a\u0440\u0430\u0444\u0442\u0430 \u0432 Last Epoch\"><\/p>\n<p>  <\/p>\n<h2 id=\"chast-pervaya-gde-my-redaktiruem-net-kod-bez-registracii-i-sms\">\u0427\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u0430\u044f, \u0433\u0434\u0435 \u043c\u044b \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c .NET \u043a\u043e\u0434 \u0431\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0441\u043c\u0441<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043e\u043f\u0438\u0448\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u0433\u0440\u044b (0.7.8)<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 C# \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 IL (Intermediate Language) \u043a\u043e\u0434. IL-\u043a\u043e\u0434 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u0412 Unity \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 IL-\u043a\u043e\u0434 \u0438\u0433\u0440\u044b \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 <code>&lt;GameFolder&gt;\/Managed\/Assembly-CSharp.dll<\/code><\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f IL-\u043a\u043e\u0434\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/0xd4d\/dnSpy\" rel=\"nofollow\">dnSpy<\/a> \u2014 \u043b\u0443\u0447\u0448\u0438\u0439 \u0438\u0437 \u0432\u0441\u0435\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0434\u043b\u044f .NET, \u0447\u0442\u043e \u044f \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b. dnSpy \u0434\u0435\u043b\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 .NET \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0433\u043a\u043e\u0439, \u0447\u0442\u043e \u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u0443\u0442\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 IDE.<\/p>\n<p>  <\/p>\n<h3 id=\"ischem-logiku-krafta\">\u0418\u0449\u0435\u043c \u043b\u043e\u0433\u0438\u043a\u0443 \u043a\u0440\u0430\u0444\u0442\u0430<\/h3>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c dnSpy \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c <code>Assembly-CSharp.dll<\/code><\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/479\/f13\/d3a\/479f13d3a1bb64c0be8a2ebb06b0257a.png\" alt=\"dnSpy \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c Assembly-CSharp.dll\"><\/p>\n<p>  <\/p>\n<p>\u041c\u044b \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u0438\u043c \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0434\u043b\u0438\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043b\u0430\u0441\u0441\u043e\u0432. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0446\u0435\u043b\u044c\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u0440\u0430\u0444\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e \u043f\u0440\u043e\u0441\u0442\u043e \u2014 \u0438\u0449\u0443 \u043a\u043b\u0430\u0441\u0441\u044b, \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f <strong>Craft<\/strong> \u0438 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e \u0438\u0445 \u043b\u043e\u0433\u0438\u043a\u0443 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u0438\u0441\u043a\u043e\u0432 \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u0438\u0441\u043a\u043e\u043c\u043e\u0435 \u2014 \u043a\u043b\u0430\u0441\u0441 <strong>CraftingSlotManager<\/strong>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/79e\/18d\/77e\/79e18d77e5e50f1e522568aa1995aaab.png\" alt=\"dnSpy x CraftingSlotManager\"><\/p>\n<p>  <\/p>\n<p>\u0410 \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u0435\u0442\u043e\u0434 <strong>Forge()<\/strong> \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a57\/b95\/382\/a57b953828b82d97b1fcefb4fc54baf1.png\" alt=\"ndSpy x CraftingSlotManager.Forge()\"><\/p>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u043e\u043b\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043a\u043e\u0434\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043b\u044f \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0445<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">\/\/ CraftingSlotManager \/\/ Token: 0x06002552 RID: 9554 RVA: 0x0015E958 File Offset: 0x0015CB58 public void Forge() {     if (!this.forging)     {         this.forging = true;         base.StartCoroutine(this.ForgeBlocker(10));         bool flag = false;         int num = -1;         if (this.main.HasContent())         {             int num2 = 0;             int num3 = 0;             if (this.debugNoFracture)             {                 num3 = -10;             }             float num4 = 1f;             int num5 = -1;             bool flag2 = false;             ItemData data = this.main.GetContent()[0].data;             ItemData itemData = null;             if (this.support.HasContent())             {                 itemData = this.support.GetContent()[0].data;                 num5 = (int)itemData.subType;                 if (itemData.subType == 0)                 {                     num3--;                     flag2 = true;                 }                 else if (itemData.subType == 1)                 {                     num4 = UnityEngine.Random.Range(0.4f, 1f);                     flag2 = true;                 }             }             if (this.appliedAffixID &gt;= 0)             {                 Debug.Log(&quot;applied ID: &quot; + this.appliedAffixID.ToString());                 if (this.forgeButtonText.text == &quot;Forge&quot;)                 {                     if (data.AddAffixTier(this.appliedAffixID, Mathf.RoundToInt((float)(5 + num2) * num4), num3))                     {                         num = this.appliedAffixID;                         flag = true;                     }                     GlobalDataTracker.instance.CheckForShard(this.appliedAffixID);                     if (flag2)                     {                         this.support.Clear();                     }                     if (!GlobalDataTracker.instance.CheckForShard(this.appliedAffixID))                     {                         this.DeselectAffixID();                     }                 }             }             else if (this.modifier.HasContent())             {                 Debug.Log(&quot;modifier lets go&quot;);                 ItemData data2 = this.modifier.GetContent()[0].data;                 if (data2.itemType == 102)                 {                     if (data2.subType == 0)                     {                         Debug.Log(&quot;shatter it&quot;);                         Notifications.CraftingOutcome(data.Shatter());                         if (num5 == 0)                         {                             flag2 = false;                         }                         this.main.Clear();                         flag = true;                         this.ResetAffixList();                     }                     else if (data2.subType == 1)                     {                         Debug.Log(&quot;refine it&quot;);                         if (data.AddInstability(Mathf.RoundToInt((float)(2 + num2) * num4), num3, 0))                         {                             data.ReRollAffixRolls();                         }                         flag = true;                     }                     else if (data2.subType == 2 &amp;&amp; data.affixes.Count &gt; 0)                     {                         Debug.Log(&quot;remove it&quot;);                         if (data.AddInstability(Mathf.RoundToInt((float)(2 + num2) * num4), num3, 0))                         {                             ItemAffix affixToRemove = data.affixes[UnityEngine.Random.Range(0, data.affixes.Count)];                             data.RemoveAffix(affixToRemove);                         }                         flag = true;                     }                     else if (data2.subType == 3 &amp;&amp; data.affixes.Count &gt; 0)                     {                         Debug.Log(&quot;cleanse it&quot;);                         List&lt;ItemAffix&gt; list = new List&lt;ItemAffix&gt;();                         foreach (ItemAffix item in data.affixes)                         {                             list.Add(item);                         }                         foreach (ItemAffix affixToRemove2 in list)                         {                             data.RemoveAffix(affixToRemove2);                         }                         if (num5 == 0)                         {                             flag2 = false;                         }                         data.SetInstability((int)((Mathf.Clamp(UnityEngine.Random.Range(5f, 15f), 0f, (float)data.instability) + (float)num2) * num4));                         flag = true;                     }                     else if (data2.subType == 4 &amp;&amp; data.sockets == 0)                     {                         Debug.Log(&quot;socket it&quot;);                         data.AddSocket(1);                         data.SetInstability((int)((Mathf.Clamp(UnityEngine.Random.Range(5f, 15f), 0f, (float)data.instability) + (float)num2) * num4));                         flag = true;                     }                 }             }             if (flag)             {                 UISounds.playSound(UISounds.UISoundLabel.CraftingSuccess);                 if (this.modifier.HasContent())                 {                     ItemData data3 = this.modifier.GetContent()[0].data;                     this.modifier.Clear();                     if (num &gt;= 0 &amp;&amp; GlobalDataTracker.instance.CheckForShard(num))                     {                         this.PopShardToModifierSlot(num);                     }                     else if (data3.itemType == 102)                     {                         foreach (SingleSubTypeContainer singleSubTypeContainer in ItemContainersManager.instance.materials.Containers)                         {                             if (singleSubTypeContainer.CanAddItemType((int)data3.itemType) &amp;&amp; singleSubTypeContainer.allowedSubID == (int)data3.subType &amp;&amp; singleSubTypeContainer.HasContent())                             {                                 singleSubTypeContainer.MoveItemTo(singleSubTypeContainer.GetContent()[0], 1, this.modifier, new IntVector2?(IntVector2.Zero), Context.SILENT);                                 break;                             }                         }                     }                     if (num &gt;= 0 &amp;&amp; this.prefixTierVFXObjects.Length != 0 &amp;&amp; this.suffixTierVFXObjects.Length != 0)                     {                         ItemData itemData2 = null;                         if (this.main.HasContent())                         {                             itemData2 = this.main.GetContent()[0].data;                         }                         if (itemData2 != null &amp;&amp; this.main.HasContent())                         {                             List&lt;ItemAffix&gt; list2 = new List&lt;ItemAffix&gt;();                             List&lt;ItemAffix&gt; list3 = new List&lt;ItemAffix&gt;();                             foreach (ItemAffix itemAffix in itemData2.affixes)                             {                                 if (itemAffix.affixType == AffixList.AffixType.PREFIX)                                 {                                     list2.Add(itemAffix);                                 }                                 else                                 {                                     list3.Add(itemAffix);                                 }                             }                             for (int i = 0; i &lt; list2.Count; i++)                             {                                 if ((int)list2[i].affixId == num &amp;&amp; this.prefixTierVFXObjects[i])                                 {                                     this.prefixTierVFXObjects[i].SetActive(true);                                 }                             }                             for (int j = 0; j &lt; list3.Count; j++)                             {                                 if ((int)list3[j].affixId == num &amp;&amp; this.suffixTierVFXObjects[j])                                 {                                     this.suffixTierVFXObjects[j].SetActive(true);                                 }                             }                         }                     }                 }                 if (!flag2)                 {                     goto IL_6B3;                 }                 this.support.Clear();                 using (List&lt;SingleSubTypeContainer&gt;.Enumerator enumerator2 = ItemContainersManager.instance.materials.Containers.GetEnumerator())                 {                     while (enumerator2.MoveNext())                     {                         SingleSubTypeContainer singleSubTypeContainer2 = enumerator2.Current;                         if (singleSubTypeContainer2.CanAddItemType((int)itemData.itemType) &amp;&amp; singleSubTypeContainer2.allowedSubID == (int)itemData.subType &amp;&amp; singleSubTypeContainer2.HasContent())                         {                             singleSubTypeContainer2.MoveItemTo(singleSubTypeContainer2.GetContent()[0], 1, this.support, new IntVector2?(IntVector2.Zero), Context.SILENT);                             break;                         }                     }                     goto IL_6B3;                 }             }             this.modifier.Clear();             this.support.Clear();         }         IL_6B3:         if (!flag)         {             UISounds.playSound(UISounds.UISoundLabel.CraftingFailure);         }         this.slamVFX.SetActive(true);         this.UpdateItemInfo();         this.UpdateFractureChanceDisplay();         this.UpdateForgeButton();         ShardCountText.UpdateAll();     } }<\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<p>\u0421 \u043c\u043e\u0435\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u043f\u043b\u043e\u0445\u043e. \u0414\u0430\u0436\u0435 \u0438 \u043d\u0435 \u0441\u043a\u0430\u0436\u0435\u0448\u044c \u0441\u0440\u0430\u0437\u0443, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0435\u043a\u043e\u043c\u043f\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f (\u0432\u044b\u0434\u0430\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 \u0434\u0443\u0445\u0435 <strong>num1<\/strong>, <strong>num2<\/strong>&#8230;). \u0415\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u0447\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0435\u0442\u043e\u043a.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u044f \u0432\u044b\u044f\u0441\u043d\u0438\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u2014 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e <code>CraftingSlot<\/code>&#8216;\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u043a\u0440\u0430\u0444\u0442\u0430 \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b. <code>CraftingSlotManager<\/code> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0435\u043d\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u044d\u0442\u0438\u0445 \u0441\u043b\u043e\u0442\u043e\u0432 \u0438 \u0432 \u0446\u0435\u043b\u043e\u043c \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043b\u043e\u0433\u0438\u043a\u0443 \u043a\u0440\u0430\u0444\u0442\u0430.<\/p>\n<p>  <\/p>\n<h3 id=\"otklyuchaem-rashodovanie-resursov-pri-krafte\">\u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u0440\u0438 \u043a\u0440\u0430\u0444\u0442\u0435<\/h3>\n<p>  <\/p>\n<p>\u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 \u0434\u0432\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435: <code>this.modifier<\/code> \u0438 `this.support<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0441\u043b\u043e\u0442\u044b \u0434\u043b\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0440\u0430\u0444\u0442\u0430.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">this.modifier.Clear(); this.support.Clear();<\/code><\/pre>\n<p>  <\/p>\n<p>\u0425\u043e\u0442\u044f \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u0441\u043b\u043e\u0442\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 (\u0430 \u043d\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c) \u2014 \u044d\u0442\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0432\u044b\u0437\u043e\u0432\u044b <code>this.modifier.Clear();<\/code> \u0438 <code>this.support.Clear();<\/code> \u0438\u0437 \u043a\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 dnSpy \u043f\u0440\u043e\u0441\u0442\u043e \u0444\u0430\u043d\u0442\u0430\u0441\u0442\u0438\u043a\u0430 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u043a\u043e\u0434 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0432 .dll \u2014 \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/bb1\/f7a\/311\/bb1f7a311efaa970376ab3432a3b9eb4.gif\" alt=\"dnSpy edit method\"><\/p>\n<p>  <\/p>\n<h3 id=\"ubiraem-polomku-predmeta-v-processe-krafta\">\u0423\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043e\u043b\u043e\u043c\u043a\u0443 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043a\u0440\u0430\u0444\u0442\u0430<\/h3>\n<p>  <\/p>\n<p>\u0412 \u0438\u0433\u0440\u0435 \u043f\u043e\u043b\u043e\u043c\u043a\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043a\u0440\u0430\u0444\u0442\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Fracture, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u0431\u0440\u043e\u0441\u0438\u043b\u0441\u044f \u0432 \u0433\u043b\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/7bf\/70a\/dd8\/7bf70add8bc574a31d4141a1bf9cc180.png\" alt=\"dnSpy x CraftingSlotManager.Forge()\"><\/p>\n<p>  <\/p>\n<p>\u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u2014 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0432\u0438\u0434\u0430 <code>int num3 = -10;<\/code> \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u043e\u043b\u043e\u043c\u043a\u0443 \u2014 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0437\u0430 \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u0435\u0431\u0430\u0433 \u0444\u043b\u0430\u0433.<\/p>\n<p>  <\/p>\n<h2 id=\"chast-vtoraya-gde-my-ispytyvaem-bol-i-stradaniya\">\u0427\u0430\u0441\u0442\u044c \u0432\u0442\u043e\u0440\u0430\u044f, \u0433\u0434\u0435 \u043c\u044b \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u0435\u043c \u0431\u043e\u043b\u044c \u0438 \u0441\u0442\u0440\u0430\u0434\u0430\u043d\u0438\u044f<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 0.7.9 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/docs.unity3d.com\/Manual\/IL2CPP.html\" rel=\"nofollow\">IL2CPP<\/a> \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a \u043f\u043e\u0434 \u043d\u0443\u0436\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0443 \u043d\u0430\u0441 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442 IL-\u043a\u043e\u0434\u0430, \u0430 \u0435\u0441\u0442\u044c \u043b\u0438\u0448\u044c \u0445\u0430\u0440\u0434\u043a\u043e\u0440\u043d\u044b\u0439 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u2026 \u043d\u043e \u043a\u043e\u0433\u043e \u044d\u0442\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u043e?<\/p>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>\u0410\u0432\u0442\u043e\u0440 \u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u043c, \u0430 \u0438\u043c\u0435\u0435\u0442 \u0437\u0430 \u0441\u043f\u0438\u043d\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 \u0410\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0430 \u0438 \u043e\u0434\u0438\u043d No-CD, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 \u0432 OllyDbg 10 \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434. \u0412\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0447\u0442\u043e \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0432\u0435\u0449\u0438 \u0431\u044b\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0438 \u043f\u0440\u043e\u0449\u0435<\/p>\n<\/div><\/div>\n<p>  <\/p>\n<h3 id=\"ischem-igolku-v-stoge-gidry\">\u0418\u0449\u0435\u043c \u0438\u0433\u043e\u043b\u043a\u0443 \u0432 \u0441\u0442\u043e\u0433\u0435 \u0413\u0438\u0434\u0440\u044b<\/h3>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 \u0438\u0433\u0440\u044b \u043f\u0440\u043e\u043f\u0430\u043b\u0438 \u0432\u0441\u0435 \u0441\u0442\u0430\u0440\u044b\u0435 .dll-\u043a\u0438 \u0438 \u043c\u044b \u0432\u0437\u0430\u043c\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043e\u0434\u0438\u043d \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 <code>GameAssembly.dll<\/code> \u0432\u0435\u0441\u043e\u043c \u0432 55 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442. \u041d\u0430\u0448\u0438 \u0446\u0435\u043b\u0438 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435.<\/p>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c dll-\u043a\u0443 \u0432 <a href=\"https:\/\/github.com\/NationalSecurityAgency\/ghidra\" rel=\"nofollow\">Ghidra<\/a>&#8216;\u0443 \u0438 \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0432\u0441\u0435 \u0432\u0438\u0434\u044b \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 (\u0430\u043d\u0430\u043b\u0438\u0437 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u044f \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b \u0435\u0433\u043e \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 <code>Analyze Address Table<\/code>)<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/0f5\/a33\/7e3\/0f5a337e352f04a9c8ec03334e78f464.png\" alt=\"Ghidra\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044f, \u043a\u0430\u043a \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 \u0440\u0435\u0432\u0435\u0440\u0441\u0435\u0440, \u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b \u0431\u044b, \u0432\u0435\u0434\u044c \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0442\u0443\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u043a\u043e\u0434 \u2014 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043c\u043d\u0435 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e.<\/p>\n<p>  <\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u043d\u0430 \u0442\u0435\u043c\u0443 IL2CPP \u044f \u043d\u0430\u0448\u0435\u043b \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <a href=\"https:\/\/github.com\/Perfare\/Il2CppDumper\" rel=\"nofollow\">Il2CppDumper<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043c\u0435\u0442\u0430\u0434\u0430\u0442\u0430-\u0444\u0430\u0439\u043b\u0430 (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0441\u044f \u043f\u043e \u043f\u0443\u0442\u0438 <code>&lt;GameFolder&gt;\/il2cpp_data\/Metadata\/global-metadata.dat<\/code>). \u041d\u0435 \u0437\u043d\u0430\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0438\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0431\u044b\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e, \u043d\u043e \u043e\u043d \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u043b \u043d\u0430\u0448\u0443 \u0437\u0430\u0434\u0430\u0447\u0443.<\/p>\n<p>  <\/p>\n<p>\u0421\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0435\u043c \u0443\u0442\u0438\u043b\u0438\u0442\u0435 \u043d\u0430\u0448\u0438 \u0444\u0430\u0439\u043b\u044b dll \u0438 \u043c\u0435\u0442\u0430\u0434\u0430\u0442\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0431\u043e\u0440 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/dd4\/7e1\/bb2\/dd47e1bb28c11d6f6614e063ceaf3bda.png\" alt=\"Il2CppDumper output\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0430\u043f\u043a\u0435 DummyDll \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 dll-\u043a\u0438 \u0441 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c IL-\u043a\u043e\u0434\u043e\u043c. \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 <code>Assembly-CSharp.dll<\/code> \u0432 dnSpy \u0438 \u0438\u0434\u0435\u043c \u0432 \u043d\u0430\u0448 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 <code>CraftingSlotManager<\/code>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/cdf\/779\/f9e\/cdf779f9e7df4e092bf72f3c244e5a55.png\" alt=\"dnSpy (restored) x CraftingSlotManager\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0443 \u0447\u0442\u043e \u0436\u0435, \u043a\u043e\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442, \u0437\u0430\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0430\u0434\u0440\u0435\u0441! \u0412 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 <\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">Address(RVA = &quot;0x5B9FC0&quot;, Offset = &quot;0x5B89C0&quot;, VA = &quot;0x1805B9FC0&quot;)<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 VA \u2014 \u044d\u0442\u043e \u043e\u0444\u0444\u0435\u0441\u0442, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u044b \u043d\u0430\u0439\u0434\u0435\u043c \u043d\u0430\u0448\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u0413\u0438\u0434\u0440\u0435:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b40\/305\/fbb\/b40305fbb67d6e3ee6f37eb91438eb71.png\" alt=\"Ghidra forge offset\"><\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0445\u043e\u0442\u044f \u0431\u044b \u043d\u0430\u0448\u043b\u0438 \u043d\u0430\u0447\u0430\u043b\u043e \u043d\u0430\u0448\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0447\u0442\u043e \u0443\u0436\u0435 \u043d\u0435\u043f\u043b\u043e\u0445\u043e.<\/p>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0435? \u0412\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e Il2CppDumper \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0413\u0438\u0434\u0440\u0443 \u2014 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0413\u0438\u0434\u0440\u044b, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <code>ghidra.py<\/code> \u0438 \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u043c\u0443 <code>script.json<\/code>, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438\u0437 \u043d\u0430\u0448\u0435\u0439 \u043c\u0435\u0442\u0430\u0434\u0430\u0442\u044b. \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435, \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0438\u043c\u0435\u043d\u0430.<\/p>\n<p>  <\/p>\n<h3 id=\"otklyuchaem-rashodovanie-resursov-pri-krafte-1\">\u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u0440\u0438 \u043a\u0440\u0430\u0444\u0442\u0435<\/h3>\n<p>  <\/p>\n<p>\u041c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432\u044b <code>this.modifier.Clear();<\/code> \u0438 <code>this.support.Clear();<\/code>. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0438\u0445 \u0432 \u043a\u043e\u0434\u0435. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/23c\/38c\/546\/23c38c5463c95679d3ed35280dafa261.png\" alt=\"Ghidra\"><\/p>\n<p>  <\/p>\n<p>\u041b\u043e\u043c\u0430\u0442\u044c \u2014 \u043d\u0435 \u0441\u0442\u0440\u043e\u0438\u0442\u044c. \u0427\u0442\u043e\u0431\u044b \u0443\u0431\u0440\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0431\u0430\u0439\u0442\u044b, \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0432 CALL \u043d\u0430 <a href=\"https:\/\/c9x.me\/x86\/html\/file_module_x86_id_217.html\" rel=\"nofollow\">NOP<\/a><\/p>\n<p>  <\/p>\n<p>\u0420\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0430\u0439\u0442\u044b (\u0432\u044b\u0434\u0435\u043b\u0438\u0432 \u0435\u0435 \u0438 \u043d\u0430\u0436\u0430\u0432 C, \u0438\u043b\u0438 Clear Code Bytes), \u0437\u0430\u0442\u0435\u043c \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043f\u0435\u0447\u0430\u0442\u044b\u0432\u0430\u0435\u043c <code>90<\/code> \u043f\u044f\u0442\u044c \u0440\u0430\u0437. \u0413\u043e\u0442\u043e\u0432\u043e!<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a82\/281\/517\/a822815171f7c6323e8b3c06ebe4d070.gif\" alt=\"Ghidra\"><\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u044b\u0437\u0432\u043e\u0432 <code>OneSlotItemContainer$$Clear()<\/code> \u0438\u0437 \u043d\u0430\u0448\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>Forge()<\/code> (\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u0432\u044b\u0437\u043e\u0432 <code>this.main.Clear();<\/code> \u041d\u043e \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043b\u0435\u043d\u0438\u0432\u043e \u0432\u044b\u0438\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043d\u043e\u0439 \u043a\u0430\u0448\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0443\u0431\u0440\u0430\u043b \u0432\u0441\u0435 \u0432\u044b\u0437\u043e\u0432\u044b).<\/p>\n<p>  <\/p>\n<h3 id=\"ubiraem-polomku-predmeta-v-processe-krafta-1\">\u0423\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043e\u043b\u043e\u043c\u043a\u0443 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043a\u0440\u0430\u0444\u0442\u0430<\/h3>\n<p>  <\/p>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u043b\u0438 <code>int num3 = -10;<\/code> \u0438 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0437\u0430 \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u0435\u0431\u0430\u0433 \u0444\u043b\u0430\u0433 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u043e \u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u2014 \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u0430\u044f \u0438\u0437 ~60 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0413\u0438\u0434\u0440\u043e\u0439, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0443\u0436\u043d\u043e\u0439. \u041f\u043e\u0441\u043b\u0435 15 \u043c\u0438\u043d\u0443\u0442 \u043f\u043e\u0438\u0441\u043a\u0430 \u043c\u043d\u0435 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0437\u0443\u0431\u043e\u0434\u0440\u043e\u0431\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u043d\u0438\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u0434\u0435\u0431\u0430\u0433 \u0444\u043b\u0430\u0433\u0430 \u0438 \u0432\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u0438\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e84\/de0\/8f5\/e84de08f527c34f65f4d31d2d251cfc6.png\" alt=\"Ghidra\"><\/p>\n<p>  <\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043c\u043e\u0438\u0445 \u0437\u043d\u0430\u043d\u0438\u0439 \u0410\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0430 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 (\u0441\u0443\u0434\u044f \u043f\u043e \u0413\u0438\u0434\u0440\u0435 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 4 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 MOVZX \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044f \u043d\u0430 AND), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u043b\u0438\u043a\u0430\u0442\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u0447\u0430\u0441\u0442\u044c \u044f \u043d\u0435 \u0441\u043c\u043e\u0433. \u0414\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u044f \u0442\u043e\u0436\u0435 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0432 \u0441\u0438\u043b\u0443 \u0441\u0432\u043e\u0438\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u043f\u043e\u0434\u0445\u043e\u0434.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0435\u0449\u0435 \u0440\u0430\u0437 \u0432 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 (\u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0413\u0438\u0434\u0440\u043e\u0439) \u043a\u043e\u0434 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u0433\u0440\u044b \u0432 dnSpy \u044f \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u0437\u0430 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u0435 &quot;\u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438&quot; \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 <code>AddInstability<\/code><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public bool AddInstability(int addedInstability, int fractureTierModifier = 0, int affixTier = 0)     {         int num = this.RollFractureTier(fractureTierModifier, affixTier);         if (num &gt; 0)         {             this.Fracture(num); \/\/ &lt;----- \u041f\u0440\u0435\u0434\u043c\u0435\u0442 \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u0442\u0443\u0442             return false;         }         this.instability = ((int)this.instability + addedInstability).clampToByte();         this.RebuildID();         return true;     }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0413\u0438\u0434\u0440\u0430 \u0440\u0430\u0434\u0443\u0435\u0442 \u043d\u0430\u0441 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u043b\u0435\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0434\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/043\/e52\/768\/043e527680921f150f5355843dcc0400.png\" alt=\"Ghidra\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e \u043a\u043e\u0434\u0443 \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u044b\u0437\u043e\u0432 <code>CALL ItemData$$RollFractureTier<\/code>, \u0437\u0430\u0442\u0435\u043c \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 <code>TEST EAX<\/code> \u0438 \u043f\u0440\u044b\u0433\u0430\u0435\u043c \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u0432\u0435\u0442\u043a\u0443:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/bf4\/666\/da4\/bf4666da4aef05c858a953aa0256949a.png\" alt=\"Ghidra\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0448\u043b\u0438 \u043f\u043e \u0432\u0435\u0442\u043a\u0435 <code>uVar3 &lt; 1<\/code>. \u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 (\u043c\u043e\u0433\u0443 \u043e\u0448\u0438\u0431\u0430\u0442\u044c\u0441\u044f) \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c <a href=\"http:\/\/faydoc.tripod.com\/cpu\/jg.htm\" rel=\"nofollow\">JG<\/a>(Jump short if greater) \u043d\u0430 JLE(Jump short if less or equal).<\/p>\n<p>  <\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b \u0432\u043e\u043f\u0440\u043e\u0441 \u0438\u043d\u0430\u0447\u0435 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0440\u0430\u0432\u043d\u044b\u043c \u043d\u0443\u043b\u044e \u0438 \u0442\u043e\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0430\u0434\u043e. \u041c\u0435\u043d\u044f\u0435\u043c <code>CALL<\/code> \u043d\u0430 <code>XOR EAX, EAX<\/code> (\u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0431\u043d\u0443\u043b\u0438\u0442\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0432 \u0410\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0432\u0430 \u0431\u0430\u0439\u0442\u0430 \u0438 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0442\u0440\u0438 \u0431\u0430\u0439\u0442\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c NOP&#8217;\u0430\u043c\u0438. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/7fa\/d10\/f0c\/7fad10f0cd25ceed9dca1a3acd76f0e3.png\" alt=\"Ghidra\"><\/p>\n<p>  <\/p>\n<p>\u0413\u043e\u0442\u043e\u0432\u043e! \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c, \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 <code>GameAssembly.dll<\/code> (\u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0413\u0438\u0434\u0440\u0430 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0444\u0430\u0439\u043b\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 .bin \u0438 \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c) \u0438 \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u043c \u0441\u0435\u0431\u044f \u0445\u0430\u043a\u0435\u0440\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"vyvody\">\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f &quot;\u043f\u0443\u0442\u0435\u043c \u0432 \u043e\u0434\u0438\u043d \u043a\u043e\u043d\u0435\u0446&quot;, \u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0435\u0443\u044f\u0437\u0432\u0438\u043c\u044b\u043c\u0438 \u0431\u0430\u0441\u0442\u0438\u043e\u043d\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043f\u0430\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0434 \u043b\u0443\u0447\u0448\u0438\u043c\u0438 \u0445\u0430\u043a\u0435\u0440\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u044f\u0437\u044b\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0440\u0430\u043a\u0442\u0443\u0435\u0442\u0441\u044f \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438. \u0414\u043b\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0445\u0432\u0430\u0442\u0438\u0442 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0443\u043c\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0445\u043e\u0442\u044c \u043d\u0430 \u0447\u0435\u043c-\u043d\u0438\u0431\u0443\u0434\u044c.<\/p>\n<p>  <\/p>\n<p>\u0418, \u0445\u043e\u0442\u044f \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438 \u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u0432\u0430\u0448\u0438\u0445 \u0433\u043b\u0430\u0437 \u0438 \u043c\u043e\u0437\u0433\u0430, \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435, \u0431\u043b\u0438\u0437\u043a\u043e\u043c \u043a \u0436\u0435\u043b\u0435\u0437\u0443, \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0431\u044b\u0432\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 open-source \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/514416\/\"> https:\/\/habr.com\/ru\/post\/514416\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/514416\/\">\n<p>Last Epoch \u2014 \u044d\u0442\u043e \u043e\u0434\u043d\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f ARPG \u043d\u0430 Unity \u0438 C#. \u0412 \u0438\u0433\u0440\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u0440\u0430\u0444\u0442\u0430 \u2014 \u0438\u0433\u0440\u043e\u043a \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 \u043a \u044d\u043a\u0438\u043f\u0438\u0440\u043e\u0432\u043a\u0435. \u0421 \u043a\u0430\u0436\u0434\u044b\u043c \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f &quot;\u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c&quot;, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0448\u0430\u043d\u0441 \u043f\u043e\u043b\u043e\u043c\u043a\u0438 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430<\/p>\n<p>  <\/p>\n<p>\u042f \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0434\u0432\u0435 \u0446\u0435\u043b\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0423\u0431\u0440\u0430\u0442\u044c &quot;\u043f\u043e\u043b\u043e\u043c\u043a\u0443&quot; \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432<\/li>\n<li>\u041d\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u0438 \u043a\u0440\u0430\u0444\u0442\u0435<\/li>\n<\/ul>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/b_\/ug\/5a\/b_ug5afuptzoqr9bqavm3yjooc0.png\" alt=\"cut\"><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-308202","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/308202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=308202"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/308202\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=308202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=308202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=308202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}