{"type": "func", "start": 5369398224, "end": 5369398591, "name": "AccountBanPopup::onMessageBan", "pseudocode": "// \n// AccountBanPopup::onMessageBan from 0x1400a83d0 to 0x1400a853f (367 bytes)\n// \n// 2 xrefs:\n// > AccountBanPopup::init @ 0x1400a7129\n// > <???> @ 0x14091328c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:26:09 +0000\n// \n\nvoid __fastcall AccountBanPopup::onMessageBan(__int64 a1)\n{\n  __int64 v2; // rax\n  int v3; // eax\n  const char *v4; // rdx\n  unsigned __int64 v5; // rcx\n  cocos2d::CCString *v6; // rax\n  char *CString; // rax\n  size_t v8; // r8\n  int v9; // ebx\n  __int64 v10; // rax\n  void *v11; // rcx\n  _BYTE v12[24]; // [rsp+30h] [rbp-48h] BYREF\n  void *Block[2]; // [rsp+48h] [rbp-30h] BYREF\n  __m128i si128; // [rsp+58h] [rbp-20h]\n\n  v2 = *(_QWORD *)(a1 + 1120);\n  if ( v2 )\n    v3 = *(_DWORD *)(v2 + 384);\n  else\n    v3 = 0;\n  *(_OWORD *)Block = 0;\n  si128 = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(Block[0]) = 0;\n  v4 = (const char *)(a1 + 1040);\n  v5 = *(_QWORD *)(a1 + 1064);\n  if ( v3 == 12 )\n  {\n    if ( v5 > 0xF )\n      v4 = *(const char **)v4;\n    v6 = cocos2d::CCString::createWithFormat(\n           \"Apply a <cr>permanent</c> message ban to <cg>%s</c>?\\nBlocks messages and friend requests.\",\n           v4);\n  }\n  else\n  {\n    if ( v5 > 0xF )\n      v4 = *(const char **)v4;\n    v6 = cocos2d::CCString::createWithFormat(\n           \"Ban <cg>%s</c> from messages and friend requests for <cy>%s</c>?\",\n           v4,\n           off_140702D30[v3]);\n  }\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  v8 = -1;\n  do\n    ++v8;\n  while ( CString[v8] );\n  sub_1400405A0(Block, CString, v8);\n  v9 = a1 + 1024;\n  if ( !a1 )\n    v9 = 0;\n  v10 = ReportPopup::reasonIndicesForTextModeration(v12);\n  sub_1400A6720(v9, 5, (__int64)Block, v10);\n  sub_140069730((__int64)v12);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v11 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v11 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v11);\n  }\n}", "assembly": "; \n; AccountBanPopup::onMessageBan from 0x1400a83d0 to 0x1400a853f (367 bytes)\n; \n; 2 xrefs:\n; > AccountBanPopup::init @ 0x1400a7129\n; > <???> @ 0x14091328c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:26:09 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400a83d0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1400a83d5\npush    rdi                                                            ; +0xa, 0x1400a83da\nsub     rsp, 70h                                                       ; +0xb, 0x1400a83db\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1400a83df\nxor     rax, rsp                                                       ; +0x16, 0x1400a83e6\nmov     [rsp+78h+var_10], rax                                          ; +0x19, 0x1400a83e9\nmov     rdi, rcx                                                       ; +0x1e, 0x1400a83ee\nmov     rax, [rcx+460h]                                                ; +0x21, 0x1400a83f1\nxor     esi, esi                                                       ; +0x28, 0x1400a83f8\ntest    rax, rax                                                       ; +0x2a, 0x1400a83fa\njz      short loc_1400A8407                                            ; +0x2d, 0x1400a83fd\nmov     eax, [rax+180h]                                                ; +0x2f, 0x1400a83ff\njmp     short loc_1400A8409                                            ; +0x35, 0x1400a8405\nmov     eax, esi                                                       ; +0x37, 0x1400a8407\nxorps   xmm0, xmm0                                                     ; +0x39, 0x1400a8409\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x3c, 0x1400a840c\nmovdqa  xmm1, cs:Size                                                  ; +0x41, 0x1400a8411\nmovdqu  [rsp+78h+var_20], xmm1                                         ; +0x49, 0x1400a8419\nmov     byte ptr [rsp+78h+Block], sil                                  ; +0x4f, 0x1400a841f\nlea     rdx, [rcx+410h]                                                ; +0x54, 0x1400a8424\nmov     rcx, [rdx+18h]                                                 ; +0x5b, 0x1400a842b\ncmp     eax, 0Ch                                                       ; +0x5f, 0x1400a842f\njnz     short loc_1400A844C                                            ; +0x62, 0x1400a8432\ncmp     rcx, 0Fh                                                       ; +0x64, 0x1400a8434\njbe     short loc_1400A843D                                            ; +0x68, 0x1400a8438\nmov     rdx, [rdx]                                                     ; +0x6a, 0x1400a843a\nlea     rcx, aApplyACrPerman_1; \"Apply a <cr>permanent</c> message ban t\"... ; +0x6d, 0x1400a843d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x74, 0x1400a8444\njmp     short loc_1400A8470                                            ; +0x7a, 0x1400a844a\ncmp     rcx, 0Fh                                                       ; +0x7c, 0x1400a844c\njbe     short loc_1400A8455                                            ; +0x80, 0x1400a8450\nmov     rdx, [rdx]                                                     ; +0x82, 0x1400a8452\nmovsxd  r8, eax                                                        ; +0x85, 0x1400a8455\nlea     rax, off_140702D30; \"1 Hour\"                                   ; +0x88, 0x1400a8458\nmov     r8, [rax+r8*8]                                                 ; +0x8f, 0x1400a845f\nlea     rcx, aBanCgSCFromMes; \"Ban <cg>%s</c> from messages and friend\"... ; +0x93, 0x1400a8463\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x9a, 0x1400a846a\nmov     rcx, rax                                                       ; +0xa0, 0x1400a8470\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa3, 0x1400a8473\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xa9, 0x1400a8479\ninc     r8; Size                                                       ; +0xb0, 0x1400a8480\ncmp     byte ptr [rax+r8], 0                                           ; +0xb3, 0x1400a8483\njnz     short loc_1400A8480                                            ; +0xb8, 0x1400a8488\nmov     rdx, rax; Src                                                  ; +0xba, 0x1400a848a\nlea     rcx, [rsp+78h+Block]; void *                                   ; +0xbd, 0x1400a848d\ncall    sub_1400405A0                                                  ; +0xc2, 0x1400a8492\nlea     rbx, [rdi+400h]                                                ; +0xc7, 0x1400a8497\ntest    rdi, rdi                                                       ; +0xce, 0x1400a849e\ncmovz   rbx, rsi                                                       ; +0xd1, 0x1400a84a1\nlea     rcx, [rsp+78h+var_48]                                          ; +0xd5, 0x1400a84a5\ncall    ReportPopup__reasonIndicesForTextModeration                    ; +0xda, 0x1400a84aa\nnop                                                                    ; +0xdf, 0x1400a84af\nmov     r9, rax                                                        ; +0xe0, 0x1400a84b0\nlea     r8, [rsp+78h+Block]                                            ; +0xe3, 0x1400a84b3\nmov     edx, 5                                                         ; +0xe8, 0x1400a84b8\nmov     rcx, rbx                                                       ; +0xed, 0x1400a84bd\ncall    sub_1400A6720                                                  ; +0xf0, 0x1400a84c0\nnop                                                                    ; +0xf5, 0x1400a84c5\nlea     rcx, [rsp+78h+var_48]                                          ; +0xf6, 0x1400a84c6\ncall    sub_140069730                                                  ; +0xfb, 0x1400a84cb\nnop                                                                    ; +0x100, 0x1400a84d0\nmov     rdx, qword ptr [rsp+78h+var_20+8]                              ; +0x101, 0x1400a84d1\ncmp     rdx, 0Fh                                                       ; +0x106, 0x1400a84d6\njbe     short loc_1400A8520                                            ; +0x10a, 0x1400a84da\ninc     rdx                                                            ; +0x10c, 0x1400a84dc\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x10f, 0x1400a84df\nmov     rax, rcx                                                       ; +0x114, 0x1400a84e4\ncmp     rdx, 1000h                                                     ; +0x117, 0x1400a84e7\njb      short loc_1400A851B                                            ; +0x11e, 0x1400a84ee\nadd     rdx, 27h ; '''                                                 ; +0x120, 0x1400a84f0\nmov     rcx, [rcx-8]                                                   ; +0x124, 0x1400a84f4\nsub     rax, rcx                                                       ; +0x128, 0x1400a84f8\nsub     rax, 8                                                         ; +0x12b, 0x1400a84fb\ncmp     rax, 1Fh                                                       ; +0x12f, 0x1400a84ff\njbe     short loc_1400A851B                                            ; +0x133, 0x1400a8503\nmov     [rsp+78h+Reserved], rsi; Reserved                              ; +0x135, 0x1400a8505\nxor     r9d, r9d; LineNo                                               ; +0x13a, 0x1400a850a\nxor     r8d, r8d; FileName                                             ; +0x13d, 0x1400a850d\nxor     edx, edx; FunctionName                                         ; +0x140, 0x1400a8510\nxor     ecx, ecx; Expression                                           ; +0x142, 0x1400a8512\ncall    cs:_invoke_watson                                              ; +0x144, 0x1400a8514\ndb 0CCh                                                                ; +0x14a, 0x1400a851a\ncall    j_j_free                                                       ; +0x14b, 0x1400a851b\nmov     rcx, [rsp+78h+var_10]                                          ; +0x150, 0x1400a8520\nxor     rcx, rsp; StackCookie                                          ; +0x155, 0x1400a8525\ncall    __security_check_cookie                                        ; +0x158, 0x1400a8528\nlea     r11, [rsp+78h+var_8]                                           ; +0x15d, 0x1400a852d\nmov     rbx, [r11+18h]                                                 ; +0x162, 0x1400a8532\nmov     rsi, [r11+20h]                                                 ; +0x166, 0x1400a8536\nmov     rsp, r11                                                       ; +0x16a, 0x1400a853a\npop     rdi                                                            ; +0x16d, 0x1400a853d\nretn                                                                   ; +0x16e, 0x1400a853e", "xrefs": ["AccountBanPopup::init @ 0x1400a7129", "<???> @ 0x14091328c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}