{"type": "func", "start": 5373428224, "end": 5373428403, "name": "SFXBrowser::onCredits", "pseudocode": "// \n// SFXBrowser::onCredits from 0x140480200 to 0x1404802b3 (179 bytes)\n// \n// 2 xrefs:\n// > SFXBrowser::init @ 0x14047f220\n// > <???> @ 0x1406db9c0\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\nvoid SFXBrowser::onCredits(SFXBrowser *a1, cocos2d::CCObject *a2)\n{\n  MusicDownloadManager *v3; // rax\n  cocos2d::CCObject *m_sfxArtists; // rbx\n  cocos2d::CCNode *v5; // rbx\n  _DWORD v6[4]; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v7; // [rsp+30h] [rbp-18h]\n  __int64 v8; // [rsp+38h] [rbp-10h]\n\n  v3 = MusicDownloadManager::sharedState();\n  m_sfxArtists = v3->m_sfxArtists;\n  if ( m_sfxArtists )\n  {\n    if ( cocos2d::CCArray::count(v3->m_sfxArtists) )\n    {\n      v6[3] = 0;\n      v7 = 11;\n      v8 = 15;\n      strcpy((char *)v6, \"SFX Credits\");\n      v5 = (cocos2d::CCNode *)URLViewLayer::create((__int64)v6, m_sfxArtists);\n      a1->addChild_0(a1, v5, 100);\n      ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v5->__vftable[1].getPosition)(v5, 0);\n    }\n  }\n}", "assembly": "; \n; SFXBrowser::onCredits from 0x140480200 to 0x1404802b3 (179 bytes)\n; \n; 2 xrefs:\n; > SFXBrowser::init @ 0x14047f220\n; > <???> @ 0x1406db9c0\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, 0x140480200\npush    rdi                                                            ; +0x5, 0x140480205\nsub     rsp, 40h                                                       ; +0x6, 0x140480206\nmov     rdi, rcx                                                       ; +0xa, 0x14048020a\ncall    MusicDownloadManager__sharedState                              ; +0xd, 0x14048020d\nmov     rbx, [rax+198h]                                                ; +0x12, 0x140480212\ntest    rbx, rbx                                                       ; +0x19, 0x140480219\njz      loc_1404802A8                                                  ; +0x1c, 0x14048021c\nmov     rcx, rbx                                                       ; +0x22, 0x140480222\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x140480225\ntest    eax, eax                                                       ; +0x2b, 0x14048022b\njz      short loc_1404802A8                                            ; +0x2d, 0x14048022d\nmovzx   eax, cs:word_140604B20                                         ; +0x2f, 0x14048022f\nlea     rcx, [rsp+48h+var_28]                                          ; +0x36, 0x140480236\nmovsd   xmm0, cs:qword_140604B18                                       ; +0x3b, 0x14048023b\nmov     rdx, rbx                                                       ; +0x43, 0x140480243\nmov     word ptr [rsp+48h+var_28+8], ax                                ; +0x46, 0x140480246\nmovzx   eax, cs:byte_140604B22                                         ; +0x4b, 0x14048024b\nmov     [rsp+48h+var_28+0Ah], al                                       ; +0x52, 0x140480252\nmov     dword ptr [rsp+48h+var_28+0Ch], 0                              ; +0x56, 0x140480256\nmov     [rsp+48h+var_18], 0Bh                                          ; +0x5e, 0x14048025e\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x67, 0x140480267\nmovsd   qword ptr [rsp+48h+var_28], xmm0                               ; +0x70, 0x140480270\nmov     [rsp+48h+var_28+0Bh], 0                                        ; +0x76, 0x140480276\ncall    URLViewLayer__create                                           ; +0x7b, 0x14048027b\nmov     r9, [rdi]                                                      ; +0x80, 0x140480280\nmov     r8d, 64h ; 'd'                                                 ; +0x83, 0x140480283\nmov     rdx, rax                                                       ; +0x89, 0x140480289\nmov     rcx, rdi                                                       ; +0x8c, 0x14048028c\nmov     rbx, rax                                                       ; +0x8f, 0x14048028f\ncall    qword ptr [r9+1B8h]                                            ; +0x92, 0x140480292\nmov     r8, [rbx]                                                      ; +0x99, 0x140480299\nxor     edx, edx                                                       ; +0x9c, 0x14048029c\nmov     rcx, rbx                                                       ; +0x9e, 0x14048029e\ncall    qword ptr [r8+428h]                                            ; +0xa1, 0x1404802a1\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xa8, 0x1404802a8\nadd     rsp, 40h                                                       ; +0xad, 0x1404802ad\npop     rdi                                                            ; +0xb1, 0x1404802b1\nretn                                                                   ; +0xb2, 0x1404802b2", "xrefs": ["SFXBrowser::init @ 0x14047f220", "<???> @ 0x1406db9c0"], "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"}