{"type": "func", "start": 5370171376, "end": 5370171643, "name": "CustomSongLayer::onNCSBrowser", "pseudocode": "// \n// CustomSongLayer::onNCSBrowser from 0x140164ff0 to 0x1401650fb (267 bytes)\n// \n// 3 xrefs:\n// > CustomSongLayer::init @ 0x14016404a\n// > <???> @ 0x140917e70\n// > <???> @ 0x140917e7c\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 __fastcall CustomSongLayer::onNCSBrowser(__int64 a1)\n{\n  cocos2d::CCObject *v2; // rdi\n  __int64 (__fastcall *v3)(__int64); // rdx\n\n  v2 = (cocos2d::CCObject *)operator new(0x2A8u);\n  FLAlertLayer::FLAlertLayer((__int64)v2);\n  *(_QWORD *)v2 = &NCSInfoLayer::`vftable';\n  *((_QWORD *)v2 + 40) = &NCSInfoLayer::`vftable';\n  *((_QWORD *)v2 + 41) = &NCSInfoLayer::`vftable';\n  *((_QWORD *)v2 + 42) = &NCSInfoLayer::`vftable';\n  *((_QWORD *)v2 + 43) = &NCSInfoLayer::`vftable';\n  *((_QWORD *)v2 + 44) = &NCSInfoLayer::`vftable';\n  *((_QWORD *)v2 + 51) = &NCSInfoLayer::`vftable';\n  *((_QWORD *)v2 + 54) = &NCSInfoLayer::`vftable';\n  *((_QWORD *)v2 + 68) = &NCSInfoLayer::`vftable';\n  *((_QWORD *)v2 + 83) = &NCSInfoLayer::`vftable';\n  if ( (unsigned __int8)NCSInfoLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n    v2 = nullptr;\n  }\n  v3 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1064LL);\n  if ( v3 == FLAlertLayer::show )\n    return FLAlertLayer::show((__int64)v2);\n  else\n    return v3((__int64)v2);\n}", "assembly": "; \n; CustomSongLayer::onNCSBrowser from 0x140164ff0 to 0x1401650fb (267 bytes)\n; \n; 3 xrefs:\n; > CustomSongLayer::init @ 0x14016404a\n; > <???> @ 0x140917e70\n; > <???> @ 0x140917e7c\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140164ff0\npush    rdi                                                            ; +0x5, 0x140164ff5\nsub     rsp, 20h                                                       ; +0x6, 0x140164ff6\nmov     rbx, rcx                                                       ; +0xa, 0x140164ffa\nmov     ecx, 2A8h; Size                                                ; +0xd, 0x140164ffd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x140165002\nmov     rdi, rax                                                       ; +0x17, 0x140165007\nmov     [rsp+28h+arg_10], rax                                          ; +0x1a, 0x14016500a\nmov     rcx, rax                                                       ; +0x1f, 0x14016500f\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x22, 0x140165012\nlea     rax, ??_7NCSInfoLayer@@6B@; const NCSInfoLayer::`vftable'      ; +0x27, 0x140165017\nmov     [rdi], rax                                                     ; +0x2e, 0x14016501e\nlea     rax, ??_7NCSInfoLayer@@6B@_0; const NCSInfoLayer::`vftable'    ; +0x31, 0x140165021\nmov     [rdi+140h], rax                                                ; +0x38, 0x140165028\nlea     rax, ??_7NCSInfoLayer@@6B@_1; const NCSInfoLayer::`vftable'    ; +0x3f, 0x14016502f\nmov     [rdi+148h], rax                                                ; +0x46, 0x140165036\nlea     rax, ??_7NCSInfoLayer@@6B@_2; const NCSInfoLayer::`vftable'    ; +0x4d, 0x14016503d\nmov     [rdi+150h], rax                                                ; +0x54, 0x140165044\nlea     rax, ??_7NCSInfoLayer@@6B@_3; const NCSInfoLayer::`vftable'    ; +0x5b, 0x14016504b\nmov     [rdi+158h], rax                                                ; +0x62, 0x140165052\nlea     rax, ??_7NCSInfoLayer@@6B@_4; const NCSInfoLayer::`vftable'    ; +0x69, 0x140165059\nmov     [rdi+160h], rax                                                ; +0x70, 0x140165060\nlea     rax, ??_7NCSInfoLayer@@6B@_5; const NCSInfoLayer::`vftable'    ; +0x77, 0x140165067\nmov     [rdi+198h], rax                                                ; +0x7e, 0x14016506e\nlea     rax, ??_7NCSInfoLayer@@6B@_6; const NCSInfoLayer::`vftable'    ; +0x85, 0x140165075\nmov     [rdi+1B0h], rax                                                ; +0x8c, 0x14016507c\nlea     rax, ??_7NCSInfoLayer@@6B@_7; const NCSInfoLayer::`vftable'    ; +0x93, 0x140165083\nmov     [rdi+220h], rax                                                ; +0x9a, 0x14016508a\nlea     rax, ??_7NCSInfoLayer@@6B@_8; const NCSInfoLayer::`vftable'    ; +0xa1, 0x140165091\nmov     [rdi+298h], rax                                                ; +0xa8, 0x140165098\nmov     rdx, rbx                                                       ; +0xaf, 0x14016509f\nmov     rcx, rdi                                                       ; +0xb2, 0x1401650a2\ncall    NCSInfoLayer__init                                             ; +0xb5, 0x1401650a5\nmov     rcx, rdi                                                       ; +0xba, 0x1401650aa\ntest    al, al                                                         ; +0xbd, 0x1401650ad\njz      short loc_1401650B9                                            ; +0xbf, 0x1401650af\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xc1, 0x1401650b1\njmp     short loc_1401650C6                                            ; +0xc7, 0x1401650b7\nmov     rax, [rdi]                                                     ; +0xc9, 0x1401650b9\nmov     edx, 1                                                         ; +0xcc, 0x1401650bc\ncall    qword ptr [rax+8]                                              ; +0xd1, 0x1401650c1\nxor     edi, edi                                                       ; +0xd4, 0x1401650c4\nmov     rax, [rdi]                                                     ; +0xd6, 0x1401650c6\nmov     rdx, [rax+428h]                                                ; +0xd9, 0x1401650c9\nlea     rax, FLAlertLayer__show                                        ; +0xe0, 0x1401650d0\nmov     rcx, rdi                                                       ; +0xe7, 0x1401650d7\ncmp     rdx, rax                                                       ; +0xea, 0x1401650da\njnz     short loc_1401650EE                                            ; +0xed, 0x1401650dd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xef, 0x1401650df\nadd     rsp, 20h                                                       ; +0xf4, 0x1401650e4\npop     rdi                                                            ; +0xf8, 0x1401650e8\njmp     FLAlertLayer__show                                             ; +0xf9, 0x1401650e9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xfe, 0x1401650ee\nadd     rsp, 20h                                                       ; +0x103, 0x1401650f3\npop     rdi                                                            ; +0x107, 0x1401650f7\njmp     rdx                                                            ; +0x108, 0x1401650f8", "xrefs": ["CustomSongLayer::init @ 0x14016404a", "<???> @ 0x140917e70", "<???> @ 0x140917e7c"], "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"}