{"type": "func", "start": 7750688, "end": 7750874, "name": "AccountBanPopup::onLevelUploadBan", "pseudocode": "// \n// AccountBanPopup::onLevelUploadBan from 0x764420 to 0x7644da (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::onLevelUploadBan(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 + 194);\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> level upload 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> level upload 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 uploading levels 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::reasonIndicesForUploadModeration((ReportPopup *)v10);\n  sub_762E34((int)this + 724, 2, (int)v9, v10);\n  std::__vector_base<int>::~__vector_base(v10);\n  return std::string::~string((int)v9);\n}", "assembly": "; \n; AccountBanPopup::onLevelUploadBan from 0x764420 to 0x7644da (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 - 0x764428)                ; +0x0, 0x764420\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x764422\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x764424\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x764426\nSUB             SP, SP, #0x24                                          ; +0x8, 0x764428\nMOV             R4, R0                                                 ; +0xa, 0x76442a\nLDR             R2, [R3]                                               ; +0xc, 0x76442c\nMOV             R7, R3                                                 ; +0xe, 0x76442e\nMOVS            R5, #0                                                 ; +0x10, 0x764430\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x12, 0x764432\nLDR.W           R2, [R0,#0x308]                                        ; +0x14, 0x764434\nCBZ             R2, loc_764440                                         ; +0x18, 0x764438\nLDR.W           R3, [R2,#0x128]                                        ; +0x1a, 0x76443a\nB               loc_764442                                             ; +0x1e, 0x76443e\nMOV             R3, R5                                                 ; +0x20, 0x764440\nCMP             R3, #0xC                                               ; +0x22, 0x764442\nSTR             R5, [SP,#0x24+var_20]                                  ; +0x24, 0x764444\nSTR             R5, [SP,#0x24+var_1C]                                  ; +0x26, 0x764446\nSTR             R5, [SP,#0x24+var_18]                                  ; +0x28, 0x764448\nADD             R5, SP, #0x24+var_20                                   ; +0x2a, 0x76444a\nLDRB.W          R2, [R4,#0x2DC]                                        ; +0x2c, 0x76444c\nBNE             loc_764480                                             ; +0x30, 0x764450\nLSLS            R1, R2, #0x1F                                          ; +0x32, 0x764452\nLDR             R0, =(aApplyACrPerman_0 - 0x764464); \"Apply a <cr>permanent</c> level upload \"... ; +0x34, 0x764454\nITE PL                                                                 ; +0x36, 0x764456\nADDWPL          R1, R4, #0x2DD                                         ; +0x38, 0x764458\nLDRMI.W         R1, [R4,#0x2E4]; char *                                ; +0x3c, 0x76445c\nADD             R0, PC; \"Apply a <cr>permanent</c> level upload \"...   ; +0x40, 0x764460\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x42, 0x764462\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x46, 0x764466\nMOV             R1, R0; char *                                         ; +0x4a, 0x76446a\nMOV             R0, R5; int                                            ; +0x4c, 0x76446c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x4e, 0x76446e\nADD             R6, SP, #0x24+var_14                                   ; +0x52, 0x764472\nADD.W           R4, R4, #0x2D4                                         ; +0x54, 0x764474\nMOV             R0, R6; this                                           ; +0x58, 0x764478\nBL              _ZN11ReportPopup32reasonIndicesForUploadModerationEv; ReportPopup::reasonIndicesForUploadModeration(void) ; +0x5a, 0x76447a\nB               loc_7644A0                                             ; +0x5e, 0x76447e\nLSLS            R2, R2, #0x1F                                          ; +0x60, 0x764480\nLDR             R2, =(off_C74AA0 - 0x764490); \"1 Hour\" ...             ; +0x62, 0x764482\nLDR             R0, =(aBanCgSCFromUpl - 0x764498); \"Ban <cg>%s</c> from uploading levels fo\"... ; +0x64, 0x764484\nIT PL                                                                  ; +0x66, 0x764486\nADDWPL          R1, R4, #0x2DD                                         ; +0x68, 0x764488\nADD             R2, PC; off_C74AA0                                     ; +0x6c, 0x76448c\nIT MI                                                                  ; +0x6e, 0x76448e\nLDRMI.W         R1, [R4,#0x2E4]; char *                                ; +0x70, 0x764490\nADD             R0, PC; \"Ban <cg>%s</c> from uploading levels fo\"...   ; +0x74, 0x764494\nLDR.W           R2, [R2,R3,LSL#2]                                      ; +0x76, 0x764496\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x7a, 0x76449a\nB               loc_764466                                             ; +0x7e, 0x76449e\nMOV             R0, R4                                                 ; +0x80, 0x7644a0\nMOVS            R1, #2                                                 ; +0x82, 0x7644a2\nMOV             R2, R5                                                 ; +0x84, 0x7644a4\nMOV             R3, R6                                                 ; +0x86, 0x7644a6\nBL              sub_762E34                                             ; +0x88, 0x7644a8\nMOV             R0, R6                                                 ; +0x8c, 0x7644ac\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x8e, 0x7644ae\nMOV             R0, R5                                                 ; +0x92, 0x7644b2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x7644b4\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x98, 0x7644b8\nLDR             R3, [R7]                                               ; +0x9a, 0x7644ba\nCMP             R2, R3                                                 ; +0x9c, 0x7644bc\nBEQ             loc_7644D6                                             ; +0x9e, 0x7644be\nBLX             __stack_chk_fail                                       ; +0xa0, 0x7644c0\nMOV             R0, R6                                                 ; +0xa4, 0x7644c4\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xa6, 0x7644c6\nB               loc_7644CC                                             ; +0xaa, 0x7644ca\nMOV             R0, R5                                                 ; +0xac, 0x7644cc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xae, 0x7644ce\nBL              __cxa_end_cleanup                                      ; +0xb2, 0x7644d2\nADD             SP, SP, #0x24 ; '$'                                    ; +0xb6, 0x7644d6\nPOP             {R4-R7,PC}                                             ; +0xb8, 0x7644d8", "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"}