; ; GJEffectManager::init from 0x14025ace0 to 0x14025b093 (947 bytes) ; ; 5 xrefs: ; > @ 0x140567e10 ; > @ 0x1406848e8 ; > @ 0x14068490c ; > @ 0x140684924 ; > @ 0x1406cfc3c ; ; 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 r14 ; +0x0, 0x14025ace0 sub rsp, 40h ; +0x2, 0x14025ace2 mov r14, rcx ; +0x6, 0x14025ace6 call cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0x9, 0x14025ace9 test al, al ; +0xf, 0x14025acef jnz short loc_14025ACFA ; +0x11, 0x14025acf1 add rsp, 40h ; +0x13, 0x14025acf3 pop r14 ; +0x17, 0x14025acf7 retn ; +0x19, 0x14025acf9 mov [rsp+48h+arg_0], rbx ; +0x1a, 0x14025acfa mov [rsp+48h+arg_8], rbp ; +0x1f, 0x14025acff mov [rsp+48h+arg_10], rsi ; +0x24, 0x14025ad04 mov [rsp+48h+var_10], rdi ; +0x29, 0x14025ad09 mov [rsp+48h+var_18], r12 ; +0x2e, 0x14025ad0e mov [rsp+48h+var_20], r13 ; +0x33, 0x14025ad13 mov [rsp+48h+var_28], r15 ; +0x38, 0x14025ad18 call cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x3d, 0x14025ad1d mov rcx, rax ; +0x43, 0x14025ad23 mov [r14+148h], rax ; +0x46, 0x14025ad26 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x4d, 0x14025ad2d call cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x53, 0x14025ad33 mov rcx, rax ; +0x59, 0x14025ad39 mov [r14+150h], rax ; +0x5c, 0x14025ad3c call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x63, 0x14025ad43 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x69, 0x14025ad49 mov rcx, rax ; +0x6f, 0x14025ad4f mov [r14+4F0h], rax ; +0x72, 0x14025ad52 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x79, 0x14025ad59 call cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x7f, 0x14025ad5f mov rcx, rax ; +0x85, 0x14025ad65 mov [r14+280h], rax ; +0x88, 0x14025ad68 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x8f, 0x14025ad6f call cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x95, 0x14025ad75 mov rcx, rax ; +0x9b, 0x14025ad7b mov [r14+278h], rax ; +0x9e, 0x14025ad7e call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xa5, 0x14025ad85 lea rsi, [r14+2F8h] ; +0xab, 0x14025ad8b mov ebp, 44Eh ; +0xb2, 0x14025ad92 mov rdi, [rsi+8] ; +0xb7, 0x14025ad97 mov rdx, [rsi] ; +0xbb, 0x14025ad9b mov rcx, rdi ; +0xbe, 0x14025ad9e sub rcx, rdx ; +0xc1, 0x14025ada1 sar rcx, 3 ; +0xc4, 0x14025ada4 cmp rcx, rbp ; +0xc8, 0x14025ada8 jbe short loc_14025ADB6 ; +0xcb, 0x14025adab lea rax, [rdx+2270h] ; +0xcd, 0x14025adad jmp short loc_14025ADF1 ; +0xd4, 0x14025adb4 jnb short loc_14025ADF5 ; +0xd6, 0x14025adb6 mov rax, [rsi+10h] ; +0xd8, 0x14025adb8 sub rax, rdx ; +0xdc, 0x14025adbc sar rax, 3 ; +0xdf, 0x14025adbf cmp rax, rbp ; +0xe3, 0x14025adc3 jnb short loc_14025ADD2 ; +0xe6, 0x14025adc6 mov rcx, rsi ; +0xe8, 0x14025adc8 call sub_14026CF30 ; +0xeb, 0x14025adcb jmp short loc_14025ADF5 ; +0xf0, 0x14025add0 mov rax, rbp ; +0xf2, 0x14025add2 xor edx, edx; Val ; +0xf5, 0x14025add5 sub rax, rcx ; +0xf7, 0x14025add7 mov rcx, rdi; void * ; +0xfa, 0x14025adda lea rbx, ds:0[rax*8] ; +0xfd, 0x14025addd mov r8, rbx; Size ; +0x105, 0x14025ade5 call memset ; +0x108, 0x14025ade8 lea rax, [rbx+rdi] ; +0x10d, 0x14025aded mov [rsi+8], rax ; +0x111, 0x14025adf1 lea rdi, [r14+2E0h] ; +0x115, 0x14025adf5 mov r15, [rdi+8] ; +0x11c, 0x14025adfc mov rdx, [rdi] ; +0x120, 0x14025ae00 mov rcx, r15 ; +0x123, 0x14025ae03 sub rcx, rdx ; +0x126, 0x14025ae06 sar rcx, 3 ; +0x129, 0x14025ae09 cmp rcx, rbp ; +0x12d, 0x14025ae0d jbe short loc_14025AE1B ; +0x130, 0x14025ae10 lea rax, [rdx+2270h] ; +0x132, 0x14025ae12 jmp short loc_14025AE53 ; +0x139, 0x14025ae19 jnb short loc_14025AE57 ; +0x13b, 0x14025ae1b mov rax, [rdi+10h] ; +0x13d, 0x14025ae1d sub rax, rdx ; +0x141, 0x14025ae21 sar rax, 3 ; +0x144, 0x14025ae24 cmp rax, rbp ; +0x148, 0x14025ae28 jnb short loc_14025AE37 ; +0x14b, 0x14025ae2b mov rcx, rdi ; +0x14d, 0x14025ae2d call sub_14026CF30 ; +0x150, 0x14025ae30 jmp short loc_14025AE57 ; +0x155, 0x14025ae35 sub rbp, rcx ; +0x157, 0x14025ae37 xor edx, edx; Val ; +0x15a, 0x14025ae3a mov rcx, r15; void * ; +0x15c, 0x14025ae3c lea rbx, ds:0[rbp*8] ; +0x15f, 0x14025ae3f mov r8, rbx; Size ; +0x167, 0x14025ae47 call memset ; +0x16a, 0x14025ae4a lea rax, [rbx+r15] ; +0x16f, 0x14025ae4f mov [rdi+8], rax ; +0x173, 0x14025ae53 mov ebp, 2710h ; +0x177, 0x14025ae57 lea rcx, [r14+4F8h] ; +0x17c, 0x14025ae5c mov edx, ebp ; +0x183, 0x14025ae63 call sub_14024AD80 ; +0x185, 0x14025ae65 lea r15, [r14+288h] ; +0x18a, 0x14025ae6a mov r12, [r15+8] ; +0x191, 0x14025ae71 mov rdx, [r15] ; +0x195, 0x14025ae75 mov rcx, r12 ; +0x198, 0x14025ae78 sub rcx, rdx ; +0x19b, 0x14025ae7b sar rcx, 3 ; +0x19e, 0x14025ae7e cmp rcx, rbp ; +0x1a2, 0x14025ae82 jbe short loc_14025AE90 ; +0x1a5, 0x14025ae85 lea rax, [rdx+13880h] ; +0x1a7, 0x14025ae87 jmp short loc_14025AECB ; +0x1ae, 0x14025ae8e jnb short loc_14025AECF ; +0x1b0, 0x14025ae90 mov rax, [r15+10h] ; +0x1b2, 0x14025ae92 sub rax, rdx ; +0x1b6, 0x14025ae96 sar rax, 3 ; +0x1b9, 0x14025ae99 cmp rax, rbp ; +0x1bd, 0x14025ae9d jnb short loc_14025AEAC ; +0x1c0, 0x14025aea0 mov rcx, r15 ; +0x1c2, 0x14025aea2 call sub_1402531F0 ; +0x1c5, 0x14025aea5 jmp short loc_14025AECF ; +0x1ca, 0x14025aeaa mov rax, rbp ; +0x1cc, 0x14025aeac xor edx, edx; Val ; +0x1cf, 0x14025aeaf sub rax, rcx ; +0x1d1, 0x14025aeb1 mov rcx, r12; void * ; +0x1d4, 0x14025aeb4 lea rbx, ds:0[rax*8] ; +0x1d7, 0x14025aeb7 mov r8, rbx; Size ; +0x1df, 0x14025aebf call memset ; +0x1e2, 0x14025aec2 lea rax, [rbx+r12] ; +0x1e7, 0x14025aec7 mov [r15+8], rax ; +0x1eb, 0x14025aecb mov rdx, rbp ; +0x1ef, 0x14025aecf lea rcx, [r14+310h] ; +0x1f2, 0x14025aed2 call sub_14024AD80 ; +0x1f9, 0x14025aed9 mov r12, [rsp+48h+var_18] ; +0x1fe, 0x14025aede xor r11d, r11d ; +0x203, 0x14025aee3 mov rbx, [rsp+48h+arg_0] ; +0x206, 0x14025aee6 mov r9d, r11d ; +0x20b, 0x14025aeeb mov r10d, r11d ; +0x20e, 0x14025aeee mov rax, [r15] ; +0x211, 0x14025aef1 lea r10, [r10+8] ; +0x214, 0x14025aef4 mov r8, r9 ; +0x218, 0x14025aef8 and r8d, 1Fh ; +0x21b, 0x14025aefb mov [r10+rax-8], r11 ; +0x21f, 0x14025aeff mov rax, r9 ; +0x224, 0x14025af04 mov rcx, [r14+310h] ; +0x227, 0x14025af07 inc r9 ; +0x22e, 0x14025af0e shr rax, 5 ; +0x231, 0x14025af11 lea rdx, ds:0[rax*4] ; +0x235, 0x14025af15 mov eax, [rcx+rax*4] ; +0x23d, 0x14025af1d btr eax, r8d ; +0x240, 0x14025af20 mov [rcx+rdx], eax ; +0x244, 0x14025af24 mov rcx, [r14+4F8h] ; +0x247, 0x14025af27 mov eax, [rcx+rdx] ; +0x24e, 0x14025af2e bts eax, r8d ; +0x251, 0x14025af31 mov [rcx+rdx], eax ; +0x255, 0x14025af35 sub rbp, 1 ; +0x258, 0x14025af38 jnz short loc_14025AEF1 ; +0x25c, 0x14025af3c mov rax, [rdi] ; +0x25e, 0x14025af3e mov rcx, [rsi] ; +0x261, 0x14025af41 mov r15, [rsp+48h+var_28] ; +0x264, 0x14025af44 mov r13, [rsp+48h+var_20] ; +0x269, 0x14025af49 mov rbp, [rsp+48h+arg_8] ; +0x26e, 0x14025af4e lea r9, [rax+2268h] ; +0x273, 0x14025af53 lea r8, [rcx+2268h] ; +0x27a, 0x14025af5a cmp rax, r8 ; +0x281, 0x14025af61 ja short loc_14025AF6E ; +0x284, 0x14025af64 mov rdx, r11 ; +0x286, 0x14025af66 cmp r9, rcx ; +0x289, 0x14025af69 jnb short loc_14025AFA2 ; +0x28c, 0x14025af6c cmp rax, rdi ; +0x28e, 0x14025af6e ja short loc_14025AF7B ; +0x291, 0x14025af71 mov rdx, r11 ; +0x293, 0x14025af73 cmp r9, rdi ; +0x296, 0x14025af76 jnb short loc_14025AFA2 ; +0x299, 0x14025af79 cmp rax, rsi ; +0x29b, 0x14025af7b ja short loc_14025AF88 ; +0x29e, 0x14025af7e mov rdx, r11 ; +0x2a0, 0x14025af80 cmp r9, rsi ; +0x2a3, 0x14025af83 jnb short loc_14025AFA2 ; +0x2a6, 0x14025af86 cmp rcx, rdi ; +0x2a8, 0x14025af88 ja short loc_14025AF95 ; +0x2ab, 0x14025af8b mov rdx, r11 ; +0x2ad, 0x14025af8d cmp r8, rdi ; +0x2b0, 0x14025af90 jnb short loc_14025AFA2 ; +0x2b3, 0x14025af93 cmp rcx, rsi ; +0x2b5, 0x14025af95 ja short loc_14025AFEE ; +0x2b8, 0x14025af98 mov rdx, r11 ; +0x2ba, 0x14025af9a cmp r8, rsi ; +0x2bd, 0x14025af9d jb short loc_14025AFEE ; +0x2c0, 0x14025afa0 cmp rdx, 44Dh ; +0x2c2, 0x14025afa2 ja loc_14025B080 ; +0x2c9, 0x14025afa9 lea rcx, ds:0[rdx*8] ; +0x2cf, 0x14025afaf nop word ptr [rax+rax+00000000h] ; +0x2d7, 0x14025afb7 mov rax, [rsi] ; +0x2e0, 0x14025afc0 mov [rcx+rax], r11 ; +0x2e3, 0x14025afc3 mov rax, [rdi] ; +0x2e7, 0x14025afc7 mov [rcx+rax], r11 ; +0x2ea, 0x14025afca add rcx, 8 ; +0x2ee, 0x14025afce cmp rcx, 2268h ; +0x2f2, 0x14025afd2 jle short loc_14025AFC0 ; +0x2f9, 0x14025afd9 mov rdi, [rsp+48h+var_10] ; +0x2fb, 0x14025afdb mov al, 1 ; +0x300, 0x14025afe0 mov rsi, [rsp+48h+arg_10] ; +0x302, 0x14025afe2 add rsp, 40h ; +0x307, 0x14025afe7 pop r14 ; +0x30b, 0x14025afeb retn ; +0x30d, 0x14025afed mov edx, 89h ; +0x30e, 0x14025afee mov r8d, edx ; +0x313, 0x14025aff3 nop word ptr [rax+rax+00000000h] ; +0x316, 0x14025aff6 mov [rcx], r11 ; +0x320, 0x14025b000 mov [rcx+8], r11 ; +0x323, 0x14025b003 mov [rcx+10h], r11 ; +0x327, 0x14025b007 lea rcx, [rcx+40h] ; +0x32b, 0x14025b00b mov [rcx-28h], r11 ; +0x32f, 0x14025b00f mov [rcx-20h], r11 ; +0x333, 0x14025b013 mov [rcx-18h], r11 ; +0x337, 0x14025b017 mov [rcx-10h], r11 ; +0x33b, 0x14025b01b mov [rcx-8], r11 ; +0x33f, 0x14025b01f sub r8, 1 ; +0x343, 0x14025b023 jnz short loc_14025B000 ; +0x347, 0x14025b027 mov [rcx], r11 ; +0x349, 0x14025b029 mov [rcx+8], r11 ; +0x34c, 0x14025b02c mov [rcx+10h], r11 ; +0x350, 0x14025b030 mov [rcx+18h], r11 ; +0x354, 0x14025b034 mov [rcx+20h], r11 ; +0x358, 0x14025b038 mov [rcx+28h], r11 ; +0x35c, 0x14025b03c mov [rax], r11 ; +0x360, 0x14025b040 mov [rax+8], r11 ; +0x363, 0x14025b043 mov [rax+10h], r11 ; +0x367, 0x14025b047 lea rax, [rax+40h] ; +0x36b, 0x14025b04b mov [rax-28h], r11 ; +0x36f, 0x14025b04f mov [rax-20h], r11 ; +0x373, 0x14025b053 mov [rax-18h], r11 ; +0x377, 0x14025b057 mov [rax-10h], r11 ; +0x37b, 0x14025b05b mov [rax-8], r11 ; +0x37f, 0x14025b05f sub rdx, 1 ; +0x383, 0x14025b063 jnz short loc_14025B040 ; +0x387, 0x14025b067 mov [rax], r11 ; +0x389, 0x14025b069 mov [rax+8], r11 ; +0x38c, 0x14025b06c mov [rax+10h], r11 ; +0x390, 0x14025b070 mov [rax+18h], r11 ; +0x394, 0x14025b074 mov [rax+20h], r11 ; +0x398, 0x14025b078 mov [rax+28h], r11 ; +0x39c, 0x14025b07c mov rdi, [rsp+48h+var_10] ; +0x3a0, 0x14025b080 mov al, 1 ; +0x3a5, 0x14025b085 mov rsi, [rsp+48h+arg_10] ; +0x3a7, 0x14025b087 add rsp, 40h ; +0x3ac, 0x14025b08c pop r14 ; +0x3b0, 0x14025b090 retn ; +0x3b2, 0x14025b092