{"type": "func", "start": 5370894400, "end": 5370894964, "name": "FriendsProfilePage::onUnfollow", "pseudocode": "// \n// FriendsProfilePage::onUnfollow from 0x140215840 to 0x140215a74 (564 bytes)\n// \n// 2 xrefs:\n// > FriendsProfilePage::mountVirtualRow @ 0x140214aaa\n// > <???> @ 0x14091b6e0\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:28:21 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall FriendsProfilePage::onUnfollow(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCObject *v4; // rbx\n  cocos2d::CCObject *v5; // rcx\n  const char *v6; // rdx\n  cocos2d::CCString *v7; // rax\n  const char *CString; // rax\n  size_t v9; // rbx\n  size_t v10; // r8\n  int v11; // esi\n  void **v12; // rdx\n  __int64 v13; // rax\n  __int64 *v14; // rbx\n  void *v15; // rcx\n  __int128 v16; // [rsp+58h] [rbp-51h] BYREF\n  __int64 v17; // [rsp+68h] [rbp-41h]\n  __int64 v18; // [rsp+70h] [rbp-39h]\n  _BYTE v19[32]; // [rsp+80h] [rbp-29h] BYREF\n  void *Block[2]; // [rsp+A0h] [rbp-9h] BYREF\n  __int128 v21; // [rsp+B0h] [rbp+7h]\n  _QWORD v22[4]; // [rsp+C0h] [rbp+17h] BYREF\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 632LL))(a2);\n  v4 = (cocos2d::CCObject *)v3;\n  if ( v3 && *(int *)(v3 + 392) > 0 )\n  {\n    v5 = *(cocos2d::CCObject **)(a1 + 840);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    *(_QWORD *)(a1 + 840) = v4;\n    cocos2d::CCObject::retain(v4);\n    sub_14003F4F0((__int64)v22, (__int64)v4 + 320);\n    v6 = (const char *)v22;\n    if ( v22[3] > 0xFu )\n      v6 = (const char *)v22[0];\n    v7 = cocos2d::CCString::createWithFormat(\"Are you sure you want to <cl>unfollow</c> <cy>%s</c>?\", v6);\n    CString = cocos2d::CCString::getCString(v7);\n    *(_OWORD *)Block = 0;\n    v21 = 0;\n    v9 = -1;\n    v10 = -1;\n    do\n      ++v10;\n    while ( CString[v10] );\n    sub_14003D230(Block, CString, v10);\n    sub_14003D310((__int64)v22);\n    v11 = a1 + 784;\n    if ( !a1 )\n      v11 = 0;\n    v12 = Block;\n    if ( *((_QWORD *)&v21 + 1) > 0xFu )\n      v12 = (void **)Block[0];\n    v16 = 0;\n    v17 = 0;\n    v18 = 0;\n    do\n      ++v9;\n    while ( *((_BYTE *)v12 + v9) );\n    sub_14003D230(&v16, v12, v9);\n    v13 = sub_14003F4F0((__int64)v19, (__int64)&v16);\n    v14 = (__int64 *)FLAlertLayer::create(\n                       v11,\n                       (int)\"Unfollow\",\n                       v13,\n                       (__int64)\"Back\",\n                       (__int64)\"Unfollow\",\n                       1133903872,\n                       0,\n                       0,\n                       1065353216);\n    sub_14003D310((__int64)&v16);\n    (*(void (__fastcall **)(__int64 *, __int64))(*v14 + 64))(v14, 1);\n    ButtonSprite::updateBGImage(v14[77], \"GJ_button_06.png\");\n    (*(void (__fastcall **)(__int64 *))(*v14 + 1064))(v14);\n    if ( *((_QWORD *)&v21 + 1) > 0xFu )\n    {\n      v15 = Block[0];\n      if ( (unsigned __int64)(*((_QWORD *)&v21 + 1) + 1LL) >= 0x1000 )\n      {\n        v15 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v15);\n    }\n  }\n}", "assembly": "; \n; FriendsProfilePage::onUnfollow from 0x140215840 to 0x140215a74 (564 bytes)\n; \n; 2 xrefs:\n; > FriendsProfilePage::mountVirtualRow @ 0x140214aaa\n; > <???> @ 0x14091b6e0\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:28:21 +0000\n; \nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x140215840\nmov     [rsp-8+arg_18], rsi                                            ; +0x5, 0x140215845\npush    rbp                                                            ; +0xa, 0x14021584a\npush    rdi                                                            ; +0xb, 0x14021584b\npush    r14                                                            ; +0xc, 0x14021584c\nlea     rbp, [rsp-47h]                                                 ; +0xe, 0x14021584e\nsub     rsp, 0F0h                                                      ; +0x13, 0x140215853\nmov     rax, cs:__security_cookie                                      ; +0x1a, 0x14021585a\nxor     rax, rsp                                                       ; +0x21, 0x140215861\nmov     [rbp+57h+var_20], rax                                          ; +0x24, 0x140215864\nmov     rdi, rcx                                                       ; +0x28, 0x140215868\nxor     r14d, r14d                                                     ; +0x2b, 0x14021586b\nmov     rax, [rdx]                                                     ; +0x2e, 0x14021586e\nmov     rcx, rdx                                                       ; +0x31, 0x140215871\ncall    qword ptr [rax+278h]                                           ; +0x34, 0x140215874\nmov     rbx, rax                                                       ; +0x3a, 0x14021587a\ntest    rax, rax                                                       ; +0x3d, 0x14021587d\njz      loc_140215A50                                                  ; +0x40, 0x140215880\ncmp     [rax+188h], r14d                                               ; +0x46, 0x140215886\njle     loc_140215A50                                                  ; +0x4d, 0x14021588d\nmov     rcx, [rdi+348h]                                                ; +0x53, 0x140215893\ntest    rcx, rcx                                                       ; +0x5a, 0x14021589a\njz      short loc_1402158A5                                            ; +0x5d, 0x14021589d\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x5f, 0x14021589f\nmov     [rdi+348h], rbx                                                ; +0x65, 0x1402158a5\nmov     rcx, rbx                                                       ; +0x6c, 0x1402158ac\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x6f, 0x1402158af\nlea     rdx, [rbx+140h]                                                ; +0x75, 0x1402158b5\nlea     rcx, [rbp+57h+var_40]                                          ; +0x7c, 0x1402158bc\ncall    sub_14003F4F0                                                  ; +0x80, 0x1402158c0\nnop                                                                    ; +0x85, 0x1402158c5\nlea     rdx, [rbp+57h+var_40]                                          ; +0x86, 0x1402158c6\ncmp     [rbp+57h+var_28], 0Fh                                          ; +0x8a, 0x1402158ca\ncmova   rdx, [rbp+57h+var_40]                                          ; +0x8f, 0x1402158cf\nlea     rcx, aAreYouSureYouW_0; \"Are you sure you want to <cl>unfollow</\"... ; +0x94, 0x1402158d4\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x9b, 0x1402158db\nmov     rcx, rax                                                       ; +0xa1, 0x1402158e1\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa4, 0x1402158e4\nxorps   xmm0, xmm0                                                     ; +0xaa, 0x1402158ea\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0xad, 0x1402158ed\nxorps   xmm1, xmm1                                                     ; +0xb1, 0x1402158f1\nmovdqu  [rbp+57h+var_50], xmm1                                         ; +0xb4, 0x1402158f4\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0xb9, 0x1402158f9\nmov     r8, rbx                                                        ; +0xc0, 0x140215900\ninc     r8                                                             ; +0xc3, 0x140215903\ncmp     byte ptr [rax+r8], 0                                           ; +0xc6, 0x140215906\njnz     short loc_140215903                                            ; +0xcb, 0x14021590b\nmov     rdx, rax                                                       ; +0xcd, 0x14021590d\nlea     rcx, [rbp+57h+Block]                                           ; +0xd0, 0x140215910\ncall    sub_14003D230                                                  ; +0xd4, 0x140215914\nnop                                                                    ; +0xd9, 0x140215919\nlea     rcx, [rbp+57h+var_40]                                          ; +0xda, 0x14021591a\ncall    sub_14003D310                                                  ; +0xde, 0x14021591e\nlea     rsi, [rdi+310h]                                                ; +0xe3, 0x140215923\ntest    rdi, rdi                                                       ; +0xea, 0x14021592a\ncmovz   rsi, r14                                                       ; +0xed, 0x14021592d\nlea     rdx, [rbp+57h+Block]                                           ; +0xf1, 0x140215931\ncmp     qword ptr [rbp+57h+var_50+8], 0Fh                              ; +0xf5, 0x140215935\ncmova   rdx, [rbp+57h+Block]                                           ; +0xfa, 0x14021593a\nxorps   xmm0, xmm0                                                     ; +0xff, 0x14021593f\nmovups  [rbp+57h+var_A8], xmm0                                         ; +0x102, 0x140215942\nmov     [rbp+57h+var_98], r14                                          ; +0x106, 0x140215946\nmov     [rbp+57h+var_90], r14                                          ; +0x10a, 0x14021594a\nxchg    ax, ax                                                         ; +0x10e, 0x14021594e\ninc     rbx                                                            ; +0x110, 0x140215950\ncmp     byte ptr [rdx+rbx], 0                                          ; +0x113, 0x140215953\njnz     short loc_140215950                                            ; +0x117, 0x140215957\nmov     r8, rbx                                                        ; +0x119, 0x140215959\nlea     rcx, [rbp+57h+var_A8]                                          ; +0x11c, 0x14021595c\ncall    sub_14003D230                                                  ; +0x120, 0x140215960\nlea     rax, [rbp+57h+var_A8]                                          ; +0x125, 0x140215965\nmov     [rbp+57h+var_B0], rax                                          ; +0x129, 0x140215969\nlea     rdx, [rbp+57h+var_A8]                                          ; +0x12d, 0x14021596d\nlea     rcx, [rbp+57h+var_80]                                          ; +0x131, 0x140215971\ncall    sub_14003F4F0                                                  ; +0x135, 0x140215975\nmovss   xmm0, cs:flt_140835080                                         ; +0x13a, 0x14021597a\nmovss   [rsp+100h+var_C0], xmm0                                        ; +0x142, 0x140215982\nxorps   xmm1, xmm1                                                     ; +0x148, 0x140215988\nmovss   [rsp+100h+var_C8], xmm1                                        ; +0x14b, 0x14021598b\nmov     [rsp+100h+var_D0], 0                                           ; +0x151, 0x140215991\nmovss   xmm0, cs:dword_1408359A4                                       ; +0x156, 0x140215996\nmovss   [rsp+100h+var_D8], xmm0                                        ; +0x15e, 0x14021599e\nlea     rdx, aUnfollow; \"Unfollow\"                                     ; +0x164, 0x1402159a4\nmov     [rsp+100h+Reserved], rdx                                       ; +0x16b, 0x1402159ab\nlea     r9, aBack; \"Back\"                                              ; +0x170, 0x1402159b0\nmov     r8, rax                                                        ; +0x177, 0x1402159b7\nmov     rcx, rsi                                                       ; +0x17a, 0x1402159ba\ncall    FLAlertLayer__create                                           ; +0x17d, 0x1402159bd\nmov     rbx, rax                                                       ; +0x182, 0x1402159c2\nlea     rcx, [rbp+57h+var_A8]                                          ; +0x185, 0x1402159c5\ncall    sub_14003D310                                                  ; +0x189, 0x1402159c9\nmov     rcx, [rbx]                                                     ; +0x18e, 0x1402159ce\nmov     r8, [rcx+40h]                                                  ; +0x191, 0x1402159d1\nmov     edx, 1                                                         ; +0x195, 0x1402159d5\nmov     rcx, rbx                                                       ; +0x19a, 0x1402159da\ncall    r8                                                             ; +0x19d, 0x1402159dd\nlea     rdx, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x1a0, 0x1402159e0\nmov     rcx, [rbx+268h]                                                ; +0x1a7, 0x1402159e7\ncall    ButtonSprite__updateBGImage                                    ; +0x1ae, 0x1402159ee\nmov     rcx, [rbx]                                                     ; +0x1b3, 0x1402159f3\nmov     rdx, [rcx+428h]                                                ; +0x1b6, 0x1402159f6\nmov     rcx, rbx                                                       ; +0x1bd, 0x1402159fd\ncall    rdx                                                            ; +0x1c0, 0x140215a00\nnop                                                                    ; +0x1c2, 0x140215a02\nmov     rdx, qword ptr [rbp+57h+var_50+8]                              ; +0x1c3, 0x140215a03\ncmp     rdx, 0Fh                                                       ; +0x1c7, 0x140215a07\njbe     short loc_140215A50                                            ; +0x1cb, 0x140215a0b\ninc     rdx                                                            ; +0x1cd, 0x140215a0d\nmov     rcx, [rbp+57h+Block]; Block                                    ; +0x1d0, 0x140215a10\nmov     rax, rcx                                                       ; +0x1d4, 0x140215a14\ncmp     rdx, 1000h                                                     ; +0x1d7, 0x140215a17\njb      short loc_140215A4B                                            ; +0x1de, 0x140215a1e\nadd     rdx, 27h ; '''                                                 ; +0x1e0, 0x140215a20\nmov     rcx, [rcx-8]                                                   ; +0x1e4, 0x140215a24\nsub     rax, rcx                                                       ; +0x1e8, 0x140215a28\nsub     rax, 8                                                         ; +0x1eb, 0x140215a2b\ncmp     rax, 1Fh                                                       ; +0x1ef, 0x140215a2f\njbe     short loc_140215A4B                                            ; +0x1f3, 0x140215a33\nmov     [rsp+100h+Reserved], r14; Reserved                             ; +0x1f5, 0x140215a35\nxor     r9d, r9d; LineNo                                               ; +0x1fa, 0x140215a3a\nxor     r8d, r8d; FileName                                             ; +0x1fd, 0x140215a3d\nxor     edx, edx; FunctionName                                         ; +0x200, 0x140215a40\nxor     ecx, ecx; Expression                                           ; +0x202, 0x140215a42\ncall    cs:_invoke_watson                                              ; +0x204, 0x140215a44\ndb 0CCh                                                                ; +0x20a, 0x140215a4a\ncall    j_j_free                                                       ; +0x20b, 0x140215a4b\nmov     rcx, [rbp+57h+var_20]                                          ; +0x210, 0x140215a50\nxor     rcx, rsp; StackCookie                                          ; +0x214, 0x140215a54\ncall    __security_check_cookie                                        ; +0x217, 0x140215a57\nlea     r11, [rsp+100h+var_10]                                         ; +0x21c, 0x140215a5c\nmov     rbx, [r11+30h]                                                 ; +0x224, 0x140215a64\nmov     rsi, [r11+38h]                                                 ; +0x228, 0x140215a68\nmov     rsp, r11                                                       ; +0x22c, 0x140215a6c\npop     r14                                                            ; +0x22f, 0x140215a6f\npop     rdi                                                            ; +0x231, 0x140215a71\npop     rbp                                                            ; +0x232, 0x140215a72\nretn                                                                   ; +0x233, 0x140215a73", "xrefs": ["FriendsProfilePage::mountVirtualRow @ 0x140214aaa", "<???> @ 0x14091b6e0"], "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"}