{"type": "func", "start": 5372077424, "end": 5372077827, "name": "MessagesProfilePage::create", "pseudocode": "// \n// MessagesProfilePage::create from 0x140336570 to 0x140336703 (403 bytes)\n// \n// 4 xrefs:\n// > MessagesProfilePage::onSentMessages @ 0x140337365\n// > MessagesProfilePage::onClose @ 0x140337b37\n// > ProfilePage::onMessages @ 0x1403c5e5d\n// > <???> @ 0x1406d5234\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=1\nMessagesProfilePage *MessagesProfilePage::create(bool a1)\n{\n  MessagesProfilePage *v2; // rdi\n\n  v2 = (MessagesProfilePage *)operator new(0x328u);\n  FLAlertLayer::FLAlertLayer(v2);\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (MessagesProfilePage_vtbl *)&MessagesProfilePage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&MessagesProfilePage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&MessagesProfilePage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&MessagesProfilePage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&MessagesProfilePage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&MessagesProfilePage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&MessagesProfilePage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&MessagesProfilePage::`vftable';\n  v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&MessagesProfilePage::`vftable';\n  v2->UploadActionDelegate::__vftable = (UploadActionDelegate_vtbl *)&MessagesProfilePage::`vftable';\n  v2->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&MessagesProfilePage::`vftable';\n  v2->MessageListDelegate::__vftable = (MessageListDelegate_vtbl *)&MessagesProfilePage::`vftable';\n  v2->m_sentMessages = 0;\n  v2->m_messageKey.m_data.0 = 0;\n  v2->m_messageKey.m_data.m_size = 0;\n  v2->m_messageKey.m_data.m_capacity = 15;\n  v2->m_messageKey.m_data.m_smallStorage._Elems[0] = 0;\n  v2->m_levelsLabel = nullptr;\n  v2->m_errorLabel = nullptr;\n  v2->m_listLayer = nullptr;\n  v2->m_loadingCircle = nullptr;\n  v2->m_actionPopup = nullptr;\n  v2->m_unkPtr = nullptr;\n  v2->m_nextButton = nullptr;\n  v2->m_prevButton = nullptr;\n  *(_QWORD *)&v2->m_itemCount = 0;\n  *(_QWORD *)&v2->m_pageEndIdx = 0;\n  v2->m_toggledAll = 0;\n  if ( MessagesProfilePage::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    ((void (__fastcall *)(MessagesProfilePage *, __int64))v2->~MessagesProfilePage)(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; MessagesProfilePage::create from 0x140336570 to 0x140336703 (403 bytes)\n; \n; 4 xrefs:\n; > MessagesProfilePage::onSentMessages @ 0x140337365\n; > MessagesProfilePage::onClose @ 0x140337b37\n; > ProfilePage::onMessages @ 0x1403c5e5d\n; > <???> @ 0x1406d5234\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_0], rbx                                               ; +0x0, 0x140336570\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140336575\npush    rdi                                                            ; +0xa, 0x14033657a\nsub     rsp, 20h                                                       ; +0xb, 0x14033657b\nmovzx   ebx, cl                                                        ; +0xf, 0x14033657f\nmov     ecx, 328h; Size                                                ; +0x12, 0x140336582\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x140336587\nmov     rdi, rax                                                       ; +0x1c, 0x14033658c\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x14033658f\nmov     rcx, rax                                                       ; +0x24, 0x140336594\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x27, 0x140336597\nlea     rax, ??_7MessagesProfilePage@@6B@; const MessagesProfilePage::`vftable' ; +0x2c, 0x14033659c\nmov     [rdi], rax                                                     ; +0x33, 0x1403365a3\nlea     rax, ??_7MessagesProfilePage@@6B@_0; const MessagesProfilePage::`vftable' ; +0x36, 0x1403365a6\nmov     [rdi+140h], rax                                                ; +0x3d, 0x1403365ad\nlea     rax, ??_7MessagesProfilePage@@6B@_1; const MessagesProfilePage::`vftable' ; +0x44, 0x1403365b4\nmov     [rdi+148h], rax                                                ; +0x4b, 0x1403365bb\nlea     rax, ??_7MessagesProfilePage@@6B@_2; const MessagesProfilePage::`vftable' ; +0x52, 0x1403365c2\nmov     [rdi+150h], rax                                                ; +0x59, 0x1403365c9\nlea     rax, ??_7MessagesProfilePage@@6B@_3; const MessagesProfilePage::`vftable' ; +0x60, 0x1403365d0\nmov     [rdi+158h], rax                                                ; +0x67, 0x1403365d7\nlea     rax, ??_7MessagesProfilePage@@6B@_4; const MessagesProfilePage::`vftable' ; +0x6e, 0x1403365de\nmov     [rdi+160h], rax                                                ; +0x75, 0x1403365e5\nlea     rax, ??_7MessagesProfilePage@@6B@_5; const MessagesProfilePage::`vftable' ; +0x7c, 0x1403365ec\nmov     [rdi+198h], rax                                                ; +0x83, 0x1403365f3\nlea     rax, ??_7MessagesProfilePage@@6B@_6; const MessagesProfilePage::`vftable' ; +0x8a, 0x1403365fa\nmov     [rdi+1B0h], rax                                                ; +0x91, 0x140336601\nlea     rax, ??_7MessagesProfilePage@@6B@_7; const MessagesProfilePage::`vftable' ; +0x98, 0x140336608\nmov     [rdi+278h], rax                                                ; +0x9f, 0x14033660f\nlea     rax, ??_7MessagesProfilePage@@6B@_8; const MessagesProfilePage::`vftable' ; +0xa6, 0x140336616\nmov     [rdi+280h], rax                                                ; +0xad, 0x14033661d\nlea     rax, ??_7MessagesProfilePage@@6B@_9; const MessagesProfilePage::`vftable' ; +0xb4, 0x140336624\nmov     [rdi+288h], rax                                                ; +0xbb, 0x14033662b\nlea     rax, ??_7MessagesProfilePage@@6B@_10; const MessagesProfilePage::`vftable' ; +0xc2, 0x140336632\nmov     [rdi+290h], rax                                                ; +0xc9, 0x140336639\nmov     byte ptr [rdi+298h], 0                                         ; +0xd0, 0x140336640\nxorps   xmm0, xmm0                                                     ; +0xd7, 0x140336647\nmovups  xmmword ptr [rdi+2A0h], xmm0                                   ; +0xda, 0x14033664a\nxor     esi, esi                                                       ; +0xe1, 0x140336651\nmov     [rdi+2B0h], rsi                                                ; +0xe3, 0x140336653\nmov     qword ptr [rdi+2B8h], 0Fh                                      ; +0xea, 0x14033665a\nmov     [rdi+2A0h], sil                                                ; +0xf5, 0x140336665\nmov     [rdi+2C0h], rsi                                                ; +0xfc, 0x14033666c\nmov     [rdi+2C8h], rsi                                                ; +0x103, 0x140336673\nmov     [rdi+2D0h], rsi                                                ; +0x10a, 0x14033667a\nmov     [rdi+2D8h], rsi                                                ; +0x111, 0x140336681\nmov     [rdi+2E0h], rsi                                                ; +0x118, 0x140336688\nmov     [rdi+2E8h], rsi                                                ; +0x11f, 0x14033668f\nmov     [rdi+2F0h], rsi                                                ; +0x126, 0x140336696\nmov     [rdi+2F8h], rsi                                                ; +0x12d, 0x14033669d\nmov     [rdi+310h], rsi                                                ; +0x134, 0x1403366a4\nmov     [rdi+318h], rsi                                                ; +0x13b, 0x1403366ab\nmov     [rdi+320h], sil                                                ; +0x142, 0x1403366b2\nmovzx   edx, bl                                                        ; +0x149, 0x1403366b9\nmov     rcx, rdi                                                       ; +0x14c, 0x1403366bc\ncall    MessagesProfilePage__init                                      ; +0x14f, 0x1403366bf\nmov     rcx, rdi                                                       ; +0x154, 0x1403366c4\ntest    al, al                                                         ; +0x157, 0x1403366c7\njz      short loc_1403366E4                                            ; +0x159, 0x1403366c9\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x15b, 0x1403366cb\nmov     rax, rdi                                                       ; +0x161, 0x1403366d1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x164, 0x1403366d4\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x169, 0x1403366d9\nadd     rsp, 20h                                                       ; +0x16e, 0x1403366de\npop     rdi                                                            ; +0x172, 0x1403366e2\nretn                                                                   ; +0x173, 0x1403366e3\nmov     r8, [rdi]                                                      ; +0x174, 0x1403366e4\nmov     edx, 1                                                         ; +0x177, 0x1403366e7\ncall    qword ptr [r8+8]                                               ; +0x17c, 0x1403366ec\nmov     rax, rsi                                                       ; +0x180, 0x1403366f0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x183, 0x1403366f3\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x188, 0x1403366f8\nadd     rsp, 20h                                                       ; +0x18d, 0x1403366fd\npop     rdi                                                            ; +0x191, 0x140336701\nretn                                                                   ; +0x192, 0x140336702", "xrefs": ["MessagesProfilePage::onSentMessages @ 0x140337365", "MessagesProfilePage::onClose @ 0x140337b37", "ProfilePage::onMessages @ 0x1403c5e5d", "<???> @ 0x1406d5234"], "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"}