Привожу псевдокод из IDA. Тут есть что-то похожее на ограничение количества элементов?…
- User
Привожу псевдокод из IDA. Тут есть что-то похожее на ограничение количества элементов? Например кнопок с подобными текстурами: “L2UI_CH3.Minimap.MapButton_ZoomIn2 " в игре их ограниченное количество. Я хочу найти место, где это ограничение может быть… .text:1018B050 ; =============== S U B R O U T I N E ======================================= .text:1018B050 .text:1018B050 ; Attributes: bp-based frame fpd=204h .text:1018B050 .text:1018B050 ; void __thiscall sub_1018B050(_DWORD this) .text:1018B050 sub_1018B050 proc near ; CODE XREF: sub_1018BAC0+1DC↓p .text:1018B050 .text:1018B050 var_288 = byte ptr -288h .text:1018B050 var_27C = dword ptr -27Ch .text:1018B050 var_278 = byte ptr -278h .text:1018B050 var_26C = dword ptr -26Ch .text:1018B050 var_268 = byte ptr -268h .text:1018B050 var_25C = byte ptr -25Ch .text:1018B050 pExceptionObject= dword ptr -250h .text:1018B050 var_24C = dword ptr -24Ch .text:1018B050 var_248 = dword ptr -248h .text:1018B050 var_244 = dword ptr -244h .text:1018B050 var_240 = dword ptr -240h .text:1018B050 var_23C = dword ptr -23Ch .text:1018B050 var_238 = dword ptr -238h .text:1018B050 var_234 = dword ptr -234h .text:1018B050 var_230 = dword ptr -230h .text:1018B050 var_22C = dword ptr -22Ch .text:1018B050 var_228 = dword ptr -228h .text:1018B050 var_224 = dword ptr -224h .text:1018B050 var_220 = dword ptr -220h .text:1018B050 var_21C = dword ptr -21Ch .text:1018B050 var_218 = dword ptr -218h .text:1018B050 var_214 = dword ptr -214h .text:1018B050 var_210 = dword ptr -210h .text:1018B050 var_208 = dword ptr -208h .text:1018B050 var_204 = word ptr -204h .text:1018B050 var_4 = dword ptr -4 .text:1018B050 arg_4 = dword ptr 0Ch .text:1018B050 .text:1018B050 ; FUNCTION CHUNK AT .text:10214EF0 SIZE 00000096 BYTES .text:1018B050 .text:1018B050 ; __unwind { // SEH_1018B050 .text:1018B050 push ebp .text:1018B051 lea ebp, [esp-204h] .text:1018B058 sub esp, 204h .text:1018B05E push 0FFFFFFFFh .text:1018B060 push offset SEH_1018B050 .text:1018B065 mov eax, large fs:0 .text:1018B06B push eax .text:1018B06C sub esp, 78h .text:1018B06F mov eax, dword_103554C4 .text:1018B074 xor eax, ebp .text:1018B076 mov [ebp+204h+var_4], eax .text:1018B07C push ebx .text:1018B07D push esi .text:1018B07E push edi .text:1018B07F push eax .text:1018B080 lea eax, [ebp+204h+var_210] .text:1018B083 mov large fs:0, eax .text:1018B089 mov [ebp+204h+var_214], esp .text:1018B08C mov edi, ecx .text:1018B08E xor ebx, ebx .text:1018B090 mov [ebp+204h+var_218], ebx .text:1018B093 ; try { .text:1018B093 mov [ebp+204h+var_208], ebx .text:1018B096 mov eax, ds:?GL2GameData@@3VFL2GameData@@A ; FL2GameData GL2GameData .text:1018B09B mov eax, [eax+7F9CCh] .text:1018B0A1 mov [ebp+204h+var_234], eax .text:1018B0A4 mov [ebp+204h+var_230], eax .text:1018B0A7 mov [ebp+204h+var_22C], ebx .text:1018B0AA mov [ebp+204h+var_228], ebx .text:1018B0AA ; } // starts at 1018B093 .text:1018B0AD ; try { .text:1018B0AD mov byte ptr [ebp+204h+var_208], 1 .text:1018B0B1 .text:1018B0B1 loc_1018B0B1: ; CODE XREF: sub_1018B050+102↓j .text:1018B0B1 cmp ebx, [eax+4] .text:1018B0B4 jge loc_1018B157 .text:1018B0BA lea esi, [ebx+ebx2] .text:1018B0BD add esi, esi .text:1018B0BF add esi, esi .text:1018B0C1 mov ecx, [eax] .text:1018B0C3 mov eax, [esi+ecx+8] .text:1018B0C7 mov [ebp+204h+var_21C], eax .text:1018B0CA test eax, eax .text:1018B0CC jnz short loc_1018B0E9 .text:1018B0CE push 10Ah .text:1018B0D3 push offset aSrcNminimapwnd ; ".\Src\NMinimapWnd.cpp" .text:1018B0D8 push offset aPzonenameinfo ; "pZoneNameInfo" .text:1018B0DD call ds:?appFailAssert@@YAXPBD0H@Z ; appFailAssert(char const *,char const *,int) .text:1018B0E3 add esp, 0Ch .text:1018B0E6 mov eax, [ebp+204h+var_21C] .text:1018B0E9 .text:1018B0E9 loc_1018B0E9: ; CODE XREF: sub_1018B050+7C↑j .text:1018B0E9 push offset szReferrer .text:1018B0EE lea ecx, [eax+40h] .text:1018B0F1 call ds:??9FString@@QBEHPBG@Z ; FString::operator!=(ushort const *) .text:1018B0F7 test eax, eax .text:1018B0F9 jz short loc_1018B149 .text:1018B0FB push 4 .text:1018B0FD call sub_10004ED0 .text:1018B102 add esp, 4 .text:1018B105 mov [ebp+204h+var_21C], eax .text:1018B108 mov [ebp+204h+var_224], eax .text:1018B10B test eax, eax .text:1018B10D jnz short loc_1018B12A .text:1018B10F push 10Fh .text:1018B114 push offset aSrcNminimapwnd ; ".\Src\NMinimapWnd.cpp" .text:1018B119 push offset aPtownmapinfo ; "pTownMapInfo" .text:1018B11E call ds:?appFailAssert@@YAXPBD0H@Z ; appFailAssert(char const *,char const *,int) .text:1018B124 add esp, 0Ch .text:1018B127 mov eax, [ebp+204h+var_21C] .text:1018B12A .text:1018B12A loc_1018B12A: ; CODE XREF: sub_1018B050+BD↑j .text:1018B12A mov dword ptr [eax], 0 .text:1018B130 lea edx, [ebp+204h+var_224] .text:1018B133 push edx .text:1018B134 mov eax, [ebp+204h+var_230] .text:1018B137 mov ecx, [eax] .text:1018B139 lea edx, [esi+ecx+4] .text:1018B13D push edx .text:1018B13E lea ecx, [edi+208h] .text:1018B144 call sub_10087320 .text:1018B149 .text:1018B149 loc_1018B149: ; CODE XREF: sub_1018B050+A9↑j .text:1018B149 add ebx, 1 .text:1018B14C mov [ebp+204h+var_22C], ebx .text:1018B14F mov eax, [ebp+204h+var_230] .text:1018B152 jmp loc_1018B0B1 .text:1018B152 ; } // starts at 1018B0AD .text:1018B157 ; --------------------------------------------------------------------------- .text:1018B157 .text:1018B157 loc_1018B157: ; CODE XREF: sub_1018B050+64↑j .text:1018B157 ; try { .text:1018B157 mov byte ptr [ebp+204h+var_208], 0 .text:1018B15B lea ecx, [ebp+204h+var_234] .text:1018B15E call sub_100D10A0 .text:1018B163 lea ecx, [ebp+204h+var_25C] ; void * .text:1018B166 call ds:??0FString@@QAE@XZ ; FString::FString(void) .text:1018B166 ; } // starts at 1018B157 .text:1018B16C ; try { .text:1018B16C mov byte ptr [ebp+204h+var_208], 2 .text:1018B170 lea ecx, [ebp+204h+var_268] ; void * .text:1018B173 call ds:??0FString@@QAE@XZ ; FString::FString(void) .text:1018B173 ; } // starts at 1018B16C .text:1018B179 ; try { .text:1018B179 mov byte ptr [ebp+204h+var_208], 3 .text:1018B17D mov eax, ds:?GCountryName@@3PAGA ; ushort * GCountryName .text:1018B182 push eax .text:1018B183 push offset aSTownmap ; "%s_TownMap" .text:1018B188 lea ecx, [ebp+204h+var_204] .text:1018B18B push ecx .text:1018B18C call ds:?appSprintf@@YAHPAGPBGZZ ; appSprintf(ushort *,ushort const 4] .text:1018B1F6 mov ecx, [eax+4] .text:1018B1F9 mov [ebp+204h+var_21C], ecx .text:1018B1FC mov eax, [eax+8] .text:1018B1FF mov [ebp+204h+var_224], eax .text:1018B202 test eax, eax .text:1018B204 jz loc_1018B3AE .text:1018B20A lea edx, [ebp+204h+var_21C] .text:1018B20D push edx .text:1018B20E mov eax, ds:?GL2GameData@@3VFL2GameData@@A ; FL2GameData GL2GameData .text:1018B213 mov ecx, [eax+7F9CCh] .text:1018B219 call sub_10187A60 .text:1018B21E mov ebx, eax .text:1018B220 test ebx, ebx .text:1018B222 jz loc_1018B3AE .text:1018B228 cmp dword ptr [ebx+24h], 0FFFFFFFFh .text:1018B22C jz loc_1018B33E .text:1018B232 push 0 .text:1018B234 push ecx .text:1018B235 mov ecx, esp .text:1018B237 mov [ebp+204h+var_26C], esp .text:1018B23A push 0 .text:1018B23C call ds:??0FName@@QAE@W4EName@@@Z ; FName::FName(EName) .text:1018B242 call ds:?GetTransientPackage@UObject@@SAPAVUPackage@@XZ ; UObject::GetTransientPackage(void) .text:1018B248 push eax .text:1018B249 push 33Ch .text:1018B24E call sub_1000A130 .text:1018B253 add esp, 10h .text:1018B256 mov esi, eax .text:1018B258 test esi, esi .text:1018B25A jz short loc_1018B2A4 .text:1018B25C push offset aL2uiCh3Minimap ; "L2UI_CH3.Minimap.MapButton_ZoomIn2" .text:1018B261 lea ecx, [ebp+204h+var_288] .text:1018B267 call ds:??0FString@@QAE@PBG@Z ; FString::FString(ushort const *) .text:1018B267 ; } // starts at 1018B1E1 .text:1018B26D ; try { .text:1018B26D mov byte ptr [ebp+204h+var_208], 5 .text:1018B271 or [ebp+204h+var_218], 1 .text:1018B275 push offset aL2uiCh3Minimap_0 ; "L2UI_CH3.Minimap.MapButton_ZoomIn1" .text:1018B27A lea ecx, [ebp+204h+var_278] .text:1018B27D call ds:??0FString@@QAE@PBG@Z ; FString::FString(ushort const *) .text:1018B27D ; } // starts at 1018B26D .text:1018B283 ; try { .text:1018B283 mov [ebp+204h+var_208], 6 .text:1018B28A or [ebp+204h+var_218], 2 .text:1018B28E push 0 .text:1018B290 lea ecx, [ebp+204h+var_288] .text:1018B296 push ecx .text:1018B297 lea edx, [ebp+204h+var_278] .text:1018B29A push edx .text:1018B29B mov ecx, esi .text:1018B29D call sub_10006980 .text:1018B2A2 jmp short loc_1018B2A6 .text:1018B2A4 ; --------------------------------------------------------------------------- .text:1018B2A4 .text:1018B2A4 loc_1018B2A4: ; CODE XREF: sub_1018B050+20A↑j .text:1018B2A4 xor eax, eax .text:1018B2A6 .text:1018B2A6 loc_1018B2A6: ; CODE XREF: sub_1018B050+252↑j .text:1018B2A6 mov esi, eax .text:1018B2A8 mov [ebp+204h+var_23C], esi .text:1018B2A8 ; } // starts at 1018B283 .text:1018B2AB ; try { .text:1018B2AB mov [ebp+204h+var_208], 5 .text:1018B2B2 test byte ptr [ebp+204h+var_218], 2 .text:1018B2B6 jz short loc_1018B2C5 .text:1018B2B8 and [ebp+204h+var_218], 0FFFFFFFDh .text:1018B2BC lea ecx, [ebp+204h+var_278] ; void * .text:1018B2BF call ds:??1FString@@QAE@XZ ; FString::~FString(void) .text:1018B2BF ; } // starts at 1018B2AB .text:1018B2C5 .text:1018B2C5 loc_1018B2C5: ; CODE XREF: sub_1018B050+266↑j .text:1018B2C5 ; try { .text:1018B2C5 mov [ebp+204h+var_208], 4 .text:1018B2CC test byte ptr [ebp+204h+var_218], 1 .text:1018B2D0 jz short loc_1018B2E2 .text:1018B2D2 and [ebp+204h+var_218], 0FFFFFFFEh .text:1018B2D6 lea ecx, [ebp+204h+var_288] ; void * .text:1018B2DC call ds:??1FString@@QAE@XZ ; FString::~FString(void) .text:1018B2E2 .text:1018B2E2 loc_1018B2E2: ; CODE XREF: sub_1018B050+280↑j .text:1018B2E2 mov eax, [ebp+204h+var_220] .text:1018B2E5 add eax, 0B01000h .text:1018B2EA mov [esi+1CCh], eax .text:1018B2F0 push 100002h .text:1018B2F5 push esi .text:1018B2F6 mov ecx, edi .text:1018B2F8 call sub_10060D40 .text:1018B2FD push eax .text:1018B2FE mov ecx, esi .text:1018B300 call sub_1005C1E0 .text:1018B305 mov edx, [esi] .text:1018B307 push 3 .text:1018B309 push 0 .text:1018B30B push 0 .text:1018B30D push 1Ah .text:1018B30F push 1Ah .text:1018B311 mov eax, [ebx+28h] .text:1018B314 sub eax, [edi+260h] .text:1018B31A push eax .text:1018B31B mov ecx, [ebx+24h] .text:1018B31E sub ecx, [edi+25Ch] .text:1018B324 push ecx .text:1018B325 mov ecx, esi .text:1018B327 mov edx, [edx+0C0h] .text:1018B32D call edx .text:1018B32F lea eax, [ebp+204h+var_23C] .text:1018B332 push eax .text:1018B333 lea ecx, [edi+1E4h] .text:1018B339 call sub_100D9A30 .text:1018B33E .text:1018B33E loc_1018B33E: ; CODE XREF: sub_1018B050+1DC↑j .text:1018B33E lea esi, [ebx+40h] .text:1018B341 push offset szReferrer .text:1018B346 mov ecx, esi .text:1018B348 call ds:??9FString@@QBEHPBG@Z ; FString::operator!=(ushort const (void) .text:1018B370 push eax .text:1018B371 push offset aSS ; "%s.%s" .text:1018B376 lea edx, [ebp+204h+var_230] .text:1018B379 push edx .text:1018B37A call ds:?Printf@FString@@SA?AV1@PBGZZ ; FString::Printf(ushort const (void) .text:1018B391 push eax .text:1018B392 mov ecx, edi .text:1018B394 call sub_1003F630 .text:1018B399 mov ecx, [ebp+204h+var_224] .text:1018B39C mov [ecx], eax .text:1018B39C ; } // starts at 1018B383 .text:1018B39E ; try { .text:1018B39E mov byte ptr [ebp+204h+var_208], 4 .text:1018B3A2 lea ecx, [ebp+204h+var_230] ; void * .text:1018B3A5 call ds:??1FString@@QAE@XZ ; FString::~FString(void) .text:1018B3AB .text:1018B3AB loc_1018B3AB: ; CODE XREF: sub_1018B050+300↑j .text:1018B3AB mov esi, [ebp+204h+var_244] .text:1018B3AE .text:1018B3AE loc_1018B3AE: ; CODE XREF: sub_1018B050+1B4↑j .text:1018B3AE ; sub_1018B050+1D2↑j .text:1018B3AE add esi, 1 .text:1018B3B1 mov [ebp+204h+var_244], esi .text:1018B3B4 add [ebp+204h+var_220], 1 .text:1018B3B8 mov eax, [ebp+204h+var_248] .text:1018B3BB jmp loc_1018B1E5 .text:1018B3BB ; } // starts at 1018B39E .text:1018B3C0 ; --------------------------------------------------------------------------- .text:1018B3C0 .text:1018B3C0 loc_1018B3C0: ; CODE XREF: sub_1018B050+198↑j .text:1018B3C0 ; try { .text:1018B3C0 mov byte ptr [ebp+204h+var_208], 3 .text:1018B3C4 lea ecx, [ebp+204h+var_24C] .text:1018B3C7 call sub_100D10A0 .text:1018B3CC mov edx, ds:?GCountryName@@3PAGA ; ushort * GCountryName .text:1018B3D2 push edx .text:1018B3D3 push offset aSMinimap ; "%s_minimap" .text:1018B3D8 lea eax, [ebp+204h+var_204] .text:1018B3DB push eax .text:1018B3DC call ds:?appSprintf@@YAHPAGPBGZZ ; appSprintf(ushort *,ushort const 4+1CCh], eax .text:1018B459 ; } // starts at 1018B443 .text:1018B460 ; try { .text:1018B460 mov byte ptr [ebp+204h+var_208], 3 .text:1018B464 lea ecx, [ebp+204h+var_230] ; void * .text:1018B467 call ds:??1FString@@QAE@XZ ; FString::~FString(void) .text:1018B46D mov esi, ebx .text:1018B46F jmp short loc_1018B41B .text:1018B46F ; } // starts at 1018B460 .text:1018B471 ; --------------------------------------------------------------------------- .text:1018B471 .text:1018B471 loc_1018B471: ; CODE XREF: sub_1018B050+3D1↑j .text:1018B471 ; try { .text:1018B471 mov byte ptr [ebp+204h+var_208], 2 .text:1018B475 lea ecx, [ebp+204h+var_268] ; void * .text:1018B478 call ds:??1FString@@QAE@XZ ; FString::~FString(void) .text:1018B478 ; } // starts at 1018B471 .text:1018B47E ; try { .text:1018B47E mov byte ptr [ebp+204h+var_208], 0 .text:1018B482 lea ecx, [ebp+204h+var_25C] ; void * .text:1018B485 call ds:??1FString@@QAE@XZ ; FString::~FString(void) .text:1018B485 ; } // starts at 1018B47E .text:1018B48B mov [ebp+204h+var_208], 0FFFFFFFFh .text:1018B492 mov ecx, [ebp+204h+var_210] .text:1018B495 mov large fs:0, ecx .text:1018B49C pop ecx .text:1018B49D pop edi .text:1018B49E pop esi .text:1018B49F pop ebx .text:1018B4A0 mov ecx, [ebp+204h+var_4] .text:1018B4A6 xor ecx, ebp .text:1018B4A8 call sub_101C16C2 .text:1018B4AD add ebp, 204h .text:1018B4B3 mov esp, ebp .text:1018B4B5 pop ebp .text:1018B4B6 retn .text:1018B4B7 ; --------------------------------------------------------------------------- .text:1018B4B7 .text:1018B4B7 loc_1018B4B7: ; DATA XREF: .rdata:stru_10316884↓o .text:1018B4B7 ; catch(ushort *) // owned by 1018B093 .text:1018B4B7 ; catch(ushort *) // owned by 1018B0AD .text:1018B4B7 ; catch(ushort *) // owned by 1018B157 .text:1018B4B7 ; catch(ushort *) // owned by 1018B16C .text:1018B4B7 ; catch(ushort *) // owned by 1018B179 .text:1018B4B7 ; catch(ushort *) // owned by 1018B1E1 .text:1018B4B7 ; catch(ushort *) // owned by 1018B26D .text:1018B4B7 ; catch(ushort *) // owned by 1018B283 .text:1018B4B7 ; catch(ushort *) // owned by 1018B2AB .text:1018B4B7 ; catch(ushort *) // owned by 1018B2C5 .text:1018B4B7 ; catch(ushort *) // owned by 1018B383 .text:1018B4B7 ; catch(ushort *) // owned by 1018B39E .text:1018B4B7 ; catch(ushort *) // owned by 1018B3C0 .text:1018B4B7 ; catch(ushort *) // owned by 1018B443 .text:1018B4B7 ; catch(ushort *) // owned by 1018B460 .text:1018B4B7 ; catch(ushort *) // owned by 1018B471 .text:1018B4B7 ; catch(ushort *) // owned by 1018B47E .text:1018B4B7 mov ecx, [ebp+204h+var_27C] .text:1018B4BA mov [ebp+204h+pExceptionObject], ecx .text:1018B4BD push offset __TI2PAG ; pThrowInfo .text:1018B4C2 lea edx, [ebp+204h+pExceptionObject] .text:1018B4C5 push edx ; pExceptionObject .text:1018B4C6 call __CxxThrowException@8 ; _CxxThrowException(x,x) .text:1018B4CB ; --------------------------------------------------------------------------- .text:1018B4CB .text:1018B4CB loc_1018B4CB: ; DATA XREF: .rdata:10316894↓o .text:1018B4CB ; catch(...) // owned by 1018B093 .text:1018B4CB ; catch(...) // owned by 1018B0AD .text:1018B4CB ; catch(...) // owned by 1018B157 .text:1018B4CB ; catch(...) // owned by 1018B16C .text:1018B4CB ; catch(...) // owned by 1018B179 .text:1018B4CB ; catch(...) // owned by 1018B1E1 .text:1018B4CB ; catch(...) // owned by 1018B26D .text:1018B4CB ; catch(...) // owned by 1018B283 .text:1018B4CB ; catch(...) // owned by 1018B2AB .text:1018B4CB ; catch(...) // owned by 1018B2C5 .text:1018B4CB ; catch(...) // owned by 1018B383 .text:1018B4CB ; catch(...) // owned by 1018B39E .text:1018B4CB ; catch(...) // owned by 1018B3C0 .text:1018B4CB ; catch(...) // owned by 1018B443 .text:1018B4CB ; catch(...) // owned by 1018B460 .text:1018B4CB ; catch(...) // owned by 1018B471 .text:1018B4CB ; catch(...) // owned by 1018B47E .text:1018B4CB push offset aNcminimapwndIn_1 ; "NCMinimapWnd::InitializeMapDisplay" .text:1018B4D0 push offset aS ; "%s" .text:1018B4D5 call ds:?appUnwindf@@YAXPBGZZ ; appUnwindf(ushort const (void) .text:1018B8C4 push eax .text:1018B8C5 lea eax, [ebp+var_20] .text:1018B8C8 push eax .text:1018B8C9 call sub_10020BB0 .text:1018B8CE add esp, 20h .text:1018B8D1 mov eax, [ebp+var_20] .text:1018B8D4 cmp [ebp+arg_0], eax .text:1018B8D7 jge short loc_1018B8DC .text:1018B8D9 mov [ebp+arg_0], eax .text:1018B8DC .text:1018B8DC loc_1018B8DC: ; CODE XREF: sub_1018B5D0+307↑j .text:1018B8DC fild [ebp+arg_0] .text:1018B8DF mov ecx, [esi+2A8h] .text:1018B8E5 fstp dword ptr [ecx+30h] .text:1018B8E8 mov dword ptr [esi+2ACh], 1 .text:1018B8E8 ; } // starts at 1018B8A2 .text:1018B8F2 ; try { .text:1018B8F2 mov byte ptr [ebp+var_4], 0 .text:1018B8F6 lea ecx, [ebp+var_68] .text:1018B8F9 call sub_10187540 .text:1018B8FE mov ebx, [ebp+var_14] .text:1018B901 .text:1018B901 loc_1018B901: ; CODE XREF: sub_1018B5D0+218↑j .text:1018B901 mov edi, [ebp+arg_4] .text:1018B904 .text:1018B904 loc_1018B904: ; CODE XREF: sub_1018B5D0+1FD↑j .text:1018B904 cmp dword ptr [esi+244h], 0 .text:1018B90B jz loc_1018BA0E .text:1018B911 mov edx, dword_103663BC .text:1018B917 mov eax, [edx+5110h] .text:1018B91D mov ecx, [eax+64h] .text:1018B920 mov [ebp+var_34], ecx .text:1018B923 mov edx, [eax+68h] .text:1018B926 mov [ebp+var_30], edx .text:1018B929 mov eax, [eax+6Ch] .text:1018B92C mov [ebp+var_2C], eax .text:1018B92F fld [ebp+var_34] .text:1018B932 call __ftol2_sse .text:1018B937 mov edi, eax .text:1018B939 mov [ebp+var_40], edi .text:1018B93C fld [ebp+var_30] .text:1018B93F call __ftol2_sse .text:1018B944 mov ebx, eax .text:1018B946 mov [ebp+var_3C], ebx .text:1018B949 fld [ebp+var_2C] .text:1018B94C call __ftol2_sse .text:1018B951 mov [ebp+var_38], eax .text:1018B954 mov ecx, [esi+250h] .text:1018B95A push ecx .text:1018B95B lea edx, [ebp+var_18] .text:1018B95E push edx .text:1018B95F lea eax, [ebp+arg_0] .text:1018B962 push eax .text:1018B963 push ebx .text:1018B964 push edi .text:1018B965 mov ecx, esi .text:1018B967 call sub_10188400 .text:1018B96C mov edi, [ebp+arg_0] .text:1018B96F sub edi, [esi+25Ch] .text:1018B975 mov [ebp+arg_0], edi .text:1018B978 mov ebx, [ebp+var_18] .text:1018B97B sub ebx, [esi+260h] .text:1018B981 mov [ebp+var_18], ebx .text:1018B984 cmp edi, 5 .text:1018B987 jl short loc_1018B9FE .text:1018B989 fld dword ptr [esi+88h] .text:1018B98F call __ftol2_sse .text:1018B994 sub eax, 5 .text:1018B997 cmp edi, eax .text:1018B999 jg short loc_1018B9FE .text:1018B99B cmp ebx, 5 .text:1018B99E jl short loc_1018B9FE .text:1018B9A0 fld dword ptr [esi+8Ch] .text:1018B9A6 call __ftol2_sse .text:1018B9AB sub eax, 5 .text:1018B9AE cmp ebx, eax .text:1018B9B0 jge short loc_1018B9FE .text:1018B9B2 mov eax, [ebp+var_14] .text:1018B9B5 cmp edi, eax .text:1018B9B7 jg short loc_1018B9FE .text:1018B9B9 add edi, 14h .text:1018B9BC cmp eax, edi .text:1018B9BE jg short loc_1018B9FE .text:1018B9C0 lea ecx, [ebx-14h] .text:1018B9C3 mov eax, [ebp+arg_4] .text:1018B9C6 cmp ecx, eax .text:1018B9C8 jg short loc_1018B9FE .text:1018B9CA cmp eax, ebx .text:1018B9CC jg short loc_1018B9FE .text:1018B9CE mov dword ptr [esi+24Ch], 1 .text:1018B9D8 jmp short loc_1018BA08 .text:1018B9DA ; --------------------------------------------------------------------------- .text:1018B9DA .text:1018B9DA loc_1018B9DA: ; CODE XREF: sub_1018B5D0+268↑j .text:1018B9DA mov ebx, [ebp+var_14] .text:1018B9DD .text:1018B9DD loc_1018B9DD: ; CODE XREF: sub_1018B5D0+247↑j .text:1018B9DD ; sub_1018B5D0+252↑j ... .text:1018B9DD mov dword ptr [esi+2ACh], 0 .text:1018B9DD ; } // starts at 1018B8F2 .text:1018B9E7 ; try { .text:1018B9E7 mov byte ptr [ebp+var_4], 0 .text:1018B9EB lea ecx, [ebp+var_68] .text:1018B9EE call sub_10187540 .text:1018B9F3 add edi, 1 .text:1018B9F6 mov eax, [ebp+var_20] .text:1018B9F9 jmp loc_1018B7E5 .text:1018B9FE ; --------------------------------------------------------------------------- .text:1018B9FE .text:1018B9FE loc_1018B9FE: ; CODE XREF: sub_1018B5D0+3B7↑j .text:1018B9FE ; sub_1018B5D0+3C9↑j ... .text:1018B9FE mov dword ptr [esi+24Ch], 0 .text:1018BA08 .text:1018BA08 loc_1018BA08: ; CODE XREF: sub_1018B5D0+408↑j .text:1018BA08 mov edi, [ebp+arg_4] .text:1018BA0B mov ebx, [ebp+var_14] .text:1018BA0E .text:1018BA0E loc_1018BA0E: ; CODE XREF: sub_1018B5D0+33B↑j .text:1018BA0E mov [esi+26Ch], ebx .text:1018BA14 mov [esi+270h], edi .text:1018BA1A mov eax, 1 .text:1018BA1F wait .text:1018BA20 mov ecx, [ebp+var_C] .text:1018BA23 mov large fs:0, ecx .text:1018BA2A pop ecx .text:1018BA2B pop edi .text:1018BA2C pop esi .text:1018BA2D pop ebx .text:1018BA2E mov esp, ebp .text:1018BA30 pop ebp .text:1018BA31 retn 8 .text:1018BA34 ; --------------------------------------------------------------------------- .text:1018BA34 .text:1018BA34 loc_1018BA34: ; DATA XREF: .rdata:stru_10316994↓o .text:1018BA34 ; catch(ushort *) // owned by 1018B5FD .text:1018BA34 ; catch(ushort *) // owned by 1018B7FF .text:1018BA34 ; catch(ushort *) // owned by 1018B87D .text:1018BA34 ; catch(ushort *) // owned by 1018B8A2 .text:1018BA34 ; catch(ushort *) // owned by 1018B8F2 .text:1018BA34 ; catch(ushort *) // owned by 1018B9E7 .text:1018BA34 mov edx, [ebp+var_28] .text:1018BA37 mov [ebp+pExceptionObject], edx .text:1018BA3A push offset __TI2PAG ; pThrowInfo .text:1018BA3F lea eax, [ebp+pExceptionObject] .text:1018BA42 push eax ; pExceptionObject .text:1018BA43 call __CxxThrowException@8 ; _CxxThrowException(x,x) .text:1018BA48 ; --------------------------------------------------------------------------- .text:1018BA48 .text:1018BA48 loc_1018BA48: ; DATA XREF: .rdata:103169A4↓o .text:1018BA48 ; catch(...) // owned by 1018B5FD .text:1018BA48 ; catch(...) // owned by 1018B7FF .text:1018BA48 ; catch(...) // owned by 1018B87D .text:1018BA48 ; catch(...) // owned by 1018B8A2 .text:1018BA48 ; catch(...) // owned by 1018B8F2 .text:1018BA48 ; catch(...) // owned by 1018B9E7 .text:1018BA48 push offset aNcminimapwndOn_4 ; "NCMinimapWnd::OnMouseMove" .text:1018BA4D push offset aS ; "%s" .text:1018BA52 call ds:?appUnwindf@@YAXPBGZZ ; appUnwindf(ushort const *,...) .text:1018BA58 add esp, 8 .text:1018BA5B push 0 ; pThrowInfo .text:1018BA5D push 0 ; pExceptionObject .text:1018BA5F call __CxxThrowException@8 ; _CxxThrowException(x,x) .text:1018BA5F ; } // starts at 1018B9E7 .text:1018BA5F ; } // starts at 1018B5D0 .text:1018BA5F sub_1018B5D0 endp .text:1018BA5F .text:1018BA5F ; --------------------------------------------------------------------------- .text:1018BA64 align 10h .text:1018BA70 .text:1018BA70 ; =============== S U B R O U T I N E ======================================= .text:1018BA70 .text:1018BA70 .text:1018BA70 ; int sub_1018BA70() .text:1018BA70 sub_1018BA70 proc near ; CODE XREF: sub_1018BCC0+8940E↓j .text:1018BA70 ; sub_1018BE40+8931B↓j .text:1018BA70 .text:1018BA70 var_10 = dword ptr -10h .text:1018BA70 var_C = dword ptr -0Ch .text:1018BA70 var_4 = dword ptr -4 .text:1018BA70 arg_4 = dword ptr 8 .text:1018BA70 .text:1018BA70 ; FUNCTION CHUNK AT .text:10214FE0 SIZE 00000023 BYTES .text:1018BA70 .text:1018BA70 ; __unwind { // SEH_1018BA70 .text:1018BA70 push 0FFFFFFFFh .text:1018BA72 push offset SEH_1018BA70 .text:1018BA77 mov eax, large fs:0 .text:1018BA7D push eax .text:1018BA7E push ecx .text:1018BA7F mov eax, dword_103554C4 .text:1018BA84 xor eax, esp .text:1018BA86 push eax .text:1018BA87 lea eax, [esp+14h+var_C] .text:1018BA8B mov large fs:0, eax .text:1018BA91 mov [esp+14h+var_10], ecx .text:1018BA95 mov [esp+14h+var_4], 0FFFFFFFFh .text:1018BA9D call sub_1018AD60 .text:1018BAA2 mov ecx, [esp+14h+var_C] .text:1018BAA6 mov large fs:0, ecx .text:1018BAAD pop ecx .text:1018BAAE add esp, 10h .text:1018BAB1 retn .text:1018BAB1 ; } // starts at 1018BA70 .text:1018BAB1 sub_1018BA70 endp .text:1018BAB1 .text:1018BAB1 ; --------------------------------------------------------------------------- .text:1018BAB2 align 10h .text:1018BAC0 .text:1018BAC0 ; =============== S U B R O U T I N E ======================================= .text:1018BAC0 .text:1018BAC0 .text:1018BAC0 ; int __thiscall sub_1018BAC0(_DWORD *this) .text:1018BAC0 sub_1018BAC0 proc near ; DATA XREF: .rdata:1028EAEC↓o .text:1018BAC0 .text:1018BAC0 var_30 = dword ptr -30h .text:1018BAC0 var_2C = dword ptr -2Ch .text:1018BAC0 var_28 = dword ptr -28h .text:1018BAC0 var_24 = byte ptr -24h .text:1018BAC0 var_18 = dword ptr -18h .text:1018BAC0 var_C = dword ptr -0Ch .text:1018BAC0 var_4 = dword ptr -4 .text:1018BAC0 arg_4 = dword ptr 8 .text:1018BAC0 .text:1018BAC0 ; FUNCTION CHUNK AT .text:10215010 SIZE 0000005A BYTES .text:1018BAC0 .text:1018BAC0 ; __unwind { // SEH_1018BAC0 .text:1018BAC0 push 0FFFFFFFFh .text:1018BAC2 push offset SEH_1018BAC0 .text:1018BAC7 mov eax, large fs:0 .text:1018BACD push eax .text:1018BACE sub esp, 24h .text:1018BAD1 push ebx .text:1018BAD2 push ebp .text:1018BAD3 push esi .text:1018BAD4 push edi .text:1018BAD5 mov eax, dword_103554C4 .text:1018BADA xor eax, esp .text:1018BADC push eax .text:1018BADD lea eax, [esp+44h+var_C] .text:1018BAE1 mov large fs:0, eax .text:1018BAE7 mov edi, ecx .text:1018BAE9 xor ebx, ebx .text:1018BAEB mov [esp+44h+var_30], ebx .text:1018BAEF call sub_10061B40 .text:1018BAF4 push 1 .text:1018BAF6 push offset aL2uiMinimapwnd ; "L2UI.MinimapWnd.MinimapPos" .text:1018BAFB mov ecx, edi .text:1018BAFD call sub_1003F630 .text:1018BB02 push 1 .text:1018BB04 push offset aL2uiMinimapwnd_0 ; "L2UI.MinimapWnd.TargetPos" .text:1018BB09 mov ecx, edi .text:1018BB0B mov [edi+234h], eax .text:1018BB11 call sub_1003F630 .text:1018BB16 push 1 .text:1018BB18 push offset aL2uiCh3Minimap_1 ; "L2UI_CH3.Minimap.MapIcon_Mark" .text:1018BB1D mov ecx, edi .text:1018BB1F mov [edi+238h], eax .text:1018BB25 call sub_1003F630 .text:1018BB2A mov [edi+23Ch], eax .text:1018BB30 mov [edi+2ACh], ebx .text:1018BB36 mov eax, ds:?GMalloc@@3PAVFMalloc@@A ; FMalloc * GMalloc .text:1018BB3B mov ecx, [eax] .text:1018BB3D mov edx, [ecx] .text:1018BB3F mov eax, [edx] .text:1018BB41 push offset aNew ; "new" .text:1018BB46 push 60h ; 'vftable' .text:1018BD02 mov [esp+20h+var_10], ecx .text:1018BD06 call ds:??0FArray@@QAE@XZ ; FArray::FArray(void) .text:1018BD0C mov byte ptr [esp+20h+var_4], 2 .text:1018BD11 lea ecx, [esi+1F0h] .text:1018BD17 mov [esp+20h+var_10], ecx .text:1018BD1B call ds:??0FArray@@QAE@XZ ; FArray::FArray(void) .text:1018BD21 mov byte ptr [esp+20h+var_4], 4 .text:1018BD26 lea ecx, [esi+1FCh] .text:1018BD2C mov [esp+20h+var_10], ecx .text:1018BD30 call ds:??0FArray@@QAE@XZ ; FArray::FArray(void) .text:1018BD36 mov byte ptr [esp+20h+var_4], 6 .text:1018BD3B lea ecx, [esi+208h] .text:1018BD41 mov [esp+20h+var_10], ecx .text:1018BD45 call sub_1018ACF0 .text:1018BD4A mov byte ptr [esp+20h+var_4], 8 .text:1018BD4F lea ecx, [esi+21Ch] .text:1018BD55 mov [esp+20h+var_10], ecx .text:1018BD59 call ds:??0FArray@@QAE@XZ ; FArray::FArray(void) .text:1018BD5F mov byte ptr [esp+20h+var_4], 0Ah .text:1018BD64 fldz .text:1018BD66 mov [esi+234h], edi .text:1018BD6C fst dword ptr [esi+2A0h] .text:1018BD72 lea ecx, [esi+2B0h] .text:1018BD78 fstp dword ptr [esi+2A4h] .text:1018BD7E mov [esi+29Ch], edi .text:1018BD84 mov [esi+298h], edi .text:1018BD8A mov [esp+20h+var_10], ecx .text:1018BD8E call ds:??0FArray@@QAE@XZ ; FArray::FArray(void) .text:1018BD94 mov byte ptr [esp+20h+var_4], 0Ch .text:1018BD99 mov al, [esp+20h+arg_0] .text:1018BD9D mov cl, byte ptr [esp+20h+arg_4] .text:1018BDA1 mov dl, [esp+20h+arg_8] .text:1018BDA5 mov [esi+228h], al .text:1018BDAB mov al, [esp+20h+arg_C] .text:1018BDAF mov [esi+229h], cl .text:1018BDB5 mov cl, [esp+20h+arg_10] .text:1018BDB9 mov [esi+22Ah], dl .text:1018BDBF mov dl, [esp+20h+arg_14] .text:1018BDC3 mov [esi+254h], edi .text:1018BDC9 mov [esi+258h], edi .text:1018BDCF mov [esi+25Ch], edi .text:1018BDD5 mov [esi+260h], edi .text:1018BDDB mov [esi+264h], edi .text:1018BDE1 mov [esi+268h], edi .text:1018BDE7 mov [esi+250h], edi .text:1018BDED mov [esi+244h], edi .text:1018BDF3 mov [esi+248h], edi .text:1018BDF9 mov [esi+24Ch], edi .text:1018BDFF mov [esi+22Bh], al .text:1018BE05 mov [esi+22Ch], cl .text:1018BE0B mov [esi+22Dh], dl .text:1018BE11 mov [esi+294h], edi .text:1018BE17 mov [esp+20h+var_4], 0FFFFFFFFh .text:1018BE1F mov eax, esi .text:1018BE21 mov ecx, [esp+20h+var_C] .text:1018BE25 mov large fs:0, ecx .text:1018BE2C pop ecx .text:1018BE2D pop edi .text:1018BE2E pop esi .text:1018BE2F add esp, 14h .text:1018BE32 retn 18h .text:1018BE32 ; } // starts at 1018BCC0 .text:1018BE32 sub_1018BCC0 endp .text:1018BE32 .text:1018BE32 ; --------------------------------------------------------------------------- .text:1018BE35 align 10h
- Assistant
Based on the pseudocode provided, it doesn't appear to directly implement or hint at a mechanism for limiting the number of elements, such as UI components or buttons within the game. The provided pseudocode mainly illustrates function prologues, basic setup, initialization routines, calls to other functions, and handling of exception blocks for error handling using structured exception handling (SEH) in Windows. Specific segments address UI elements, like initializing map displays and setting up related parameters, but a hard limit or control over the number of elements, such as buttons with specific textures like "L2UI_CH3.Minimap.MapButton_ZoomIn2", is not evident from the given fragments.
To find a limitation on the number of UI elements or similar game assets directly within the game's code, you would typically look for loops initializing or adding these elements with a bounded condition, arrays or lists with a fixed capacity being filled up to their limits, or explicit checks that prevent the addition of new elements after a certain count is reached. This could involve analyzing loops, conditionals, and data structures involved in the UI's management and drawing routines. If such mechanisms are dynamically defined or loaded from outside configurations, you might also need to inspect external files like XML/JSON configurations or database entries that the game consults during initialization or runtime.