{"type": "func", "start": 5369208624, "end": 5369209126, "name": "AccountRegisterLayer::updateLabel", "pseudocode": "// \n// AccountRegisterLayer::updateLabel from 0x140079f30 to 0x14007a126 (502 bytes)\n// \n// 2 xrefs:\n// > AccountRegisterLayer::registerAccountFailed @ 0x140079f00\n// > <???> @ 0x1406c6714\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 AccountRegisterLayer::updateLabel(AccountRegisterLayer *a1, AccountError a2)\n{\n  const char *v3; // rdx\n  cocos2d::CCLabelBMFont *m_verifyEmailLabel; // rcx\n\n  switch ( a2 )\n  {\n    case EmailsDoNotMatch:\n      a1->m_verifyEmailLabel->setString(&a1->m_verifyEmailLabel->cocos2d::CCLabelProtocol, \"Emails do not match\");\n      m_verifyEmailLabel = a1->m_verifyEmailLabel;\n      goto LABEL_13;\n    case TooShortLessThan3:\n      v3 = \"Too short. Minimum 3 characters\";\n      goto LABEL_12;\n    case TooShortLessThan6:\n      a1->m_passwordLabel->setString(&a1->m_passwordLabel->cocos2d::CCLabelProtocol, \"Too short. Minimum 6 characters\");\n      m_verifyEmailLabel = a1->m_passwordLabel;\n      goto LABEL_13;\n    case PasswordsDoNotMatch:\n      a1->m_confirmPasswordLabel->setString(\n        &a1->m_confirmPasswordLabel->cocos2d::CCLabelProtocol,\n        \"Passwords do not match\");\n      m_verifyEmailLabel = a1->m_confirmPasswordLabel;\n      goto LABEL_13;\n    case InvalidEmail:\n      a1->m_emailLabel->setString(&a1->m_emailLabel->cocos2d::CCLabelProtocol, \"Email is invalid\");\n      m_verifyEmailLabel = a1->m_emailLabel;\n      goto LABEL_13;\n    case InvalidPassword:\n      a1->m_passwordLabel->setString(&a1->m_passwordLabel->cocos2d::CCLabelProtocol, \"Password is invalid\");\n      m_verifyEmailLabel = a1->m_passwordLabel;\n      goto LABEL_13;\n    case InvalidUsername:\n      v3 = \"Username is invalid\";\n      goto LABEL_12;\n    case AlreadyUsedEmail:\n      a1->m_emailLabel->setString(&a1->m_emailLabel->cocos2d::CCLabelProtocol, \"Email is already in use\");\n      m_verifyEmailLabel = a1->m_emailLabel;\n      goto LABEL_13;\n    case AlreadyUsedUsername:\n      v3 = \"Username is already in use\";\n      goto LABEL_12;\n    default:\n      v3 = \"Something went wrong.\";\nLABEL_12:\n      a1->m_usernameLabel->setString(&a1->m_usernameLabel->cocos2d::CCLabelProtocol, v3);\n      m_verifyEmailLabel = a1->m_usernameLabel;\nLABEL_13:\n      m_verifyEmailLabel->setColor(&m_verifyEmailLabel->cocos2d::CCRGBAProtocol, &stru_1405299CC);\n      return;\n  }\n}", "assembly": "; \n; AccountRegisterLayer::updateLabel from 0x140079f30 to 0x14007a126 (502 bytes)\n; \n; 2 xrefs:\n; > AccountRegisterLayer::registerAccountFailed @ 0x140079f00\n; > <???> @ 0x1406c6714\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    rbx                                                            ; +0x0, 0x140079f30\nsub     rsp, 20h                                                       ; +0x2, 0x140079f32\nadd     edx, 63h ; 'c'; switch 98 cases                                ; +0x6, 0x140079f36\nmov     rbx, rcx                                                       ; +0x9, 0x140079f39\ncmp     edx, 61h                                                       ; +0xc, 0x140079f3c\nja      def_140079F61; jumptable 0000000140079F61 default case, cases -98--10 ; +0xf, 0x140079f3f\nmovsxd  rax, edx                                                       ; +0x15, 0x140079f45\nlea     rcx, cs:140000000h                                             ; +0x18, 0x140079f48\nmovzx   eax, ds:(byte_14007A0C4 - 140000000h)[rcx+rax]                 ; +0x1f, 0x140079f4f\nmov     edx, ds:(jpt_140079F61 - 140000000h)[rcx+rax*4]                ; +0x27, 0x140079f57\nadd     rdx, rcx                                                       ; +0x2e, 0x140079f5e\njmp     rdx; switch jump                                               ; +0x31, 0x140079f61\nlea     rdx, aUsernameIsAlre; jumptable 0000000140079F61 case -2       ; +0x33, 0x140079f63\njmp     loc_14007A066                                                  ; +0x3a, 0x140079f6a\nmov     rcx, [rbx+2D0h]; jumptable 0000000140079F61 case -3            ; +0x3f, 0x140079f6f\nlea     rdx, aEmailIsAlready; \"Email is already in use\"                ; +0x46, 0x140079f76\nadd     rcx, 168h                                                      ; +0x4d, 0x140079f7d\nmov     rax, [rcx]                                                     ; +0x54, 0x140079f84\ncall    qword ptr [rax]                                                ; +0x57, 0x140079f87\nmov     rcx, [rbx+2D0h]                                                ; +0x59, 0x140079f89\njmp     loc_14007A080                                                  ; +0x60, 0x140079f90\nmov     rcx, [rbx+2D0h]; jumptable 0000000140079F61 case -6            ; +0x65, 0x140079f95\nlea     rdx, aEmailIsInvalid; \"Email is invalid\"                       ; +0x6c, 0x140079f9c\nadd     rcx, 168h                                                      ; +0x73, 0x140079fa3\nmov     rax, [rcx]                                                     ; +0x7a, 0x140079faa\ncall    qword ptr [rax]                                                ; +0x7d, 0x140079fad\nmov     rcx, [rbx+2D0h]                                                ; +0x7f, 0x140079faf\njmp     loc_14007A080                                                  ; +0x86, 0x140079fb6\nlea     rdx, aUsernameIsInva; jumptable 0000000140079F61 case -4       ; +0x8b, 0x140079fbb\njmp     loc_14007A066                                                  ; +0x92, 0x140079fc2\nmov     rcx, [rbx+2C0h]; jumptable 0000000140079F61 case -5            ; +0x97, 0x140079fc7\nlea     rdx, aPasswordIsInva; \"Password is invalid\"                    ; +0x9e, 0x140079fce\nadd     rcx, 168h                                                      ; +0xa5, 0x140079fd5\nmov     rax, [rcx]                                                     ; +0xac, 0x140079fdc\ncall    qword ptr [rax]                                                ; +0xaf, 0x140079fdf\nmov     rcx, [rbx+2C0h]                                                ; +0xb1, 0x140079fe1\njmp     loc_14007A080                                                  ; +0xb8, 0x140079fe8\nmov     rcx, [rbx+2C8h]; jumptable 0000000140079F61 case -7            ; +0xbd, 0x140079fed\nlea     rdx, aPasswordsDoNot; \"Passwords do not match\"                 ; +0xc4, 0x140079ff4\nadd     rcx, 168h                                                      ; +0xcb, 0x140079ffb\nmov     rax, [rcx]                                                     ; +0xd2, 0x14007a002\ncall    qword ptr [rax]                                                ; +0xd5, 0x14007a005\nmov     rcx, [rbx+2C8h]                                                ; +0xd7, 0x14007a007\njmp     short loc_14007A080                                            ; +0xde, 0x14007a00e\nmov     rcx, [rbx+2C0h]; jumptable 0000000140079F61 case -8            ; +0xe0, 0x14007a010\nlea     rdx, aTooShortMinimu; \"Too short. Minimum 6 characters\"        ; +0xe7, 0x14007a017\nadd     rcx, 168h                                                      ; +0xee, 0x14007a01e\nmov     rax, [rcx]                                                     ; +0xf5, 0x14007a025\ncall    qword ptr [rax]                                                ; +0xf8, 0x14007a028\nmov     rcx, [rbx+2C0h]                                                ; +0xfa, 0x14007a02a\njmp     short loc_14007A080                                            ; +0x101, 0x14007a031\nlea     rdx, aTooShortMinimu_0; jumptable 0000000140079F61 case -9     ; +0x103, 0x14007a033\njmp     short loc_14007A066                                            ; +0x10a, 0x14007a03a\nmov     rcx, [rbx+2D8h]; jumptable 0000000140079F61 case -99           ; +0x10c, 0x14007a03c\nlea     rdx, aEmailsDoNotMat; \"Emails do not match\"                    ; +0x113, 0x14007a043\nadd     rcx, 168h                                                      ; +0x11a, 0x14007a04a\nmov     rax, [rcx]                                                     ; +0x121, 0x14007a051\ncall    qword ptr [rax]                                                ; +0x124, 0x14007a054\nmov     rcx, [rbx+2D8h]                                                ; +0x126, 0x14007a056\njmp     short loc_14007A080                                            ; +0x12d, 0x14007a05d\nlea     rdx, aSomethingWentW; jumptable 0000000140079F61 default case, cases -98--10 ; +0x12f, 0x14007a05f\nmov     rcx, [rbx+2B8h]                                                ; +0x136, 0x14007a066\nadd     rcx, 168h                                                      ; +0x13d, 0x14007a06d\nmov     rax, [rcx]                                                     ; +0x144, 0x14007a074\ncall    qword ptr [rax]                                                ; +0x147, 0x14007a077\nmov     rcx, [rbx+2B8h]                                                ; +0x149, 0x14007a079\nadd     rcx, 170h                                                      ; +0x150, 0x14007a080\nlea     rdx, stru_1405299CC                                            ; +0x157, 0x14007a087\nmov     rax, [rcx]                                                     ; +0x15e, 0x14007a08e\nadd     rsp, 20h                                                       ; +0x161, 0x14007a091\npop     rbx                                                            ; +0x165, 0x14007a095\njmp     qword ptr [rax]                                                ; +0x166, 0x14007a096\nalign 4                                                                ; +0x169, 0x14007a099\ndd offset loc_14007A03C - 140000000h; jump table for switch statement  ; +0x16c, 0x14007a09c\ndb      0,     9,     9,     9; indirect table for switch statement    ; +0x194, 0x14007a0c4", "xrefs": ["AccountRegisterLayer::registerAccountFailed @ 0x140079f00", "<???> @ 0x1406c6714"], "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"}