; ; cocos2d::CCDirector::init from 0x1800be7a0 to 0x1800bea8f (751 bytes) ; ; 6 xrefs: ; > cocos2d::CCDirector::sharedDirector @ 0x1800bfd6d ; > cocos2d::CCDirector::sharedDirector @ 0x1800bfd5e ; > @ 0x1801072b8 ; > @ 0x1801073c8 ; > @ 0x1801438a8 ; > @ 0x1801b91f8 ; ; 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_8], rbx ; +0x0, 0x1800be7a0 mov [rsp+arg_10], rsi ; +0x5, 0x1800be7a5 push rdi ; +0xa, 0x1800be7aa sub rsp, 20h ; +0xb, 0x1800be7ab mov rbx, rcx ; +0xf, 0x1800be7af call ?setDefaultValues@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setDefaultValues(void) ; +0x12, 0x1800be7b2 xor esi, esi ; +0x17, 0x1800be7b7 mov [rbx+108h], rsi ; +0x19, 0x1800be7b9 mov [rbx+110h], rsi ; +0x20, 0x1800be7c0 mov [rbx+60h], rsi ; +0x27, 0x1800be7c7 mov [rbx+150h], rsi ; +0x2b, 0x1800be7cb lea ecx, [rsi+40h]; Size ; +0x32, 0x1800be7d2 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x35, 0x1800be7d5 mov [rsp+28h+arg_0], rax ; +0x3a, 0x1800be7da test rax, rax ; +0x3f, 0x1800be7df jz short loc_1800BE7EE ; +0x42, 0x1800be7e2 mov rcx, rax; this ; +0x44, 0x1800be7e4 call ??0CCArray@cocos2d@@QEAA@XZ; cocos2d::CCArray::CCArray(void) ; +0x47, 0x1800be7e7 jmp short loc_1800BE7F1 ; +0x4c, 0x1800be7ec mov rax, rsi ; +0x4e, 0x1800be7ee mov [rbx+120h], rax ; +0x51, 0x1800be7f1 mov rcx, rax; this ; +0x58, 0x1800be7f8 call ?init@CCArray@cocos2d@@QEAA_NXZ; cocos2d::CCArray::init(void) ; +0x5b, 0x1800be7fb mov [rbx+158h], rsi ; +0x60, 0x1800be800 mov byte ptr [rbx+18Ch], 0 ; +0x67, 0x1800be807 mov [rbx+0D4h], rsi ; +0x6e, 0x1800be80e mov [rbx+0DCh], esi ; +0x75, 0x1800be815 mov [rbx+0A0h], rsi ; +0x7b, 0x1800be81b mov [rbx+0E0h], rsi ; +0x82, 0x1800be822 mov [rbx+0E8h], rsi ; +0x89, 0x1800be829 mov [rbx+0F0h], rsi ; +0x90, 0x1800be830 mov [rbx+0FCh], rsi ; +0x97, 0x1800be837 mov ecx, 0Ah; Size ; +0x9e, 0x1800be83e call j_??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xa3, 0x1800be843 mov [rbx+148h], rax ; +0xa8, 0x1800be848 mov ecx, 8; Size ; +0xaf, 0x1800be84f call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xb4, 0x1800be854 test rax, rax ; +0xb9, 0x1800be859 jz short loc_1800BE865 ; +0xbc, 0x1800be85c xor ecx, ecx ; +0xbe, 0x1800be85e mov [rax], rcx ; +0xc0, 0x1800be860 jmp short loc_1800BE868 ; +0xc3, 0x1800be863 mov rax, rsi ; +0xc5, 0x1800be865 mov [rbx+128h], rax ; +0xc8, 0x1800be868 mov [rbx+104h], esi ; +0xcf, 0x1800be86f mov word ptr [rbx+0A8h], 0 ; +0xd5, 0x1800be875 mov byte ptr [rbx+0AAh], 0 ; +0xde, 0x1800be87e mov [rbx+0ACh], esi ; +0xe5, 0x1800be885 mov [rbx+170h], rsi ; +0xeb, 0x1800be88b mov byte ptr [rbx+168h], 0 ; +0xf2, 0x1800be892 mov byte ptr [rbx+18Dh], 0 ; +0xf9, 0x1800be899 mov byte ptr [rbx+0F8h], 0 ; +0x100, 0x1800be8a0 mov byte ptr [rbx+0B0h], 0 ; +0x107, 0x1800be8a7 lea rcx, [rbx+138h] ; +0x10e, 0x1800be8ae lea rdx, dword_1801A9B28 ; +0x115, 0x1800be8b5 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x11c, 0x1800be8bc mov [rbx+0B8h], rsi ; +0x121, 0x1800be8c1 mov dword ptr [rbx+140h], 3F800000h ; +0x128, 0x1800be8c8 mov ecx, 80h; Size ; +0x132, 0x1800be8d2 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x137, 0x1800be8d7 mov [rsp+28h+arg_0], rax ; +0x13c, 0x1800be8dc test rax, rax ; +0x141, 0x1800be8e1 jz short loc_1800BE8F0 ; +0x144, 0x1800be8e4 mov rcx, rax; this ; +0x146, 0x1800be8e6 call ??0CCScheduler@cocos2d@@QEAA@XZ; cocos2d::CCScheduler::CCScheduler(void) ; +0x149, 0x1800be8e9 jmp short loc_1800BE8F3 ; +0x14e, 0x1800be8ee mov rax, rsi ; +0x150, 0x1800be8f0 mov [rbx+68h], rax ; +0x153, 0x1800be8f3 mov ecx, 50h ; 'P'; Size ; +0x157, 0x1800be8f7 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x15c, 0x1800be8fc mov [rsp+28h+arg_0], rax ; +0x161, 0x1800be901 test rax, rax ; +0x166, 0x1800be906 jz short loc_1800BE915 ; +0x169, 0x1800be909 mov rcx, rax; this ; +0x16b, 0x1800be90b call ??0CCActionManager@cocos2d@@QEAA@XZ; cocos2d::CCActionManager::CCActionManager(void) ; +0x16e, 0x1800be90e jmp short loc_1800BE918 ; +0x173, 0x1800be913 mov rax, rsi ; +0x175, 0x1800be915 mov [rbx+70h], rax ; +0x178, 0x1800be918 xor r9d, r9d; bool ; +0x17c, 0x1800be91c mov r8d, 80000000h; int ; +0x17f, 0x1800be91f mov rdx, rax; struct cocos2d::CCObject * ; +0x185, 0x1800be925 mov rcx, [rbx+68h]; this ; +0x188, 0x1800be928 call ?scheduleUpdateForTarget@CCScheduler@cocos2d@@QEAAXPEAVCCObject@2@H_N@Z; cocos2d::CCScheduler::scheduleUpdateForTarget(cocos2d::CCObject *,int,bool) ; +0x18c, 0x1800be92c mov ecx, 90h; Size ; +0x191, 0x1800be931 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x196, 0x1800be936 mov rdi, rax ; +0x19b, 0x1800be93b mov [rsp+28h+arg_0], rax ; +0x19e, 0x1800be93e test rax, rax ; +0x1a3, 0x1800be943 jz short loc_1800BE98B ; +0x1a6, 0x1800be946 mov rcx, rax; this ; +0x1a8, 0x1800be948 call ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x1ab, 0x1800be94b lea rax, ??_7CCTouchDispatcher@cocos2d@@6BCCObject@1@@; const cocos2d::CCTouchDispatcher::`vftable'{for `cocos2d::CCObject'} ; +0x1b0, 0x1800be950 mov [rdi], rax ; +0x1b7, 0x1800be957 lea rax, ??_7CCTouchDispatcher@cocos2d@@6BEGLTouchDelegate@1@@; const cocos2d::CCTouchDispatcher::`vftable'{for `cocos2d::EGLTouchDelegate'} ; +0x1ba, 0x1800be95a mov [rdi+38h], rax ; +0x1c1, 0x1800be961 mov [rdi+40h], rsi ; +0x1c5, 0x1800be965 mov [rdi+48h], rsi ; +0x1c9, 0x1800be969 mov [rdi+58h], rsi ; +0x1cd, 0x1800be96d mov [rdi+60h], rsi ; +0x1d1, 0x1800be971 mov dword ptr [rdi+7Ch], 0FFFFFE0Ch ; +0x1d5, 0x1800be975 mov [rdi+80h], rsi ; +0x1dc, 0x1800be97c mov [rdi+88h], esi ; +0x1e3, 0x1800be983 jmp short loc_1800BE98E ; +0x1e9, 0x1800be989 mov rdi, rsi ; +0x1eb, 0x1800be98b mov [rbx+78h], rdi ; +0x1ee, 0x1800be98e mov rcx, rdi; this ; +0x1f2, 0x1800be992 call ?init@CCTouchDispatcher@cocos2d@@QEAA_NXZ; cocos2d::CCTouchDispatcher::init(void) ; +0x1f5, 0x1800be995 mov ecx, 58h ; 'X'; Size ; +0x1fa, 0x1800be99a call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1ff, 0x1800be99f mov [rsp+28h+arg_0], rax ; +0x204, 0x1800be9a4 test rax, rax ; +0x209, 0x1800be9a9 jz short loc_1800BE9B8 ; +0x20c, 0x1800be9ac mov rcx, rax; this ; +0x20e, 0x1800be9ae call ??0CCKeypadDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCKeypadDispatcher::CCKeypadDispatcher(void) ; +0x211, 0x1800be9b1 jmp short loc_1800BE9BB ; +0x216, 0x1800be9b6 mov rax, rsi ; +0x218, 0x1800be9b8 mov [rbx+80h], rax ; +0x21b, 0x1800be9bb mov ecx, 60h ; '`'; Size ; +0x222, 0x1800be9c2 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x227, 0x1800be9c7 mov [rsp+28h+arg_0], rax ; +0x22c, 0x1800be9cc test rax, rax ; +0x231, 0x1800be9d1 jz short loc_1800BE9E0 ; +0x234, 0x1800be9d4 mov rcx, rax; this ; +0x236, 0x1800be9d6 call ??0CCKeyboardDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher(void) ; +0x239, 0x1800be9d9 jmp short loc_1800BE9E3 ; +0x23e, 0x1800be9de mov rax, rsi ; +0x240, 0x1800be9e0 mov [rbx+88h], rax ; +0x243, 0x1800be9e3 mov ecx, 58h ; 'X'; Size ; +0x24a, 0x1800be9ea call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x24f, 0x1800be9ef mov [rsp+28h+arg_0], rax ; +0x254, 0x1800be9f4 test rax, rax ; +0x259, 0x1800be9f9 jz short loc_1800BEA08 ; +0x25c, 0x1800be9fc mov rcx, rax; this ; +0x25e, 0x1800be9fe call ??0CCMouseDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCMouseDispatcher::CCMouseDispatcher(void) ; +0x261, 0x1800bea01 jmp short loc_1800BEA0B ; +0x266, 0x1800bea06 mov rax, rsi ; +0x268, 0x1800bea08 mov [rbx+90h], rax ; +0x26b, 0x1800bea0b mov ecx, 28h ; '('; Size ; +0x272, 0x1800bea12 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x277, 0x1800bea17 mov [rsp+28h+arg_0], rax ; +0x27c, 0x1800bea1c test rax, rax ; +0x281, 0x1800bea21 jz short loc_1800BEA30 ; +0x284, 0x1800bea24 mov rcx, rax; this ; +0x286, 0x1800bea26 call ??0CCAccelerometer@cocos2d@@QEAA@XZ; cocos2d::CCAccelerometer::CCAccelerometer(void) ; +0x289, 0x1800bea29 jmp short loc_1800BEA33 ; +0x28e, 0x1800bea2e mov rax, rsi ; +0x290, 0x1800bea30 mov [rbx+98h], rax ; +0x293, 0x1800bea33 call ?sharedPoolManager@CCPoolManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCPoolManager::sharedPoolManager(void) ; +0x29a, 0x1800bea3a mov rcx, rax; this ; +0x29f, 0x1800bea3f call ?push@CCPoolManager@cocos2d@@QEAAXXZ; cocos2d::CCPoolManager::push(void) ; +0x2a2, 0x1800bea42 mov [rbx+160h], rsi ; +0x2a7, 0x1800bea47 mov [rbx+188h], esi ; +0x2ae, 0x1800bea4e movss xmm2, cs:dword_180107598 ; +0x2b4, 0x1800bea54 movss xmm1, cs:dword_18010759C ; +0x2bc, 0x1800bea5c lea rcx, [rsp+28h+arg_0] ; +0x2c4, 0x1800bea64 call kmVec2Fill ; +0x2c9, 0x1800bea69 mov rdx, rax ; +0x2ce, 0x1800bea6e lea rcx, [rbx+178h] ; +0x2d1, 0x1800bea71 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x2d8, 0x1800bea78 mov al, 1 ; +0x2dd, 0x1800bea7d mov rbx, [rsp+28h+arg_8] ; +0x2df, 0x1800bea7f mov rsi, [rsp+28h+arg_10] ; +0x2e4, 0x1800bea84 add rsp, 20h ; +0x2e9, 0x1800bea89 pop rdi ; +0x2ed, 0x1800bea8d retn ; +0x2ee, 0x1800bea8e