//
// AccountLoginLayer::loginAccountFailed from 0x100492840 to 0x100492974 (308 bytes)
//
// 2 xrefs:
// > sub_100492A70 @ 0x100492a7c
// > ??> @ 0x100b4f020
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:47 +0000
//
__int64 __fastcall AccountLoginLayer::loginAccountFailed(_QWORD **a1, int a2)
{
__int64 v2; // r14
const char *v3; // rsi
v2 = 88;
switch ( a2 )
{
case -14:
v3 = "Password contains invalid characters";
goto LABEL_10;
case -13:
v3 = "Already linked to different Steam account";
goto LABEL_9;
case -12:
(*(void (__fastcall **)(_QWORD *, const char *))(*a1[87] + 928LL))(a1[87], "Account has been disabled");
(*(void (__fastcall **)(_QWORD *, void *))(*a1[87] + 1072LL))(a1[87], &unk_100A0B960);
v3 = "Contact RobTop Support for more info";
goto LABEL_10;
case -10:
v3 = "Already linked to different account";
goto LABEL_9;
case -9:
v3 = "Too short. Minimum 3 characters";
goto LABEL_9;
case -8:
v3 = "Too short. Minimum 6 characters";
goto LABEL_10;
default:
v3 = "Login failed";
LABEL_9:
v2 = 87;
LABEL_10:
(*(void (__fastcall **)(_QWORD *, const char *))(*a1[v2] + 928LL))(a1[v2], v3);
(*(void (__fastcall **)(_QWORD *, void *))(*a1[v2] + 1072LL))(a1[v2], &unk_100A0B960);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1[69] + 1272LL))(a1[69], 1);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1[85] + 1000LL))(a1[85], 1);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1[86] + 1000LL))(a1[86], 1);
((void (__fastcall *)(_QWORD **, __int64))(*a1)[125])(a1, 1);
((void (__fastcall *)(_QWORD **, __int64))(*a1)[134])(a1, 1);
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1[89] + 344LL))(a1[89], 0);
}
}