{"type": "func", "start": 4299793696, "end": 4299793998, "name": "AccountLoginLayer::loginAccountFailed", "pseudocode": "// \n// AccountLoginLayer::loginAccountFailed from 0x10049a520 to 0x10049a64e (302 bytes)\n// \n// 2 xrefs:\n// > sub_10049A740 @ 0x10049a74c\n// > <???> @ 0x100944bc0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall AccountLoginLayer::loginAccountFailed(AccountLoginLayer *a1, AccountError a2)\n{\n  __int64 v2; // r14\n  const char *v3; // rsi\n\n  v2 = 680;\n  switch ( a2 )\n  {\n    case AlreadyLinkedToDifferentSteamAccount:\n      v3 = \"Already linked to different Steam account\";\n      goto LABEL_7;\n    case AccountDisabled:\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_usernameLabel->setString)(\n        a1->m_usernameLabel,\n        \"Account has been disabled\");\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_usernameLabel->setColor)(\n        a1->m_usernameLabel,\n        &unk_10081D311);\n      v3 = \"Contact RobTop Support for more info\";\n      goto LABEL_8;\n    case AlreadyLinkedToDifferentAccount:\n      v3 = \"Already linked to different account\";\n      goto LABEL_7;\n    case TooShortLessThan3:\n      v3 = \"Too short. Minimum 3 characters\";\n      goto LABEL_7;\n    case TooShortLessThan6:\n      v3 = \"Too short. Minimum 6 characters\";\n      goto LABEL_8;\n    default:\n      v3 = \"Login failed\";\nLABEL_7:\n      v2 = 672;\nLABEL_8:\n      (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                                 + v2)\n                                                   + 912LL))(\n        *(AccountLoginLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                   + v2),\n        v3);\n      (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                           + v2)\n                                             + 1056LL))(\n        *(AccountLoginLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                   + v2),\n        &unk_10081D311);\n      ((void (__fastcall *)(cocos2d::CCMenu *, __int64))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 1);\n      ((void (__fastcall *)(CCTextInputNode *, __int64))a1->m_usernameInput->setTouchEnabled)(a1->m_usernameInput, 1);\n      ((void (__fastcall *)(CCTextInputNode *, __int64))a1->m_passwordInput->setTouchEnabled)(a1->m_passwordInput, 1);\n      ((void (__fastcall *)(AccountLoginLayer *, __int64))a1->setTouchEnabled)(a1, 1);\n      ((void (__fastcall *)(AccountLoginLayer *, __int64))a1->setKeypadEnabled)(a1, 1);\n      ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0);\n      return;\n  }\n}", "assembly": "; \n; AccountLoginLayer::loginAccountFailed from 0x10049a520 to 0x10049a64e (302 bytes)\n; \n; 2 xrefs:\n; > sub_10049A740 @ 0x10049a74c\n; > <???> @ 0x100944bc0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10049a520\nmov     rbp, rsp                                                       ; +0x1, 0x10049a521\npush    r14                                                            ; +0x4, 0x10049a524\npush    rbx                                                            ; +0x6, 0x10049a526\nmov     rbx, rdi                                                       ; +0x7, 0x10049a527\nadd     esi, 0Dh; switch 6 cases                                       ; +0xa, 0x10049a52a\ncmp     esi, 5                                                         ; +0xd, 0x10049a52d\nja      short def_10049A546; jumptable 000000010049A546 default case, case -11 ; +0x10, 0x10049a530\nmov     r14d, 2A8h                                                     ; +0x12, 0x10049a532\nlea     rax, jpt_10049A546                                             ; +0x18, 0x10049a538\nmovsxd  rcx, (jpt_10049A546 - 10049A650h)[rax+rsi*4]                   ; +0x1f, 0x10049a53f\nadd     rcx, rax                                                       ; +0x23, 0x10049a543\njmp     rcx; switch jump                                               ; +0x26, 0x10049a546\nlea     rsi, aAlreadyLinkedT_0; jumptable 000000010049A546 case -13    ; +0x28, 0x10049a548\njmp     short loc_10049A5A1                                            ; +0x2f, 0x10049a54f\nlea     rsi, aLoginFailed; jumptable 000000010049A546 default case, case -11 ; +0x31, 0x10049a551\njmp     short loc_10049A5A1                                            ; +0x38, 0x10049a558\nlea     rsi, aAlreadyLinkedT; jumptable 000000010049A546 case -10      ; +0x3a, 0x10049a55a\njmp     short loc_10049A5A1                                            ; +0x41, 0x10049a561\nmov     rdi, [rbx+2A0h]; jumptable 000000010049A546 case -12           ; +0x43, 0x10049a563\nmov     rax, [rdi]                                                     ; +0x4a, 0x10049a56a\nlea     rsi, aAccountHasBeen; \"Account has been disabled\"              ; +0x4d, 0x10049a56d\ncall    qword ptr [rax+390h]                                           ; +0x54, 0x10049a574\nmov     rdi, [rbx+2A0h]                                                ; +0x5a, 0x10049a57a\nmov     rax, [rdi]                                                     ; +0x61, 0x10049a581\nlea     rsi, unk_10081D311                                             ; +0x64, 0x10049a584\ncall    qword ptr [rax+420h]                                           ; +0x6b, 0x10049a58b\nlea     rsi, aContactRobtopS; \"Contact RobTop Support for more info\"   ; +0x71, 0x10049a591\njmp     short loc_10049A5A7                                            ; +0x78, 0x10049a598\nlea     rsi, aTooShortMinimu_0; jumptable 000000010049A546 case -9     ; +0x7a, 0x10049a59a\nmov     r14d, 2A0h                                                     ; +0x81, 0x10049a5a1\nmov     rdi, [rbx+r14]                                                 ; +0x87, 0x10049a5a7\nmov     rax, [rdi]                                                     ; +0x8b, 0x10049a5ab\ncall    qword ptr [rax+390h]                                           ; +0x8e, 0x10049a5ae\nmov     rdi, [rbx+r14]                                                 ; +0x94, 0x10049a5b4\nmov     rax, [rdi]                                                     ; +0x98, 0x10049a5b8\nlea     rsi, unk_10081D311                                             ; +0x9b, 0x10049a5bb\ncall    qword ptr [rax+420h]                                           ; +0xa2, 0x10049a5c2\nmov     rdi, [rbx+220h]                                                ; +0xa8, 0x10049a5c8\nmov     rax, [rdi]                                                     ; +0xaf, 0x10049a5cf\nmov     esi, 1                                                         ; +0xb2, 0x10049a5d2\ncall    qword ptr [rax+4E8h]                                           ; +0xb7, 0x10049a5d7\nmov     rdi, [rbx+290h]                                                ; +0xbd, 0x10049a5dd\nmov     rax, [rdi]                                                     ; +0xc4, 0x10049a5e4\nmov     esi, 1                                                         ; +0xc7, 0x10049a5e7\ncall    qword ptr [rax+3D8h]                                           ; +0xcc, 0x10049a5ec\nmov     rdi, [rbx+298h]                                                ; +0xd2, 0x10049a5f2\nmov     rax, [rdi]                                                     ; +0xd9, 0x10049a5f9\nmov     esi, 1                                                         ; +0xdc, 0x10049a5fc\ncall    qword ptr [rax+3D8h]                                           ; +0xe1, 0x10049a601\nmov     rax, [rbx]                                                     ; +0xe7, 0x10049a607\nmov     rdi, rbx                                                       ; +0xea, 0x10049a60a\nmov     esi, 1                                                         ; +0xed, 0x10049a60d\ncall    qword ptr [rax+3D8h]                                           ; +0xf2, 0x10049a612\nmov     rax, [rbx]                                                     ; +0xf8, 0x10049a618\nmov     rdi, rbx                                                       ; +0xfb, 0x10049a61b\nmov     esi, 1                                                         ; +0xfe, 0x10049a61e\ncall    qword ptr [rax+420h]                                           ; +0x103, 0x10049a623\nmov     rdi, [rbx+2B0h]                                                ; +0x109, 0x10049a629\nmov     rax, [rdi]                                                     ; +0x110, 0x10049a630\nmov     rax, [rax+148h]                                                ; +0x113, 0x10049a633\nxor     esi, esi                                                       ; +0x11a, 0x10049a63a\npop     rbx                                                            ; +0x11c, 0x10049a63c\npop     r14                                                            ; +0x11d, 0x10049a63d\npop     rbp                                                            ; +0x11f, 0x10049a63f\njmp     rax                                                            ; +0x120, 0x10049a640\nlea     rsi, aTooShortMinimu; jumptable 000000010049A546 case -8       ; +0x122, 0x10049a642\njmp     loc_10049A5A7                                                  ; +0x129, 0x10049a649", "xrefs": ["sub_10049A740 @ 0x10049a74c", "<???> @ 0x100944bc0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}