{"type": "func", "start": 5369481392, "end": 5369481700, "name": "AccountReviewPopup::adminDeleteCommentsFinished", "pseudocode": "// \n// AccountReviewPopup::adminDeleteCommentsFinished from 0x1400bc8b0 to 0x1400bc9e4 (308 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140722208\n// > <???> @ 0x1409138bc\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:17 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall AccountReviewPopup::adminDeleteCommentsFinished(__int64 a1, int a2)\n{\n  const char *v3; // r8\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // r8\n  __int64 v8; // rdi\n  __int64 v9; // rsi\n  __int64 v10; // rcx\n  __int128 v11; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v12; // [rsp+30h] [rbp-18h]\n  __int64 v13; // [rsp+38h] [rbp-10h]\n  void *v14; // [rsp+50h] [rbp+8h]\n\n  if ( !*(_QWORD *)(a1 + 608) || *(_BYTE *)(a1 + 616) )\n  {\n    v8 = a1 - 776;\n    v9 = a1;\n    if ( a1 == 776 )\n      v9 = 0;\n    v10 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v14 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v14);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v10 = *(_QWORD *)&qword_14090BFB0;\n    }\n    *(_QWORD *)(v10 + 1384) = v9;\n    GameLevelManager::adminGetAccountReview(v10, *(unsigned int *)(v8 + 840));\n    return PagedListPopup::loadPage(v8, *(unsigned int *)(a1 - 96));\n  }\n  else\n  {\n    *(_BYTE *)(a1 + 545) = 1;\n    v3 = (const char *)&unk_14070D03C;\n    if ( a2 == 1 )\n      v3 = &byte_1406ED6E0;\n    v4 = cocos2d::CCString::createWithFormat(\"Deleted <cg>%i</c> item%s.\", a2, v3);\n    CString = cocos2d::CCString::getCString(v4);\n    v11 = 0;\n    v12 = 0;\n    v13 = 0;\n    v6 = -1;\n    do\n      ++v6;\n    while ( CString[v6] );\n    sub_14003D230(&v11, CString, v6);\n    return UploadActionPopup::showSuccessMessage(*(_QWORD *)(a1 + 608), &v11);\n  }\n}", "assembly": "; \n; AccountReviewPopup::adminDeleteCommentsFinished from 0x1400bc8b0 to 0x1400bc9e4 (308 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140722208\n; > <???> @ 0x1409138bc\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:17 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400bc8b0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1400bc8b5\npush    rdi                                                            ; +0xa, 0x1400bc8ba\nsub     rsp, 40h                                                       ; +0xb, 0x1400bc8bb\nmov     rbx, rcx                                                       ; +0xf, 0x1400bc8bf\ncmp     qword ptr [rcx+260h], 0                                        ; +0x12, 0x1400bc8c2\njz      loc_1400BC967                                                  ; +0x1a, 0x1400bc8ca\ncmp     byte ptr [rcx+268h], 0                                         ; +0x20, 0x1400bc8d0\njnz     loc_1400BC967                                                  ; +0x27, 0x1400bc8d7\nmov     byte ptr [rcx+221h], 1                                         ; +0x2d, 0x1400bc8dd\nlea     rax, byte_1406ED6E0                                            ; +0x34, 0x1400bc8e4\nlea     r8, unk_14070D03C                                              ; +0x3b, 0x1400bc8eb\ncmp     edx, 1                                                         ; +0x42, 0x1400bc8f2\ncmovz   r8, rax                                                        ; +0x45, 0x1400bc8f5\nlea     rcx, aDeletedCgICIte; \"Deleted <cg>%i</c> item%s.\"             ; +0x49, 0x1400bc8f9\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x50, 0x1400bc900\nmov     rcx, rax                                                       ; +0x56, 0x1400bc906\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x59, 0x1400bc909\nxorps   xmm0, xmm0                                                     ; +0x5f, 0x1400bc90f\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x62, 0x1400bc912\nxor     ecx, ecx                                                       ; +0x67, 0x1400bc917\nmov     [rsp+48h+var_18], rcx                                          ; +0x69, 0x1400bc919\nmov     [rsp+48h+var_10], rcx                                          ; +0x6e, 0x1400bc91e\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x73, 0x1400bc923\nnop     word ptr [rax+rax+00h]                                         ; +0x7a, 0x1400bc92a\ninc     r8                                                             ; +0x80, 0x1400bc930\ncmp     [rax+r8], cl                                                   ; +0x83, 0x1400bc933\njnz     short loc_1400BC930                                            ; +0x87, 0x1400bc937\nmov     rdx, rax                                                       ; +0x89, 0x1400bc939\nlea     rcx, [rsp+48h+var_28]                                          ; +0x8c, 0x1400bc93c\ncall    sub_14003D230                                                  ; +0x91, 0x1400bc941\nlea     rdx, [rsp+48h+var_28]                                          ; +0x96, 0x1400bc946\nmov     rcx, [rbx+260h]                                                ; +0x9b, 0x1400bc94b\ncall    UploadActionPopup__showSuccessMessage                          ; +0xa2, 0x1400bc952\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xa7, 0x1400bc957\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xac, 0x1400bc95c\nadd     rsp, 40h                                                       ; +0xb1, 0x1400bc961\npop     rdi                                                            ; +0xb5, 0x1400bc965\nretn                                                                   ; +0xb6, 0x1400bc966\nlea     rdi, [rcx-308h]                                                ; +0xb7, 0x1400bc967\nmov     rsi, rbx                                                       ; +0xbe, 0x1400bc96e\nxor     ecx, ecx                                                       ; +0xc1, 0x1400bc971\ntest    rdi, rdi                                                       ; +0xc3, 0x1400bc973\ncmovz   rsi, rcx                                                       ; +0xc6, 0x1400bc976\nmov     rcx, cs:qword_14090BFB0                                        ; +0xca, 0x1400bc97a\ntest    rcx, rcx                                                       ; +0xd1, 0x1400bc981\njnz     short loc_1400BC9B8                                            ; +0xd4, 0x1400bc984\nmov     ecx, 690h; Size                                                ; +0xd6, 0x1400bc986\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xdb, 0x1400bc98b\nmov     [rsp+48h+arg_0], rax                                           ; +0xe0, 0x1400bc990\nmov     rcx, rax                                                       ; +0xe5, 0x1400bc995\ncall    GameLevelManager__GameLevelManager                             ; +0xe8, 0x1400bc998\nnop                                                                    ; +0xed, 0x1400bc99d\nmov     cs:qword_14090BFB0, rax                                        ; +0xee, 0x1400bc99e\nmov     rcx, [rax]                                                     ; +0xf5, 0x1400bc9a5\nmov     rdx, [rcx+48h]                                                 ; +0xf8, 0x1400bc9a8\nmov     rcx, rax                                                       ; +0xfc, 0x1400bc9ac\ncall    rdx                                                            ; +0xff, 0x1400bc9af\nmov     rcx, cs:qword_14090BFB0                                        ; +0x101, 0x1400bc9b1\nmov     [rcx+568h], rsi                                                ; +0x108, 0x1400bc9b8\nmov     edx, [rdi+348h]                                                ; +0x10f, 0x1400bc9bf\ncall    GameLevelManager__adminGetAccountReview                        ; +0x115, 0x1400bc9c5\nmov     edx, [rbx-60h]                                                 ; +0x11a, 0x1400bc9ca\nmov     rcx, rdi                                                       ; +0x11d, 0x1400bc9cd\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x120, 0x1400bc9d0\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x125, 0x1400bc9d5\nadd     rsp, 40h                                                       ; +0x12a, 0x1400bc9da\npop     rdi                                                            ; +0x12e, 0x1400bc9de\njmp     PagedListPopup__loadPage                                       ; +0x12f, 0x1400bc9df", "xrefs": ["<???> @ 0x140722208", "<???> @ 0x1409138bc"], "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"}