; ; cocos2d::CCDirector::init from 0x1800c1fb0 to 0x1800c2262 (690 bytes) ; ; 6 xrefs: ; > cocos2d::CCDirector::sharedDirector @ 0x1800c35ad ; > cocos2d::CCDirector::sharedDirector @ 0x1800c359e ; > @ 0x18010da10 ; > @ 0x18010db20 ; > @ 0x18014cf68 ; > @ 0x1801c34b0 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:22:25 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1800c1fb0 push rdi ; +0x5, 0x1800c1fb5 sub rsp, 20h ; +0x6, 0x1800c1fb6 mov rbx, rcx ; +0xa, 0x1800c1fba call ?setDefaultValues@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setDefaultValues(void) ; +0xd, 0x1800c1fbd xor edi, edi ; +0x12, 0x1800c1fc2 mov [rbx+110h], rdi ; +0x14, 0x1800c1fc4 mov [rbx+118h], rdi ; +0x1b, 0x1800c1fcb mov [rbx+60h], rdi ; +0x22, 0x1800c1fd2 mov [rbx+158h], rdi ; +0x26, 0x1800c1fd6 mov ecx, 40h ; '@'; Size ; +0x2d, 0x1800c1fdd call sub_1800E4AC0 ; +0x32, 0x1800c1fe2 mov [rsp+28h+arg_0], rax ; +0x37, 0x1800c1fe7 test rax, rax ; +0x3c, 0x1800c1fec jz short loc_1800C1FFB ; +0x3f, 0x1800c1fef mov rcx, rax; this ; +0x41, 0x1800c1ff1 call ??0CCArray@cocos2d@@QEAA@XZ; cocos2d::CCArray::CCArray(void) ; +0x44, 0x1800c1ff4 jmp short loc_1800C1FFE ; +0x49, 0x1800c1ff9 mov rax, rdi ; +0x4b, 0x1800c1ffb mov [rbx+128h], rax ; +0x4e, 0x1800c1ffe mov rcx, rax; this ; +0x55, 0x1800c2005 call ?init@CCArray@cocos2d@@QEAA_NXZ; cocos2d::CCArray::init(void) ; +0x58, 0x1800c2008 mov [rbx+160h], rdi ; +0x5d, 0x1800c200d mov byte ptr [rbx+194h], 0 ; +0x64, 0x1800c2014 mov [rbx+0DCh], rdi ; +0x6b, 0x1800c201b mov [rbx+0E4h], edi ; +0x72, 0x1800c2022 mov [rbx+0A8h], rdi ; +0x78, 0x1800c2028 mov [rbx+0E8h], rdi ; +0x7f, 0x1800c202f mov [rbx+0F0h], rdi ; +0x86, 0x1800c2036 mov [rbx+0F8h], rdi ; +0x8d, 0x1800c203d mov [rbx+104h], rdi ; +0x94, 0x1800c2044 mov ecx, 10h; Size ; +0x9b, 0x1800c204b call sub_1800E4C6C ; +0xa0, 0x1800c2050 mov [rbx+150h], rax ; +0xa5, 0x1800c2055 mov ecx, 8; Size ; +0xac, 0x1800c205c call sub_1800E4AC0 ; +0xb1, 0x1800c2061 test rax, rax ; +0xb6, 0x1800c2066 jz short loc_1800C2072 ; +0xb9, 0x1800c2069 xor ecx, ecx ; +0xbb, 0x1800c206b mov [rax], rcx ; +0xbd, 0x1800c206d jmp short loc_1800C2075 ; +0xc0, 0x1800c2070 mov rax, rdi ; +0xc2, 0x1800c2072 mov [rbx+130h], rax ; +0xc5, 0x1800c2075 mov [rbx+10Ch], edi ; +0xcc, 0x1800c207c mov word ptr [rbx+0B0h], 0 ; +0xd2, 0x1800c2082 mov byte ptr [rbx+0B2h], 0 ; +0xdb, 0x1800c208b mov [rbx+0B4h], edi ; +0xe2, 0x1800c2092 mov [rbx+178h], rdi ; +0xe8, 0x1800c2098 mov byte ptr [rbx+170h], 0 ; +0xef, 0x1800c209f mov byte ptr [rbx+195h], 0 ; +0xf6, 0x1800c20a6 mov byte ptr [rbx+100h], 0 ; +0xfd, 0x1800c20ad mov byte ptr [rbx+0B8h], 0 ; +0x104, 0x1800c20b4 lea rcx, [rbx+140h] ; +0x10b, 0x1800c20bb lea rdx, dword_1801B3BA0 ; +0x112, 0x1800c20c2 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x119, 0x1800c20c9 mov [rbx+0C0h], rdi ; +0x11e, 0x1800c20ce mov dword ptr [rbx+148h], 3F800000h ; +0x125, 0x1800c20d5 mov ecx, 80h; Size ; +0x12f, 0x1800c20df call sub_1800E4AC0 ; +0x134, 0x1800c20e4 mov [rsp+28h+arg_0], rax ; +0x139, 0x1800c20e9 test rax, rax ; +0x13e, 0x1800c20ee jz short loc_1800C20FD ; +0x141, 0x1800c20f1 mov rcx, rax; this ; +0x143, 0x1800c20f3 call ??0CCScheduler@cocos2d@@QEAA@XZ; cocos2d::CCScheduler::CCScheduler(void) ; +0x146, 0x1800c20f6 jmp short loc_1800C2100 ; +0x14b, 0x1800c20fb mov rax, rdi ; +0x14d, 0x1800c20fd mov [rbx+68h], rax ; +0x150, 0x1800c2100 mov ecx, 50h ; 'P'; Size ; +0x154, 0x1800c2104 call sub_1800E4AC0 ; +0x159, 0x1800c2109 mov [rsp+28h+arg_0], rax ; +0x15e, 0x1800c210e test rax, rax ; +0x163, 0x1800c2113 jz short loc_1800C2122 ; +0x166, 0x1800c2116 mov rcx, rax; this ; +0x168, 0x1800c2118 call ??0CCActionManager@cocos2d@@QEAA@XZ; cocos2d::CCActionManager::CCActionManager(void) ; +0x16b, 0x1800c211b jmp short loc_1800C2125 ; +0x170, 0x1800c2120 mov rax, rdi ; +0x172, 0x1800c2122 mov [rbx+70h], rax ; +0x175, 0x1800c2125 xor r9d, r9d; bool ; +0x179, 0x1800c2129 mov r8d, 80000000h; int ; +0x17c, 0x1800c212c mov rdx, rax; struct cocos2d::CCObject * ; +0x182, 0x1800c2132 mov rcx, [rbx+68h]; this ; +0x185, 0x1800c2135 call ?scheduleUpdateForTarget@CCScheduler@cocos2d@@QEAAXPEAVCCObject@2@H_N@Z; cocos2d::CCScheduler::scheduleUpdateForTarget(cocos2d::CCObject *,int,bool) ; +0x189, 0x1800c2139 mov ecx, 0A8h; Size ; +0x18e, 0x1800c213e call sub_1800E4AC0 ; +0x193, 0x1800c2143 mov [rsp+28h+arg_0], rax ; +0x198, 0x1800c2148 test rax, rax ; +0x19d, 0x1800c214d jz short loc_1800C215C ; +0x1a0, 0x1800c2150 mov rcx, rax; this ; +0x1a2, 0x1800c2152 call ??0CCTouchDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCTouchDispatcher::CCTouchDispatcher(void) ; +0x1a5, 0x1800c2155 jmp short loc_1800C215F ; +0x1aa, 0x1800c215a mov rax, rdi ; +0x1ac, 0x1800c215c mov [rbx+78h], rax ; +0x1af, 0x1800c215f mov rcx, rax; this ; +0x1b3, 0x1800c2163 call ?init@CCTouchDispatcher@cocos2d@@QEAA_NXZ; cocos2d::CCTouchDispatcher::init(void) ; +0x1b6, 0x1800c2166 mov ecx, 58h ; 'X'; Size ; +0x1bb, 0x1800c216b call sub_1800E4AC0 ; +0x1c0, 0x1800c2170 mov [rsp+28h+arg_0], rax ; +0x1c5, 0x1800c2175 test rax, rax ; +0x1ca, 0x1800c217a jz short loc_1800C2189 ; +0x1cd, 0x1800c217d mov rcx, rax; this ; +0x1cf, 0x1800c217f call ??0CCKeypadDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCKeypadDispatcher::CCKeypadDispatcher(void) ; +0x1d2, 0x1800c2182 jmp short loc_1800C218C ; +0x1d7, 0x1800c2187 mov rax, rdi ; +0x1d9, 0x1800c2189 mov [rbx+80h], rax ; +0x1dc, 0x1800c218c mov ecx, 0A8h; Size ; +0x1e3, 0x1800c2193 call sub_1800E4AC0 ; +0x1e8, 0x1800c2198 mov [rsp+28h+arg_0], rax ; +0x1ed, 0x1800c219d test rax, rax ; +0x1f2, 0x1800c21a2 jz short loc_1800C21B1 ; +0x1f5, 0x1800c21a5 mov rcx, rax; this ; +0x1f7, 0x1800c21a7 call ??0CCKeyboardDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher(void) ; +0x1fa, 0x1800c21aa jmp short loc_1800C21B4 ; +0x1ff, 0x1800c21af mov rax, rdi ; +0x201, 0x1800c21b1 mov [rbx+88h], rax ; +0x204, 0x1800c21b4 mov ecx, 58h ; 'X'; Size ; +0x20b, 0x1800c21bb call sub_1800E4AC0 ; +0x210, 0x1800c21c0 mov [rsp+28h+arg_0], rax ; +0x215, 0x1800c21c5 test rax, rax ; +0x21a, 0x1800c21ca jz short loc_1800C21D9 ; +0x21d, 0x1800c21cd mov rcx, rax; this ; +0x21f, 0x1800c21cf call ??0CCMouseDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCMouseDispatcher::CCMouseDispatcher(void) ; +0x222, 0x1800c21d2 jmp short loc_1800C21DC ; +0x227, 0x1800c21d7 mov rax, rdi ; +0x229, 0x1800c21d9 mov [rbx+90h], rax ; +0x22c, 0x1800c21dc mov [rbx+98h], rdi ; +0x233, 0x1800c21e3 mov ecx, 28h ; '('; Size ; +0x23a, 0x1800c21ea call sub_1800E4AC0 ; +0x23f, 0x1800c21ef mov [rsp+28h+arg_0], rax ; +0x244, 0x1800c21f4 test rax, rax ; +0x249, 0x1800c21f9 jz short loc_1800C2208 ; +0x24c, 0x1800c21fc mov rcx, rax; this ; +0x24e, 0x1800c21fe call ??0CCAccelerometer@cocos2d@@QEAA@XZ; cocos2d::CCAccelerometer::CCAccelerometer(void) ; +0x251, 0x1800c2201 jmp short loc_1800C220B ; +0x256, 0x1800c2206 mov rax, rdi ; +0x258, 0x1800c2208 mov [rbx+0A0h], rax ; +0x25b, 0x1800c220b call ?sharedPoolManager@CCPoolManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCPoolManager::sharedPoolManager(void) ; +0x262, 0x1800c2212 mov rcx, rax; this ; +0x267, 0x1800c2217 call ?push@CCPoolManager@cocos2d@@QEAAXXZ; cocos2d::CCPoolManager::push(void) ; +0x26a, 0x1800c221a mov [rbx+168h], rdi ; +0x26f, 0x1800c221f mov [rbx+190h], edi ; +0x276, 0x1800c2226 movss xmm2, cs:dword_18010DCF0 ; +0x27c, 0x1800c222c movss xmm1, cs:dword_18010DCF4 ; +0x284, 0x1800c2234 lea rcx, [rsp+28h+arg_0] ; +0x28c, 0x1800c223c call kmVec2Fill ; +0x291, 0x1800c2241 mov rdx, rax ; +0x296, 0x1800c2246 lea rcx, [rbx+180h] ; +0x299, 0x1800c2249 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x2a0, 0x1800c2250 mov al, 1 ; +0x2a5, 0x1800c2255 mov rbx, [rsp+28h+arg_8] ; +0x2a7, 0x1800c2257 add rsp, 20h ; +0x2ac, 0x1800c225c pop rdi ; +0x2b0, 0x1800c2260 retn ; +0x2b1, 0x1800c2261