Расскажи что делает эта функция: .text:103FE880 ; void __thiscall…
- User
Расскажи что делает эта функция: .text:103FE880 ; void __thiscall UNetworkHandler::RequestRestart(UNetworkHandler *__hidden this, struct L2ParamStack *) .text:103FE880 ?RequestRestart@UNetworkHandler@@UAEXAAVL2ParamStack@@@Z_0 proc near .text:103FE880 ; CODE XREF: UNetworkHandler::RequestRestart(L2ParamStack &)↑j .text:103FE880 mov eax, [ecx+48h] .text:103FE883 mov ecx, [eax] .text:103FE885 mov edx, [ecx+64h] .text:103FE888 push 46h ; 'F' .text:103FE88A push offset aC_0 ; "c" .text:103FE88F push eax .text:103FE890 call edx .text:103FE892 mov eax, ds:?GNetworkLog@@3PAVFOutputDevice@@A ; FOutputDevice * GNetworkLog .text:103FE897 mov ecx, [eax] .text:103FE899 push offset aSendRequestres ; "(Send)RequestRestart" .text:103FE89E push ecx .text:103FE89F call ds:?Logf@FOutputDevice@@QAAXPBGZZ ; FOutputDevice::Logf(ushort const *,...) .text:103FE8A5 add esp, 14h .text:103FE8A8 retn 4 .text:103FE8A8 ?RequestRestart@UNetworkHandler@@UAEXAAVL2ParamStack@@@Z_0 endp
- Assistant
- User
Расскажи, что делает эта фунция: // write access to const memory has been detected, the output may be wrong! void __thiscall UGameEngine::OnRestartResponse(UGameEngine *this, struct L2ParamStack *a2) { void *v3; // eax int v4; // edi int v5; // ecx int v6; // eax int v7; // edi int v8; // eax int v9; // eax UL2NEnvManager *v10; // ecx char v11[16]; // [esp+14h] [ebp-1Ch] BYREF int v12; // [esp+2Ch] [ebp-4h]
L2ParamStack::L2ParamStack((L2ParamStack )v11, 10); v12 = 0; L2ParamStack::operator=(v11, a2); v3 = L2ParamStack::Top((L2ParamStack )v11); v4 = **(_DWORD **)(((_DWORD )this + 8) + 56); if ( v3 ) { ((void (__thiscall ((_DWORD **)this + 13) + 816))(((_DWORD *)this + 13)); v5 = (_DWORD (int (__thiscall ((_DWORD **)this + 11) + 144))( *((_DWORD *)this + 11), *(_DWORD (_DWORD (_DWORD *)(v4 + 60) + 936) + 96)); v7 = v6; if ( v6 ) { v8 = *(_DWORD *)(v6 + 356); if ( v8 ) { if ( (_DWORD *)(v8 + 5192), 0); *(_DWORD (_DWORD (_DWORD *)(v7 + 356) + 5192) + 1032) &= ~4u; *((_DWORD (_DWORD (_DWORD *)(v7 + 356) + 5192)); if ( v9 ) ((_DWORD *)this + 11), 0); dword_10C773F0 = 1; if ( GIsL2Seamless ) { GIsL2Seamless = 0; dword_10C773F4 = 1; GL2ThreadFilter = 0; } v10 = (UL2NEnvManager ((_DWORD *)this + 14); ((_DWORD *)this + 13)); } v12 = -1; L2ParamStack::~L2ParamStack((L2ParamStack *)v11); }
- Assistant
Код на языке C++ представляет собой функцию класса
UGameEngine, которую можно назватьOnRestartResponse. Функция обрабатывает ответ на запрос перезапуска. Давайте разберем, что делает эта функция.Первоначально в функции объявляются переменные:
v3для временного хранения данных,v4иv7для хранения значений, извлеченных из указателей,v11представляет стек параметровL2ParamStackразмером 16 байт,
- User
Расскажи про функцию по псеводокоду из IDA: int __thiscall AActor::IsBlockedBy(AActor *this, const struct AActor *a2) { int v4; // eax unsigned int v5; // eax unsigned int v6; // eax bool v7; // zf
if ( (*((_BYTE )a2 + 116) & 2) != 0 ) return (((_DWORD )this + 190) >> 1) & 1; if ( AActor::IsEncroacher(this) && (((_BYTE )a2 + 116) & 0x40) != 0 || AActor::IsEncroacher(a2) && (((_BYTE *)this + 116) & 0x40) != 0 ) { return 0; } if ( *((_DWORD )a2 + 158) && ((int (__thiscall **)(const struct AActor ))((_DWORD )a2 + 756))(a2) || AActor::IsEncroacher(a2) ) { if ( (((_BYTE )this + 760) & 2) == 0 ) return 0; v7 = ((int (__thiscall **)(AActor ))((_DWORD *)this + 104))(this) == 0; v5 = *((_DWORD )a2 + 190); if ( v7 ) goto LABEL_20; v6 = v5 >> 3; } else if ( AActor::IsBrush(this) || AActor::IsEncroacher(this) ) { if ( (((_BYTE (int (__thiscall **)(const struct AActor (_DWORD *)a2 + 104))(a2) == 0; v5 = *((_DWORD (int (__thiscall **)(AActor (_DWORD (int (__thiscall **)(AActor (_DWORD *)this + 776))(this) ) { v4 = *((_DWORD *)a2 + 190) >> 3; } else { v4 = *((_DWORD (int (__thiscall **)(const struct AActor (_DWORD (int (__thiscall **)(const struct AActor (_DWORD *)a2 + 776))(a2) ) { v5 = *((_DWORD *)this + 190); LABEL_20: v6 = v5 >> 2; goto LABEL_21; } v6 = *((_DWORD *)this + 190) >> 3; } LABEL_21: if ( (v6 & 1) != 0 ) return 0; return 0; }
- Assistant