{"type": "func", "start": 7747944, "end": 7748200, "name": "AccountBanPopup::onNameLock", "pseudocode": "// \n// AccountBanPopup::onNameLock from 0x763968 to 0x763a68 (256 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:59:06 +0000\n// \n\nint __fastcall AccountBanPopup::onNameLock(AccountBanPopup *this, cocos2d::CCObject *a2)\n{\n  char *v2; // r6\n  cocos2d::CCString *v3; // r0\n  const char *CString; // r8\n  size_t v5; // r0\n  int v6; // r6\n  int v8[3]; // [sp+14h] [bp+0h] BYREF\n  char *v9[3]; // [sp+20h] [bp+Ch] BYREF\n  int v10[3]; // [sp+2Ch] [bp+18h] BYREF\n  int v11[3]; // [sp+38h] [bp+24h] BYREF\n\n  v2 = (char *)this + 724;\n  if ( (*((_BYTE *)this + 732) & 1) != 0 )\n    v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Lock the username of <cg>%s</c>?\\n\"\n                                                     \"They can no longer change it on the website until unlocked.\",\n                                *((const char **)this + 185));\n  else\n    v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Lock the username of <cg>%s</c>?\\n\"\n                                                     \"They can no longer change it on the website until unlocked.\",\n                                (const char *)this + 733);\n  memset(v8, 0, sizeof(v8));\n  CString = (const char *)cocos2d::CCString::getCString(v3);\n  v5 = strlen(CString);\n  std::string::__init(v8, CString, v5);\n  ReportPopup::reasonIndicesForTextModeration((ReportPopup *)v9);\n  memset(v10, 0, sizeof(v10));\n  std::string::__init(v10, &unk_B6B226, 0);\n  v6 = AdminActionConfirmPopup::create(\n         (int)v2,\n         11,\n         \"Confirm Lock\",\n         (int)v8,\n         (ButtonSprite *)\"Lock\",\n         v9,\n         (unsigned __int8 *)v10,\n         1);\n  std::string::~string((int)v10);\n  std::__vector_base<int>::~__vector_base(v9);\n  memset(v11, 0, sizeof(v11));\n  std::string::__init(\n    v11,\n    \"The website tells the player their username is permanently locked. The reason and categories only go to the moderato\"\n    \"r log.\\n\"\n    \"\\n\"\n    \"No duration: the lock survives the weekly name change reset until a moderator unlocks the account.\",\n    0xDEu);\n  AdminActionConfirmPopup::addHelp(v6, \"Name Lock\", (int)v11);\n  std::string::~string((int)v11);\n  (*(void (__fastcall **)(int))(*(_DWORD *)v6 + 656))(v6);\n  return std::string::~string((int)v8);\n}", "assembly": "; \n; AccountBanPopup::onNameLock from 0x763968 to 0x763a68 (256 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:59:06 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x763968\nSUB             SP, SP, #0x48                                          ; +0x4, 0x76396c\nLDR             R5, =(__stack_chk_guard_ptr - 0x76397A)                ; +0x6, 0x76396e\nMOV             R6, R0                                                 ; +0x8, 0x763970\nMOVS            R4, #0                                                 ; +0xa, 0x763972\nADD             R7, SP, #0x14                                          ; +0xc, 0x763974\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x763976\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x763978\nADD.W           R6, R6, #0x2D4                                         ; +0x12, 0x76397a\nLDR             R3, [R5]                                               ; +0x16, 0x76397e\nSTR             R3, [SP,#0x48+var_4]                                   ; +0x18, 0x763980\nLDRB.W          R3, [R0,#0x2DC]                                        ; +0x1a, 0x763982\nLSLS            R3, R3, #0x1F                                          ; +0x1e, 0x763986\nITE PL                                                                 ; +0x20, 0x763988\nADDWPL          R1, R0, #0x2DD                                         ; +0x22, 0x76398a\nLDRMI.W         R1, [R0,#0x2E4]; char *                                ; +0x26, 0x76398e\nLDR             R0, =(aLockTheUsernam - 0x763998); \"Lock the username of <cg>%s</c>?\\nThey \"... ; +0x2a, 0x763992\nADD             R0, PC; \"Lock the username of <cg>%s</c>?\\nThey \"...   ; +0x2c, 0x763994\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x2e, 0x763996\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x32, 0x76399a\nSTR             R4, [SP,#0x48+var_34]                                  ; +0x36, 0x76399e\nSTR             R4, [SP,#0x48+var_30]                                  ; +0x38, 0x7639a0\nSTR             R4, [SP,#0x48+var_2C]                                  ; +0x3a, 0x7639a2\nMOV             R8, R0                                                 ; +0x3c, 0x7639a4\nBLX             strlen                                                 ; +0x3e, 0x7639a6\nMOV             R1, R8                                                 ; +0x42, 0x7639aa\nADD.W           R8, SP, #0x48+var_28                                   ; +0x44, 0x7639ac\nMOV             R2, R0                                                 ; +0x48, 0x7639b0\nMOV             R0, R7                                                 ; +0x4a, 0x7639b2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x4c, 0x7639b4\nMOV             R0, R8; this                                           ; +0x50, 0x7639b8\nBL              _ZN11ReportPopup30reasonIndicesForTextModerationEv; ReportPopup::reasonIndicesForTextModeration(void) ; +0x52, 0x7639ba\nSTR             R4, [SP,#0x48+var_1C]                                  ; +0x56, 0x7639be\nMOVS            R2, #0                                                 ; +0x58, 0x7639c0\nSTR             R4, [SP,#0x48+var_18]                                  ; +0x5a, 0x7639c2\nSTR             R4, [SP,#0x48+var_14]                                  ; +0x5c, 0x7639c4\nADD             R4, SP, #0x48+var_1C                                   ; +0x5e, 0x7639c6\nLDR             R1, =(unk_B6B226 - 0x7639D0)                           ; +0x60, 0x7639c8\nMOV             R0, R4                                                 ; +0x62, 0x7639ca\nADD             R1, PC; unk_B6B226                                     ; +0x64, 0x7639cc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x66, 0x7639ce\nLDR             R3, =(aLock_0 - 0x7639DE); \"Lock\"                      ; +0x6a, 0x7639d2\nMOV             R0, R6                                                 ; +0x6c, 0x7639d4\nLDR             R2, =(aConfirmLock - 0x7639E6); \"Confirm Lock\"         ; +0x6e, 0x7639d6\nMOVS            R1, #0xB                                               ; +0x70, 0x7639d8\nADD             R3, PC; \"Lock\"                                         ; +0x72, 0x7639da\nSTR             R4, [SP,#0x48+var_40]                                  ; +0x74, 0x7639dc\nSTMEA.W         SP, {R3,R8}                                            ; +0x76, 0x7639de\nADD             R2, PC; \"Confirm Lock\"                                 ; +0x7a, 0x7639e2\nMOVS            R3, #1                                                 ; +0x7c, 0x7639e4\nSTR             R3, [SP,#0x48+var_3C]                                  ; +0x7e, 0x7639e6\nMOV             R3, R7                                                 ; +0x80, 0x7639e8\nBL              _ZN23AdminActionConfirmPopup6createEP26AdminActionConfirmDelegateiPKcRKNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_RKNS4_6vectorIiNS8_IiEEEESC_b; AdminActionConfirmPopup::create(AdminActionConfirmDelegate *,int,char const*,std::string const&,char const*,std::vector<int> const&,std::string const&,bool) ; +0x82, 0x7639ea\nMOV             R6, R0                                                 ; +0x86, 0x7639ee\nMOV             R0, R4                                                 ; +0x88, 0x7639f0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x8a, 0x7639f2\nMOV             R0, R8                                                 ; +0x8e, 0x7639f6\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x90, 0x7639f8\nADD             R4, SP, #0x48+var_10                                   ; +0x94, 0x7639fc\nLDR             R1, =(aTheWebsiteTell - 0x763A0A); \"The website tells the player their user\"... ; +0x96, 0x7639fe\nMOVS            R2, #0xDE                                              ; +0x98, 0x763a00\nMOV             R0, R4                                                 ; +0x9a, 0x763a02\nMOVS            R3, #0                                                 ; +0x9c, 0x763a04\nADD             R1, PC; \"The website tells the player their user\"...   ; +0x9e, 0x763a06\nSTR             R3, [SP,#0x48+var_10]                                  ; +0xa0, 0x763a08\nSTR             R3, [SP,#0x48+var_C]                                   ; +0xa2, 0x763a0a\nSTR             R3, [SP,#0x48+var_8]                                   ; +0xa4, 0x763a0c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xa6, 0x763a0e\nLDR             R1, =(aNameLock_0 - 0x763A1C); \"Name Lock\"             ; +0xaa, 0x763a12\nMOV             R0, R6                                                 ; +0xac, 0x763a14\nMOV             R2, R4                                                 ; +0xae, 0x763a16\nADD             R1, PC; \"Name Lock\"                                    ; +0xb0, 0x763a18\nBL              _ZN23AdminActionConfirmPopup7addHelpEPKcRKNSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE; AdminActionConfirmPopup::addHelp(char const*,std::string const&) ; +0xb2, 0x763a1a\nMOV             R0, R4                                                 ; +0xb6, 0x763a1e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb8, 0x763a20\nLDR             R3, [R6]                                               ; +0xbc, 0x763a24\nMOV             R0, R6                                                 ; +0xbe, 0x763a26\nLDR.W           R3, [R3,#0x290]                                        ; +0xc0, 0x763a28\nBLX             R3                                                     ; +0xc4, 0x763a2c\nMOV             R0, R7                                                 ; +0xc6, 0x763a2e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc8, 0x763a30\nLDR             R2, [SP,#0x48+var_4]                                   ; +0xcc, 0x763a34\nLDR             R3, [R5]                                               ; +0xce, 0x763a36\nCMP             R2, R3                                                 ; +0xd0, 0x763a38\nBEQ             loc_763A62                                             ; +0xd2, 0x763a3a\nBLX             __stack_chk_fail                                       ; +0xd4, 0x763a3c\nMOV             R0, R4                                                 ; +0xd8, 0x763a40\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xda, 0x763a42\nB               loc_763A48                                             ; +0xde, 0x763a46\nMOV             R0, R8                                                 ; +0xe0, 0x763a48\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xe2, 0x763a4a\nB               loc_763A58                                             ; +0xe6, 0x763a4e\nMOV             R0, R4                                                 ; +0xe8, 0x763a50\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xea, 0x763a52\nB               loc_763A58                                             ; +0xee, 0x763a56\nMOV             R0, R7                                                 ; +0xf0, 0x763a58\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf2, 0x763a5a\nBL              __cxa_end_cleanup                                      ; +0xf6, 0x763a5e\nADD             SP, SP, #0x48 ; 'H'                                    ; +0xfa, 0x763a62\nPOP.W           {R4-R8,PC}                                             ; +0xfc, 0x763a64", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}