//
// AccountLoginLayer::updateLabel from 0x140091a00 to 0x140091b40 (320 bytes)
//
// 2 xrefs:
// > AccountLoginLayer::loginAccountFailed @ 0x1400919d0
// > ??> @ 0x140912a94
//
// 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 11:26:01 +0000
//
__int64 __fastcall AccountLoginLayer::updateLabel(__int64 a1, int a2)
{
__int64 v3; // rcx
const char *v4; // rdx
switch ( a2 )
{
case -14:
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 704) + 360LL))(
*(_QWORD *)(a1 + 704) + 360LL,
"Password contains invalid characters");
v3 = *(_QWORD *)(a1 + 704);
return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v3 + 368))(v3 + 368, &word_140702D00);
case -13:
v4 = "Already linked to different Steam account";
goto LABEL_9;
case -12:
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 696) + 360LL))(
*(_QWORD *)(a1 + 696) + 360LL,
"Account has been disabled");
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 696) + 368LL))(
*(_QWORD *)(a1 + 696) + 368LL,
&word_140702D00);
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 704) + 360LL))(
*(_QWORD *)(a1 + 704) + 360LL,
"Contact RobTop Support for more info");
v3 = *(_QWORD *)(a1 + 704);
return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v3 + 368))(v3 + 368, &word_140702D00);
case -10:
v4 = "Already linked to different account";
goto LABEL_9;
case -9:
v4 = "Too short. Minimum 3 characters";
goto LABEL_9;
case -8:
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 704) + 360LL))(
*(_QWORD *)(a1 + 704) + 360LL,
"Too short. Minimum 6 characters");
v3 = *(_QWORD *)(a1 + 704);
return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v3 + 368))(v3 + 368, &word_140702D00);
default:
v4 = "Login failed";
LABEL_9:
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 696) + 360LL))(
*(_QWORD *)(a1 + 696) + 360LL,
v4);
v3 = *(_QWORD *)(a1 + 696);
return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v3 + 368))(v3 + 368, &word_140702D00);
}
}