{"type": "func", "start": 7750484, "end": 7750670, "name": "AccountBanPopup::onCommentBan", "pseudocode": "// \n// AccountBanPopup::onCommentBan from 0x764354 to 0x76440e (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::onCommentBan(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 + 193);\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> comment ban to <cg>%s</c>?\",\n                                  *((const char **)this + 185));\n    else\n      v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                  (cocos2d::CCString *)\"Apply a <cr>permanent</c> comment ban to <cg>%s</c>?\",\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 commenting 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, 1, (int)v9, v10);\n  std::__vector_base<int>::~__vector_base(v10);\n  return std::string::~string((int)v9);\n}", "assembly": "; \n; AccountBanPopup::onCommentBan from 0x764354 to 0x76440e (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 - 0x76435C)                ; +0x0, 0x764354\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x764356\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x764358\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x76435a\nSUB             SP, SP, #0x24                                          ; +0x8, 0x76435c\nMOV             R4, R0                                                 ; +0xa, 0x76435e\nLDR             R2, [R3]                                               ; +0xc, 0x764360\nMOV             R7, R3                                                 ; +0xe, 0x764362\nMOVS            R5, #0                                                 ; +0x10, 0x764364\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x12, 0x764366\nLDR.W           R2, [R0,#0x304]                                        ; +0x14, 0x764368\nCBZ             R2, loc_764374                                         ; +0x18, 0x76436c\nLDR.W           R3, [R2,#0x128]                                        ; +0x1a, 0x76436e\nB               loc_764376                                             ; +0x1e, 0x764372\nMOV             R3, R5                                                 ; +0x20, 0x764374\nCMP             R3, #0xC                                               ; +0x22, 0x764376\nSTR             R5, [SP,#0x24+var_20]                                  ; +0x24, 0x764378\nSTR             R5, [SP,#0x24+var_1C]                                  ; +0x26, 0x76437a\nSTR             R5, [SP,#0x24+var_18]                                  ; +0x28, 0x76437c\nADD             R5, SP, #0x24+var_20                                   ; +0x2a, 0x76437e\nLDRB.W          R2, [R4,#0x2DC]                                        ; +0x2c, 0x764380\nBNE             loc_7643B4                                             ; +0x30, 0x764384\nLSLS            R1, R2, #0x1F                                          ; +0x32, 0x764386\nLDR             R0, =(aApplyACrPerman - 0x764398); \"Apply a <cr>permanent</c> comment ban t\"... ; +0x34, 0x764388\nITE PL                                                                 ; +0x36, 0x76438a\nADDWPL          R1, R4, #0x2DD                                         ; +0x38, 0x76438c\nLDRMI.W         R1, [R4,#0x2E4]; char *                                ; +0x3c, 0x764390\nADD             R0, PC; \"Apply a <cr>permanent</c> comment ban t\"...   ; +0x40, 0x764394\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x42, 0x764396\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x46, 0x76439a\nMOV             R1, R0; char *                                         ; +0x4a, 0x76439e\nMOV             R0, R5; int                                            ; +0x4c, 0x7643a0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x4e, 0x7643a2\nADD             R6, SP, #0x24+var_14                                   ; +0x52, 0x7643a6\nADD.W           R4, R4, #0x2D4                                         ; +0x54, 0x7643a8\nMOV             R0, R6; this                                           ; +0x58, 0x7643ac\nBL              _ZN11ReportPopup30reasonIndicesForTextModerationEv; ReportPopup::reasonIndicesForTextModeration(void) ; +0x5a, 0x7643ae\nB               loc_7643D4                                             ; +0x5e, 0x7643b2\nLSLS            R2, R2, #0x1F                                          ; +0x60, 0x7643b4\nLDR             R2, =(off_C74AA0 - 0x7643C4); \"1 Hour\" ...             ; +0x62, 0x7643b6\nLDR             R0, =(aBanCgSCFromCom - 0x7643CC); \"Ban <cg>%s</c> from commenting for <cy>\"... ; +0x64, 0x7643b8\nIT PL                                                                  ; +0x66, 0x7643ba\nADDWPL          R1, R4, #0x2DD                                         ; +0x68, 0x7643bc\nADD             R2, PC; off_C74AA0                                     ; +0x6c, 0x7643c0\nIT MI                                                                  ; +0x6e, 0x7643c2\nLDRMI.W         R1, [R4,#0x2E4]; char *                                ; +0x70, 0x7643c4\nADD             R0, PC; \"Ban <cg>%s</c> from commenting for <cy>\"...   ; +0x74, 0x7643c8\nLDR.W           R2, [R2,R3,LSL#2]                                      ; +0x76, 0x7643ca\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x7a, 0x7643ce\nB               loc_76439A                                             ; +0x7e, 0x7643d2\nMOV             R0, R4                                                 ; +0x80, 0x7643d4\nMOVS            R1, #1                                                 ; +0x82, 0x7643d6\nMOV             R2, R5                                                 ; +0x84, 0x7643d8\nMOV             R3, R6                                                 ; +0x86, 0x7643da\nBL              sub_762E34                                             ; +0x88, 0x7643dc\nMOV             R0, R6                                                 ; +0x8c, 0x7643e0\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x8e, 0x7643e2\nMOV             R0, R5                                                 ; +0x92, 0x7643e6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x7643e8\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x98, 0x7643ec\nLDR             R3, [R7]                                               ; +0x9a, 0x7643ee\nCMP             R2, R3                                                 ; +0x9c, 0x7643f0\nBEQ             loc_76440A                                             ; +0x9e, 0x7643f2\nBLX             __stack_chk_fail                                       ; +0xa0, 0x7643f4\nMOV             R0, R6                                                 ; +0xa4, 0x7643f8\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xa6, 0x7643fa\nB               loc_764400                                             ; +0xaa, 0x7643fe\nMOV             R0, R5                                                 ; +0xac, 0x764400\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xae, 0x764402\nBL              __cxa_end_cleanup                                      ; +0xb2, 0x764406\nADD             SP, SP, #0x24 ; '$'                                    ; +0xb6, 0x76440a\nPOP             {R4-R7,PC}                                             ; +0xb8, 0x76440c", "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"}