{"type": "func", "start": 5371893792, "end": 5371894014, "name": "GJAccountManager::showAccountNeededAlert", "pseudocode": "// \n// GJAccountManager::showAccountNeededAlert from 0x140309820 to 0x1403098fe (222 bytes)\n// \n// 11 xrefs:\n// > CommentCell::onLike @ 0x140154902\n// > EditLevelLayer::onShare @ 0x14017ba6a\n// > EditorSoundConfigInfoLayer::onUpload @ 0x1401978bc\n// > EditorSoundConfigUploadPopup::performUpload @ 0x14019bcfc\n// > InfoLayer::onComment @ 0x1403d07bc\n// > LevelListLayer::onShare @ 0x14042fdc2\n// > ProfilePage::onSendMessage @ 0x140556b58\n// > ProfilePage::onFriend @ 0x140556e8f\n// > ProfilePage::onBlockUser @ 0x140557430\n// > <???> @ 0x14091e5fc\n// > <???> @ 0x14091e608\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:30:10 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GJAccountManager::showAccountNeededAlert(__int64 a1, const char *a2)\n{\n  cocos2d::CCString *v2; // rax\n  const char *CString; // rax\n  size_t v4; // r8\n  __int64 v5; // rax\n  cocos2d::CCObject *v6; // rbx\n  __int128 v8; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v9; // [rsp+60h] [rbp-38h]\n  __int64 v10; // [rsp+68h] [rbp-30h]\n  _BYTE v11[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  v2 = cocos2d::CCString::createWithFormat(\n         \"You need an <cl>account</c> to %s.\\nYou can create one for free in the <cy>main menu</c>.\",\n         a2);\n  CString = cocos2d::CCString::getCString(v2);\n  v8 = 0;\n  v9 = 0;\n  v10 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( CString[v4] );\n  sub_14003D230(&v8, CString, v4);\n  v5 = sub_14003F4F0((__int64)v11, (__int64)&v8);\n  v6 = FLAlertLayer::create(0, (int)\"Account Needed\", v5, (__int64)\"Close\", 0, 1136525312, 0, 0, 1065353216);\n  sub_14003D310((__int64)&v8);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 1064LL))(v6);\n}", "assembly": "; \n; GJAccountManager::showAccountNeededAlert from 0x140309820 to 0x1403098fe (222 bytes)\n; \n; 11 xrefs:\n; > CommentCell::onLike @ 0x140154902\n; > EditLevelLayer::onShare @ 0x14017ba6a\n; > EditorSoundConfigInfoLayer::onUpload @ 0x1401978bc\n; > EditorSoundConfigUploadPopup::performUpload @ 0x14019bcfc\n; > InfoLayer::onComment @ 0x1403d07bc\n; > LevelListLayer::onShare @ 0x14042fdc2\n; > ProfilePage::onSendMessage @ 0x140556b58\n; > ProfilePage::onFriend @ 0x140556e8f\n; > ProfilePage::onBlockUser @ 0x140557430\n; > <???> @ 0x14091e5fc\n; > <???> @ 0x14091e608\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:30:10 +0000\n; \nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x140309820\npush    rbx                                                            ; +0x5, 0x140309825\nsub     rsp, 90h                                                       ; +0x6, 0x140309826\nlea     rcx, aYouNeedAnClAcc; \"You need an <cl>account</c> to %s.\\nYou\"... ; +0xd, 0x14030982d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x14, 0x140309834\nmov     rcx, rax                                                       ; +0x1a, 0x14030983a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1d, 0x14030983d\nxorps   xmm0, xmm0                                                     ; +0x23, 0x140309843\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x26, 0x140309846\nxor     ebx, ebx                                                       ; +0x2b, 0x14030984b\nmov     [rsp+98h+var_38], rbx                                          ; +0x2d, 0x14030984d\nmov     [rsp+98h+var_30], rbx                                          ; +0x32, 0x140309852\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x37, 0x140309857\nxchg    ax, ax                                                         ; +0x3e, 0x14030985e\ninc     r8                                                             ; +0x40, 0x140309860\ncmp     [rax+r8], bl                                                   ; +0x43, 0x140309863\njnz     short loc_140309860                                            ; +0x47, 0x140309867\nmov     rdx, rax                                                       ; +0x49, 0x140309869\nlea     rcx, [rsp+98h+var_48]                                          ; +0x4c, 0x14030986c\ncall    sub_14003D230                                                  ; +0x51, 0x140309871\nlea     rax, [rsp+98h+var_48]                                          ; +0x56, 0x140309876\nmov     [rsp+98h+arg_0], rax                                           ; +0x5b, 0x14030987b\nlea     rdx, [rsp+98h+var_48]                                          ; +0x63, 0x140309883\nlea     rcx, [rsp+98h+var_28]                                          ; +0x68, 0x140309888\ncall    sub_14003F4F0                                                  ; +0x6d, 0x14030988d\nmovss   xmm0, cs:flt_140835080                                         ; +0x72, 0x140309892\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x7a, 0x14030989a\nxorps   xmm1, xmm1                                                     ; +0x80, 0x1403098a0\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x83, 0x1403098a3\nmov     [rsp+98h+var_68], 0                                            ; +0x89, 0x1403098a9\nmovss   xmm0, cs:dword_140835A04                                       ; +0x8e, 0x1403098ae\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x96, 0x1403098b6\nmov     [rsp+98h+var_78], rbx                                          ; +0x9c, 0x1403098bc\nlea     r9, aClose; \"Close\"                                            ; +0xa1, 0x1403098c1\nmov     r8, rax                                                        ; +0xa8, 0x1403098c8\nlea     rdx, aAccountNeeded; \"Account Needed\"                          ; +0xab, 0x1403098cb\nxor     ecx, ecx                                                       ; +0xb2, 0x1403098d2\ncall    FLAlertLayer__create                                           ; +0xb4, 0x1403098d4\nmov     rbx, rax                                                       ; +0xb9, 0x1403098d9\nlea     rcx, [rsp+98h+var_48]                                          ; +0xbc, 0x1403098dc\ncall    sub_14003D310                                                  ; +0xc1, 0x1403098e1\nmov     rcx, [rbx]                                                     ; +0xc6, 0x1403098e6\nmov     rdx, [rcx+428h]                                                ; +0xc9, 0x1403098e9\nmov     rcx, rbx                                                       ; +0xd0, 0x1403098f0\ncall    rdx                                                            ; +0xd3, 0x1403098f3\nadd     rsp, 90h                                                       ; +0xd5, 0x1403098f5\npop     rbx                                                            ; +0xdc, 0x1403098fc\nretn                                                                   ; +0xdd, 0x1403098fd", "xrefs": ["CommentCell::onLike @ 0x140154902", "EditLevelLayer::onShare @ 0x14017ba6a", "EditorSoundConfigInfoLayer::onUpload @ 0x1401978bc", "EditorSoundConfigUploadPopup::performUpload @ 0x14019bcfc", "InfoLayer::onComment @ 0x1403d07bc", "LevelListLayer::onShare @ 0x14042fdc2", "ProfilePage::onSendMessage @ 0x140556b58", "ProfilePage::onFriend @ 0x140556e8f", "ProfilePage::onBlockUser @ 0x140557430", "<???> @ 0x14091e5fc", "<???> @ 0x14091e608"], "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"}