{"type": "func", "start": 4299782224, "end": 4299782406, "name": "AccountRegisterLayer::resetLabel", "pseudocode": "// \n// AccountRegisterLayer::resetLabel from 0x100497850 to 0x100497906 (182 bytes)\n// \n// 0 xrefs:\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::resetLabel(AccountRegisterLayer *a1, int a2)\n{\n  const char *v2; // rsi\n  __int64 v3; // r14\n\n  switch ( a2 )\n  {\n    case 1:\n      v2 = \"Username: (shown to other players)\";\n      v3 = 696;\n      goto LABEL_7;\n    case 2:\n      v2 = \"Password:\";\n      v3 = 704;\n      goto LABEL_7;\n    case 3:\n      v2 = \"Confirm Password:\";\n      v3 = 712;\n      goto LABEL_7;\n    case 4:\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_emailLabel->setString)(\n        a1->m_emailLabel,\n        \"Email:\");\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_emailLabel->setColor)(\n        a1->m_emailLabel,\n        &unk_10081D314);\n      goto LABEL_4;\n    case 5:\nLABEL_4:\n      v2 = \"Verify Email:\";\n      v3 = 728;\nLABEL_7:\n      (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                                 + v3)\n                                                   + 912LL))(\n        *(AccountRegisterLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                      + v3),\n        v2);\n      (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                           + v3)\n                                             + 1056LL))(\n        *(AccountRegisterLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                      + v3),\n        &unk_10081D314);\n      break;\n    default:\n      return;\n  }\n}", "assembly": "; \n; AccountRegisterLayer::resetLabel from 0x100497850 to 0x100497906 (182 bytes)\n; \n; 0 xrefs:\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\ndec     esi; switch 5 cases                                            ; +0x0, 0x100497850\ncmp     esi, 4                                                         ; +0x2, 0x100497852\nja      def_100497873; jumptable 0000000100497873 default case         ; +0x5, 0x100497855\npush    rbp                                                            ; +0xb, 0x10049785b\nmov     rbp, rsp                                                       ; +0xc, 0x10049785c\npush    r14                                                            ; +0xf, 0x10049785f\npush    rbx                                                            ; +0x11, 0x100497861\nmov     rbx, rdi                                                       ; +0x12, 0x100497862\nlea     rax, jpt_100497873                                             ; +0x15, 0x100497865\nmovsxd  rcx, (jpt_100497873 - 100497908h)[rax+rsi*4]                   ; +0x1c, 0x10049786c\nadd     rcx, rax                                                       ; +0x20, 0x100497870\njmp     rcx; switch jump                                               ; +0x23, 0x100497873\nlea     rsi, aUsernameShownT; jumptable 0000000100497873 case 1        ; +0x25, 0x100497875\nmov     r14d, 2B8h                                                     ; +0x2c, 0x10049787c\njmp     short loc_1004978DD                                            ; +0x32, 0x100497882\nmov     rdi, [rbx+2D0h]; jumptable 0000000100497873 case 4             ; +0x34, 0x100497884\nmov     rax, [rdi]                                                     ; +0x3b, 0x10049788b\nlea     rsi, aEmail; \"Email:\"                                          ; +0x3e, 0x10049788e\ncall    qword ptr [rax+390h]                                           ; +0x45, 0x100497895\nmov     rdi, [rbx+2D0h]                                                ; +0x4b, 0x10049789b\nmov     rax, [rdi]                                                     ; +0x52, 0x1004978a2\nlea     rsi, unk_10081D314                                             ; +0x55, 0x1004978a5\ncall    qword ptr [rax+420h]                                           ; +0x5c, 0x1004978ac\nlea     rsi, aVerifyEmail; jumptable 0000000100497873 case 5           ; +0x62, 0x1004978b2\nmov     r14d, 2D8h                                                     ; +0x69, 0x1004978b9\njmp     short loc_1004978DD                                            ; +0x6f, 0x1004978bf\nlea     rsi, aConfirmPasswor; jumptable 0000000100497873 case 3        ; +0x71, 0x1004978c1\nmov     r14d, 2C8h                                                     ; +0x78, 0x1004978c8\njmp     short loc_1004978DD                                            ; +0x7e, 0x1004978ce\nlea     rsi, aPassword; jumptable 0000000100497873 case 2              ; +0x80, 0x1004978d0\nmov     r14d, 2C0h                                                     ; +0x87, 0x1004978d7\nmov     rdi, [rbx+r14]                                                 ; +0x8d, 0x1004978dd\nmov     rax, [rdi]                                                     ; +0x91, 0x1004978e1\ncall    qword ptr [rax+390h]                                           ; +0x94, 0x1004978e4\nmov     rdi, [rbx+r14]                                                 ; +0x9a, 0x1004978ea\nmov     rax, [rdi]                                                     ; +0x9e, 0x1004978ee\nmov     rax, [rax+420h]                                                ; +0xa1, 0x1004978f1\nlea     rsi, unk_10081D314                                             ; +0xa8, 0x1004978f8\npop     rbx                                                            ; +0xaf, 0x1004978ff\npop     r14                                                            ; +0xb0, 0x100497900\npop     rbp                                                            ; +0xb2, 0x100497902\njmp     rax                                                            ; +0xb3, 0x100497903\nretn; jumptable 0000000100497873 default case                          ; +0xb5, 0x100497905", "xrefs": [], "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"}