{"type": "func", "start": 4299781008, "end": 4299781395, "name": "AccountRegisterLayer::registerAccountFailed", "pseudocode": "// \n// AccountRegisterLayer::registerAccountFailed from 0x100497390 to 0x100497513 (387 bytes)\n// \n// 2 xrefs:\n// > sub_100497710 @ 0x10049771c\n// > <???> @ 0x100944460\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 AccountRegisterLayer::registerAccountFailed(AccountRegisterLayer *a1, AccountError a2)\n{\n  __int64 v2; // r14\n  const char *v3; // rsi\n\n  v2 = 696;\n  switch ( a2 )\n  {\n    case TooShortLessThan3:\n      v3 = \"Too short. Minimum 3 characters\";\n      break;\n    case TooShortLessThan6:\n      v3 = \"Too short. Minimum 6 characters\";\n      v2 = 704;\n      break;\n    case PasswordsDoNotMatch:\n      v3 = \"Passwords do not match\";\n      v2 = 712;\n      break;\n    case InvalidEmail:\n      v3 = \"Email is invalid\";\n      v2 = 720;\n      break;\n    case InvalidPassword:\n      v3 = \"Password is invalid\";\n      v2 = 704;\n      break;\n    case InvalidUsername:\n      v3 = \"Username is invalid\";\n      break;\n    case AlreadyUsedEmail:\n      v3 = \"Email is already in use\";\n      v2 = 720;\n      break;\n    case AlreadyUsedUsername:\n      v3 = \"Username is already in use\";\n      break;\n    default:\n      if ( a2 == EmailsDoNotMatch )\n      {\n        v3 = \"Emails do not match\";\n        v2 = 728;\n      }\n      else\n      {\n        v3 = \"Something went wrong.\";\n      }\n      break;\n  }\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    *(AccountRegisterLayer_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    *(AccountRegisterLayer_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_usernameField->setTouchEnabled)(a1->m_usernameField, 1);\n  ((void (__fastcall *)(CCTextInputNode *, __int64))a1->m_passwordField->setTouchEnabled)(a1->m_passwordField, 1);\n  ((void (__fastcall *)(CCTextInputNode *, __int64))a1->m_confirmPasswordField->setTouchEnabled)(\n    a1->m_confirmPasswordField,\n    1);\n  ((void (__fastcall *)(CCTextInputNode *, __int64))a1->m_emailField->setTouchEnabled)(a1->m_emailField, 1);\n  ((void (__fastcall *)(CCTextInputNode *, __int64))a1->m_verifyEmailField->setTouchEnabled)(a1->m_verifyEmailField, 1);\n  ((void (__fastcall *)(AccountRegisterLayer *, __int64))a1->setTouchEnabled)(a1, 1);\n  ((void (__fastcall *)(AccountRegisterLayer *, __int64))a1->setKeypadEnabled)(a1, 1);\n  ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0);\n}", "assembly": "; \n; AccountRegisterLayer::registerAccountFailed from 0x100497390 to 0x100497513 (387 bytes)\n; \n; 2 xrefs:\n; > sub_100497710 @ 0x10049771c\n; > <???> @ 0x100944460\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, 0x100497390\nmov     rbp, rsp                                                       ; +0x1, 0x100497391\npush    r14                                                            ; +0x4, 0x100497394\npush    rbx                                                            ; +0x6, 0x100497396\nmov     rbx, rdi                                                       ; +0x7, 0x100497397\nmov     r14d, 2B8h                                                     ; +0xa, 0x10049739a\nlea     eax, [rsi+9]; switch 8 cases                                   ; +0x10, 0x1004973a0\ncmp     eax, 7                                                         ; +0x13, 0x1004973a3\nja      short def_1004973B6; jumptable 00000001004973B6 default case   ; +0x16, 0x1004973a6\nlea     rcx, jpt_1004973B6                                             ; +0x18, 0x1004973a8\nmovsxd  rax, (jpt_1004973B6 - 100497514h)[rcx+rax*4]                   ; +0x1f, 0x1004973af\nadd     rax, rcx                                                       ; +0x23, 0x1004973b3\njmp     rax; switch jump                                               ; +0x26, 0x1004973b6\nlea     rsi, aTooShortMinimu_0; jumptable 00000001004973B6 case -9     ; +0x28, 0x1004973b8\njmp     short loc_100497439                                            ; +0x2f, 0x1004973bf\ncmp     esi, 0FFFFFF9Dh; jumptable 00000001004973B6 default case       ; +0x31, 0x1004973c1\njnz     short loc_100497432                                            ; +0x34, 0x1004973c4\nlea     rsi, aEmailsDoNotMat; \"Emails do not match\"                    ; +0x36, 0x1004973c6\nmov     r14d, 2D8h                                                     ; +0x3d, 0x1004973cd\njmp     short loc_100497439                                            ; +0x43, 0x1004973d3\nlea     rsi, aPasswordIsInva; jumptable 00000001004973B6 case -5       ; +0x45, 0x1004973d5\nmov     r14d, 2C0h                                                     ; +0x4c, 0x1004973dc\njmp     short loc_100497439                                            ; +0x52, 0x1004973e2\nlea     rsi, aPasswordsDoNot; jumptable 00000001004973B6 case -7       ; +0x54, 0x1004973e4\nmov     r14d, 2C8h                                                     ; +0x5b, 0x1004973eb\njmp     short loc_100497439                                            ; +0x61, 0x1004973f1\nlea     rsi, aEmailIsInvalid; jumptable 00000001004973B6 case -6       ; +0x63, 0x1004973f3\nmov     r14d, 2D0h                                                     ; +0x6a, 0x1004973fa\njmp     short loc_100497439                                            ; +0x70, 0x100497400\nlea     rsi, aUsernameIsAlre; jumptable 00000001004973B6 case -2       ; +0x72, 0x100497402\njmp     short loc_100497439                                            ; +0x79, 0x100497409\nlea     rsi, aTooShortMinimu; jumptable 00000001004973B6 case -8       ; +0x7b, 0x10049740b\nmov     r14d, 2C0h                                                     ; +0x82, 0x100497412\njmp     short loc_100497439                                            ; +0x88, 0x100497418\nlea     rsi, aUsernameIsInva; jumptable 00000001004973B6 case -4       ; +0x8a, 0x10049741a\njmp     short loc_100497439                                            ; +0x91, 0x100497421\nlea     rsi, aEmailIsAlready; jumptable 00000001004973B6 case -3       ; +0x93, 0x100497423\nmov     r14d, 2D0h                                                     ; +0x9a, 0x10049742a\njmp     short loc_100497439                                            ; +0xa0, 0x100497430\nlea     rsi, aSomethingWentW_2; \"Something went wrong.\"                ; +0xa2, 0x100497432\nmov     rdi, [rbx+r14]                                                 ; +0xa9, 0x100497439\nmov     rax, [rdi]                                                     ; +0xad, 0x10049743d\ncall    qword ptr [rax+390h]                                           ; +0xb0, 0x100497440\nmov     rdi, [rbx+r14]                                                 ; +0xb6, 0x100497446\nmov     rax, [rdi]                                                     ; +0xba, 0x10049744a\nlea     rsi, unk_10081D311                                             ; +0xbd, 0x10049744d\ncall    qword ptr [rax+420h]                                           ; +0xc4, 0x100497454\nmov     rdi, [rbx+220h]                                                ; +0xca, 0x10049745a\nmov     rax, [rdi]                                                     ; +0xd1, 0x100497461\nmov     esi, 1                                                         ; +0xd4, 0x100497464\ncall    qword ptr [rax+4E8h]                                           ; +0xd9, 0x100497469\nmov     rdi, [rbx+290h]                                                ; +0xdf, 0x10049746f\nmov     rax, [rdi]                                                     ; +0xe6, 0x100497476\nmov     esi, 1                                                         ; +0xe9, 0x100497479\ncall    qword ptr [rax+3D8h]                                           ; +0xee, 0x10049747e\nmov     rdi, [rbx+298h]                                                ; +0xf4, 0x100497484\nmov     rax, [rdi]                                                     ; +0xfb, 0x10049748b\nmov     esi, 1                                                         ; +0xfe, 0x10049748e\ncall    qword ptr [rax+3D8h]                                           ; +0x103, 0x100497493\nmov     rdi, [rbx+2A0h]                                                ; +0x109, 0x100497499\nmov     rax, [rdi]                                                     ; +0x110, 0x1004974a0\nmov     esi, 1                                                         ; +0x113, 0x1004974a3\ncall    qword ptr [rax+3D8h]                                           ; +0x118, 0x1004974a8\nmov     rdi, [rbx+2A8h]                                                ; +0x11e, 0x1004974ae\nmov     rax, [rdi]                                                     ; +0x125, 0x1004974b5\nmov     esi, 1                                                         ; +0x128, 0x1004974b8\ncall    qword ptr [rax+3D8h]                                           ; +0x12d, 0x1004974bd\nmov     rdi, [rbx+2B0h]                                                ; +0x133, 0x1004974c3\nmov     rax, [rdi]                                                     ; +0x13a, 0x1004974ca\nmov     esi, 1                                                         ; +0x13d, 0x1004974cd\ncall    qword ptr [rax+3D8h]                                           ; +0x142, 0x1004974d2\nmov     rax, [rbx]                                                     ; +0x148, 0x1004974d8\nmov     rdi, rbx                                                       ; +0x14b, 0x1004974db\nmov     esi, 1                                                         ; +0x14e, 0x1004974de\ncall    qword ptr [rax+3D8h]                                           ; +0x153, 0x1004974e3\nmov     rax, [rbx]                                                     ; +0x159, 0x1004974e9\nmov     rdi, rbx                                                       ; +0x15c, 0x1004974ec\nmov     esi, 1                                                         ; +0x15f, 0x1004974ef\ncall    qword ptr [rax+420h]                                           ; +0x164, 0x1004974f4\nmov     rdi, [rbx+2E0h]                                                ; +0x16a, 0x1004974fa\nmov     rax, [rdi]                                                     ; +0x171, 0x100497501\nmov     rax, [rax+148h]                                                ; +0x174, 0x100497504\nxor     esi, esi                                                       ; +0x17b, 0x10049750b\npop     rbx                                                            ; +0x17d, 0x10049750d\npop     r14                                                            ; +0x17e, 0x10049750e\npop     rbp                                                            ; +0x180, 0x100497510\njmp     rax                                                            ; +0x181, 0x100497511", "xrefs": ["sub_100497710 @ 0x10049771c", "<???> @ 0x100944460"], "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"}