// // AccountRegisterLayer::updateLabel from 0x1000822e4 to 0x10008240c (296 bytes) // // 2 xrefs: // > AccountRegisterLayer::registerAccountFailed @ 0x1000822b8 // > sub_10008240C @ 0x100082424 // // 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 // void __fastcall AccountRegisterLayer::updateLabel(AccountRegisterLayer *a1, AccountError a2) { const char *v3; // x1 __int64 v4; // x20 if ( a2 > PasswordsDoNotMatch ) { if ( a2 > InvalidPassword ) { switch ( a2 ) { case InvalidUsername: v3 = "Username is invalid"; break; case AlreadyUsedUsername: v3 = "Username is already in use"; break; case AlreadyUsedEmail: v3 = "Email is already in use"; LABEL_20: v4 = 720; goto LABEL_24; default: goto LABEL_22; } goto LABEL_23; } if ( a2 == InvalidEmail ) { v3 = "Email is invalid"; goto LABEL_20; } v3 = "Password is invalid"; goto LABEL_17; } if ( a2 > TooShortLessThan3 ) { if ( a2 == TooShortLessThan6 ) { v3 = "Too short. Minimum 6 characters"; LABEL_17: v4 = 704; goto LABEL_24; } v3 = "Passwords do not match"; v4 = 712; } else { if ( a2 != EmailsDoNotMatch ) { if ( a2 != TooShortLessThan3 ) { LABEL_22: v3 = "Something went wrong."; goto LABEL_23; } v3 = "Too short. Minimum 3 characters"; LABEL_23: v4 = 696; goto LABEL_24; } v3 = "Emails do not match"; v4 = 728; } LABEL_24: (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v4) + 912LL))( *(AccountRegisterLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v4), v3); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v4) + 1056LL))( *(AccountRegisterLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v4), &unk_1006365E5); }