{"type": "func", "start": 7753656, "end": 7753894, "name": "AccountBanPopup::onFreeze", "pseudocode": "// \n// AccountBanPopup::onFreeze from 0x764fb8 to 0x7650a6 (238 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:07 +0000\n// \n\nint __fastcall AccountBanPopup::onFreeze(AccountBanPopup *this, cocos2d::CCObject *a2)\n{\n  int v2; // r1\n  int v4; // r2\n  int v5; // r3\n  int v6; // r2\n  cocos2d::CCString *v7; // r0\n  char *CString; // r0\n  const char *v9; // r1\n  int i; // [sp+0h] [bp-20h] BYREF\n  int v12[3]; // [sp+4h] [bp-1Ch] BYREF\n  char *v13; // [sp+10h] [bp-10h] BYREF\n  int *v14; // [sp+14h] [bp-Ch]\n  int *v15; // [sp+18h] [bp-8h]\n\n  v2 = *((_DWORD *)this + 196);\n  if ( v2 )\n    v4 = *(_DWORD *)(v2 + 296);\n  else\n    v4 = 0;\n  memset(v12, 0, sizeof(v12));\n  v5 = *((unsigned __int8 *)this + 732);\n  if ( v4 == 12 )\n  {\n    v6 = v5 << 31;\n    if ( (v5 & 1) != 0 )\n      v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                  (cocos2d::CCString *)\"Apply <cr>all bans</c> to <cg>%s</c> <cr>permanently</c>?\\n\"\n                                                       \"Covers comments, uploads and messages.\",\n                                  *((const char **)this + 185),\n                                  v6);\n    else\n      v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                  (cocos2d::CCString *)\"Apply <cr>all bans</c> to <cg>%s</c> <cr>permanently</c>?\\n\"\n                                                       \"Covers comments, uploads and messages.\",\n                                  (const char *)this + 733,\n                                  v6);\n  }\n  else\n  {\n    if ( (v5 & 1) != 0 )\n      v9 = *((const char **)this + 185);\n    else\n      v9 = (char *)this + 733;\n    v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Apply <cr>all bans</c> to <cg>%s</c> for <cy>%s</c>?\\n\"\n                                                     \"Covers comments, uploads and messages.\",\n                                v9,\n                                off_C74AA0[v4]);\n  }\n  CString = (char *)cocos2d::CCString::getCString(v7);\n  std::string::assign(v12, CString);\n  v13 = nullptr;\n  v14 = nullptr;\n  v15 = nullptr;\n  for ( i = 0; i <= 7; ++i )\n  {\n    if ( v14 == v15 )\n    {\n      std::vector<int>::__push_back_slow_path<int const&>((int)&v13, &i);\n    }\n    else\n    {\n      if ( v14 )\n        *v14 = i;\n      ++v14;\n    }\n  }\n  sub_762E34((int)this + 724, 7, (int)v12, &v13);\n  std::__vector_base<int>::~__vector_base(&v13);\n  return std::string::~string((int)v12);\n}", "assembly": "; \n; AccountBanPopup::onFreeze from 0x764fb8 to 0x7650a6 (238 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:07 +0000\n; \nLDR             R2, =(__stack_chk_guard_ptr - 0x764FC2)                ; +0x0, 0x764fb8\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x764fba\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0x6, 0x764fbe\nLDR             R2, [R2]; __stack_chk_guard                            ; +0x8, 0x764fc0\nLDR.W           R1, [R0,#0x310]                                        ; +0xa, 0x764fc2\nSUB             SP, SP, #0x20                                          ; +0xe, 0x764fc6\nLDR             R3, [R2]                                               ; +0x10, 0x764fc8\nMOV             R4, R0                                                 ; +0x12, 0x764fca\nMOV             R6, R2                                                 ; +0x14, 0x764fcc\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x16, 0x764fce\nMOVS            R3, #0                                                 ; +0x18, 0x764fd0\nCBZ             R1, loc_764FDA                                         ; +0x1a, 0x764fd2\nLDR.W           R2, [R1,#0x128]                                        ; +0x1c, 0x764fd4\nB               loc_764FDC                                             ; +0x20, 0x764fd8\nMOV             R2, R3                                                 ; +0x22, 0x764fda\nCMP             R2, #0xC                                               ; +0x24, 0x764fdc\nSTR             R3, [SP,#0x20+var_1C]                                  ; +0x26, 0x764fde\nSTR             R3, [SP,#0x20+var_18]                                  ; +0x28, 0x764fe0\nADD             R5, SP, #0x20+var_1C                                   ; +0x2a, 0x764fe2\nSTR             R3, [SP,#0x20+var_14]                                  ; +0x2c, 0x764fe4\nLDRB.W          R3, [R4,#0x2DC]                                        ; +0x2e, 0x764fe6\nBNE             loc_76501C                                             ; +0x32, 0x764fea\nLSLS            R2, R3, #0x1F                                          ; +0x34, 0x764fec\nLDR             R0, =(aApplyCrAllBans - 0x764FFE); \"Apply <cr>all bans</c> to <cg>%s</c> <c\"... ; +0x36, 0x764fee\nITE PL                                                                 ; +0x38, 0x764ff0\nADDWPL          R1, R4, #0x2DD                                         ; +0x3a, 0x764ff2\nLDRMI.W         R1, [R4,#0x2E4]; char *                                ; +0x3e, 0x764ff6\nADD             R0, PC; \"Apply <cr>all bans</c> to <cg>%s</c> <c\"...   ; +0x42, 0x764ffa\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x44, 0x764ffc\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x48, 0x765000\nMOV             R1, R0; char *                                         ; +0x4c, 0x765004\nMOV             R0, R5; int                                            ; +0x4e, 0x765006\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x50, 0x765008\nMOVS            R3, #0                                                 ; +0x54, 0x76500c\nADD             R7, SP, #0x20+var_10                                   ; +0x56, 0x76500e\nSTR             R3, [SP,#0x20+var_10]                                  ; +0x58, 0x765010\nMOV             R8, SP                                                 ; +0x5a, 0x765012\nSTR             R3, [SP,#0x20+var_C]                                   ; +0x5c, 0x765014\nSTR             R3, [SP,#0x20+var_8]                                   ; +0x5e, 0x765016\nSTR             R3, [SP,#0x20+var_20]                                  ; +0x60, 0x765018\nB               loc_765054                                             ; +0x62, 0x76501a\nLSLS            R3, R3, #0x1F                                          ; +0x64, 0x76501c\nLDR             R3, =(off_C74AA0 - 0x76502C); \"1 Hour\" ...             ; +0x66, 0x76501e\nLDR             R0, =(aApplyCrAllBans_0 - 0x765034); \"Apply <cr>all bans</c> to <cg>%s</c> fo\"... ; +0x68, 0x765020\nIT PL                                                                  ; +0x6a, 0x765022\nADDWPL          R1, R4, #0x2DD                                         ; +0x6c, 0x765024\nADD             R3, PC; off_C74AA0                                     ; +0x70, 0x765028\nIT MI                                                                  ; +0x72, 0x76502a\nLDRMI.W         R1, [R4,#0x2E4]; char *                                ; +0x74, 0x76502c\nADD             R0, PC; \"Apply <cr>all bans</c> to <cg>%s</c> fo\"...   ; +0x78, 0x765030\nLDR.W           R2, [R3,R2,LSL#2]                                      ; +0x7a, 0x765032\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x7e, 0x765036\nB               loc_765000                                             ; +0x82, 0x76503a\nLDR             R3, [SP,#0x20+var_C]                                   ; +0x84, 0x76503c\nLDR             R1, [SP,#0x20+var_8]                                   ; +0x86, 0x76503e\nCMP             R3, R1                                                 ; +0x88, 0x765040\nBEQ             loc_76505C                                             ; +0x8a, 0x765042\nCBZ             R3, loc_765048                                         ; +0x8c, 0x765044\nSTR             R2, [R3]                                               ; +0x8e, 0x765046\nLDR             R3, [SP,#0x20+var_C]                                   ; +0x90, 0x765048\nADDS            R3, #4                                                 ; +0x92, 0x76504a\nSTR             R3, [SP,#0x20+var_C]                                   ; +0x94, 0x76504c\nLDR             R3, [SP,#0x20+var_20]                                  ; +0x96, 0x76504e\nADDS            R3, #1                                                 ; +0x98, 0x765050\nSTR             R3, [SP,#0x20+var_20]                                  ; +0x9a, 0x765052\nLDR             R2, [SP,#0x20+var_20]                                  ; +0x9c, 0x765054\nCMP             R2, #7                                                 ; +0x9e, 0x765056\nBLE             loc_76503C                                             ; +0xa0, 0x765058\nB               loc_765066                                             ; +0xa2, 0x76505a\nMOV             R0, R7                                                 ; +0xa4, 0x76505c\nMOV             R1, R8                                                 ; +0xa6, 0x76505e\nBL              _ZNSt6__ndk16vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_; std::vector<int>::__push_back_slow_path<int const&>(int const&) ; +0xa8, 0x765060\nB               loc_76504E                                             ; +0xac, 0x765064\nADD             R7, SP, #0x20+var_10                                   ; +0xae, 0x765066\nADD.W           R0, R4, #0x2D4                                         ; +0xb0, 0x765068\nMOVS            R1, #7                                                 ; +0xb4, 0x76506c\nMOV             R2, R5                                                 ; +0xb6, 0x76506e\nMOV             R3, R7                                                 ; +0xb8, 0x765070\nBL              sub_762E34                                             ; +0xba, 0x765072\nMOV             R0, R7                                                 ; +0xbe, 0x765076\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xc0, 0x765078\nMOV             R0, R5                                                 ; +0xc4, 0x76507c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc6, 0x76507e\nLDR             R2, [SP,#0x20+var_4]                                   ; +0xca, 0x765082\nLDR             R3, [R6]                                               ; +0xcc, 0x765084\nCMP             R2, R3                                                 ; +0xce, 0x765086\nBEQ             loc_7650A0                                             ; +0xd0, 0x765088\nBLX             __stack_chk_fail                                       ; +0xd2, 0x76508a\nADD             R0, SP, #0x20+var_10                                   ; +0xd6, 0x76508e\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xd8, 0x765090\nB               loc_765096                                             ; +0xdc, 0x765094\nMOV             R0, R5                                                 ; +0xde, 0x765096\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xe0, 0x765098\nBL              __cxa_end_cleanup                                      ; +0xe4, 0x76509c\nADD             SP, SP, #0x20 ; ' '                                    ; +0xe8, 0x7650a0\nPOP.W           {R4-R8,PC}                                             ; +0xea, 0x7650a2", "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"}