char __fastcall CWorld::TryPickItem(__int64 CItem, char *a2, _QWORD *a3)
{
__int64 v6; // r12
__int64 v7; // r9
__int64 v8; // r8
char result; // al
__int64 v10; // rax
double *v11; // rbx
double *v12; // rax
__int64 v13; // rdi
char v14; // bl
__int64 v15; // rax
__int64 v16; // r9
__int64 v17; // rdi
char v18; // bl
__int64 v19; // rax
__int64 v20; // r9
__int64 v21; // rax
__int64 v22; // rbx
__int64 v23; // rax
__int64 v24; // rcx
__int64 v25; // rbx
signed __int64 v26; // r11
__int64 v27; // rax
__int64 v28; // rax
__int64 v29; // rax
__int64 v30; // rax
__int64 v31; // rax
__int64 v32; // rax
__int64 v33; // rax
__int64 v34; // rax
__int64 v35; // rax
__int64 v36; // rax
__int64 v37; // rax
__int64 v38; // rax
__int64 v39; // rax
__int64 v40; // rax
__int64 v41; // rax
__int64 v42; // rax
_BYTE v43[24]; // [rsp+58h] [rbp-70h] BYREF
_BYTE v44[88]; // [rsp+70h] [rbp-58h] BYREF
v6 = *((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + (unsigned int)TlsIndex);
v7 = *(int *)(v6 + 32088);
v8 = Current_Tick[v7 + 0x100000];
Current_Tick[v7 + 0x100000] = v8 + 1;
*(_QWORD *)(8 * (v8 + 1000 * v7) + 79427520) = L"bool __cdecl CWorld::TryPickItem(class CItem *,class CCreature )";
if ( !a2 )
{
sub_73446C(&unk_DF218A0, 2LL, "item null at file[%s], line[%d]", ".\world_server.cpp", 3044);
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
if ( !((_QWORD )a2 + 11) )
{
sub_73446C(&unk_DF218A0, 2LL, "item data null at file[%s], line[%d]", ".\world_server.cpp", 3050);
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
if ( !a3 )
{
sub_73446C(&unk_DF218A0, 2LL, "creature null at file[%s], line[%d]", ".\world_server.cpp", 3056);
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
if ( !a3[337] )
{
sub_73446C(&unk_DF218A0, 2LL, "creature data null at file[%s], line[%d]", ".\world_server.cpp", 3062);
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
if ( !((unsigned __int8 (__fastcall **)(char ))((_QWORD )a2 + 608LL))(a2) )
{
sub_73446C(&unk_DF218A0, 2LL, "[%s][%d] item is not a item.", ".\world_server.cpp", 3068);
--Current_Tick[(int *)(v6 + 32088) + 0x100000];
return 0;
}
v10 = *((_QWORD *)a2 + 11);
if ( *(_DWORD *)(v10 + 88) == 20770 || *(_DWORD *)(v10 + 88) == 20771 || *(_DWORD )(v10 + 88) == 20772 )
{
if ( ((unsigned __int8 (__fastcall **)(_QWORD *))(a3 + 360LL))(a3) )
{
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
if ( ((unsigned __int8 (__fastcall **)(_QWORD *))(*a3 + 376LL))(a3)
&& *(_DWORD )(((__int64 (__fastcall **)(_QWORD *))(a3 + 528LL))(a3) + 28) != 1001538 )
{
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
}
if ( !(_BYTE )(((_QWORD )a2 + 11) + 52LL) )
{
--Current_Tick[(int *)(v6 + 32088) + 0x100000];
return 0;
}
v11 = (double )((__int64 (__fastcall **)(_QWORD *, _BYTE *))(*a3 + 240LL))(a3, v43);
v12 = (double )((__int64 (__fastcall **)(char *, _BYTE ))((_QWORD *)a2 + 240LL))(a2, v44);
if ( (*v12 - *v11) * (*v12 - v11) + (v12[1] - v11[1]) * (v12[1] - v11[1]) > 900.0 )
{
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
v13 = sub_A34540();
v14 = ((__int64 (__fastcall **)(_QWORD ))(a3 + 360LL))(a3);
v15 = ((__int64 (__fastcall **)(__int64))((_QWORD )v13 + 32LL))(v13);
LOBYTE(v16) = v14;
if ( !(unsigned __int8)sub_6AF608(v15, a2, a3, v16) )
{
v17 = sub_A34540();
v18 = ((__int64 (__fastcall **)(_QWORD ))(a3 + 360LL))(a3);
v19 = ((__int64 (__fastcall **)(__int64))((_QWORD )v17 + 32LL))(v17);
LOBYTE(v20) = v18;
if ( !(unsigned __int8)sub_6AF1AC(v19, a2, a3, v20) )
{
--Current_Tick[(int *)(v6 + 32088) + 0x100000];
return 0;
}
}
if ( *(_DWORD )(((_QWORD )a2 + 12) + 148LL) == 14 )
{
if ( !((unsigned __int8 (__fastcall **)(_QWORD *))(a3 + 360LL))(a3) )
{
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
v21 = ((__int64 (__fastcall **)(_QWORD *))(a3 + 520LL))(a3);
v22 = v21;
if ( !v21 )
{
--Current_Tick[(int *)(v6 + 32088) + 0x100000];
return 0;
}
if ( (_DWORD )((_QWORD )(v21 + 2696) + 416LL) == 2 || (unsigned int)sub_94B384(v21) )
{
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
v23 = ((__int64 (__fastcall **)(__int64))((_QWORD )v22 + 3000LL))(v22);
if ( !v23 )
{
--Current_Tick[(int *)(v6 + 32088) + 0x100000];
return 0;
}
v24 = *(_QWORD )(v23 + 152);
if ( !v24 || !(unsigned __int8)sub_684374(v24, v22, v23, (_DWORD)a2, 0) )
{
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
}
v25 = sub_9259B4(a2 + 132);
if ( !v25 )
goto LABEL_65;
v26 = GetTickCount() - (unsigned __int64)((unsigned int )a2 + 31);
if ( v26 <= 5000 )
{
if ( !(unsigned __int8)sub_7D7974(v25, a3) )
{
if ( ((unsigned __int8 (__fastcall **)(_QWORD *))(*a3 + 360LL))(a3) )
{
if ( *(int )(((_QWORD )a2 + 11) + 112LL) <= 0 )
{
v29 = ((__int64 (__fastcall **)(_QWORD ))(a3 + 520LL))(a3);
v30 = ((__int64 (__fastcall **)(__int64))((_QWORD )v29 + 2856LL))(v29);
((void (__fastcall **)(__int64, const char , __int64))((_QWORD )v30 + 128LL))(v30, "cdddd", 98LL);
}
else
{
v27 = ((__int64 (__fastcall **)(_QWORD ))(a3 + 520LL))(a3);
v28 = ((__int64 (__fastcall **)(__int64))((_QWORD )v27 + 2856LL))(v27);
((void (__fastcall **)(__int64, const char , __int64, __int64, int, int, _DWORD, int, _DWORD))((_QWORD *)v28 + 128LL))(
v28,
"cdddddd",
98LL,
370LL,
2,
1,
*(_DWORD )(((_QWORD *)a2 + 11) + 112LL),
3,
*((_DWORD )a2 + 7));
}
}
else if ( ((unsigned __int8 (__fastcall **)(_QWORD *))(a3 + 376LL))(a3) )
{
v31 = ((__int64 (__fastcall **)(_QWORD ))(a3 + 512LL))(a3);
v32 = ((__int64 (__fastcall **)(__int64))((_QWORD )v31 + 2992LL))(v31);
if ( v32 )
{
if ( (int )(((_QWORD )a2 + 11) + 112LL) <= 0 )
{
v34 = ((__int64 (__fastcall **)(__int64))((_QWORD )v32 + 2856LL))(v32);
((void (__fastcall **)(__int64, const char , __int64))((_QWORD )v34 + 128LL))(v34, "cdddd", 98LL);
}
else
{
v33 = ((__int64 (__fastcall **)(__int64))((_QWORD )v32 + 2856LL))(v32);
((void (__fastcall **)(__int64, const char , __int64, __int64, int, int, _DWORD, int, _DWORD))((_QWORD *)v33 + 128LL))(
v33,
"cdddddd",
98LL,
370LL,
2,
1,
*(_DWORD )(((_QWORD *)a2 + 11) + 112LL),
3,
*((_DWORD )a2 + 7));
}
}
}
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return 0;
}
LABEL_65:
result = sub_A4322C(CItem, a2, a3);
--Current_Tick[(int )(v6 + 32088) + 0x100000];
return result;
}
if ( v26 > 15000 || ((unsigned __int8 (__fastcall **)(__int64, _QWORD ))((_QWORD )v25 + 1200LL))(v25, a3) )
goto LABEL_65;
if ( ((unsigned __int8 (__fastcall **)(_QWORD *))(*a3 + 360LL))(a3) )
{
if ( *(int )(((_QWORD )a2 + 11) + 112LL) <= 0 )
{
v37 = ((__int64 (__fastcall **)(_QWORD ))(a3 + 520LL))(a3);
v38 = ((__int64 (__fastcall **)(__int64))((_QWORD )v37 + 2856LL))(v37);
((void (__fastcall **)(__int64, const char , __int64))((_QWORD )v38 + 128LL))(v38, "cdddd", 98LL);
}
else
{
v35 = ((__int64 (__fastcall **)(_QWORD ))(a3 + 520LL))(a3);
v36 = ((__int64 (__fastcall **)(__int64))((_QWORD )v35 + 2856LL))(v35);
((void (__fastcall **)(__int64, const char , __int64, __int64, int, int, _DWORD, int, _DWORD))((_QWORD *)v36 + 128LL))(
v36,
"cdddddd",
98LL,
370LL,
2,
1,
*(_DWORD )(((_QWORD *)a2 + 11) + 112LL),
3,
*((_DWORD )a2 + 7));
}
}
else if ( ((unsigned __int8 (__fastcall **)(_QWORD *))(a3 + 376LL))(a3) )
{
v39 = ((__int64 (__fastcall **)(_QWORD ))(a3 + 512LL))(a3);
v40 = ((__int64 (__fastcall **)(__int64))((_QWORD )v39 + 2992LL))(v39);
if ( v40 )
{
if ( (int )(((_QWORD )a2 + 11) + 112LL) <= 0 )
{
v42 = ((__int64 (__fastcall **)(__int64))((_QWORD )v40 + 2856LL))(v40);
((void (__fastcall **)(__int64, const char , __int64))((_QWORD )v42 + 128LL))(v42, "cdddd", 98LL);
}
else
{
v41 = ((__int64 (__fastcall **)(__int64))((_QWORD )v40 + 2856LL))(v40);
((void (__fastcall **)(__int64, const char , __int64, __int64, int, int, _DWORD, int, _DWORD))((_QWORD *)v41 + 128LL))(
v41,
"cdddddd",
98LL,
370LL,
2,
1,
*(_DWORD )(((_QWORD *)a2 + 11) + 112LL),
3,
*((_DWORD )a2 + 7));
}
}
}
--Current_Tick[(int *)(v6 + 32088) + 0x100000];
return 0;
}
Поможешь отреверсить?