{"type": "func", "start": 5369398592, "end": 5369399131, "name": "AccountBanPopup::onMessageUnban", "pseudocode": "// \n// AccountBanPopup::onMessageUnban from 0x1400a8540 to 0x1400a875b (539 bytes)\n// \n// 2 xrefs:\n// > AccountBanPopup::init @ 0x1400a711d\n// > <???> @ 0x140913298\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::onMessageUnban(__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> message 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, 6, (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::onMessageUnban from 0x1400a8540 to 0x1400a875b (539 bytes)\n; \n; 2 xrefs:\n; > AccountBanPopup::init @ 0x1400a711d\n; > <???> @ 0x140913298\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, 0x1400a8540\npush    rdi                                                            ; +0x5, 0x1400a8545\nsub     rsp, 0A0h                                                      ; +0x6, 0x1400a8546\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1400a854d\nxor     rax, rsp                                                       ; +0x14, 0x1400a8554\nmov     [rsp+0A8h+var_10], rax                                         ; +0x17, 0x1400a8557\nmov     rbx, rcx                                                       ; +0x1f, 0x1400a855f\nlea     rdx, [rcx+410h]                                                ; +0x22, 0x1400a8562\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x29, 0x1400a8569\njbe     short loc_1400A8573                                            ; +0x2e, 0x1400a856e\nmov     rdx, [rdx]                                                     ; +0x30, 0x1400a8570\nlea     rcx, aLiftCgAllCMess; \"Lift <cg>all</c> message bans (permanen\"... ; +0x33, 0x1400a8573\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3a, 0x1400a857a\nmov     rcx, rax                                                       ; +0x40, 0x1400a8580\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x43, 0x1400a8583\nxorps   xmm0, xmm0                                                     ; +0x49, 0x1400a8589\nmovups  xmmword ptr [rsp+0A8h+var_30], xmm0                            ; +0x4c, 0x1400a858c\nxorps   xmm1, xmm1                                                     ; +0x51, 0x1400a8591\nmovdqu  [rsp+0A8h+var_20], xmm1                                        ; +0x54, 0x1400a8594\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x5d, 0x1400a859d\ninc     r8                                                             ; +0x64, 0x1400a85a4\ncmp     byte ptr [rax+r8], 0                                           ; +0x67, 0x1400a85a7\njnz     short loc_1400A85A4                                            ; +0x6c, 0x1400a85ac\nmov     rdx, rax                                                       ; +0x6e, 0x1400a85ae\nlea     rcx, [rsp+0A8h+var_30]                                         ; +0x71, 0x1400a85b1\ncall    sub_14003D230                                                  ; +0x76, 0x1400a85b6\nnop                                                                    ; +0x7b, 0x1400a85bb\nxorps   xmm0, xmm0                                                     ; +0x7c, 0x1400a85bc\nmovups  xmmword ptr [rsp+0A8h+var_50], xmm0                            ; +0x7f, 0x1400a85bf\nmovdqa  xmm1, cs:Size                                                  ; +0x84, 0x1400a85c4\nmovdqu  [rsp+0A8h+var_40], xmm1                                        ; +0x8c, 0x1400a85cc\nmov     byte ptr [rsp+0A8h+var_50], 0                                  ; +0x92, 0x1400a85d2\nlea     rcx, [rbx+400h]                                                ; +0x97, 0x1400a85d7\nxor     edi, edi                                                       ; +0x9e, 0x1400a85de\ntest    rbx, rbx                                                       ; +0xa0, 0x1400a85e0\ncmovz   rcx, rdi                                                       ; +0xa3, 0x1400a85e3\nmovdqu  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0xa7, 0x1400a85e7\nmov     [rsp+0A8h+var_58], rdi                                         ; +0xad, 0x1400a85ed\nlea     rax, [rsp+0A8h+var_50]                                         ; +0xb2, 0x1400a85f2\nmov     [rsp+0A8h+var_78], rax                                         ; +0xb7, 0x1400a85f7\nlea     rax, [rsp+0A8h+Block]                                          ; +0xbc, 0x1400a85fc\nmov     [rsp+0A8h+var_80], rax                                         ; +0xc1, 0x1400a8601\nlea     rax, aUnban; \"Unban\"                                           ; +0xc6, 0x1400a8606\nmov     [rsp+0A8h+Reserved], rax                                       ; +0xcd, 0x1400a860d\nlea     r9, [rsp+0A8h+var_30]                                          ; +0xd2, 0x1400a8612\nlea     r8, aConfirmUnban; \"Confirm Unban\"                             ; +0xd7, 0x1400a8617\nmov     edx, 6                                                         ; +0xde, 0x1400a861e\ncall    sub_1400A51F0                                                  ; +0xe3, 0x1400a8623\nmov     rcx, [rax]                                                     ; +0xe8, 0x1400a8628\nmov     rdx, [rcx+428h]                                                ; +0xeb, 0x1400a862b\nmov     rcx, rax                                                       ; +0xf2, 0x1400a8632\ncall    rdx                                                            ; +0xf5, 0x1400a8635\nnop                                                                    ; +0xf7, 0x1400a8637\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0xf8, 0x1400a8638\ntest    rcx, rcx                                                       ; +0xfd, 0x1400a863d\njz      short loc_1400A8698                                            ; +0x100, 0x1400a8640\nmov     rdx, [rsp+0A8h+var_58]                                         ; +0x102, 0x1400a8642\nsub     rdx, rcx                                                       ; +0x107, 0x1400a8647\nand     rdx, 0FFFFFFFFFFFFFFFCh                                        ; +0x10a, 0x1400a864a\nmov     rax, rcx                                                       ; +0x10e, 0x1400a864e\ncmp     rdx, 1000h                                                     ; +0x111, 0x1400a8651\njb      short loc_1400A8685                                            ; +0x118, 0x1400a8658\nadd     rdx, 27h ; '''                                                 ; +0x11a, 0x1400a865a\nmov     rcx, [rcx-8]                                                   ; +0x11e, 0x1400a865e\nsub     rax, rcx                                                       ; +0x122, 0x1400a8662\nsub     rax, 8                                                         ; +0x125, 0x1400a8665\ncmp     rax, 1Fh                                                       ; +0x129, 0x1400a8669\njbe     short loc_1400A8685                                            ; +0x12d, 0x1400a866d\nmov     [rsp+0A8h+Reserved], rdi; Reserved                             ; +0x12f, 0x1400a866f\nxor     r9d, r9d; LineNo                                               ; +0x134, 0x1400a8674\nxor     r8d, r8d; FileName                                             ; +0x137, 0x1400a8677\nxor     edx, edx; FunctionName                                         ; +0x13a, 0x1400a867a\nxor     ecx, ecx; Expression                                           ; +0x13c, 0x1400a867c\ncall    cs:_invoke_watson                                              ; +0x13e, 0x1400a867e\ndb 0CCh                                                                ; +0x144, 0x1400a8684\ncall    j_j_free                                                       ; +0x145, 0x1400a8685\nxorps   xmm0, xmm0                                                     ; +0x14a, 0x1400a868a\nmovdqu  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x14d, 0x1400a868d\nmov     [rsp+0A8h+var_58], rdi                                         ; +0x153, 0x1400a8693\nmov     rdx, qword ptr [rsp+0A8h+var_40+8]                             ; +0x158, 0x1400a8698\ncmp     rdx, 0Fh                                                       ; +0x15d, 0x1400a869d\njbe     short loc_1400A86E8                                            ; +0x161, 0x1400a86a1\ninc     rdx                                                            ; +0x163, 0x1400a86a3\nmov     rcx, [rsp+0A8h+var_50]; Block                                  ; +0x166, 0x1400a86a6\nmov     rax, rcx                                                       ; +0x16b, 0x1400a86ab\ncmp     rdx, 1000h                                                     ; +0x16e, 0x1400a86ae\njb      short loc_1400A86E2                                            ; +0x175, 0x1400a86b5\nadd     rdx, 27h ; '''                                                 ; +0x177, 0x1400a86b7\nmov     rcx, [rcx-8]                                                   ; +0x17b, 0x1400a86bb\nsub     rax, rcx                                                       ; +0x17f, 0x1400a86bf\nsub     rax, 8                                                         ; +0x182, 0x1400a86c2\ncmp     rax, 1Fh                                                       ; +0x186, 0x1400a86c6\njbe     short loc_1400A86E2                                            ; +0x18a, 0x1400a86ca\nmov     [rsp+0A8h+Reserved], rdi; Reserved                             ; +0x18c, 0x1400a86cc\nxor     r9d, r9d; LineNo                                               ; +0x191, 0x1400a86d1\nxor     r8d, r8d; FileName                                             ; +0x194, 0x1400a86d4\nxor     edx, edx; FunctionName                                         ; +0x197, 0x1400a86d7\nxor     ecx, ecx; Expression                                           ; +0x199, 0x1400a86d9\ncall    cs:_invoke_watson                                              ; +0x19b, 0x1400a86db\nalign 2                                                                ; +0x1a1, 0x1400a86e1\ncall    j_j_free                                                       ; +0x1a2, 0x1400a86e2\nnop                                                                    ; +0x1a7, 0x1400a86e7\nmov     rdx, qword ptr [rsp+0A8h+var_20+8]                             ; +0x1a8, 0x1400a86e8\ncmp     rdx, 0Fh                                                       ; +0x1b0, 0x1400a86f0\njbe     short loc_1400A873A                                            ; +0x1b4, 0x1400a86f4\ninc     rdx                                                            ; +0x1b6, 0x1400a86f6\nmov     rcx, [rsp+0A8h+var_30]; Block                                  ; +0x1b9, 0x1400a86f9\nmov     rax, rcx                                                       ; +0x1be, 0x1400a86fe\ncmp     rdx, 1000h                                                     ; +0x1c1, 0x1400a8701\njb      short loc_1400A8735                                            ; +0x1c8, 0x1400a8708\nadd     rdx, 27h ; '''                                                 ; +0x1ca, 0x1400a870a\nmov     rcx, [rcx-8]                                                   ; +0x1ce, 0x1400a870e\nsub     rax, rcx                                                       ; +0x1d2, 0x1400a8712\nsub     rax, 8                                                         ; +0x1d5, 0x1400a8715\ncmp     rax, 1Fh                                                       ; +0x1d9, 0x1400a8719\njbe     short loc_1400A8735                                            ; +0x1dd, 0x1400a871d\nmov     [rsp+0A8h+Reserved], rdi; Reserved                             ; +0x1df, 0x1400a871f\nxor     r9d, r9d; LineNo                                               ; +0x1e4, 0x1400a8724\nxor     r8d, r8d; FileName                                             ; +0x1e7, 0x1400a8727\nxor     edx, edx; FunctionName                                         ; +0x1ea, 0x1400a872a\nxor     ecx, ecx; Expression                                           ; +0x1ec, 0x1400a872c\ncall    cs:_invoke_watson                                              ; +0x1ee, 0x1400a872e\ndb 0CCh                                                                ; +0x1f4, 0x1400a8734\ncall    j_j_free                                                       ; +0x1f5, 0x1400a8735\nmov     rcx, [rsp+0A8h+var_10]                                         ; +0x1fa, 0x1400a873a\nxor     rcx, rsp; StackCookie                                          ; +0x202, 0x1400a8742\ncall    __security_check_cookie                                        ; +0x205, 0x1400a8745\nmov     rbx, [rsp+0A8h+arg_8]                                          ; +0x20a, 0x1400a874a\nadd     rsp, 0A0h                                                      ; +0x212, 0x1400a8752\npop     rdi                                                            ; +0x219, 0x1400a8759\nretn                                                                   ; +0x21a, 0x1400a875a", "xrefs": ["AccountBanPopup::init @ 0x1400a711d", "<???> @ 0x140913298"], "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"}