{"type": "func", "start": 5369396768, "end": 5369397135, "name": "AccountBanPopup::onLevelUploadBan", "pseudocode": "// \n// AccountBanPopup::onLevelUploadBan from 0x1400a7e20 to 0x1400a7f8f (367 bytes)\n// \n// 2 xrefs:\n// > AccountBanPopup::init @ 0x1400a70cb\n// > <???> @ 0x140913268\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\nvoid __fastcall AccountBanPopup::onLevelUploadBan(__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 + 1112);\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(\"Apply a <cr>permanent</c> level upload ban to <cg>%s</c>?\", 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 uploading levels 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::reasonIndicesForUploadModeration(v12);\n  sub_1400A6720(v9, 2, (__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::onLevelUploadBan from 0x1400a7e20 to 0x1400a7f8f (367 bytes)\n; \n; 2 xrefs:\n; > AccountBanPopup::init @ 0x1400a70cb\n; > <???> @ 0x140913268\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, 0x1400a7e20\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1400a7e25\npush    rdi                                                            ; +0xa, 0x1400a7e2a\nsub     rsp, 70h                                                       ; +0xb, 0x1400a7e2b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1400a7e2f\nxor     rax, rsp                                                       ; +0x16, 0x1400a7e36\nmov     [rsp+78h+var_10], rax                                          ; +0x19, 0x1400a7e39\nmov     rdi, rcx                                                       ; +0x1e, 0x1400a7e3e\nmov     rax, [rcx+458h]                                                ; +0x21, 0x1400a7e41\nxor     esi, esi                                                       ; +0x28, 0x1400a7e48\ntest    rax, rax                                                       ; +0x2a, 0x1400a7e4a\njz      short loc_1400A7E57                                            ; +0x2d, 0x1400a7e4d\nmov     eax, [rax+180h]                                                ; +0x2f, 0x1400a7e4f\njmp     short loc_1400A7E59                                            ; +0x35, 0x1400a7e55\nmov     eax, esi                                                       ; +0x37, 0x1400a7e57\nxorps   xmm0, xmm0                                                     ; +0x39, 0x1400a7e59\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x3c, 0x1400a7e5c\nmovdqa  xmm1, cs:Size                                                  ; +0x41, 0x1400a7e61\nmovdqu  [rsp+78h+var_20], xmm1                                         ; +0x49, 0x1400a7e69\nmov     byte ptr [rsp+78h+Block], sil                                  ; +0x4f, 0x1400a7e6f\nlea     rdx, [rcx+410h]                                                ; +0x54, 0x1400a7e74\nmov     rcx, [rdx+18h]                                                 ; +0x5b, 0x1400a7e7b\ncmp     eax, 0Ch                                                       ; +0x5f, 0x1400a7e7f\njnz     short loc_1400A7E9C                                            ; +0x62, 0x1400a7e82\ncmp     rcx, 0Fh                                                       ; +0x64, 0x1400a7e84\njbe     short loc_1400A7E8D                                            ; +0x68, 0x1400a7e88\nmov     rdx, [rdx]                                                     ; +0x6a, 0x1400a7e8a\nlea     rcx, aApplyACrPerman_0; \"Apply a <cr>permanent</c> level upload \"... ; +0x6d, 0x1400a7e8d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x74, 0x1400a7e94\njmp     short loc_1400A7EC0                                            ; +0x7a, 0x1400a7e9a\ncmp     rcx, 0Fh                                                       ; +0x7c, 0x1400a7e9c\njbe     short loc_1400A7EA5                                            ; +0x80, 0x1400a7ea0\nmov     rdx, [rdx]                                                     ; +0x82, 0x1400a7ea2\nmovsxd  r8, eax                                                        ; +0x85, 0x1400a7ea5\nlea     rax, off_140702D30; \"1 Hour\"                                   ; +0x88, 0x1400a7ea8\nmov     r8, [rax+r8*8]                                                 ; +0x8f, 0x1400a7eaf\nlea     rcx, aBanCgSCFromUpl; \"Ban <cg>%s</c> from uploading levels fo\"... ; +0x93, 0x1400a7eb3\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x9a, 0x1400a7eba\nmov     rcx, rax                                                       ; +0xa0, 0x1400a7ec0\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa3, 0x1400a7ec3\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xa9, 0x1400a7ec9\ninc     r8; Size                                                       ; +0xb0, 0x1400a7ed0\ncmp     byte ptr [rax+r8], 0                                           ; +0xb3, 0x1400a7ed3\njnz     short loc_1400A7ED0                                            ; +0xb8, 0x1400a7ed8\nmov     rdx, rax; Src                                                  ; +0xba, 0x1400a7eda\nlea     rcx, [rsp+78h+Block]; void *                                   ; +0xbd, 0x1400a7edd\ncall    sub_1400405A0                                                  ; +0xc2, 0x1400a7ee2\nlea     rbx, [rdi+400h]                                                ; +0xc7, 0x1400a7ee7\ntest    rdi, rdi                                                       ; +0xce, 0x1400a7eee\ncmovz   rbx, rsi                                                       ; +0xd1, 0x1400a7ef1\nlea     rcx, [rsp+78h+var_48]                                          ; +0xd5, 0x1400a7ef5\ncall    ReportPopup__reasonIndicesForUploadModeration                  ; +0xda, 0x1400a7efa\nnop                                                                    ; +0xdf, 0x1400a7eff\nmov     r9, rax                                                        ; +0xe0, 0x1400a7f00\nlea     r8, [rsp+78h+Block]                                            ; +0xe3, 0x1400a7f03\nmov     edx, 2                                                         ; +0xe8, 0x1400a7f08\nmov     rcx, rbx                                                       ; +0xed, 0x1400a7f0d\ncall    sub_1400A6720                                                  ; +0xf0, 0x1400a7f10\nnop                                                                    ; +0xf5, 0x1400a7f15\nlea     rcx, [rsp+78h+var_48]                                          ; +0xf6, 0x1400a7f16\ncall    sub_140069730                                                  ; +0xfb, 0x1400a7f1b\nnop                                                                    ; +0x100, 0x1400a7f20\nmov     rdx, qword ptr [rsp+78h+var_20+8]                              ; +0x101, 0x1400a7f21\ncmp     rdx, 0Fh                                                       ; +0x106, 0x1400a7f26\njbe     short loc_1400A7F70                                            ; +0x10a, 0x1400a7f2a\ninc     rdx                                                            ; +0x10c, 0x1400a7f2c\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x10f, 0x1400a7f2f\nmov     rax, rcx                                                       ; +0x114, 0x1400a7f34\ncmp     rdx, 1000h                                                     ; +0x117, 0x1400a7f37\njb      short loc_1400A7F6B                                            ; +0x11e, 0x1400a7f3e\nadd     rdx, 27h ; '''                                                 ; +0x120, 0x1400a7f40\nmov     rcx, [rcx-8]                                                   ; +0x124, 0x1400a7f44\nsub     rax, rcx                                                       ; +0x128, 0x1400a7f48\nsub     rax, 8                                                         ; +0x12b, 0x1400a7f4b\ncmp     rax, 1Fh                                                       ; +0x12f, 0x1400a7f4f\njbe     short loc_1400A7F6B                                            ; +0x133, 0x1400a7f53\nmov     [rsp+78h+Reserved], rsi; Reserved                              ; +0x135, 0x1400a7f55\nxor     r9d, r9d; LineNo                                               ; +0x13a, 0x1400a7f5a\nxor     r8d, r8d; FileName                                             ; +0x13d, 0x1400a7f5d\nxor     edx, edx; FunctionName                                         ; +0x140, 0x1400a7f60\nxor     ecx, ecx; Expression                                           ; +0x142, 0x1400a7f62\ncall    cs:_invoke_watson                                              ; +0x144, 0x1400a7f64\ndb 0CCh                                                                ; +0x14a, 0x1400a7f6a\ncall    j_j_free                                                       ; +0x14b, 0x1400a7f6b\nmov     rcx, [rsp+78h+var_10]                                          ; +0x150, 0x1400a7f70\nxor     rcx, rsp; StackCookie                                          ; +0x155, 0x1400a7f75\ncall    __security_check_cookie                                        ; +0x158, 0x1400a7f78\nlea     r11, [rsp+78h+var_8]                                           ; +0x15d, 0x1400a7f7d\nmov     rbx, [r11+18h]                                                 ; +0x162, 0x1400a7f82\nmov     rsi, [r11+20h]                                                 ; +0x166, 0x1400a7f86\nmov     rsp, r11                                                       ; +0x16a, 0x1400a7f8a\npop     rdi                                                            ; +0x16d, 0x1400a7f8d\nretn                                                                   ; +0x16e, 0x1400a7f8e", "xrefs": ["AccountBanPopup::init @ 0x1400a70cb", "<???> @ 0x140913268"], "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"}