{"type": "func", "start": 5369400880, "end": 5369401465, "name": "AccountBanPopup::onTrendingUnban", "pseudocode": "// \n// AccountBanPopup::onTrendingUnban from 0x1400a8e30 to 0x1400a9079 (585 bytes)\n// \n// 2 xrefs:\n// > AccountBanPopup::init @ 0x1400a71e0\n// > <???> @ 0x1409132c8\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\n// Hidden C++ exception states: #wind=3\nvoid __fastcall AccountBanPopup::onTrendingUnban(__int64 a1)\n{\n  cocos2d::CCString *v2; // rax\n  char *CString; // rax\n  size_t v4; // r8\n  int v5; // ecx\n  char *v6; // rax\n  void *v7; // rcx\n  void *v8; // rcx\n  void *v9; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-68h] BYREF\n  __int64 v11; // [rsp+50h] [rbp-58h]\n  void *v12[2]; // [rsp+58h] [rbp-50h] BYREF\n  __m128i si128; // [rsp+68h] [rbp-40h]\n  void *v14[2]; // [rsp+78h] [rbp-30h] BYREF\n  __m128i v15; // [rsp+88h] [rbp-20h]\n\n  *(_OWORD *)v12 = 0;\n  si128 = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(v12[0]) = 0;\n  if ( *(_DWORD *)(a1 + 1084) == 2 )\n    v2 = cocos2d::CCString::createWithFormat(\"Lift the <cy>Trending</c> ban for <cg>%s</c>?\");\n  else\n    v2 = cocos2d::CCString::createWithFormat(\"Allow <cg>%s</c> on <cy>Trending</c>?\\nOnly creators with a rated or sent level trend by default.\");\n  CString = (char *)cocos2d::CCString::getCString(v2);\n  v4 = -1;\n  do\n    ++v4;\n  while ( CString[v4] );\n  sub_1400405A0(v12, CString, v4);\n  *(_OWORD *)v14 = 0;\n  v15 = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(v14[0]) = 0;\n  v5 = a1 + 1024;\n  if ( !a1 )\n    v5 = 0;\n  *(_OWORD *)Block = 0;\n  v11 = 0;\n  v6 = sub_1400A51F0(v5, 10, (int)\"Confirm Allow\", (__int64)v12, (__int64)\"Allow\", (__int64)Block, (__int64)v14);\n  (*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1064LL))(v6);\n  v7 = Block[0];\n  if ( Block[0] )\n  {\n    if ( ((v11 - (unsigned __int64)Block[0]) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 )\n    {\n      v7 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v7);\n    *(_OWORD *)Block = 0;\n    v11 = 0;\n  }\n  if ( v15.m128i_i64[1] > 0xFuLL )\n  {\n    v8 = v14[0];\n    if ( (unsigned __int64)(v15.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v8 = *((void **)v14[0] - 1);\n      if ( (unsigned __int64)((char *)v14[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n  }\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v9 = v12[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v9 = *((void **)v12[0] - 1);\n      if ( (unsigned __int64)((char *)v12[0] - (char *)v9 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v9);\n  }\n}", "assembly": "; \n; AccountBanPopup::onTrendingUnban from 0x1400a8e30 to 0x1400a9079 (585 bytes)\n; \n; 2 xrefs:\n; > AccountBanPopup::init @ 0x1400a71e0\n; > <???> @ 0x1409132c8\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, 0x1400a8e30\npush    rdi                                                            ; +0x5, 0x1400a8e35\nsub     rsp, 0A0h                                                      ; +0x6, 0x1400a8e36\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1400a8e3d\nxor     rax, rsp                                                       ; +0x14, 0x1400a8e44\nmov     [rsp+0A8h+var_10], rax                                         ; +0x17, 0x1400a8e47\nmov     rbx, rcx                                                       ; +0x1f, 0x1400a8e4f\nxorps   xmm0, xmm0                                                     ; +0x22, 0x1400a8e52\nmovups  xmmword ptr [rsp+0A8h+var_50], xmm0                            ; +0x25, 0x1400a8e55\nmovdqa  xmm1, cs:Size                                                  ; +0x2a, 0x1400a8e5a\nmovdqu  [rsp+0A8h+var_40], xmm1                                        ; +0x32, 0x1400a8e62\nmov     byte ptr [rsp+0A8h+var_50], 0                                  ; +0x38, 0x1400a8e68\nlea     rdx, [rcx+410h]                                                ; +0x3d, 0x1400a8e6d\nmov     rax, [rdx+18h]                                                 ; +0x44, 0x1400a8e74\ncmp     dword ptr [rcx+43Ch], 2                                        ; +0x48, 0x1400a8e78\njnz     short loc_1400A8E93                                            ; +0x4f, 0x1400a8e7f\ncmp     rax, 0Fh                                                       ; +0x51, 0x1400a8e81\njbe     short loc_1400A8E8A                                            ; +0x55, 0x1400a8e85\nmov     rdx, [rdx]                                                     ; +0x57, 0x1400a8e87\nlea     rcx, aLiftTheCyTrend; \"Lift the <cy>Trending</c> ban for <cg>%\"... ; +0x5a, 0x1400a8e8a\njmp     short loc_1400A8EA3                                            ; +0x61, 0x1400a8e91\ncmp     rax, 0Fh                                                       ; +0x63, 0x1400a8e93\njbe     short loc_1400A8E9C                                            ; +0x67, 0x1400a8e97\nmov     rdx, [rdx]                                                     ; +0x69, 0x1400a8e99\nlea     rcx, aAllowCgSCOnCyT; \"Allow <cg>%s</c> on <cy>Trending</c>?\\n\"... ; +0x6c, 0x1400a8e9c\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x73, 0x1400a8ea3\nmov     rcx, rax                                                       ; +0x79, 0x1400a8ea9\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x7c, 0x1400a8eac\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x82, 0x1400a8eb2\nnop     dword ptr [rax+00000000h]                                      ; +0x89, 0x1400a8eb9\ninc     r8; Size                                                       ; +0x90, 0x1400a8ec0\ncmp     byte ptr [rax+r8], 0                                           ; +0x93, 0x1400a8ec3\njnz     short loc_1400A8EC0                                            ; +0x98, 0x1400a8ec8\nmov     rdx, rax; Src                                                  ; +0x9a, 0x1400a8eca\nlea     rcx, [rsp+0A8h+var_50]; void *                                 ; +0x9d, 0x1400a8ecd\ncall    sub_1400405A0                                                  ; +0xa2, 0x1400a8ed2\nxorps   xmm0, xmm0                                                     ; +0xa7, 0x1400a8ed7\nmovups  xmmword ptr [rsp+0A8h+var_30], xmm0                            ; +0xaa, 0x1400a8eda\nmovdqa  xmm1, cs:Size                                                  ; +0xaf, 0x1400a8edf\nmovdqu  [rsp+0A8h+var_20], xmm1                                        ; +0xb7, 0x1400a8ee7\nmov     byte ptr [rsp+0A8h+var_30], 0                                  ; +0xc0, 0x1400a8ef0\nlea     rcx, [rbx+400h]                                                ; +0xc5, 0x1400a8ef5\nxor     edi, edi                                                       ; +0xcc, 0x1400a8efc\ntest    rbx, rbx                                                       ; +0xce, 0x1400a8efe\ncmovz   rcx, rdi                                                       ; +0xd1, 0x1400a8f01\nmovdqu  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0xd5, 0x1400a8f05\nmov     [rsp+0A8h+var_58], rdi                                         ; +0xdb, 0x1400a8f0b\nlea     rax, [rsp+0A8h+var_30]                                         ; +0xe0, 0x1400a8f10\nmov     [rsp+0A8h+var_78], rax                                         ; +0xe5, 0x1400a8f15\nlea     rax, [rsp+0A8h+Block]                                          ; +0xea, 0x1400a8f1a\nmov     [rsp+0A8h+var_80], rax                                         ; +0xef, 0x1400a8f1f\nlea     rax, aAllow; \"Allow\"                                           ; +0xf4, 0x1400a8f24\nmov     [rsp+0A8h+Reserved], rax                                       ; +0xfb, 0x1400a8f2b\nlea     r9, [rsp+0A8h+var_50]                                          ; +0x100, 0x1400a8f30\nlea     r8, aConfirmAllow; \"Confirm Allow\"                             ; +0x105, 0x1400a8f35\nmov     edx, 0Ah                                                       ; +0x10c, 0x1400a8f3c\ncall    sub_1400A51F0                                                  ; +0x111, 0x1400a8f41\nmov     rcx, [rax]                                                     ; +0x116, 0x1400a8f46\nmov     rdx, [rcx+428h]                                                ; +0x119, 0x1400a8f49\nmov     rcx, rax                                                       ; +0x120, 0x1400a8f50\ncall    rdx                                                            ; +0x123, 0x1400a8f53\nnop                                                                    ; +0x125, 0x1400a8f55\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0x126, 0x1400a8f56\ntest    rcx, rcx                                                       ; +0x12b, 0x1400a8f5b\njz      short loc_1400A8FB6                                            ; +0x12e, 0x1400a8f5e\nmov     rdx, [rsp+0A8h+var_58]                                         ; +0x130, 0x1400a8f60\nsub     rdx, rcx                                                       ; +0x135, 0x1400a8f65\nand     rdx, 0FFFFFFFFFFFFFFFCh                                        ; +0x138, 0x1400a8f68\nmov     rax, rcx                                                       ; +0x13c, 0x1400a8f6c\ncmp     rdx, 1000h                                                     ; +0x13f, 0x1400a8f6f\njb      short loc_1400A8FA3                                            ; +0x146, 0x1400a8f76\nadd     rdx, 27h ; '''                                                 ; +0x148, 0x1400a8f78\nmov     rcx, [rcx-8]                                                   ; +0x14c, 0x1400a8f7c\nsub     rax, rcx                                                       ; +0x150, 0x1400a8f80\nsub     rax, 8                                                         ; +0x153, 0x1400a8f83\ncmp     rax, 1Fh                                                       ; +0x157, 0x1400a8f87\njbe     short loc_1400A8FA3                                            ; +0x15b, 0x1400a8f8b\nmov     [rsp+0A8h+Reserved], rdi; Reserved                             ; +0x15d, 0x1400a8f8d\nxor     r9d, r9d; LineNo                                               ; +0x162, 0x1400a8f92\nxor     r8d, r8d; FileName                                             ; +0x165, 0x1400a8f95\nxor     edx, edx; FunctionName                                         ; +0x168, 0x1400a8f98\nxor     ecx, ecx; Expression                                           ; +0x16a, 0x1400a8f9a\ncall    cs:_invoke_watson                                              ; +0x16c, 0x1400a8f9c\ndb 0CCh                                                                ; +0x172, 0x1400a8fa2\ncall    j_j_free                                                       ; +0x173, 0x1400a8fa3\nxorps   xmm0, xmm0                                                     ; +0x178, 0x1400a8fa8\nmovdqu  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x17b, 0x1400a8fab\nmov     [rsp+0A8h+var_58], rdi                                         ; +0x181, 0x1400a8fb1\nmov     rdx, qword ptr [rsp+0A8h+var_20+8]                             ; +0x186, 0x1400a8fb6\ncmp     rdx, 0Fh                                                       ; +0x18e, 0x1400a8fbe\njbe     short loc_1400A9009                                            ; +0x192, 0x1400a8fc2\ninc     rdx                                                            ; +0x194, 0x1400a8fc4\nmov     rcx, [rsp+0A8h+var_30]; Block                                  ; +0x197, 0x1400a8fc7\nmov     rax, rcx                                                       ; +0x19c, 0x1400a8fcc\ncmp     rdx, 1000h                                                     ; +0x19f, 0x1400a8fcf\njb      short loc_1400A9003                                            ; +0x1a6, 0x1400a8fd6\nadd     rdx, 27h ; '''                                                 ; +0x1a8, 0x1400a8fd8\nmov     rcx, [rcx-8]                                                   ; +0x1ac, 0x1400a8fdc\nsub     rax, rcx                                                       ; +0x1b0, 0x1400a8fe0\nsub     rax, 8                                                         ; +0x1b3, 0x1400a8fe3\ncmp     rax, 1Fh                                                       ; +0x1b7, 0x1400a8fe7\njbe     short loc_1400A9003                                            ; +0x1bb, 0x1400a8feb\nmov     [rsp+0A8h+Reserved], rdi; Reserved                             ; +0x1bd, 0x1400a8fed\nxor     r9d, r9d; LineNo                                               ; +0x1c2, 0x1400a8ff2\nxor     r8d, r8d; FileName                                             ; +0x1c5, 0x1400a8ff5\nxor     edx, edx; FunctionName                                         ; +0x1c8, 0x1400a8ff8\nxor     ecx, ecx; Expression                                           ; +0x1ca, 0x1400a8ffa\ncall    cs:_invoke_watson                                              ; +0x1cc, 0x1400a8ffc\ndb 0CCh                                                                ; +0x1d2, 0x1400a9002\ncall    j_j_free                                                       ; +0x1d3, 0x1400a9003\nnop                                                                    ; +0x1d8, 0x1400a9008\nmov     rdx, qword ptr [rsp+0A8h+var_40+8]                             ; +0x1d9, 0x1400a9009\ncmp     rdx, 0Fh                                                       ; +0x1de, 0x1400a900e\njbe     short loc_1400A9058                                            ; +0x1e2, 0x1400a9012\ninc     rdx                                                            ; +0x1e4, 0x1400a9014\nmov     rcx, [rsp+0A8h+var_50]; Block                                  ; +0x1e7, 0x1400a9017\nmov     rax, rcx                                                       ; +0x1ec, 0x1400a901c\ncmp     rdx, 1000h                                                     ; +0x1ef, 0x1400a901f\njb      short loc_1400A9053                                            ; +0x1f6, 0x1400a9026\nadd     rdx, 27h ; '''                                                 ; +0x1f8, 0x1400a9028\nmov     rcx, [rcx-8]                                                   ; +0x1fc, 0x1400a902c\nsub     rax, rcx                                                       ; +0x200, 0x1400a9030\nsub     rax, 8                                                         ; +0x203, 0x1400a9033\ncmp     rax, 1Fh                                                       ; +0x207, 0x1400a9037\njbe     short loc_1400A9053                                            ; +0x20b, 0x1400a903b\nmov     [rsp+0A8h+Reserved], rdi; Reserved                             ; +0x20d, 0x1400a903d\nxor     r9d, r9d; LineNo                                               ; +0x212, 0x1400a9042\nxor     r8d, r8d; FileName                                             ; +0x215, 0x1400a9045\nxor     edx, edx; FunctionName                                         ; +0x218, 0x1400a9048\nxor     ecx, ecx; Expression                                           ; +0x21a, 0x1400a904a\ncall    cs:_invoke_watson                                              ; +0x21c, 0x1400a904c\ndb 0CCh                                                                ; +0x222, 0x1400a9052\ncall    j_j_free                                                       ; +0x223, 0x1400a9053\nmov     rcx, [rsp+0A8h+var_10]                                         ; +0x228, 0x1400a9058\nxor     rcx, rsp; StackCookie                                          ; +0x230, 0x1400a9060\ncall    __security_check_cookie                                        ; +0x233, 0x1400a9063\nmov     rbx, [rsp+0A8h+arg_8]                                          ; +0x238, 0x1400a9068\nadd     rsp, 0A0h                                                      ; +0x240, 0x1400a9070\npop     rdi                                                            ; +0x247, 0x1400a9077\nretn                                                                   ; +0x248, 0x1400a9078", "xrefs": ["AccountBanPopup::init @ 0x1400a71e0", "<???> @ 0x1409132c8"], "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"}