{"type": "func", "start": 4299795312, "end": 4299795606, "name": "AccountLoginLayer::textInputClosed", "pseudocode": "// \n// AccountLoginLayer::textInputClosed from 0x10049ab70 to 0x10049ac96 (294 bytes)\n// \n// 2 xrefs:\n// > sub_10049ACB0 @ 0x10049acbc\n// > <???> @ 0x100944ba8\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::textInputClosed(AccountLoginLayer *a1, CCTextInputNode *a2)\n{\n  double v2; // xmm0_8\n  int v4; // eax\n  const char *v5; // rsi\n  __int64 v6; // r15\n  int v7; // eax\n  cocos2d::CCLabelBMFont **p_m_passwordLabel; // rbx\n  __int64 v9; // [rsp+0h] [rbp-30h] BYREF\n  unsigned __int64 v10; // [rsp+8h] [rbp-28h]\n  void *__p; // [rsp+10h] [rbp-20h]\n\n  CCTextInputNode::getString(&v9, (__int64)a2, v2);\n  v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);\n  if ( v4 == 1 )\n  {\n    v5 = \"Username:\";\n    v6 = 672;\n  }\n  else\n  {\n    if ( v4 != 2 )\n      goto LABEL_6;\n    v5 = \"Password:\";\n    v6 = 680;\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                                                             + v6)\n                                               + 912LL))(\n    *(AccountLoginLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                               + v6),\n    v5);\n  (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                       + v6)\n                                         + 1056LL))(\n    *(AccountLoginLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                               + v6),\n    &unk_10081D314);\nLABEL_6:\n  v7 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);\n  if ( v7 != 1 )\n  {\n    if ( v7 != 2 )\n      goto LABEL_19;\n    if ( (v9 & 1) != 0 )\n    {\n      if ( v10 > 5 )\n        goto LABEL_19;\n    }\n    else if ( (unsigned __int8)v9 >> 1 > 5uLL )\n    {\n      goto LABEL_19;\n    }\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_passwordLabel->setString)(\n      a1->m_passwordLabel,\n      \"Too short. Minimum 6 characters\");\n    p_m_passwordLabel = &a1->m_passwordLabel;\nLABEL_18:\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))(*p_m_passwordLabel)->setColor)(\n      *p_m_passwordLabel,\n      &unk_10081D311);\n    goto LABEL_19;\n  }\n  if ( (v9 & 1) == 0 )\n  {\n    if ( (unsigned __int8)v9 >> 1 > 2uLL )\n      goto LABEL_19;\n    goto LABEL_17;\n  }\n  if ( v10 <= 2 )\n  {\nLABEL_17:\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_usernameLabel->setString)(\n      a1->m_usernameLabel,\n      \"Too short. Minimum 3 characters\");\n    p_m_passwordLabel = &a1->m_usernameLabel;\n    goto LABEL_18;\n  }\nLABEL_19:\n  if ( (v9 & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; AccountLoginLayer::textInputClosed from 0x10049ab70 to 0x10049ac96 (294 bytes)\n; \n; 2 xrefs:\n; > sub_10049ACB0 @ 0x10049acbc\n; > <???> @ 0x100944ba8\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, 0x10049ab70\nmov     rbp, rsp                                                       ; +0x1, 0x10049ab71\npush    r15                                                            ; +0x4, 0x10049ab74\npush    r14                                                            ; +0x6, 0x10049ab76\npush    rbx                                                            ; +0x8, 0x10049ab78\nsub     rsp, 18h                                                       ; +0x9, 0x10049ab79\nmov     r14, rsi                                                       ; +0xd, 0x10049ab7d\nmov     rbx, rdi                                                       ; +0x10, 0x10049ab80\nlea     rdi, [rbp+var_30]                                              ; +0x13, 0x10049ab83\ncall    CCTextInputNode__getString                                     ; +0x17, 0x10049ab87\nmov     rax, [r14]                                                     ; +0x1c, 0x10049ab8c\nmov     rdi, r14                                                       ; +0x1f, 0x10049ab8f\ncall    qword ptr [rax+40h]                                            ; +0x22, 0x10049ab92\ncmp     eax, 1                                                         ; +0x25, 0x10049ab95\njz      short loc_10049ABAE                                            ; +0x28, 0x10049ab98\ncmp     eax, 2                                                         ; +0x2a, 0x10049ab9a\njnz     short loc_10049ABDC                                            ; +0x2d, 0x10049ab9d\nlea     rsi, aPassword; \"Password:\"                                    ; +0x2f, 0x10049ab9f\nmov     r15d, 2A8h                                                     ; +0x36, 0x10049aba6\njmp     short loc_10049ABBB                                            ; +0x3c, 0x10049abac\nlea     rsi, aUsername_0; \"Username:\"                                  ; +0x3e, 0x10049abae\nmov     r15d, 2A0h                                                     ; +0x45, 0x10049abb5\nmov     rdi, [rbx+r15]                                                 ; +0x4b, 0x10049abbb\nmov     rax, [rdi]                                                     ; +0x4f, 0x10049abbf\ncall    qword ptr [rax+390h]                                           ; +0x52, 0x10049abc2\nmov     rdi, [rbx+r15]                                                 ; +0x58, 0x10049abc8\nmov     rax, [rdi]                                                     ; +0x5c, 0x10049abcc\nlea     rsi, unk_10081D314                                             ; +0x5f, 0x10049abcf\ncall    qword ptr [rax+420h]                                           ; +0x66, 0x10049abd6\nmov     rax, [r14]                                                     ; +0x6c, 0x10049abdc\nmov     rdi, r14                                                       ; +0x6f, 0x10049abdf\ncall    qword ptr [rax+40h]                                            ; +0x72, 0x10049abe2\ncmp     eax, 1                                                         ; +0x75, 0x10049abe5\njz      short loc_10049AC07                                            ; +0x78, 0x10049abe8\ncmp     eax, 2                                                         ; +0x7a, 0x10049abea\njnz     loc_10049AC7C                                                  ; +0x7d, 0x10049abed\nmovzx   eax, byte ptr [rbp+var_30]                                     ; +0x83, 0x10049abf3\ntest    al, 1                                                          ; +0x87, 0x10049abf7\njz      short loc_10049AC1B                                            ; +0x89, 0x10049abf9\nmov     rax, [rbp+var_28]                                              ; +0x8b, 0x10049abfb\ncmp     rax, 5                                                         ; +0x8f, 0x10049abff\njbe     short loc_10049AC23                                            ; +0x93, 0x10049ac03\njmp     short loc_10049AC7C                                            ; +0x95, 0x10049ac05\nmovzx   eax, byte ptr [rbp+var_30]                                     ; +0x97, 0x10049ac07\ntest    al, 1                                                          ; +0x9b, 0x10049ac0b\njz      short loc_10049AC43                                            ; +0x9d, 0x10049ac0d\nmov     rax, [rbp+var_28]                                              ; +0x9f, 0x10049ac0f\ncmp     rax, 2                                                         ; +0xa3, 0x10049ac13\njbe     short loc_10049AC4B                                            ; +0xa7, 0x10049ac17\njmp     short loc_10049AC7C                                            ; +0xa9, 0x10049ac19\nshr     eax, 1                                                         ; +0xab, 0x10049ac1b\ncmp     rax, 5                                                         ; +0xad, 0x10049ac1d\nja      short loc_10049AC7C                                            ; +0xb1, 0x10049ac21\nmov     rdi, [rbx+2A8h]                                                ; +0xb3, 0x10049ac23\nmov     rax, [rdi]                                                     ; +0xba, 0x10049ac2a\nlea     rsi, aTooShortMinimu; \"Too short. Minimum 6 characters\"        ; +0xbd, 0x10049ac2d\ncall    qword ptr [rax+390h]                                           ; +0xc4, 0x10049ac34\nadd     rbx, 2A8h                                                      ; +0xca, 0x10049ac3a\njmp     short loc_10049AC69                                            ; +0xd1, 0x10049ac41\nshr     eax, 1                                                         ; +0xd3, 0x10049ac43\ncmp     rax, 2                                                         ; +0xd5, 0x10049ac45\nja      short loc_10049AC7C                                            ; +0xd9, 0x10049ac49\nmov     rdi, [rbx+2A0h]                                                ; +0xdb, 0x10049ac4b\nmov     rax, [rdi]                                                     ; +0xe2, 0x10049ac52\nlea     rsi, aTooShortMinimu_0; \"Too short. Minimum 3 characters\"      ; +0xe5, 0x10049ac55\ncall    qword ptr [rax+390h]                                           ; +0xec, 0x10049ac5c\nadd     rbx, 2A0h                                                      ; +0xf2, 0x10049ac62\nmov     rdi, [rbx]                                                     ; +0xf9, 0x10049ac69\nmov     rax, [rdi]                                                     ; +0xfc, 0x10049ac6c\nlea     rsi, unk_10081D311                                             ; +0xff, 0x10049ac6f\ncall    qword ptr [rax+420h]                                           ; +0x106, 0x10049ac76\ntest    byte ptr [rbp+var_30], 1                                       ; +0x10c, 0x10049ac7c\njz      short loc_10049AC8B                                            ; +0x110, 0x10049ac80\nmov     rdi, [rbp+__p]; __p                                            ; +0x112, 0x10049ac82\ncall    __ZdlPv; operator delete(void *)                               ; +0x116, 0x10049ac86\nadd     rsp, 18h                                                       ; +0x11b, 0x10049ac8b\npop     rbx                                                            ; +0x11f, 0x10049ac8f\npop     r14                                                            ; +0x120, 0x10049ac90\npop     r15                                                            ; +0x122, 0x10049ac92\npop     rbp                                                            ; +0x124, 0x10049ac94\nretn                                                                   ; +0x125, 0x10049ac95", "xrefs": ["sub_10049ACB0 @ 0x10049acbc", "<???> @ 0x100944ba8"], "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"}