{"type": "func", "start": 7750892, "end": 7751078, "name": "AccountBanPopup::onMessageBan", "pseudocode": "// \n// AccountBanPopup::onMessageBan from 0x7644ec to 0x7645a6 (186 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::onMessageBan(AccountBanPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // r2\n  int v4; // r3\n  cocos2d::CCString *v5; // r0\n  char *CString; // r0\n  const char *v7; // r1\n  int v9[3]; // [sp+4h] [bp-20h] BYREF\n  char *v10[3]; // [sp+10h] [bp-14h] BYREF\n\n  v3 = *((_DWORD *)this + 195);\n  if ( v3 )\n    v4 = *(_DWORD *)(v3 + 296);\n  else\n    v4 = 0;\n  memset(v9, 0, sizeof(v9));\n  if ( v4 == 12 )\n  {\n    if ( (*((_BYTE *)this + 732) & 1) != 0 )\n      v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                  (cocos2d::CCString *)\"Apply a <cr>permanent</c> message ban to <cg>%s</c>?\\n\"\n                                                       \"Blocks messages and friend requests.\",\n                                  *((const char **)this + 185));\n    else\n      v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                  (cocos2d::CCString *)\"Apply a <cr>permanent</c> message ban to <cg>%s</c>?\\n\"\n                                                       \"Blocks messages and friend requests.\",\n                                  (const char *)this + 733);\n  }\n  else\n  {\n    if ( (*((_BYTE *)this + 732) & 1) != 0 )\n      v7 = *((const char **)this + 185);\n    else\n      v7 = (char *)this + 733;\n    v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Ban <cg>%s</c> from messages and friend requests for <cy>%s</c>?\",\n                                v7,\n                                off_C74AA0[v4]);\n  }\n  CString = (char *)cocos2d::CCString::getCString(v5);\n  std::string::assign(v9, CString);\n  ReportPopup::reasonIndicesForTextModeration((ReportPopup *)v10);\n  sub_762E34((int)this + 724, 5, (int)v9, v10);\n  std::__vector_base<int>::~__vector_base(v10);\n  return std::string::~string((int)v9);\n}", "assembly": "; \n; AccountBanPopup::onMessageBan from 0x7644ec to 0x7645a6 (186 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; \nLDR             R3, =(__stack_chk_guard_ptr - 0x7644F4)                ; +0x0, 0x7644ec\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x7644ee\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x7644f0\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x7644f2\nSUB             SP, SP, #0x24                                          ; +0x8, 0x7644f4\nMOV             R4, R0                                                 ; +0xa, 0x7644f6\nLDR             R2, [R3]                                               ; +0xc, 0x7644f8\nMOV             R7, R3                                                 ; +0xe, 0x7644fa\nMOVS            R5, #0                                                 ; +0x10, 0x7644fc\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x12, 0x7644fe\nLDR.W           R2, [R0,#0x30C]                                        ; +0x14, 0x764500\nCBZ             R2, loc_76450C                                         ; +0x18, 0x764504\nLDR.W           R3, [R2,#0x128]                                        ; +0x1a, 0x764506\nB               loc_76450E                                             ; +0x1e, 0x76450a\nMOV             R3, R5                                                 ; +0x20, 0x76450c\nCMP             R3, #0xC                                               ; +0x22, 0x76450e\nSTR             R5, [SP,#0x24+var_20]                                  ; +0x24, 0x764510\nSTR             R5, [SP,#0x24+var_1C]                                  ; +0x26, 0x764512\nSTR             R5, [SP,#0x24+var_18]                                  ; +0x28, 0x764514\nADD             R5, SP, #0x24+var_20                                   ; +0x2a, 0x764516\nLDRB.W          R2, [R4,#0x2DC]                                        ; +0x2c, 0x764518\nBNE             loc_76454C                                             ; +0x30, 0x76451c\nLSLS            R1, R2, #0x1F                                          ; +0x32, 0x76451e\nLDR             R0, =(aApplyACrPerman_1 - 0x764530); \"Apply a <cr>permanent</c> message ban t\"... ; +0x34, 0x764520\nITE PL                                                                 ; +0x36, 0x764522\nADDWPL          R1, R4, #0x2DD                                         ; +0x38, 0x764524\nLDRMI.W         R1, [R4,#0x2E4]; char *                                ; +0x3c, 0x764528\nADD             R0, PC; \"Apply a <cr>permanent</c> message ban t\"...   ; +0x40, 0x76452c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x42, 0x76452e\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x46, 0x764532\nMOV             R1, R0; char *                                         ; +0x4a, 0x764536\nMOV             R0, R5; int                                            ; +0x4c, 0x764538\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x4e, 0x76453a\nADD             R6, SP, #0x24+var_14                                   ; +0x52, 0x76453e\nADD.W           R4, R4, #0x2D4                                         ; +0x54, 0x764540\nMOV             R0, R6; this                                           ; +0x58, 0x764544\nBL              _ZN11ReportPopup30reasonIndicesForTextModerationEv; ReportPopup::reasonIndicesForTextModeration(void) ; +0x5a, 0x764546\nB               loc_76456C                                             ; +0x5e, 0x76454a\nLSLS            R2, R2, #0x1F                                          ; +0x60, 0x76454c\nLDR             R2, =(off_C74AA0 - 0x76455C); \"1 Hour\" ...             ; +0x62, 0x76454e\nLDR             R0, =(aBanCgSCFromMes - 0x764564); \"Ban <cg>%s</c> from messages and friend\"... ; +0x64, 0x764550\nIT PL                                                                  ; +0x66, 0x764552\nADDWPL          R1, R4, #0x2DD                                         ; +0x68, 0x764554\nADD             R2, PC; off_C74AA0                                     ; +0x6c, 0x764558\nIT MI                                                                  ; +0x6e, 0x76455a\nLDRMI.W         R1, [R4,#0x2E4]; char *                                ; +0x70, 0x76455c\nADD             R0, PC; \"Ban <cg>%s</c> from messages and friend\"...   ; +0x74, 0x764560\nLDR.W           R2, [R2,R3,LSL#2]                                      ; +0x76, 0x764562\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x7a, 0x764566\nB               loc_764532                                             ; +0x7e, 0x76456a\nMOV             R0, R4                                                 ; +0x80, 0x76456c\nMOVS            R1, #5                                                 ; +0x82, 0x76456e\nMOV             R2, R5                                                 ; +0x84, 0x764570\nMOV             R3, R6                                                 ; +0x86, 0x764572\nBL              sub_762E34                                             ; +0x88, 0x764574\nMOV             R0, R6                                                 ; +0x8c, 0x764578\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x8e, 0x76457a\nMOV             R0, R5                                                 ; +0x92, 0x76457e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x764580\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x98, 0x764584\nLDR             R3, [R7]                                               ; +0x9a, 0x764586\nCMP             R2, R3                                                 ; +0x9c, 0x764588\nBEQ             loc_7645A2                                             ; +0x9e, 0x76458a\nBLX             __stack_chk_fail                                       ; +0xa0, 0x76458c\nMOV             R0, R6                                                 ; +0xa4, 0x764590\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xa6, 0x764592\nB               loc_764598                                             ; +0xaa, 0x764596\nMOV             R0, R5                                                 ; +0xac, 0x764598\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xae, 0x76459a\nBL              __cxa_end_cleanup                                      ; +0xb2, 0x76459e\nADD             SP, SP, #0x24 ; '$'                                    ; +0xb6, 0x7645a2\nPOP             {R4-R7,PC}                                             ; +0xb8, 0x7645a4", "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"}