; ; GJSongBrowser::customSetup from 0x1402b73f0 to 0x1402b7762 (882 bytes) ; ; 2 xrefs: ; > @ 0x14057f9d8 ; > @ 0x1406d2558 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_18], rbx ; +0x0, 0x1402b73f0 push rbp ; +0x5, 0x1402b73f5 push rsi ; +0x6, 0x1402b73f6 push rdi ; +0x7, 0x1402b73f7 sub rsp, 40h ; +0x8, 0x1402b73f8 movaps [rsp+58h+var_28], xmm6 ; +0xc, 0x1402b73fc mov rbp, rcx ; +0x11, 0x1402b7401 movaps [rsp+58h+var_38], xmm7 ; +0x14, 0x1402b7404 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x1402b7409 mov rcx, rax ; +0x1f, 0x1402b740f lea rdx, [rsp+58h+arg_8] ; +0x22, 0x1402b7412 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x27, 0x1402b7417 call cs:?create@CCMenu@cocos2d@@SAPEAV12@XZ; cocos2d::CCMenu::create(void) ; +0x2d, 0x1402b741d movss xmm7, [rsp+58h+arg_C] ; +0x33, 0x1402b7423 lea rcx, aGjArrow01001Pn; "GJ_arrow_01_001.png" ; +0x39, 0x1402b7429 mulss xmm7, cs:dword_140622B08 ; +0x40, 0x1402b7430 mov rsi, rax ; +0x48, 0x1402b7438 call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x4b, 0x1402b743b lea r9, GJSongBrowser__onPrevPage ; +0x51, 0x1402b7441 mov r8, rbp ; +0x58, 0x1402b7448 mov rcx, rax ; +0x5b, 0x1402b744b xor edx, edx ; +0x5e, 0x1402b744e call CCMenuItemSpriteExtra__create ; +0x60, 0x1402b7450 mov [rbp+288h], rax ; +0x65, 0x1402b7455 mov rdx, rax ; +0x6c, 0x1402b745c mov r8, [rsi] ; +0x6f, 0x1402b745f mov rcx, rsi ; +0x72, 0x1402b7462 call qword ptr [r8+1C0h] ; +0x75, 0x1402b7465 mov rax, [rbp+288h] ; +0x7c, 0x1402b746c mov rbx, [rax] ; +0x83, 0x1402b7473 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x86, 0x1402b7476 mov rcx, rax ; +0x8c, 0x1402b747c call cs:?getScreenLeft@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenLeft(void) ; +0x8f, 0x1402b747f movaps xmm2, xmm7 ; +0x95, 0x1402b7485 lea rcx, [rsp+58h+arg_0] ; +0x98, 0x1402b7488 addss xmm0, cs:dword_140623140 ; +0x9d, 0x1402b748d movaps xmm1, xmm0 ; +0xa5, 0x1402b7495 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xa8, 0x1402b7498 lea rdx, [rsp+58h+arg_10] ; +0xae, 0x1402b749e mov rcx, rsi ; +0xb3, 0x1402b74a3 mov r8, rax ; +0xb6, 0x1402b74a6 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xb9, 0x1402b74a9 mov rcx, [rbp+288h] ; +0xbf, 0x1402b74af mov rdx, rax ; +0xc6, 0x1402b74b6 call qword ptr [rbx+0B8h] ; +0xc9, 0x1402b74b9 lea rcx, aGjArrow01001Pn; "GJ_arrow_01_001.png" ; +0xcf, 0x1402b74bf call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xd6, 0x1402b74c6 mov rcx, rax ; +0xdc, 0x1402b74cc mov dl, 1 ; +0xdf, 0x1402b74cf mov rbx, rax ; +0xe1, 0x1402b74d1 call cs:?setFlipX@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipX(bool) ; +0xe4, 0x1402b74d4 lea r9, GJSongBrowser__onNextPage ; +0xea, 0x1402b74da mov r8, rbp ; +0xf1, 0x1402b74e1 xor edx, edx ; +0xf4, 0x1402b74e4 mov rcx, rbx ; +0xf6, 0x1402b74e6 call CCMenuItemSpriteExtra__create ; +0xf9, 0x1402b74e9 mov [rbp+280h], rax ; +0xfe, 0x1402b74ee mov rdx, rax ; +0x105, 0x1402b74f5 mov r8, [rsi] ; +0x108, 0x1402b74f8 mov rcx, rsi ; +0x10b, 0x1402b74fb call qword ptr [r8+1C0h] ; +0x10e, 0x1402b74fe mov rax, [rbp+280h] ; +0x115, 0x1402b7505 mov rbx, [rax] ; +0x11c, 0x1402b750c call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x11f, 0x1402b750f mov rcx, rax ; +0x125, 0x1402b7515 call cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x128, 0x1402b7518 movaps xmm2, xmm7 ; +0x12e, 0x1402b751e lea rcx, [rsp+58h+arg_0] ; +0x131, 0x1402b7521 subss xmm0, cs:dword_140623140 ; +0x136, 0x1402b7526 movaps xmm1, xmm0 ; +0x13e, 0x1402b752e call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x141, 0x1402b7531 lea rdx, [rsp+58h+arg_10] ; +0x147, 0x1402b7537 mov rcx, rsi ; +0x14c, 0x1402b753c mov r8, rax ; +0x14f, 0x1402b753f call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x152, 0x1402b7542 mov rcx, [rbp+280h] ; +0x158, 0x1402b7548 mov rdx, rax ; +0x15f, 0x1402b754f call qword ptr [rbx+0B8h] ; +0x162, 0x1402b7552 lea rcx, aGjDeletebtn001; "GJ_deleteBtn_001.png" ; +0x168, 0x1402b7558 call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x16f, 0x1402b755f lea r9, GJSongBrowser__onDeleteAll ; +0x175, 0x1402b7565 mov r8, rbp ; +0x17c, 0x1402b756c mov rcx, rax ; +0x17f, 0x1402b756f xor edx, edx ; +0x182, 0x1402b7572 mov rbx, rax ; +0x184, 0x1402b7574 call CCMenuItemSpriteExtra__create ; +0x187, 0x1402b7577 mov r8, [rsi] ; +0x18c, 0x1402b757c mov rdx, rax ; +0x18f, 0x1402b757f mov rcx, rsi ; +0x192, 0x1402b7582 mov rdi, rax ; +0x195, 0x1402b7585 call qword ptr [r8+1C0h] ; +0x198, 0x1402b7588 movss xmm7, dword ptr [rbx+1B0h] ; +0x19f, 0x1402b758f mulss xmm7, cs:dword_140622B08 ; +0x1a7, 0x1402b7597 mov rbx, [rdi] ; +0x1af, 0x1402b759f addss xmm7, cs:dword_140622FF0 ; +0x1b2, 0x1402b75a2 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1ba, 0x1402b75aa mov rcx, rax ; +0x1c0, 0x1402b75b0 call cs:?getScreenBottom@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenBottom(void) ; +0x1c3, 0x1402b75b3 movaps xmm6, xmm0 ; +0x1c9, 0x1402b75b9 addss xmm6, xmm7 ; +0x1cc, 0x1402b75bc call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d0, 0x1402b75c0 mov rcx, rax ; +0x1d6, 0x1402b75c6 call cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x1d9, 0x1402b75c9 movaps xmm2, xmm6 ; +0x1df, 0x1402b75cf lea rcx, [rsp+58h+arg_0] ; +0x1e2, 0x1402b75d2 subss xmm0, xmm7 ; +0x1e7, 0x1402b75d7 movaps xmm1, xmm0 ; +0x1eb, 0x1402b75db call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1ee, 0x1402b75de lea rdx, [rsp+58h+arg_10] ; +0x1f4, 0x1402b75e4 mov rcx, rsi ; +0x1f9, 0x1402b75e9 mov r8, rax ; +0x1fc, 0x1402b75ec call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x1ff, 0x1402b75ef mov rdx, rax ; +0x205, 0x1402b75f5 mov rcx, rdi ; +0x208, 0x1402b75f8 call qword ptr [rbx+0B8h] ; +0x20b, 0x1402b75fb mov rcx, [rbp+240h] ; +0x211, 0x1402b7601 mov r8d, 0Ah ; +0x218, 0x1402b7608 mov rdx, rsi ; +0x21e, 0x1402b760e mov rax, [rcx] ; +0x221, 0x1402b7611 call qword ptr [rax+1B8h] ; +0x224, 0x1402b7614 lea rdx, aGoldfontFnt; "goldFont.fnt" ; +0x22a, 0x1402b761a lea rcx, asc_140518984; " " ; +0x231, 0x1402b7621 call cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x238, 0x1402b7628 mov rcx, [rbp+240h] ; +0x23e, 0x1402b762e mov rdx, rax ; +0x245, 0x1402b7635 mov [rbp+290h], rax ; +0x248, 0x1402b7638 mov r8, [rcx] ; +0x24f, 0x1402b763f call qword ptr [r8+1C0h] ; +0x252, 0x1402b7642 mov rax, [rbp+290h] ; +0x259, 0x1402b7649 mov rbx, [rax] ; +0x260, 0x1402b7650 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x263, 0x1402b7653 mov rcx, rax ; +0x269, 0x1402b7659 call cs:?getScreenTop@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenTop(void) ; +0x26c, 0x1402b765c movaps xmm6, xmm0 ; +0x272, 0x1402b7662 subss xmm6, cs:dword_140622FF0 ; +0x275, 0x1402b7665 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x27d, 0x1402b766d mov rcx, rax ; +0x283, 0x1402b7673 call cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x286, 0x1402b7676 xorps xmm2, xmm2 ; +0x28c, 0x1402b767c lea rcx, [rsp+58h+arg_0] ; +0x28f, 0x1402b767f subss xmm0, cs:dword_140623038 ; +0x294, 0x1402b7684 subss xmm0, xmm2 ; +0x29c, 0x1402b768c movaps xmm2, xmm6 ; +0x2a0, 0x1402b7690 movaps xmm1, xmm0 ; +0x2a3, 0x1402b7693 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x2a6, 0x1402b7696 mov rcx, [rbp+290h] ; +0x2ac, 0x1402b769c mov rdx, rax ; +0x2b3, 0x1402b76a3 call qword ptr [rbx+0B8h] ; +0x2b6, 0x1402b76a6 mov rax, [rbp+290h] ; +0x2bc, 0x1402b76ac lea rcx, [rsp+58h+arg_0] ; +0x2c3, 0x1402b76b3 movss xmm1, cs:flt_140622C24 ; +0x2c8, 0x1402b76b8 movaps xmm2, xmm1 ; +0x2d0, 0x1402b76c0 mov rbx, [rax] ; +0x2d3, 0x1402b76c3 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x2d6, 0x1402b76c6 mov rcx, [rbp+290h] ; +0x2dc, 0x1402b76cc mov rdx, rax ; +0x2e3, 0x1402b76d3 call qword ptr [rbx+110h] ; +0x2e6, 0x1402b76d6 mov rcx, [rbp+290h] ; +0x2ec, 0x1402b76dc movss xmm1, cs:dword_140622B38 ; +0x2f3, 0x1402b76e3 mov rax, [rcx] ; +0x2fb, 0x1402b76eb call qword ptr [rax+0A0h] ; +0x2fe, 0x1402b76ee call MusicDownloadManager__sharedState ; +0x304, 0x1402b76f4 mov rcx, rax ; +0x309, 0x1402b76f9 call MusicDownloadManager__getDownloadedSongs ; +0x30c, 0x1402b76fc mov rcx, rax ; +0x311, 0x1402b7701 mov [rbp+2A0h], rax ; +0x314, 0x1402b7704 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x31b, 0x1402b770b mov rcx, [rbp+238h] ; +0x321, 0x1402b7711 mov dl, 0FFh ; +0x328, 0x1402b7718 add rcx, 198h ; +0x32a, 0x1402b771a mov rax, [rcx] ; +0x331, 0x1402b7721 call qword ptr [rax+28h] ; +0x334, 0x1402b7724 mov rcx, [rbp+238h] ; +0x337, 0x1402b7727 lea rdx, [rsp+58h+arg_0] ; +0x33e, 0x1402b772e add rcx, 198h ; +0x343, 0x1402b7733 mov [rsp+58h+arg_0], 3232h ; +0x34a, 0x1402b773a mov [rsp+58h+arg_2], 32h ; '2' ; +0x351, 0x1402b7741 mov rax, [rcx] ; +0x356, 0x1402b7746 call qword ptr [rax] ; +0x359, 0x1402b7749 mov rbx, [rsp+58h+arg_18] ; +0x35b, 0x1402b774b movaps xmm6, [rsp+58h+var_28] ; +0x360, 0x1402b7750 movaps xmm7, [rsp+58h+var_38] ; +0x365, 0x1402b7755 add rsp, 40h ; +0x36a, 0x1402b775a pop rdi ; +0x36e, 0x1402b775e pop rsi ; +0x36f, 0x1402b775f pop rbp ; +0x370, 0x1402b7760 retn ; +0x371, 0x1402b7761