; ; BoomScrollLayer::init from 0x14003d280 to 0x14003d5e5 (869 bytes) ; ; 2 xrefs: ; > BoomScrollLayer::create @ 0x14003d230 ; > @ 0x1406c3f78 ; ; 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_0], rbx ; +0x0, 0x14003d280 mov [rsp+arg_8], rbp ; +0x5, 0x14003d285 mov [rsp+arg_10], r8d ; +0xa, 0x14003d28a push rsi ; +0xf, 0x14003d28f push rdi ; +0x10, 0x14003d290 push r14 ; +0x11, 0x14003d291 sub rsp, 60h ; +0x13, 0x14003d293 movaps [rsp+78h+var_28], xmm6 ; +0x17, 0x14003d297 movzx ebp, r9b ; +0x1c, 0x14003d29c mov r14, rdx ; +0x20, 0x14003d2a0 mov rdi, rcx ; +0x23, 0x14003d2a3 call cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0x26, 0x14003d2a6 test al, al ; +0x2c, 0x14003d2ac jz loc_14003D5CB ; +0x2e, 0x14003d2ae mov ecx, 1A0h; Size ; +0x34, 0x14003d2b4 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x39, 0x14003d2b9 mov rbx, rax ; +0x3e, 0x14003d2be mov [rsp+78h+var_48], rax ; +0x41, 0x14003d2c1 mov rcx, rax ; +0x46, 0x14003d2c6 call cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x49, 0x14003d2c9 lea rax, ??_7ExtendedLayer@@6B@; const ExtendedLayer::`vftable' ; +0x4f, 0x14003d2cf mov [rbx], rax ; +0x56, 0x14003d2d6 lea rax, ??_7ExtendedLayer@@6B@_0; const ExtendedLayer::`vftable' ; +0x59, 0x14003d2d9 mov [rbx+140h], rax ; +0x60, 0x14003d2e0 lea rax, ??_7ExtendedLayer@@6B@_1; const ExtendedLayer::`vftable' ; +0x67, 0x14003d2e7 mov [rbx+148h], rax ; +0x6e, 0x14003d2ee lea rax, ??_7ExtendedLayer@@6B@_2; const ExtendedLayer::`vftable' ; +0x75, 0x14003d2f5 mov [rbx+150h], rax ; +0x7c, 0x14003d2fc lea rax, ??_7ExtendedLayer@@6B@_3; const ExtendedLayer::`vftable' ; +0x83, 0x14003d303 mov [rbx+158h], rax ; +0x8a, 0x14003d30a lea rax, ??_7ExtendedLayer@@6B@_4; const ExtendedLayer::`vftable' ; +0x91, 0x14003d311 mov [rbx+160h], rax ; +0x98, 0x14003d318 xor esi, esi ; +0x9f, 0x14003d31f mov [rbx+198h], rsi ; +0xa1, 0x14003d321 mov rax, cs:off_14052BBA0 ; +0xa8, 0x14003d328 lea rcx, ExtendedLayer__init; Merged with: ExtendedLayer::init, SecretNumberLayer::init ; +0xaf, 0x14003d32f cmp rax, rcx ; +0xb6, 0x14003d336 mov rcx, rbx ; +0xb9, 0x14003d339 jnz loc_14003D554 ; +0xbc, 0x14003d33c call cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0xc2, 0x14003d342 test al, al ; +0xc8, 0x14003d348 jnz loc_14003D55E ; +0xca, 0x14003d34a mov rax, [rbx] ; +0xd0, 0x14003d350 mov edx, 1 ; +0xd3, 0x14003d353 mov rcx, rbx ; +0xd8, 0x14003d358 call qword ptr [rax+8] ; +0xdb, 0x14003d35b mov rbx, rsi ; +0xde, 0x14003d35e mov [rdi+1F0h], rbx ; +0xe1, 0x14003d361 mov rax, [rdi] ; +0xe8, 0x14003d368 mov rdx, rbx ; +0xeb, 0x14003d36b mov rcx, rdi ; +0xee, 0x14003d36e call qword ptr [rax+1C0h] ; +0xf1, 0x14003d371 mov dword ptr [rdi+1Ch], 4 ; +0xf7, 0x14003d377 mov rax, [rdi] ; +0xfe, 0x14003d37e mov dl, 1 ; +0x101, 0x14003d381 mov rcx, rdi ; +0x103, 0x14003d383 call qword ptr [rax+388h] ; +0x106, 0x14003d386 mov byte ptr [rdi+230h], 1 ; +0x10c, 0x14003d38c mov dword ptr [rdi+224h], 42200000h ; +0x113, 0x14003d393 mov dword ptr [rdi+228h], 42C80000h ; +0x11d, 0x14003d39d call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x127, 0x14003d3a7 mov rcx, rax ; +0x12d, 0x14003d3ad lea rdx, [rsp+78h+var_48] ; +0x130, 0x14003d3b0 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x135, 0x14003d3b5 mov ecx, [rax] ; +0x13b, 0x14003d3bb mov [rdi+22Ch], ecx ; +0x13d, 0x14003d3bd mov byte ptr [rdi+231h], 1 ; +0x143, 0x14003d3c3 mov rax, [rdi] ; +0x14a, 0x14003d3ca mov rcx, rdi ; +0x14d, 0x14003d3cd call qword ptr [rax+130h] ; +0x150, 0x14003d3d0 movss xmm1, dword ptr [rax] ; +0x156, 0x14003d3d6 mulss xmm1, cs:dword_140622B08 ; +0x15a, 0x14003d3da movss xmm2, cs:dword_140623210 ; +0x162, 0x14003d3e2 lea rcx, [rsp+78h+var_48] ; +0x16a, 0x14003d3ea call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x16f, 0x14003d3ef lea rcx, [rdi+234h] ; +0x175, 0x14003d3f5 mov rdx, rax ; +0x17c, 0x14003d3fc call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x17f, 0x14003d3ff xorps xmm1, xmm1 ; +0x185, 0x14003d405 mov rcx, rdi ; +0x188, 0x14003d408 call BoomScrollLayer__updateDots ; +0x18b, 0x14003d40b mov [rsp+78h+arg_10], 0FF969696h ; +0x190, 0x14003d410 mov eax, [rsp+78h+arg_10] ; +0x19b, 0x14003d41b mov [rdi+240h], eax ; +0x1a2, 0x14003d422 mov [rsp+78h+arg_10], 0FFFFFFFFh ; +0x1a8, 0x14003d428 mov eax, [rsp+78h+arg_10] ; +0x1b3, 0x14003d433 mov [rdi+23Ch], eax ; +0x1ba, 0x14003d43a call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1c0, 0x14003d440 mov rcx, rax ; +0x1c6, 0x14003d446 lea rdx, [rsp+78h+var_48] ; +0x1c9, 0x14003d449 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x1ce, 0x14003d44e movss xmm6, dword ptr [rax+4] ; +0x1d4, 0x14003d454 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d9, 0x14003d459 mov rcx, rax ; +0x1df, 0x14003d45f lea rdx, [rsp+78h+var_40] ; +0x1e2, 0x14003d462 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x1e7, 0x14003d467 movss [rsp+78h+var_58], xmm6 ; +0x1ed, 0x14003d46d movss xmm3, dword ptr [rax] ; +0x1f3, 0x14003d473 xorps xmm2, xmm2 ; +0x1f7, 0x14003d477 xorps xmm1, xmm1 ; +0x1fa, 0x14003d47a lea rcx, [rsp+78h+var_38] ; +0x1fd, 0x14003d47d call cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x202, 0x14003d482 lea rcx, [rdi+1F8h] ; +0x208, 0x14003d488 mov rdx, rax ; +0x20f, 0x14003d48f call cs:??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x212, 0x14003d492 mov [rdi+244h], rsi ; +0x218, 0x14003d498 mov dword ptr [rdi+208h], 3E99999Ah ; +0x21f, 0x14003d49f mov dword ptr [rdi+210h], 3ECCCCCDh ; +0x229, 0x14003d4a9 mov dword ptr [rdi+20Ch], 3F19999Ah ; +0x233, 0x14003d4b3 mov [rdi+1D8h], r14 ; +0x23d, 0x14003d4bd mov rcx, r14 ; +0x244, 0x14003d4c4 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x247, 0x14003d4c7 lea rcx, aSmalldotPng; "smallDot.png" ; +0x24d, 0x14003d4cd call cs:?create@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSpriteBatchNode::create(char const *) ; +0x254, 0x14003d4d4 mov r14, rax ; +0x25a, 0x14003d4da mov r9, [rdi] ; +0x25d, 0x14003d4dd mov r8d, 5 ; +0x260, 0x14003d4e0 mov rdx, rax ; +0x266, 0x14003d4e6 mov rcx, rdi ; +0x269, 0x14003d4e9 call qword ptr [r9+1B8h] ; +0x26c, 0x14003d4ec mov rcx, rdi ; +0x273, 0x14003d4f3 call BoomScrollLayer__updatePages ; +0x276, 0x14003d4f6 mov [rdi+1ACh], bpl ; +0x27b, 0x14003d4fb test bpl, bpl ; +0x282, 0x14003d502 jz short loc_14003D50F ; +0x285, 0x14003d505 mov rcx, rdi ; +0x287, 0x14003d507 call BoomScrollLayer__repositionPagesLooped ; +0x28a, 0x14003d50a mov rdx, [rsp+78h+arg_20] ; +0x28f, 0x14003d50f test rdx, rdx ; +0x297, 0x14003d517 jz short loc_14003D52C ; +0x29a, 0x14003d51a mov r8, [rsp+78h+arg_28] ; +0x29c, 0x14003d51c mov rcx, rdi ; +0x2a4, 0x14003d524 call BoomScrollLayer__setupDynamicScrolling ; +0x2a7, 0x14003d527 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x2ac, 0x14003d52c mov [rdi+198h], rax ; +0x2b2, 0x14003d532 mov rcx, rax ; +0x2b9, 0x14003d539 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2bc, 0x14003d53c cmp byte ptr [rdi+1C0h], 0 ; +0x2c2, 0x14003d542 jz short loc_14003D56C ; +0x2c9, 0x14003d549 mov rcx, [rdi+1B8h] ; +0x2cb, 0x14003d54b jmp short loc_14003D573 ; +0x2d2, 0x14003d552 call rax ; ExtendedLayer__init; Merged with: ExtendedLayer::init, SecretNumberLayer::init ; +0x2d4, 0x14003d554 test al, al ; +0x2d6, 0x14003d556 jz loc_14003D350 ; +0x2d8, 0x14003d558 mov rcx, rbx ; +0x2de, 0x14003d55e call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x2e1, 0x14003d561 jmp loc_14003D361 ; +0x2e7, 0x14003d567 mov rcx, [rdi+1D8h] ; +0x2ec, 0x14003d56c call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2f3, 0x14003d573 cmp esi, eax ; +0x2f9, 0x14003d579 jge short loc_14003D5B1 ; +0x2fb, 0x14003d57b lea rcx, aSmalldotPng; "smallDot.png" ; +0x2fd, 0x14003d57d call cs:?create@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::create(char const *) ; +0x304, 0x14003d584 mov rbx, rax ; +0x30a, 0x14003d58a mov r8, [r14] ; +0x30d, 0x14003d58d mov rdx, rax ; +0x310, 0x14003d590 mov rcx, r14 ; +0x313, 0x14003d593 call qword ptr [r8+1C0h] ; +0x316, 0x14003d596 mov rdx, rbx ; +0x31d, 0x14003d59d mov rcx, [rdi+198h] ; +0x320, 0x14003d5a0 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x327, 0x14003d5a7 inc esi ; +0x32d, 0x14003d5ad jmp short loc_14003D542 ; +0x32f, 0x14003d5af movss xmm2, cs:dword_140622A10 ; +0x331, 0x14003d5b1 lea rdx, BoomScrollLayer__updateDots ; +0x339, 0x14003d5b9 mov rcx, rdi ; +0x340, 0x14003d5c0 call cs:?schedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@ZM@Z; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float),float) ; +0x343, 0x14003d5c3 mov al, 1 ; +0x349, 0x14003d5c9 lea r11, [rsp+78h+var_18] ; +0x34b, 0x14003d5cb mov rbx, [r11+20h] ; +0x350, 0x14003d5d0 mov rbp, [r11+28h] ; +0x354, 0x14003d5d4 movaps xmm6, [rsp+78h+var_28] ; +0x358, 0x14003d5d8 mov rsp, r11 ; +0x35d, 0x14003d5dd pop r14 ; +0x360, 0x14003d5e0 pop rdi ; +0x362, 0x14003d5e2 pop rsi ; +0x363, 0x14003d5e3 retn ; +0x364, 0x14003d5e4