{"type": "func", "start": 5372665056, "end": 5372665410, "name": "ProfilePage::onSettings", "pseudocode": "// \n// ProfilePage::onSettings from 0x1403c5ce0 to 0x1403c5e42 (354 bytes)\n// \n// 2 xrefs:\n// > ProfilePage::loadPageFromUserInfo @ 0x1403c2b77\n// > <???> @ 0x1406d7850\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\n// Hidden C++ exception states: #wind=2\nvoid ProfilePage::onSettings(ProfilePage *a1, cocos2d::CCObject *a2)\n{\n  int m_accountID; // edi\n  GJAccountSettingsLayer *v3; // rsi\n  _QWORD *v4; // rax\n  void (*show)(FLAlertLayer *); // rdx\n\n  m_accountID = a1->m_accountID;\n  v3 = (GJAccountSettingsLayer *)operator new(0x2C0u);\n  FLAlertLayer::FLAlertLayer(v3);\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJAccountSettingsLayer_vtbl *)&GJAccountSettingsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJAccountSettingsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&GJAccountSettingsLayer::`vftable';\n  v3->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&GJAccountSettingsLayer::`vftable';\n  *(_QWORD *)&v3->m_accountID = 0;\n  *(_QWORD *)&v3->m_friendStatus = 0;\n  v3->m_inputs = nullptr;\n  v3->m_links._Mypair._Myval2._Myval2._Myhead = nullptr;\n  v3->m_links._Mypair._Myval2._Myval2._Mysize = 0;\n  v4 = operator new(0x48u);\n  *v4 = v4;\n  v4[1] = v4;\n  v4[2] = v4;\n  *((_WORD *)v4 + 12) = 257;\n  v3->m_links._Mypair._Myval2._Myval2._Myhead = (std::_Tree_val<std::_Tree_simple_types<std::pair<const int, std::string>>>::_Nodeptr)v4;\n  v3->m_messageSettings = nullptr;\n  v3->m_friendRequestSettings = nullptr;\n  v3->m_commentSettings = nullptr;\n  if ( GJAccountSettingsLayer::init(v3, m_accountID) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJAccountSettingsLayer *, __int64))v3->~GJAccountSettingsLayer)(v3, 1);\n    v3 = nullptr;\n  }\n  show = (void (*)(FLAlertLayer *))v3->show;\n  if ( show == FLAlertLayer::show )\n    FLAlertLayer::show(v3);\n  else\n    show(v3);\n}", "assembly": "; \n; ProfilePage::onSettings from 0x1403c5ce0 to 0x1403c5e42 (354 bytes)\n; \n; 2 xrefs:\n; > ProfilePage::loadPageFromUserInfo @ 0x1403c2b77\n; > <???> @ 0x1406d7850\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403c5ce0\npush    rbp                                                            ; +0x5, 0x1403c5ce5\npush    rsi                                                            ; +0x6, 0x1403c5ce6\npush    rdi                                                            ; +0x7, 0x1403c5ce7\nsub     rsp, 20h                                                       ; +0x8, 0x1403c5ce8\nmov     edi, [rcx+2B8h]                                                ; +0xc, 0x1403c5cec\nmov     ecx, 2C0h; Size                                                ; +0x12, 0x1403c5cf2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x1403c5cf7\nmov     rsi, rax                                                       ; +0x1c, 0x1403c5cfc\nmov     [rsp+38h+arg_0], rax                                           ; +0x1f, 0x1403c5cff\nmov     rcx, rax                                                       ; +0x24, 0x1403c5d04\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x27, 0x1403c5d07\nnop                                                                    ; +0x2c, 0x1403c5d0c\nlea     rax, ??_7GJAccountSettingsLayer@@6B@; const GJAccountSettingsLayer::`vftable' ; +0x2d, 0x1403c5d0d\nmov     [rsi], rax                                                     ; +0x34, 0x1403c5d14\nlea     rax, ??_7GJAccountSettingsLayer@@6B@_0; const GJAccountSettingsLayer::`vftable' ; +0x37, 0x1403c5d17\nmov     [rsi+140h], rax                                                ; +0x3e, 0x1403c5d1e\nlea     rax, ??_7GJAccountSettingsLayer@@6B@_1; const GJAccountSettingsLayer::`vftable' ; +0x45, 0x1403c5d25\nmov     [rsi+148h], rax                                                ; +0x4c, 0x1403c5d2c\nlea     rax, ??_7GJAccountSettingsLayer@@6B@_2; const GJAccountSettingsLayer::`vftable' ; +0x53, 0x1403c5d33\nmov     [rsi+150h], rax                                                ; +0x5a, 0x1403c5d3a\nlea     rax, ??_7GJAccountSettingsLayer@@6B@_3; const GJAccountSettingsLayer::`vftable' ; +0x61, 0x1403c5d41\nmov     [rsi+158h], rax                                                ; +0x68, 0x1403c5d48\nlea     rax, ??_7GJAccountSettingsLayer@@6B@_4; const GJAccountSettingsLayer::`vftable' ; +0x6f, 0x1403c5d4f\nmov     [rsi+160h], rax                                                ; +0x76, 0x1403c5d56\nlea     rax, ??_7GJAccountSettingsLayer@@6B@_5; const GJAccountSettingsLayer::`vftable' ; +0x7d, 0x1403c5d5d\nmov     [rsi+198h], rax                                                ; +0x84, 0x1403c5d64\nlea     rax, ??_7GJAccountSettingsLayer@@6B@_6; const GJAccountSettingsLayer::`vftable' ; +0x8b, 0x1403c5d6b\nmov     [rsi+1B0h], rax                                                ; +0x92, 0x1403c5d72\nlea     rax, ??_7GJAccountSettingsLayer@@6B@_7; const GJAccountSettingsLayer::`vftable' ; +0x99, 0x1403c5d79\nmov     [rsi+278h], rax                                                ; +0xa0, 0x1403c5d80\nxor     ebp, ebp                                                       ; +0xa7, 0x1403c5d87\nmov     [rsi+280h], rbp                                                ; +0xa9, 0x1403c5d89\nmov     [rsi+288h], rbp                                                ; +0xb0, 0x1403c5d90\nmov     [rsi+290h], rbp                                                ; +0xb7, 0x1403c5d97\nlea     rbx, [rsi+298h]                                                ; +0xbe, 0x1403c5d9e\nmov     [rsp+38h+arg_10], rbx                                          ; +0xc5, 0x1403c5da5\nmov     [rbx], rbp                                                     ; +0xca, 0x1403c5daa\nmov     [rbx+8], rbp                                                   ; +0xcd, 0x1403c5dad\nlea     ecx, [rbp+48h]; Size                                           ; +0xd1, 0x1403c5db1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xd4, 0x1403c5db4\nmov     [rax], rax                                                     ; +0xd9, 0x1403c5db9\nmov     [rax+8], rax                                                   ; +0xdc, 0x1403c5dbc\nmov     [rax+10h], rax                                                 ; +0xe0, 0x1403c5dc0\nmov     word ptr [rax+18h], 101h                                       ; +0xe4, 0x1403c5dc4\nmov     [rbx], rax                                                     ; +0xea, 0x1403c5dca\nmov     [rsi+2A8h], rbp                                                ; +0xed, 0x1403c5dcd\nmov     [rsi+2B0h], rbp                                                ; +0xf4, 0x1403c5dd4\nmov     [rsi+2B8h], rbp                                                ; +0xfb, 0x1403c5ddb\nmov     edx, edi                                                       ; +0x102, 0x1403c5de2\nmov     rcx, rsi                                                       ; +0x104, 0x1403c5de4\ncall    GJAccountSettingsLayer__init                                   ; +0x107, 0x1403c5de7\nmov     rcx, rsi                                                       ; +0x10c, 0x1403c5dec\ntest    al, al                                                         ; +0x10f, 0x1403c5def\njz      short loc_1403C5DFB                                            ; +0x111, 0x1403c5df1\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x113, 0x1403c5df3\njmp     short loc_1403C5E09                                            ; +0x119, 0x1403c5df9\nmov     rax, [rsi]                                                     ; +0x11b, 0x1403c5dfb\nmov     edx, 1                                                         ; +0x11e, 0x1403c5dfe\ncall    qword ptr [rax+8]                                              ; +0x123, 0x1403c5e03\nmov     rsi, rbp                                                       ; +0x126, 0x1403c5e06\nmov     rax, [rsi]                                                     ; +0x129, 0x1403c5e09\nmov     rdx, [rax+410h]                                                ; +0x12c, 0x1403c5e0c\nlea     rax, FLAlertLayer__show                                        ; +0x133, 0x1403c5e13\nmov     rcx, rsi                                                       ; +0x13a, 0x1403c5e1a\ncmp     rdx, rax                                                       ; +0x13d, 0x1403c5e1d\njnz     short loc_1403C5E33                                            ; +0x140, 0x1403c5e20\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x142, 0x1403c5e22\nadd     rsp, 20h                                                       ; +0x147, 0x1403c5e27\npop     rdi                                                            ; +0x14b, 0x1403c5e2b\npop     rsi                                                            ; +0x14c, 0x1403c5e2c\npop     rbp                                                            ; +0x14d, 0x1403c5e2d\njmp     FLAlertLayer__show                                             ; +0x14e, 0x1403c5e2e\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x153, 0x1403c5e33\nadd     rsp, 20h                                                       ; +0x158, 0x1403c5e38\npop     rdi                                                            ; +0x15c, 0x1403c5e3c\npop     rsi                                                            ; +0x15d, 0x1403c5e3d\npop     rbp                                                            ; +0x15e, 0x1403c5e3e\njmp     rdx                                                            ; +0x15f, 0x1403c5e3f", "xrefs": ["ProfilePage::loadPageFromUserInfo @ 0x1403c2b77", "<???> @ 0x1406d7850"], "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"}