{"type": "func", "start": 5370171648, "end": 5370171904, "name": "CustomSongLayer::onNewgroundsBrowser", "pseudocode": "// \n// CustomSongLayer::onNewgroundsBrowser from 0x140165100 to 0x140165200 (256 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::init @ 0x1401641a2\n// > <???> @ 0x140917e88\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:27:26 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 CustomSongLayer::onNewgroundsBrowser()\n{\n  cocos2d::CCObject *v0; // rbx\n  __int64 (__fastcall *v1)(__int64); // rdx\n\n  v0 = (cocos2d::CCObject *)operator new(0x298u);\n  FLAlertLayer::FLAlertLayer((__int64)v0);\n  *(_QWORD *)v0 = &NewgroundsInfoLayer::`vftable';\n  *((_QWORD *)v0 + 40) = &NewgroundsInfoLayer::`vftable';\n  *((_QWORD *)v0 + 41) = &NewgroundsInfoLayer::`vftable';\n  *((_QWORD *)v0 + 42) = &NewgroundsInfoLayer::`vftable';\n  *((_QWORD *)v0 + 43) = &NewgroundsInfoLayer::`vftable';\n  *((_QWORD *)v0 + 44) = &NewgroundsInfoLayer::`vftable';\n  *((_QWORD *)v0 + 51) = &NewgroundsInfoLayer::`vftable';\n  *((_QWORD *)v0 + 54) = &NewgroundsInfoLayer::`vftable';\n  *((_QWORD *)v0 + 68) = &NewgroundsInfoLayer::`vftable';\n  if ( (unsigned __int8)NewgroundsInfoLayer::init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);\n    v0 = nullptr;\n  }\n  v1 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v0 + 1064LL);\n  if ( v1 == FLAlertLayer::show )\n    return FLAlertLayer::show((__int64)v0);\n  else\n    return v1((__int64)v0);\n}", "assembly": "; \n; CustomSongLayer::onNewgroundsBrowser from 0x140165100 to 0x140165200 (256 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::init @ 0x1401641a2\n; > <???> @ 0x140917e88\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:27:26 +0000\n; \npush    rbx                                                            ; +0x0, 0x140165100\nsub     rsp, 20h                                                       ; +0x2, 0x140165102\nmov     ecx, 298h; Size                                                ; +0x6, 0x140165106\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x14016510b\nmov     rbx, rax                                                       ; +0x10, 0x140165110\nmov     [rsp+28h+arg_10], rax                                          ; +0x13, 0x140165113\nmov     rcx, rax                                                       ; +0x18, 0x140165118\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x1b, 0x14016511b\nlea     rax, ??_7NewgroundsInfoLayer@@6B@; const NewgroundsInfoLayer::`vftable' ; +0x20, 0x140165120\nmov     [rbx], rax                                                     ; +0x27, 0x140165127\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_0; const NewgroundsInfoLayer::`vftable' ; +0x2a, 0x14016512a\nmov     [rbx+140h], rax                                                ; +0x31, 0x140165131\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_1; const NewgroundsInfoLayer::`vftable' ; +0x38, 0x140165138\nmov     [rbx+148h], rax                                                ; +0x3f, 0x14016513f\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_2; const NewgroundsInfoLayer::`vftable' ; +0x46, 0x140165146\nmov     [rbx+150h], rax                                                ; +0x4d, 0x14016514d\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_3; const NewgroundsInfoLayer::`vftable' ; +0x54, 0x140165154\nmov     [rbx+158h], rax                                                ; +0x5b, 0x14016515b\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_4; const NewgroundsInfoLayer::`vftable' ; +0x62, 0x140165162\nmov     [rbx+160h], rax                                                ; +0x69, 0x140165169\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_5; const NewgroundsInfoLayer::`vftable' ; +0x70, 0x140165170\nmov     [rbx+198h], rax                                                ; +0x77, 0x140165177\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_6; const NewgroundsInfoLayer::`vftable' ; +0x7e, 0x14016517e\nmov     [rbx+1B0h], rax                                                ; +0x85, 0x140165185\nlea     rax, ??_7NewgroundsInfoLayer@@6B@_7; const NewgroundsInfoLayer::`vftable' ; +0x8c, 0x14016518c\nmov     [rbx+220h], rax                                                ; +0x93, 0x140165193\nmov     rax, cs:off_140743188                                          ; +0x9a, 0x14016519a\nlea     rcx, NewgroundsInfoLayer__init                                 ; +0xa1, 0x1401651a1\ncmp     rax, rcx                                                       ; +0xa8, 0x1401651a8\nmov     rcx, rbx                                                       ; +0xab, 0x1401651ab\njnz     short loc_1401651B7                                            ; +0xae, 0x1401651ae\ncall    NewgroundsInfoLayer__init                                      ; +0xb0, 0x1401651b0\njmp     short loc_1401651B9                                            ; +0xb5, 0x1401651b5\ncall    rax ; NewgroundsInfoLayer__init                                ; +0xb7, 0x1401651b7\nmov     rcx, rbx                                                       ; +0xb9, 0x1401651b9\ntest    al, al                                                         ; +0xbc, 0x1401651bc\njz      short loc_1401651C8                                            ; +0xbe, 0x1401651be\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xc0, 0x1401651c0\njmp     short loc_1401651D5                                            ; +0xc6, 0x1401651c6\nmov     rax, [rbx]                                                     ; +0xc8, 0x1401651c8\nmov     edx, 1                                                         ; +0xcb, 0x1401651cb\ncall    qword ptr [rax+8]                                              ; +0xd0, 0x1401651d0\nxor     ebx, ebx                                                       ; +0xd3, 0x1401651d3\nmov     rax, [rbx]                                                     ; +0xd5, 0x1401651d5\nmov     rdx, [rax+428h]                                                ; +0xd8, 0x1401651d8\nlea     rax, FLAlertLayer__show                                        ; +0xdf, 0x1401651df\nmov     rcx, rbx                                                       ; +0xe6, 0x1401651e6\ncmp     rdx, rax                                                       ; +0xe9, 0x1401651e9\njnz     short loc_1401651F8                                            ; +0xec, 0x1401651ec\nadd     rsp, 20h                                                       ; +0xee, 0x1401651ee\npop     rbx                                                            ; +0xf2, 0x1401651f2\njmp     FLAlertLayer__show                                             ; +0xf3, 0x1401651f3\nadd     rsp, 20h                                                       ; +0xf8, 0x1401651f8\npop     rbx                                                            ; +0xfc, 0x1401651fc\njmp     rdx                                                            ; +0xfd, 0x1401651fd", "xrefs": ["CustomSongLayer::init @ 0x1401641a2", "<???> @ 0x140917e88"], "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"}