{"type": "func", "start": 5369397136, "end": 5369397675, "name": "AccountBanPopup::onCommentUnban", "pseudocode": "// \n// AccountBanPopup::onCommentUnban from 0x1400a7f90 to 0x1400a81ab (539 bytes)\n// \n// 2 xrefs:\n// > AccountBanPopup::init @ 0x1400a7065\n// > <???> @ 0x140913274\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:08 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall AccountBanPopup::onCommentUnban(__int64 a1)\n{\n  const char *v2; // rdx\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  size_t v5; // r8\n  int v6; // ecx\n  char *v7; // rax\n  void *v8; // rcx\n  void *v9; // rcx\n  void *v10; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-68h] BYREF\n  __int64 v12; // [rsp+50h] [rbp-58h]\n  void *v13[2]; // [rsp+58h] [rbp-50h] BYREF\n  __m128i si128; // [rsp+68h] [rbp-40h]\n  void *v15[2]; // [rsp+78h] [rbp-30h] BYREF\n  __int128 v16; // [rsp+88h] [rbp-20h]\n\n  v2 = (const char *)(a1 + 1040);\n  if ( *(_QWORD *)(a1 + 1064) > 0xFu )\n    v2 = *(const char **)v2;\n  v3 = cocos2d::CCString::createWithFormat(\n         \"Lift <cg>all</c> comment bans (permanent and temporary) for <cg>%s</c>?\",\n         v2);\n  CString = cocos2d::CCString::getCString(v3);\n  *(_OWORD *)v15 = 0;\n  v16 = 0;\n  v5 = -1;\n  do\n    ++v5;\n  while ( CString[v5] );\n  sub_14003D230(v15, CString, v5);\n  *(_OWORD *)v13 = 0;\n  si128 = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(v13[0]) = 0;\n  v6 = a1 + 1024;\n  if ( !a1 )\n    v6 = 0;\n  *(_OWORD *)Block = 0;\n  v12 = 0;\n  v7 = sub_1400A51F0(v6, 3, (int)\"Confirm Unban\", (__int64)v15, (__int64)\"Unban\", (__int64)Block, (__int64)v13);\n  (*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 1064LL))(v7);\n  v8 = Block[0];\n  if ( Block[0] )\n  {\n    if ( ((v12 - (unsigned __int64)Block[0]) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n    *(_OWORD *)Block = 0;\n    v12 = 0;\n  }\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v9 = v13[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v9 = *((void **)v13[0] - 1);\n      if ( (unsigned __int64)((char *)v13[0] - (char *)v9 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v9);\n  }\n  if ( *((_QWORD *)&v16 + 1) > 0xFu )\n  {\n    v10 = v15[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v16 + 1) + 1LL) >= 0x1000 )\n    {\n      v10 = *((void **)v15[0] - 1);\n      if ( (unsigned __int64)((char *)v15[0] - (char *)v10 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v10);\n  }\n}", "assembly": "; \n; AccountBanPopup::onCommentUnban from 0x1400a7f90 to 0x1400a81ab (539 bytes)\n; \n; 2 xrefs:\n; > AccountBanPopup::init @ 0x1400a7065\n; > <???> @ 0x140913274\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:08 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400a7f90\npush    rdi                                                            ; +0x5, 0x1400a7f95\nsub     rsp, 0A0h                                                      ; +0x6, 0x1400a7f96\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1400a7f9d\nxor     rax, rsp                                                       ; +0x14, 0x1400a7fa4\nmov     [rsp+0A8h+var_10], rax                                         ; +0x17, 0x1400a7fa7\nmov     rbx, rcx                                                       ; +0x1f, 0x1400a7faf\nlea     rdx, [rcx+410h]                                                ; +0x22, 0x1400a7fb2\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x29, 0x1400a7fb9\njbe     short loc_1400A7FC3                                            ; +0x2e, 0x1400a7fbe\nmov     rdx, [rdx]                                                     ; +0x30, 0x1400a7fc0\nlea     rcx, aLiftCgAllCComm; \"Lift <cg>all</c> comment bans (permanen\"... ; +0x33, 0x1400a7fc3\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3a, 0x1400a7fca\nmov     rcx, rax                                                       ; +0x40, 0x1400a7fd0\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x43, 0x1400a7fd3\nxorps   xmm0, xmm0                                                     ; +0x49, 0x1400a7fd9\nmovups  xmmword ptr [rsp+0A8h+var_30], xmm0                            ; +0x4c, 0x1400a7fdc\nxorps   xmm1, xmm1                                                     ; +0x51, 0x1400a7fe1\nmovdqu  [rsp+0A8h+var_20], xmm1                                        ; +0x54, 0x1400a7fe4\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x5d, 0x1400a7fed\ninc     r8                                                             ; +0x64, 0x1400a7ff4\ncmp     byte ptr [rax+r8], 0                                           ; +0x67, 0x1400a7ff7\njnz     short loc_1400A7FF4                                            ; +0x6c, 0x1400a7ffc\nmov     rdx, rax                                                       ; +0x6e, 0x1400a7ffe\nlea     rcx, [rsp+0A8h+var_30]                                         ; +0x71, 0x1400a8001\ncall    sub_14003D230                                                  ; +0x76, 0x1400a8006\nnop                                                                    ; +0x7b, 0x1400a800b\nxorps   xmm0, xmm0                                                     ; +0x7c, 0x1400a800c\nmovups  xmmword ptr [rsp+0A8h+var_50], xmm0                            ; +0x7f, 0x1400a800f\nmovdqa  xmm1, cs:Size                                                  ; +0x84, 0x1400a8014\nmovdqu  [rsp+0A8h+var_40], xmm1                                        ; +0x8c, 0x1400a801c\nmov     byte ptr [rsp+0A8h+var_50], 0                                  ; +0x92, 0x1400a8022\nlea     rcx, [rbx+400h]                                                ; +0x97, 0x1400a8027\nxor     edi, edi                                                       ; +0x9e, 0x1400a802e\ntest    rbx, rbx                                                       ; +0xa0, 0x1400a8030\ncmovz   rcx, rdi                                                       ; +0xa3, 0x1400a8033\nmovdqu  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0xa7, 0x1400a8037\nmov     [rsp+0A8h+var_58], rdi                                         ; +0xad, 0x1400a803d\nlea     rax, [rsp+0A8h+var_50]                                         ; +0xb2, 0x1400a8042\nmov     [rsp+0A8h+var_78], rax                                         ; +0xb7, 0x1400a8047\nlea     rax, [rsp+0A8h+Block]                                          ; +0xbc, 0x1400a804c\nmov     [rsp+0A8h+var_80], rax                                         ; +0xc1, 0x1400a8051\nlea     rax, aUnban; \"Unban\"                                           ; +0xc6, 0x1400a8056\nmov     [rsp+0A8h+Reserved], rax                                       ; +0xcd, 0x1400a805d\nlea     r9, [rsp+0A8h+var_30]                                          ; +0xd2, 0x1400a8062\nlea     r8, aConfirmUnban; \"Confirm Unban\"                             ; +0xd7, 0x1400a8067\nmov     edx, 3                                                         ; +0xde, 0x1400a806e\ncall    sub_1400A51F0                                                  ; +0xe3, 0x1400a8073\nmov     rcx, [rax]                                                     ; +0xe8, 0x1400a8078\nmov     rdx, [rcx+428h]                                                ; +0xeb, 0x1400a807b\nmov     rcx, rax                                                       ; +0xf2, 0x1400a8082\ncall    rdx                                                            ; +0xf5, 0x1400a8085\nnop                                                                    ; +0xf7, 0x1400a8087\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0xf8, 0x1400a8088\ntest    rcx, rcx                                                       ; +0xfd, 0x1400a808d\njz      short loc_1400A80E8                                            ; +0x100, 0x1400a8090\nmov     rdx, [rsp+0A8h+var_58]                                         ; +0x102, 0x1400a8092\nsub     rdx, rcx                                                       ; +0x107, 0x1400a8097\nand     rdx, 0FFFFFFFFFFFFFFFCh                                        ; +0x10a, 0x1400a809a\nmov     rax, rcx                                                       ; +0x10e, 0x1400a809e\ncmp     rdx, 1000h                                                     ; +0x111, 0x1400a80a1\njb      short loc_1400A80D5                                            ; +0x118, 0x1400a80a8\nadd     rdx, 27h ; '''                                                 ; +0x11a, 0x1400a80aa\nmov     rcx, [rcx-8]                                                   ; +0x11e, 0x1400a80ae\nsub     rax, rcx                                                       ; +0x122, 0x1400a80b2\nsub     rax, 8                                                         ; +0x125, 0x1400a80b5\ncmp     rax, 1Fh                                                       ; +0x129, 0x1400a80b9\njbe     short loc_1400A80D5                                            ; +0x12d, 0x1400a80bd\nmov     [rsp+0A8h+Reserved], rdi; Reserved                             ; +0x12f, 0x1400a80bf\nxor     r9d, r9d; LineNo                                               ; +0x134, 0x1400a80c4\nxor     r8d, r8d; FileName                                             ; +0x137, 0x1400a80c7\nxor     edx, edx; FunctionName                                         ; +0x13a, 0x1400a80ca\nxor     ecx, ecx; Expression                                           ; +0x13c, 0x1400a80cc\ncall    cs:_invoke_watson                                              ; +0x13e, 0x1400a80ce\ndb 0CCh                                                                ; +0x144, 0x1400a80d4\ncall    j_j_free                                                       ; +0x145, 0x1400a80d5\nxorps   xmm0, xmm0                                                     ; +0x14a, 0x1400a80da\nmovdqu  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x14d, 0x1400a80dd\nmov     [rsp+0A8h+var_58], rdi                                         ; +0x153, 0x1400a80e3\nmov     rdx, qword ptr [rsp+0A8h+var_40+8]                             ; +0x158, 0x1400a80e8\ncmp     rdx, 0Fh                                                       ; +0x15d, 0x1400a80ed\njbe     short loc_1400A8138                                            ; +0x161, 0x1400a80f1\ninc     rdx                                                            ; +0x163, 0x1400a80f3\nmov     rcx, [rsp+0A8h+var_50]; Block                                  ; +0x166, 0x1400a80f6\nmov     rax, rcx                                                       ; +0x16b, 0x1400a80fb\ncmp     rdx, 1000h                                                     ; +0x16e, 0x1400a80fe\njb      short loc_1400A8132                                            ; +0x175, 0x1400a8105\nadd     rdx, 27h ; '''                                                 ; +0x177, 0x1400a8107\nmov     rcx, [rcx-8]                                                   ; +0x17b, 0x1400a810b\nsub     rax, rcx                                                       ; +0x17f, 0x1400a810f\nsub     rax, 8                                                         ; +0x182, 0x1400a8112\ncmp     rax, 1Fh                                                       ; +0x186, 0x1400a8116\njbe     short loc_1400A8132                                            ; +0x18a, 0x1400a811a\nmov     [rsp+0A8h+Reserved], rdi; Reserved                             ; +0x18c, 0x1400a811c\nxor     r9d, r9d; LineNo                                               ; +0x191, 0x1400a8121\nxor     r8d, r8d; FileName                                             ; +0x194, 0x1400a8124\nxor     edx, edx; FunctionName                                         ; +0x197, 0x1400a8127\nxor     ecx, ecx; Expression                                           ; +0x199, 0x1400a8129\ncall    cs:_invoke_watson                                              ; +0x19b, 0x1400a812b\nalign 2                                                                ; +0x1a1, 0x1400a8131\ncall    j_j_free                                                       ; +0x1a2, 0x1400a8132\nnop                                                                    ; +0x1a7, 0x1400a8137\nmov     rdx, qword ptr [rsp+0A8h+var_20+8]                             ; +0x1a8, 0x1400a8138\ncmp     rdx, 0Fh                                                       ; +0x1b0, 0x1400a8140\njbe     short loc_1400A818A                                            ; +0x1b4, 0x1400a8144\ninc     rdx                                                            ; +0x1b6, 0x1400a8146\nmov     rcx, [rsp+0A8h+var_30]; Block                                  ; +0x1b9, 0x1400a8149\nmov     rax, rcx                                                       ; +0x1be, 0x1400a814e\ncmp     rdx, 1000h                                                     ; +0x1c1, 0x1400a8151\njb      short loc_1400A8185                                            ; +0x1c8, 0x1400a8158\nadd     rdx, 27h ; '''                                                 ; +0x1ca, 0x1400a815a\nmov     rcx, [rcx-8]                                                   ; +0x1ce, 0x1400a815e\nsub     rax, rcx                                                       ; +0x1d2, 0x1400a8162\nsub     rax, 8                                                         ; +0x1d5, 0x1400a8165\ncmp     rax, 1Fh                                                       ; +0x1d9, 0x1400a8169\njbe     short loc_1400A8185                                            ; +0x1dd, 0x1400a816d\nmov     [rsp+0A8h+Reserved], rdi; Reserved                             ; +0x1df, 0x1400a816f\nxor     r9d, r9d; LineNo                                               ; +0x1e4, 0x1400a8174\nxor     r8d, r8d; FileName                                             ; +0x1e7, 0x1400a8177\nxor     edx, edx; FunctionName                                         ; +0x1ea, 0x1400a817a\nxor     ecx, ecx; Expression                                           ; +0x1ec, 0x1400a817c\ncall    cs:_invoke_watson                                              ; +0x1ee, 0x1400a817e\ndb 0CCh                                                                ; +0x1f4, 0x1400a8184\ncall    j_j_free                                                       ; +0x1f5, 0x1400a8185\nmov     rcx, [rsp+0A8h+var_10]                                         ; +0x1fa, 0x1400a818a\nxor     rcx, rsp; StackCookie                                          ; +0x202, 0x1400a8192\ncall    __security_check_cookie                                        ; +0x205, 0x1400a8195\nmov     rbx, [rsp+0A8h+arg_8]                                          ; +0x20a, 0x1400a819a\nadd     rsp, 0A0h                                                      ; +0x212, 0x1400a81a2\npop     rdi                                                            ; +0x219, 0x1400a81a9\nretn                                                                   ; +0x21a, 0x1400a81aa", "xrefs": ["AccountBanPopup::init @ 0x1400a7065", "<???> @ 0x140913274"], "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"}