; ; CCBlockLayer::init from 0x140042550 to 0x14004260b (187 bytes) ; ; 6 xrefs: ; > EditorPauseLayer::init @ 0x1400d9f03 ; > PlayLayer::pauseGame @ 0x1403ba35d ; > @ 0x14052cc78 ; > @ 0x1405521d0 ; > @ 0x1405c6680 ; > @ 0x1406c43e0 ; ; 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 ; push rbx ; +0x0, 0x140042550 sub rsp, 20h ; +0x2, 0x140042552 mov [rsp+28h+arg_8], 7D000000h ; +0x6, 0x140042556 lea rdx, [rsp+28h+arg_8] ; +0xe, 0x14004255e mov eax, [rsp+28h+arg_8] ; +0x13, 0x140042563 mov rbx, rcx ; +0x17, 0x140042567 mov [rsp+28h+arg_8], eax ; +0x1a, 0x14004256a call cs:__imp_?initWithColor@CCLayerColor@cocos2d@@UEAA_NAEBU_ccColor4B@2@@Z; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const &) ; +0x1e, 0x14004256e test al, al ; +0x24, 0x140042574 jnz short loc_14004257E ; +0x26, 0x140042576 add rsp, 20h ; +0x28, 0x140042578 pop rbx ; +0x2c, 0x14004257c retn ; +0x2d, 0x14004257d cmp byte ptr [rbx+221h], 0 ; +0x2e, 0x14004257e jnz short loc_1400425B2 ; +0x35, 0x140042585 mov byte ptr [rbx+221h], 1 ; +0x37, 0x140042587 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3e, 0x14004258e mov rcx, rax ; +0x44, 0x140042594 mov rdx, [rax] ; +0x47, 0x140042597 call qword ptr [rdx+90h] ; +0x4a, 0x14004259a mov r8d, 2 ; +0x50, 0x1400425a0 mov rdx, rbx ; +0x56, 0x1400425a6 mov rcx, rax ; +0x59, 0x1400425a9 call cs:?registerForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@H@Z; cocos2d::CCTouchDispatcher::registerForcePrio(cocos2d::CCObject *,int) ; +0x5c, 0x1400425ac mov rax, [rbx] ; +0x62, 0x1400425b2 mov dl, 1 ; +0x65, 0x1400425b5 mov rcx, rbx ; +0x67, 0x1400425b7 call qword ptr [rax+388h] ; +0x6a, 0x1400425ba mov rax, [rbx] ; +0x70, 0x1400425c0 mov dl, 1 ; +0x73, 0x1400425c3 mov rcx, rbx ; +0x75, 0x1400425c5 call qword ptr [rax+3D0h] ; +0x78, 0x1400425c8 mov rax, [rbx] ; +0x7e, 0x1400425ce mov dl, 1 ; +0x81, 0x1400425d1 mov rcx, rbx ; +0x83, 0x1400425d3 call qword ptr [rax+3E0h] ; +0x86, 0x1400425d6 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8c, 0x1400425dc mov rcx, rax ; +0x92, 0x1400425e2 lea rdx, [rsp+28h+arg_10] ; +0x95, 0x1400425e5 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x9a, 0x1400425ea mov rax, [rbx] ; +0xa0, 0x1400425f0 mov rcx, rbx ; +0xa3, 0x1400425f3 call qword ptr [rax+410h] ; +0xa6, 0x1400425f6 mov al, 1 ; +0xac, 0x1400425fc mov byte ptr [rbx+220h], 1 ; +0xae, 0x1400425fe add rsp, 20h ; +0xb5, 0x140042605 pop rbx ; +0xb9, 0x140042609 retn ; +0xba, 0x14004260a