{"type": "func", "start": 5369680544, "end": 5369681072, "name": "MemberListPopup::onTransferOwner", "pseudocode": "// \n// MemberListPopup::onTransferOwner from 0x1400ed2a0 to 0x1400ed4b0 (528 bytes)\n// \n// 2 xrefs:\n// > MemberListPopup::buildRows @ 0x1400eca33\n// > <???> @ 0x140914fd8\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:35 +0000\n// \n\n__int64 __fastcall MemberListPopup::onTransferOwner(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rdi\n  const char *v5; // rdx\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  size_t v8; // r8\n  cocos2d::CCObject *v9; // rbx\n  __int64 v10; // rax\n  void *v11; // [rsp+58h] [rbp-80h]\n  __int128 v12; // [rsp+60h] [rbp-78h] BYREF\n  __int64 v13; // [rsp+70h] [rbp-68h]\n  __int64 v14; // [rsp+78h] [rbp-60h]\n  _BYTE v15[32]; // [rsp+80h] [rbp-58h] BYREF\n  _QWORD v16[4]; // [rsp+A0h] [rbp-38h] BYREF\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 632LL))(a2);\n  if ( !*(_BYTE *)(a1 + 864)\n    && *(int *)(a1 + 868) <= 0\n    && *(int *)(a1 + 872) <= 0\n    && *(int *)(a1 + 876) <= 0\n    && !*(_BYTE *)(a1 + 848)\n    && result )\n  {\n    *(_DWORD *)(a1 + 872) = *(_DWORD *)(result + 392);\n    v4 = a1 + 792;\n    sub_14003F4F0((__int64)v16, result + 320);\n    v5 = (const char *)v16;\n    if ( v16[3] > 0xFu )\n      v5 = (const char *)v16[0];\n    v6 = cocos2d::CCString::createWithFormat(\n           \"Make <cy>%s</c> the owner of this group chat?\\n<cy>Only the owner can kick members.</c>\",\n           v5);\n    CString = cocos2d::CCString::getCString(v6);\n    v12 = 0;\n    v13 = 0;\n    v14 = 0;\n    v8 = -1;\n    do\n      ++v8;\n    while ( CString[v8] );\n    sub_14003D230(&v12, CString, v8);\n    v11 = operator new(0x298u);\n    v9 = (cocos2d::CCObject *)FLAlertLayer::FLAlertLayer((__int64)v11);\n    if ( v9 )\n    {\n      v10 = sub_14003F4F0((__int64)v15, (__int64)&v12);\n      if ( FLAlertLayer::init(v9, v4, \"Transfer Ownership\", v10, (__int64)\"Back\", (__int64)\"Transfer\", 380.0, 0, 0, 1.0) )\n      {\n        cocos2d::CCObject::autorelease(v9);\n      }\n      else\n      {\n        (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);\n        v9 = nullptr;\n      }\n    }\n    sub_14003D310((__int64)&v12);\n    sub_14003D310((__int64)v16);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 64LL))(v9, 5);\n    return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 1064LL))(v9);\n  }\n  return result;\n}", "assembly": "; \n; MemberListPopup::onTransferOwner from 0x1400ed2a0 to 0x1400ed4b0 (528 bytes)\n; \n; 2 xrefs:\n; > MemberListPopup::buildRows @ 0x1400eca33\n; > <???> @ 0x140914fd8\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:35 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1400ed2a0\npush    rdi                                                            ; +0x5, 0x1400ed2a5\nsub     rsp, 0D0h                                                      ; +0x6, 0x1400ed2a6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1400ed2ad\nxor     rax, rsp                                                       ; +0x14, 0x1400ed2b4\nmov     [rsp+0D8h+var_18], rax                                         ; +0x17, 0x1400ed2b7\nmov     rbx, rcx                                                       ; +0x1f, 0x1400ed2bf\nmov     rax, [rdx]                                                     ; +0x22, 0x1400ed2c2\nmov     rcx, rdx                                                       ; +0x25, 0x1400ed2c5\ncall    qword ptr [rax+278h]                                           ; +0x28, 0x1400ed2c8\nmov     rdx, rax                                                       ; +0x2e, 0x1400ed2ce\ncmp     byte ptr [rbx+360h], 0                                         ; +0x31, 0x1400ed2d1\njnz     loc_1400ED48F                                                  ; +0x38, 0x1400ed2d8\ncmp     dword ptr [rbx+364h], 0                                        ; +0x3e, 0x1400ed2de\njg      loc_1400ED48F                                                  ; +0x45, 0x1400ed2e5\ncmp     dword ptr [rbx+368h], 0                                        ; +0x4b, 0x1400ed2eb\njg      loc_1400ED48F                                                  ; +0x52, 0x1400ed2f2\ncmp     dword ptr [rbx+36Ch], 0                                        ; +0x58, 0x1400ed2f8\njg      loc_1400ED48F                                                  ; +0x5f, 0x1400ed2ff\ncmp     byte ptr [rbx+350h], 0                                         ; +0x65, 0x1400ed305\njnz     loc_1400ED48F                                                  ; +0x6c, 0x1400ed30c\ntest    rax, rax                                                       ; +0x72, 0x1400ed312\njz      loc_1400ED48F                                                  ; +0x75, 0x1400ed315\nmov     eax, [rax+188h]                                                ; +0x7b, 0x1400ed31b\nmov     [rbx+368h], eax                                                ; +0x81, 0x1400ed321\nlea     rdi, [rbx+318h]                                                ; +0x87, 0x1400ed327\nadd     rdx, 140h                                                      ; +0x8e, 0x1400ed32e\nlea     rcx, [rsp+0D8h+var_38]                                         ; +0x95, 0x1400ed335\ncall    sub_14003F4F0                                                  ; +0x9d, 0x1400ed33d\nnop                                                                    ; +0xa2, 0x1400ed342\nlea     rdx, [rsp+0D8h+var_38]                                         ; +0xa3, 0x1400ed343\ncmp     [rsp+0D8h+var_20], 0Fh                                         ; +0xab, 0x1400ed34b\ncmova   rdx, [rsp+0D8h+var_38]                                         ; +0xb4, 0x1400ed354\nlea     rcx, aMakeCySCTheOwn; \"Make <cy>%s</c> the owner of this group\"... ; +0xbd, 0x1400ed35d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xc4, 0x1400ed364\nmov     rcx, rax                                                       ; +0xca, 0x1400ed36a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xcd, 0x1400ed36d\nxorps   xmm0, xmm0                                                     ; +0xd3, 0x1400ed373\nmovups  [rsp+0D8h+var_78], xmm0                                        ; +0xd6, 0x1400ed376\nmov     [rsp+0D8h+var_68], 0                                           ; +0xdb, 0x1400ed37b\nmov     [rsp+0D8h+var_60], 0                                           ; +0xe4, 0x1400ed384\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xed, 0x1400ed38d\ninc     r8                                                             ; +0xf4, 0x1400ed394\ncmp     byte ptr [rax+r8], 0                                           ; +0xf7, 0x1400ed397\njnz     short loc_1400ED394                                            ; +0xfc, 0x1400ed39c\nmov     rdx, rax                                                       ; +0xfe, 0x1400ed39e\nlea     rcx, [rsp+0D8h+var_78]                                         ; +0x101, 0x1400ed3a1\ncall    sub_14003D230                                                  ; +0x106, 0x1400ed3a6\nlea     rax, [rsp+0D8h+var_78]                                         ; +0x10b, 0x1400ed3ab\nmov     [rsp+0D8h+var_88], rax                                         ; +0x110, 0x1400ed3b0\nmov     ecx, 298h; Size                                                ; +0x115, 0x1400ed3b5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x11a, 0x1400ed3ba\nmov     [rsp+0D8h+var_80], rax                                         ; +0x11f, 0x1400ed3bf\nmov     rcx, rax                                                       ; +0x124, 0x1400ed3c4\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x127, 0x1400ed3c7\nmov     rbx, rax                                                       ; +0x12c, 0x1400ed3cc\ntest    rax, rax                                                       ; +0x12f, 0x1400ed3cf\njz      loc_1400ED45D                                                  ; +0x132, 0x1400ed3d2\nlea     rdx, [rsp+0D8h+var_78]                                         ; +0x138, 0x1400ed3d8\nlea     rcx, [rsp+0D8h+var_58]                                         ; +0x13d, 0x1400ed3dd\ncall    sub_14003F4F0                                                  ; +0x145, 0x1400ed3e5\nmovss   xmm0, cs:flt_140835080                                         ; +0x14a, 0x1400ed3ea\nmovss   [rsp+0D8h+var_90], xmm0                                        ; +0x152, 0x1400ed3f2\nxorps   xmm1, xmm1                                                     ; +0x158, 0x1400ed3f8\nmovss   [rsp+0D8h+var_98], xmm1                                        ; +0x15b, 0x1400ed3fb\nmov     [rsp+0D8h+var_A0], 0                                           ; +0x161, 0x1400ed401\nmovss   xmm0, cs:dword_140835A04                                       ; +0x166, 0x1400ed406\nmovss   [rsp+0D8h+var_A8], xmm0                                        ; +0x16e, 0x1400ed40e\nlea     rcx, aTransfer; \"Transfer\"                                     ; +0x174, 0x1400ed414\nmov     [rsp+0D8h+var_B0], rcx                                         ; +0x17b, 0x1400ed41b\nlea     rcx, aBack; \"Back\"                                             ; +0x180, 0x1400ed420\nmov     [rsp+0D8h+var_B8], rcx                                         ; +0x187, 0x1400ed427\nmov     r9, rax                                                        ; +0x18c, 0x1400ed42c\nlea     r8, aTransferOwners; \"Transfer Ownership\"                      ; +0x18f, 0x1400ed42f\nmov     rdx, rdi                                                       ; +0x196, 0x1400ed436\nmov     rcx, rbx                                                       ; +0x199, 0x1400ed439\ncall    FLAlertLayer__init                                             ; +0x19c, 0x1400ed43c\nmov     rcx, rbx                                                       ; +0x1a1, 0x1400ed441\ntest    al, al                                                         ; +0x1a4, 0x1400ed444\njz      short loc_1400ED450                                            ; +0x1a6, 0x1400ed446\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1a8, 0x1400ed448\njmp     short loc_1400ED45D                                            ; +0x1ae, 0x1400ed44e\nmov     rax, [rbx]                                                     ; +0x1b0, 0x1400ed450\nmov     edx, 1                                                         ; +0x1b3, 0x1400ed453\ncall    qword ptr [rax+8]                                              ; +0x1b8, 0x1400ed458\nxor     ebx, ebx                                                       ; +0x1bb, 0x1400ed45b\nlea     rcx, [rsp+0D8h+var_78]                                         ; +0x1bd, 0x1400ed45d\ncall    sub_14003D310                                                  ; +0x1c2, 0x1400ed462\nnop                                                                    ; +0x1c7, 0x1400ed467\nlea     rcx, [rsp+0D8h+var_38]                                         ; +0x1c8, 0x1400ed468\ncall    sub_14003D310                                                  ; +0x1d0, 0x1400ed470\nmov     rax, [rbx]                                                     ; +0x1d5, 0x1400ed475\nmov     edx, 5                                                         ; +0x1d8, 0x1400ed478\nmov     rcx, rbx                                                       ; +0x1dd, 0x1400ed47d\ncall    qword ptr [rax+40h]                                            ; +0x1e0, 0x1400ed480\nmov     rax, [rbx]                                                     ; +0x1e3, 0x1400ed483\nmov     rcx, rbx                                                       ; +0x1e6, 0x1400ed486\ncall    qword ptr [rax+428h]                                           ; +0x1e9, 0x1400ed489\nmov     rcx, [rsp+0D8h+var_18]                                         ; +0x1ef, 0x1400ed48f\nxor     rcx, rsp; StackCookie                                          ; +0x1f7, 0x1400ed497\ncall    __security_check_cookie                                        ; +0x1fa, 0x1400ed49a\nmov     rbx, [rsp+0D8h+arg_10]                                         ; +0x1ff, 0x1400ed49f\nadd     rsp, 0D0h                                                      ; +0x207, 0x1400ed4a7\npop     rdi                                                            ; +0x20e, 0x1400ed4ae\nretn                                                                   ; +0x20f, 0x1400ed4af", "xrefs": ["MemberListPopup::buildRows @ 0x1400eca33", "<???> @ 0x140914fd8"], "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"}