//
// sub_10022F810 from 0x10022f810 to 0x10022f88f (127 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008e1988
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char __fastcall sub_10022F810(__int64 a1, const char *a2, int a3)
{
char result; // al
__int64 v6; // rdi
const char *v7; // rsi
result = MessagesProfilePage::isCorrect((MessagesProfilePage *)(a1 - 656), a2);
if ( result )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 64) + 328LL))(*(_QWORD *)(a1 + 64), 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 104) + 328LL))(*(_QWORD *)(a1 + 104), 1);
v6 = *(_QWORD *)(a1 + 48);
v7 = "Something went wrong";
if ( a3 == -2 )
v7 = "Nothing found";
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v6 + 912LL))(v6, v7);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 48) + 328LL))(*(_QWORD *)(a1 + 48), 1);
}
return result;
}