{"type": "func", "start": 4297418448, "end": 4297418694, "name": "GJUserCell::onCancelFriendRequest", "pseudocode": "// \n// GJUserCell::onCancelFriendRequest from 0x1002566d0 to 0x1002567c6 (246 bytes)\n// \n// 1 xrefs:\n// > GJUserCell::loadFromScore @ 0x10024be57\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJUserCell::onCancelFriendRequest(GJUserCell *a1, cocos2d::CCObject *a2)\n{\n  GJUserScore *m_userScore; // rax\n  ButtonSprite **v3; // rbx\n  _QWORD v4[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  m_userScore = a1->m_userScore;\n  if ( m_userScore && m_userScore->m_accountID > 0 )\n  {\n    __p = operator new(0x38u);\n    v4[0] = 57;\n    v4[1] = 52;\n    strcpy((char *)__p, \"Are you sure you want to remove this friend request?\");\n    v3 = (ButtonSprite **)FLAlertLayer::create(\n                            &a1->FLAlertLayerProtocol,\n                            \"Cancel friend request\",\n                            v4,\n                            \"Back\",\n                            \"Remove\",\n                            0,\n                            380.0,\n                            0.0,\n                            1.0);\n    if ( (v4[0] & 1) != 0 )\n      operator delete(__p);\n    ButtonSprite::updateBGImage(v3[75], \"GJ_button_06.png\");\n    (*(void (__fastcall **)(ButtonSprite **, __int64))&(*v3)->m_fVertexZ)(v3, 3);\n    (*(void (__fastcall **)(ButtonSprite **))&(*v3)[1].m_fTextureTop)(v3);\n  }\n}", "assembly": "; \n; GJUserCell::onCancelFriendRequest from 0x1002566d0 to 0x1002567c6 (246 bytes)\n; \n; 1 xrefs:\n; > GJUserCell::loadFromScore @ 0x10024be57\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1002566d0\nmov     rbp, rsp                                                       ; +0x1, 0x1002566d1\npush    rbx                                                            ; +0x4, 0x1002566d4\nsub     rsp, 18h                                                       ; +0x5, 0x1002566d5\nmov     rax, [rdi+240h]                                                ; +0x9, 0x1002566d9\ntest    rax, rax                                                       ; +0x10, 0x1002566e0\njz      loc_1002567BF                                                  ; +0x13, 0x1002566e3\ncmp     dword ptr [rax+178h], 0                                        ; +0x19, 0x1002566e9\njle     loc_1002567BF                                                  ; +0x20, 0x1002566f0\nadd     rdi, 228h                                                      ; +0x26, 0x1002566f6\nmov     rbx, rdi                                                       ; +0x2d, 0x1002566fd\nmov     edi, 38h ; '8'; __sz                                           ; +0x30, 0x100256700\ncall    __Znwm; operator new(ulong)                                    ; +0x35, 0x100256705\nmov     [rbp+__p], rax                                                 ; +0x3a, 0x10025670a\nmov     [rbp+var_20], 39h ; '9'                                        ; +0x3e, 0x10025670e\nmov     [rbp+var_18], 34h ; '4'                                        ; +0x46, 0x100256716\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_5+20h; \"this friend request?\" ; +0x4e, 0x10025671e\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x55, 0x100256725\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_5+10h; \" want to remove this friend request?\" ; +0x59, 0x100256729\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x60, 0x100256730\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_5; \"Are you sure you want to remove this fr\"... ; +0x64, 0x100256734\nmovups  xmmword ptr [rax], xmm0                                        ; +0x6b, 0x10025673b\nmov     dword ptr [rax+30h], 3F747365h                                 ; +0x6e, 0x10025673e\nmov     byte ptr [rax+34h], 0                                          ; +0x75, 0x100256745\nlea     rsi, aCancelFriendRe; \"Cancel friend request\"                  ; +0x79, 0x100256749\nlea     rcx, aBack; \"Back\"                                             ; +0x80, 0x100256750\nlea     r8, aRemove; \"Remove\"                                          ; +0x87, 0x100256757\nlea     rdx, [rbp+var_20]                                              ; +0x8e, 0x10025675e\nmovss   xmm0, cs:dword_1008152BC                                       ; +0x92, 0x100256762\nmovss   xmm2, cs:alpha                                                 ; +0x9a, 0x10025676a\nxorps   xmm1, xmm1                                                     ; +0xa2, 0x100256772\nmov     rdi, rbx                                                       ; +0xa5, 0x100256775\nxor     r9d, r9d                                                       ; +0xa8, 0x100256778\ncall    FLAlertLayer__create                                           ; +0xab, 0x10025677b\nmov     rbx, rax                                                       ; +0xb0, 0x100256780\ntest    byte ptr [rbp+var_20], 1                                       ; +0xb3, 0x100256783\njz      short loc_100256792                                            ; +0xb7, 0x100256787\nmov     rdi, [rbp+__p]; __p                                            ; +0xb9, 0x100256789\ncall    __ZdlPv; operator delete(void *)                               ; +0xbd, 0x10025678d\nmov     rdi, [rbx+258h]                                                ; +0xc2, 0x100256792\nlea     rsi, aGjButton06Png; \"GJ_button_06.png\"                        ; +0xc9, 0x100256799\ncall    ButtonSprite__updateBGImage                                    ; +0xd0, 0x1002567a0\nmov     rax, [rbx]                                                     ; +0xd5, 0x1002567a5\nmov     rdi, rbx                                                       ; +0xd8, 0x1002567a8\nmov     esi, 3                                                         ; +0xdb, 0x1002567ab\ncall    qword ptr [rax+48h]                                            ; +0xe0, 0x1002567b0\nmov     rax, [rbx]                                                     ; +0xe3, 0x1002567b3\nmov     rdi, rbx                                                       ; +0xe6, 0x1002567b6\ncall    qword ptr [rax+508h]                                           ; +0xe9, 0x1002567b9\nadd     rsp, 18h                                                       ; +0xef, 0x1002567bf\npop     rbx                                                            ; +0xf3, 0x1002567c3\npop     rbp                                                            ; +0xf4, 0x1002567c4\nretn                                                                   ; +0xf5, 0x1002567c5", "xrefs": ["GJUserCell::loadFromScore @ 0x10024be57"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}