{"type": "func", "start": 5371446512, "end": 5371446830, "name": "SetFolderPopup::create", "pseudocode": "// \n// SetFolderPopup::create from 0x14029c4f0 to 0x14029c62e (318 bytes)\n// \n// 4 xrefs:\n// > EditLevelLayer::onSetFolder @ 0x1400d954b\n// > LevelBrowserLayer::onGoToFolder @ 0x1402cca0a\n// > LevelInfoLayer::onSetFolder @ 0x1402f9b94\n// > <???> @ 0x1406d1e20\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\nSetIDPopup *__fastcall SetFolderPopup::create(unsigned int a1, unsigned __int8 a2, __int64 a3)\n{\n  SetIDPopup *v6; // rsi\n  __int64 v7; // rax\n  _BYTE v9[32]; // [rsp+28h] [rbp-50h] BYREF\n  __int64 v10; // [rsp+48h] [rbp-30h]\n\n  v10 = a3;\n  v6 = (SetIDPopup *)operator new(0x2C0u);\n  SetIDPopup::SetIDPopup(v6);\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetIDPopup_vtbl *)&SetFolderPopup::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SetFolderPopup::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SetFolderPopup::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SetFolderPopup::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SetFolderPopup::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SetFolderPopup::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SetFolderPopup::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SetFolderPopup::`vftable';\n  v6->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&SetFolderPopup::`vftable';\n  v6[1].FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetIDPopup_vtbl *)&SetFolderPopup::`vftable';\n  LOBYTE(v6[1].m_uID) = 0;\n  *(_QWORD *)&v6[1].m_nTag = 0;\n  v7 = sub_14003BDB0((__int64)v9, a3);\n  if ( (unsigned __int8)SetFolderPopup::init(v6, a1, a2, v7, v6) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n  }\n  else\n  {\n    ((void (__fastcall *)(SetIDPopup *, __int64))v6->~SetIDPopup)(v6, 1);\n    v6 = nullptr;\n  }\n  sub_14003A830(a3);\n  return v6;\n}", "assembly": "; \n; SetFolderPopup::create from 0x14029c4f0 to 0x14029c62e (318 bytes)\n; \n; 4 xrefs:\n; > EditLevelLayer::onSetFolder @ 0x1400d954b\n; > LevelBrowserLayer::onGoToFolder @ 0x1402cca0a\n; > LevelInfoLayer::onSetFolder @ 0x1402f9b94\n; > <???> @ 0x1406d1e20\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, 0x14029c4f0\npush    rbp                                                            ; +0x5, 0x14029c4f5\npush    rsi                                                            ; +0x6, 0x14029c4f6\npush    rdi                                                            ; +0x7, 0x14029c4f7\nsub     rsp, 60h                                                       ; +0x8, 0x14029c4f8\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x14029c4fc\nxor     rax, rsp                                                       ; +0x13, 0x14029c503\nmov     [rsp+78h+var_28], rax                                          ; +0x16, 0x14029c506\nmov     rbp, r8                                                        ; +0x1b, 0x14029c50b\nmovzx   edi, dl                                                        ; +0x1e, 0x14029c50e\nmov     ebx, ecx                                                       ; +0x21, 0x14029c511\nmov     [rsp+78h+var_30], r8                                           ; +0x23, 0x14029c513\nmov     ecx, 2C0h; Size                                                ; +0x28, 0x14029c518\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x14029c51d\nmov     rsi, rax                                                       ; +0x32, 0x14029c522\nmov     [rsp+78h+var_58], rax                                          ; +0x35, 0x14029c525\nmov     rcx, rax                                                       ; +0x3a, 0x14029c52a\ncall    SetIDPopup__SetIDPopup                                         ; +0x3d, 0x14029c52d\nlea     rax, ??_7SetFolderPopup@@6B@; const SetFolderPopup::`vftable'  ; +0x42, 0x14029c532\nmov     [rsi], rax                                                     ; +0x49, 0x14029c539\nlea     rax, ??_7SetFolderPopup@@6B@_0; const SetFolderPopup::`vftable' ; +0x4c, 0x14029c53c\nmov     [rsi+140h], rax                                                ; +0x53, 0x14029c543\nlea     rax, ??_7SetFolderPopup@@6B@_1; const SetFolderPopup::`vftable' ; +0x5a, 0x14029c54a\nmov     [rsi+148h], rax                                                ; +0x61, 0x14029c551\nlea     rax, ??_7SetFolderPopup@@6B@_2; const SetFolderPopup::`vftable' ; +0x68, 0x14029c558\nmov     [rsi+150h], rax                                                ; +0x6f, 0x14029c55f\nlea     rax, ??_7SetFolderPopup@@6B@_3; const SetFolderPopup::`vftable' ; +0x76, 0x14029c566\nmov     [rsi+158h], rax                                                ; +0x7d, 0x14029c56d\nlea     rax, ??_7SetFolderPopup@@6B@_4; const SetFolderPopup::`vftable' ; +0x84, 0x14029c574\nmov     [rsi+160h], rax                                                ; +0x8b, 0x14029c57b\nlea     rax, ??_7SetFolderPopup@@6B@_5; const SetFolderPopup::`vftable' ; +0x92, 0x14029c582\nmov     [rsi+198h], rax                                                ; +0x99, 0x14029c589\nlea     rax, ??_7SetFolderPopup@@6B@_6; const SetFolderPopup::`vftable' ; +0xa0, 0x14029c590\nmov     [rsi+1B0h], rax                                                ; +0xa7, 0x14029c597\nlea     rax, ??_7SetFolderPopup@@6B@_7; const SetFolderPopup::`vftable' ; +0xae, 0x14029c59e\nmov     [rsi+278h], rax                                                ; +0xb5, 0x14029c5a5\nlea     rax, ??_7SetFolderPopup@@6B@_8; const SetFolderPopup::`vftable' ; +0xbc, 0x14029c5ac\nmov     [rsi+2A8h], rax                                                ; +0xc3, 0x14029c5b3\nmov     byte ptr [rsi+2B0h], 0                                         ; +0xca, 0x14029c5ba\nmov     qword ptr [rsi+2B8h], 0                                        ; +0xd1, 0x14029c5c1\nmov     rdx, rbp                                                       ; +0xdc, 0x14029c5cc\nlea     rcx, [rsp+78h+var_50]                                          ; +0xdf, 0x14029c5cf\ncall    sub_14003BDB0                                                  ; +0xe4, 0x14029c5d4\nmov     r9, rax                                                        ; +0xe9, 0x14029c5d9\nmovzx   r8d, dil                                                       ; +0xec, 0x14029c5dc\nmov     edx, ebx                                                       ; +0xf0, 0x14029c5e0\nmov     rcx, rsi                                                       ; +0xf2, 0x14029c5e2\ncall    SetFolderPopup__init                                           ; +0xf5, 0x14029c5e5\nmov     rcx, rsi                                                       ; +0xfa, 0x14029c5ea\ntest    al, al                                                         ; +0xfd, 0x14029c5ed\njz      short loc_14029C5F9                                            ; +0xff, 0x14029c5ef\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x101, 0x14029c5f1\njmp     short loc_14029C606                                            ; +0x107, 0x14029c5f7\nmov     rax, [rsi]                                                     ; +0x109, 0x14029c5f9\nmov     edx, 1                                                         ; +0x10c, 0x14029c5fc\ncall    qword ptr [rax+8]                                              ; +0x111, 0x14029c601\nxor     esi, esi                                                       ; +0x114, 0x14029c604\nmov     rcx, rbp                                                       ; +0x116, 0x14029c606\ncall    sub_14003A830                                                  ; +0x119, 0x14029c609\nmov     rax, rsi                                                       ; +0x11e, 0x14029c60e\nmov     rcx, [rsp+78h+var_28]                                          ; +0x121, 0x14029c611\nxor     rcx, rsp; StackCookie                                          ; +0x126, 0x14029c616\ncall    __security_check_cookie                                        ; +0x129, 0x14029c619\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x12e, 0x14029c61e\nadd     rsp, 60h                                                       ; +0x136, 0x14029c626\npop     rdi                                                            ; +0x13a, 0x14029c62a\npop     rsi                                                            ; +0x13b, 0x14029c62b\npop     rbp                                                            ; +0x13c, 0x14029c62c\nretn                                                                   ; +0x13d, 0x14029c62d", "xrefs": ["EditLevelLayer::onSetFolder @ 0x1400d954b", "LevelBrowserLayer::onGoToFolder @ 0x1402cca0a", "LevelInfoLayer::onSetFolder @ 0x1402f9b94", "<???> @ 0x1406d1e20"], "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"}