//
// sub_100492990 from 0x100492990 to 0x100492a51 (193 bytes)
//
// 0 xrefs:
//
// 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 sub_100492990(__int64 a1, int a2)
{
__int64 v2; // r14
const char *v3; // rsi
v2 = 704;
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 *))(**(_QWORD **)(a1 + 696) + 928LL))(
*(_QWORD *)(a1 + 696),
"Account has been disabled");
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 696) + 1072LL))(*(_QWORD *)(a1 + 696), &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 = 696;
LABEL_10:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + v2) + 928LL))(*(_QWORD *)(a1 + v2), v3);
return (*(__int64 (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + v2) + 1072LL))(
*(_QWORD *)(a1 + v2),
&unk_100A0B960);
}
}