{"type": "func", "start": 5369511968, "end": 5369512224, "name": "CustomSongLayer::onNewgroundsBrowser", "pseudocode": "// \n// CustomSongLayer::onNewgroundsBrowser from 0x1400c4020 to 0x1400c4120 (256 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::init @ 0x1400c3125\n// > <???> @ 0x1406c807c\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\nvoid CustomSongLayer::onNewgroundsBrowser(CustomSongLayer *a1, cocos2d::CCObject *a2)\n{\n  NewgroundsInfoLayer *v2; // rbx\n  void (*show)(FLAlertLayer *); // rdx\n\n  v2 = (NewgroundsInfoLayer *)operator new(0x280u);\n  FLAlertLayer::FLAlertLayer(v2);\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (NewgroundsInfoLayer_vtbl *)&NewgroundsInfoLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&NewgroundsInfoLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&NewgroundsInfoLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&NewgroundsInfoLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&NewgroundsInfoLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&NewgroundsInfoLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&NewgroundsInfoLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&NewgroundsInfoLayer::`vftable';\n  v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&NewgroundsInfoLayer::`vftable';\n  if ( NewgroundsInfoLayer::init(v2) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    ((void (__fastcall *)(NewgroundsInfoLayer *, __int64))v2->~NewgroundsInfoLayer)(v2, 1);\n    v2 = nullptr;\n  }\n  show = (void (*)(FLAlertLayer *))v2->show;\n  if ( show == FLAlertLayer::show )\n    FLAlertLayer::show(v2);\n  else\n    show(v2);\n}", "assembly": "; \n; CustomSongLayer::onNewgroundsBrowser from 0x1400c4020 to 0x1400c4120 (256 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::init @ 0x1400c3125\n; > <???> @ 0x1406c807c\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    rbx                                                            ; +0x0, 0x1400c4020\nsub     rsp, 20h                                                       ; +0x2, 0x1400c4022\nmov     ecx, 280h; Size                                                ; +0x6, 0x1400c4026\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x1400c402b\nmov     rbx, rax                                                       ; +0x10, 0x1400c4030\nmov     [rsp+28h+arg_10], rax                                          ; +0x13, 0x1400c4033\nmov     rcx, rax                                                       ; +0x18, 0x1400c4038\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x1b, 0x1400c403b\nlea     rax, ??_7NewgroundsInfoLayer@@6B@; const NewgroundsInfoLayer::`vftable' ; +0x20, 0x1400c4040\nmov     [rbx], rax                                                     ; +0x27, 0x1400c4047\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_0; const NewgroundsInfoLayer::`vftable' ; +0x2a, 0x1400c404a\nmov     [rbx+140h], rax                                                ; +0x31, 0x1400c4051\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_1; const NewgroundsInfoLayer::`vftable' ; +0x38, 0x1400c4058\nmov     [rbx+148h], rax                                                ; +0x3f, 0x1400c405f\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_2; const NewgroundsInfoLayer::`vftable' ; +0x46, 0x1400c4066\nmov     [rbx+150h], rax                                                ; +0x4d, 0x1400c406d\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_3; const NewgroundsInfoLayer::`vftable' ; +0x54, 0x1400c4074\nmov     [rbx+158h], rax                                                ; +0x5b, 0x1400c407b\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_4; const NewgroundsInfoLayer::`vftable' ; +0x62, 0x1400c4082\nmov     [rbx+160h], rax                                                ; +0x69, 0x1400c4089\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_5; const NewgroundsInfoLayer::`vftable' ; +0x70, 0x1400c4090\nmov     [rbx+198h], rax                                                ; +0x77, 0x1400c4097\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_6; const NewgroundsInfoLayer::`vftable' ; +0x7e, 0x1400c409e\nmov     [rbx+1B0h], rax                                                ; +0x85, 0x1400c40a5\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_7; const NewgroundsInfoLayer::`vftable' ; +0x8c, 0x1400c40ac\nmov     [rbx+278h], rax                                                ; +0x93, 0x1400c40b3\nmov     rax, cs:off_14054D640                                          ; +0x9a, 0x1400c40ba\nlea     rcx, NewgroundsInfoLayer__init                                 ; +0xa1, 0x1400c40c1\ncmp     rax, rcx                                                       ; +0xa8, 0x1400c40c8\nmov     rcx, rbx                                                       ; +0xab, 0x1400c40cb\njnz     short loc_1400C40D7                                            ; +0xae, 0x1400c40ce\ncall    NewgroundsInfoLayer__init                                      ; +0xb0, 0x1400c40d0\njmp     short loc_1400C40D9                                            ; +0xb5, 0x1400c40d5\ncall    rax ; NewgroundsInfoLayer__init                                ; +0xb7, 0x1400c40d7\nmov     rcx, rbx                                                       ; +0xb9, 0x1400c40d9\ntest    al, al                                                         ; +0xbc, 0x1400c40dc\njz      short loc_1400C40E8                                            ; +0xbe, 0x1400c40de\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xc0, 0x1400c40e0\njmp     short loc_1400C40F5                                            ; +0xc6, 0x1400c40e6\nmov     rax, [rbx]                                                     ; +0xc8, 0x1400c40e8\nmov     edx, 1                                                         ; +0xcb, 0x1400c40eb\ncall    qword ptr [rax+8]                                              ; +0xd0, 0x1400c40f0\nxor     ebx, ebx                                                       ; +0xd3, 0x1400c40f3\nmov     rax, [rbx]                                                     ; +0xd5, 0x1400c40f5\nmov     rdx, [rax+410h]                                                ; +0xd8, 0x1400c40f8\nlea     rax, FLAlertLayer__show                                        ; +0xdf, 0x1400c40ff\nmov     rcx, rbx                                                       ; +0xe6, 0x1400c4106\ncmp     rdx, rax                                                       ; +0xe9, 0x1400c4109\njnz     short loc_1400C4118                                            ; +0xec, 0x1400c410c\nadd     rsp, 20h                                                       ; +0xee, 0x1400c410e\npop     rbx                                                            ; +0xf2, 0x1400c4112\njmp     FLAlertLayer__show                                             ; +0xf3, 0x1400c4113\nadd     rsp, 20h                                                       ; +0xf8, 0x1400c4118\npop     rbx                                                            ; +0xfc, 0x1400c411c\njmp     rdx                                                            ; +0xfd, 0x1400c411d", "xrefs": ["CustomSongLayer::init @ 0x1400c3125", "<???> @ 0x1406c807c"], "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"}