; ; GJBaseGameLayer::createCustomParticle from 0x14034a9f0 to 0x14034ad39 (841 bytes) ; ; 4 xrefs: ; > @ 0x14076b898 ; > @ 0x14078b310 ; > @ 0x1407d5ef8 ; > @ 0x14092000c ; ; 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:30:44 +0000 ; mov [rsp+arg_18], rbx ; +0x0, 0x14034a9f0 push rbp ; +0x5, 0x14034a9f5 push rsi ; +0x6, 0x14034a9f6 push rdi ; +0x7, 0x14034a9f7 push r12 ; +0x8, 0x14034a9f8 push r15 ; +0xa, 0x14034a9fa sub rsp, 80h ; +0xc, 0x14034a9fc mov rax, cs:__security_cookie ; +0x13, 0x14034aa03 xor rax, rsp ; +0x1a, 0x14034aa0a mov [rsp+0A8h+var_30], rax ; +0x1d, 0x14034aa0d mov r15d, r9d ; +0x22, 0x14034aa12 mov r12, r8 ; +0x25, 0x14034aa15 mov rbx, rdx ; +0x28, 0x14034aa18 mov rbp, rcx ; +0x2b, 0x14034aa1b cmp qword ptr [rdx+18h], 0Fh ; +0x2e, 0x14034aa1e jbe short loc_14034AA28 ; +0x33, 0x14034aa23 mov rdx, [rdx] ; +0x35, 0x14034aa25 xorps xmm0, xmm0 ; +0x38, 0x14034aa28 movups xmmword ptr [rsp+0A8h+Block], xmm0 ; +0x3b, 0x14034aa2b xorps xmm1, xmm1 ; +0x40, 0x14034aa30 movdqu [rsp+0A8h+var_40], xmm1 ; +0x43, 0x14034aa33 mov rdi, 0FFFFFFFFFFFFFFFFh ; +0x49, 0x14034aa39 mov r8, rdi ; +0x50, 0x14034aa40 inc r8 ; +0x53, 0x14034aa43 cmp byte ptr [rdx+r8], 0 ; +0x56, 0x14034aa46 jnz short loc_14034AA43 ; +0x5b, 0x14034aa4b lea rcx, [rsp+0A8h+Block] ; +0x5d, 0x14034aa4d call sub_14003D230 ; +0x62, 0x14034aa52 nop ; +0x67, 0x14034aa57 lea rdx, [rsp+0A8h+Block] ; +0x68, 0x14034aa58 mov rcx, [rbp+31B0h] ; +0x6d, 0x14034aa5d call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x74, 0x14034aa64 mov rsi, rax ; +0x7a, 0x14034aa6a mov rdx, qword ptr [rsp+0A8h+var_40+8] ; +0x7d, 0x14034aa6d cmp rdx, 0Fh ; +0x82, 0x14034aa72 jbe short loc_14034AAC3 ; +0x86, 0x14034aa76 inc rdx ; +0x88, 0x14034aa78 mov rax, [rsp+0A8h+Block] ; +0x8b, 0x14034aa7b mov rcx, rax ; +0x90, 0x14034aa80 cmp rdx, 1000h ; +0x93, 0x14034aa83 jb short loc_14034AABB ; +0x9a, 0x14034aa8a add rdx, 27h ; ''' ; +0x9c, 0x14034aa8c mov rax, [rax-8] ; +0xa0, 0x14034aa90 sub rcx, rax ; +0xa4, 0x14034aa94 sub rcx, 8 ; +0xa7, 0x14034aa97 cmp rcx, 1Fh ; +0xab, 0x14034aa9b jbe short loc_14034AABB ; +0xaf, 0x14034aa9f mov [rsp+0A8h+Reserved], 0; Reserved ; +0xb1, 0x14034aaa1 xor r9d, r9d; LineNo ; +0xba, 0x14034aaaa xor r8d, r8d; FileName ; +0xbd, 0x14034aaad xor edx, edx; FunctionName ; +0xc0, 0x14034aab0 xor ecx, ecx; Expression ; +0xc2, 0x14034aab2 call cs:_invoke_watson ; +0xc4, 0x14034aab4 db 0CCh ; +0xca, 0x14034aaba mov rcx, rax; Block ; +0xcb, 0x14034aabb call j_j_free ; +0xce, 0x14034aabe movdqa xmm0, cs:Size ; +0xd3, 0x14034aac3 movdqu [rsp+0A8h+var_40], xmm0 ; +0xdb, 0x14034aacb mov byte ptr [rsp+0A8h+Block], 0 ; +0xe1, 0x14034aad1 test rsi, rsi ; +0xe6, 0x14034aad6 jnz loc_14034AC9C ; +0xe9, 0x14034aad9 cmp [rsp+0A8h+arg_20], sil ; +0xef, 0x14034aadf jnz loc_14034AC9C ; +0xf7, 0x14034aae7 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0xfd, 0x14034aaed mov rsi, rax ; +0x103, 0x14034aaf3 inc dword ptr [rbp+319Ch] ; +0x106, 0x14034aaf6 mov rax, [rax] ; +0x10c, 0x14034aafc mov edx, [rbp+319Ch] ; +0x10f, 0x14034aaff mov rcx, rsi ; +0x115, 0x14034ab05 call qword ptr [rax+40h] ; +0x118, 0x14034ab08 mov rax, [rsi] ; +0x11b, 0x14034ab0b mov rcx, rsi ; +0x11e, 0x14034ab0e call qword ptr [rax+38h] ; +0x121, 0x14034ab11 mov [rsp+0A8h+var_78], eax ; +0x124, 0x14034ab14 lea rcx, [rbp+31C0h] ; +0x128, 0x14034ab18 lea r8, [rsp+0A8h+var_78] ; +0x12f, 0x14034ab1f lea rdx, [rsp+0A8h+var_70] ; +0x134, 0x14034ab24 call sub_140067D30 ; +0x139, 0x14034ab29 mov rcx, [rax] ; +0x13e, 0x14034ab2e add rcx, 18h; void * ; +0x141, 0x14034ab31 cmp rcx, rbx ; +0x145, 0x14034ab35 jz short loc_14034AB50 ; +0x148, 0x14034ab38 mov rdx, rbx ; +0x14a, 0x14034ab3a cmp qword ptr [rbx+18h], 0Fh ; +0x14d, 0x14034ab3d jbe short loc_14034AB47 ; +0x152, 0x14034ab42 mov rdx, [rbx]; Src ; +0x154, 0x14034ab44 mov r8, [rbx+10h]; Size ; +0x157, 0x14034ab47 call sub_1400405A0 ; +0x15b, 0x14034ab4b mov rdx, rbx ; +0x160, 0x14034ab50 cmp qword ptr [rbx+18h], 0Fh ; +0x163, 0x14034ab53 jbe short loc_14034AB5D ; +0x168, 0x14034ab58 mov rdx, [rbx] ; +0x16a, 0x14034ab5a xorps xmm0, xmm0 ; +0x16d, 0x14034ab5d movups xmmword ptr [rsp+0A8h+var_70], xmm0 ; +0x170, 0x14034ab60 xorps xmm1, xmm1 ; +0x175, 0x14034ab65 movdqu [rsp+0A8h+var_60], xmm1 ; +0x178, 0x14034ab68 mov r8, rdi ; +0x17e, 0x14034ab6e inc r8 ; +0x181, 0x14034ab71 cmp byte ptr [rdx+r8], 0 ; +0x184, 0x14034ab74 jnz short loc_14034AB71 ; +0x189, 0x14034ab79 lea rcx, [rsp+0A8h+var_70] ; +0x18b, 0x14034ab7b call sub_14003D230 ; +0x190, 0x14034ab80 nop ; +0x195, 0x14034ab85 lea r8, [rsp+0A8h+var_70] ; +0x196, 0x14034ab86 mov rdx, rsi ; +0x19b, 0x14034ab8b mov rcx, [rbp+31B0h] ; +0x19e, 0x14034ab8e call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x1a5, 0x14034ab95 nop ; +0x1ab, 0x14034ab9b mov rdx, qword ptr [rsp+0A8h+var_60+8] ; +0x1ac, 0x14034ab9c cmp rdx, 0Fh ; +0x1b1, 0x14034aba1 jbe short loc_14034ABEF ; +0x1b5, 0x14034aba5 inc rdx ; +0x1b7, 0x14034aba7 mov rcx, [rsp+0A8h+var_70]; Block ; +0x1ba, 0x14034abaa mov rax, rcx ; +0x1bf, 0x14034abaf cmp rdx, 1000h ; +0x1c2, 0x14034abb2 jb short loc_14034ABEA ; +0x1c9, 0x14034abb9 add rdx, 27h ; ''' ; +0x1cb, 0x14034abbb mov rcx, [rcx-8] ; +0x1cf, 0x14034abbf sub rax, rcx ; +0x1d3, 0x14034abc3 sub rax, 8 ; +0x1d6, 0x14034abc6 cmp rax, 1Fh ; +0x1da, 0x14034abca jbe short loc_14034ABEA ; +0x1de, 0x14034abce mov [rsp+0A8h+Reserved], 0; Reserved ; +0x1e0, 0x14034abd0 xor r9d, r9d; LineNo ; +0x1e9, 0x14034abd9 xor r8d, r8d; FileName ; +0x1ec, 0x14034abdc xor edx, edx; FunctionName ; +0x1ef, 0x14034abdf xor ecx, ecx; Expression ; +0x1f1, 0x14034abe1 call cs:_invoke_watson ; +0x1f3, 0x14034abe3 align 2 ; +0x1f9, 0x14034abe9 call j_j_free ; +0x1fa, 0x14034abea cmp qword ptr [rbx+18h], 0Fh ; +0x1ff, 0x14034abef jbe short loc_14034ABF9 ; +0x204, 0x14034abf4 mov rbx, [rbx] ; +0x206, 0x14034abf6 xorps xmm0, xmm0 ; +0x209, 0x14034abf9 movups xmmword ptr [rsp+0A8h+var_70], xmm0 ; +0x20c, 0x14034abfc xorps xmm1, xmm1 ; +0x211, 0x14034ac01 movdqu [rsp+0A8h+var_60], xmm1 ; +0x214, 0x14034ac04 nop word ptr [rax+rax+00h] ; +0x21a, 0x14034ac0a inc rdi ; +0x220, 0x14034ac10 cmp byte ptr [rbx+rdi], 0 ; +0x223, 0x14034ac13 jnz short loc_14034AC10 ; +0x227, 0x14034ac17 mov r8, rdi ; +0x229, 0x14034ac19 mov rdx, rbx ; +0x22c, 0x14034ac1c lea rcx, [rsp+0A8h+var_70] ; +0x22f, 0x14034ac1f call sub_14003D230 ; +0x234, 0x14034ac24 nop ; +0x239, 0x14034ac29 mov rbx, [rbp+3200h] ; +0x23a, 0x14034ac2a call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x241, 0x14034ac31 mov rdx, rax ; +0x247, 0x14034ac37 lea r8, [rsp+0A8h+var_70] ; +0x24a, 0x14034ac3a mov rcx, rbx ; +0x24f, 0x14034ac3f call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x252, 0x14034ac42 nop ; +0x258, 0x14034ac48 mov rdx, qword ptr [rsp+0A8h+var_60+8] ; +0x259, 0x14034ac49 cmp rdx, 0Fh ; +0x25e, 0x14034ac4e jbe short loc_14034AC9C ; +0x262, 0x14034ac52 inc rdx ; +0x264, 0x14034ac54 mov rcx, [rsp+0A8h+var_70]; Block ; +0x267, 0x14034ac57 mov rax, rcx ; +0x26c, 0x14034ac5c cmp rdx, 1000h ; +0x26f, 0x14034ac5f jb short loc_14034AC97 ; +0x276, 0x14034ac66 add rdx, 27h ; ''' ; +0x278, 0x14034ac68 mov rcx, [rcx-8] ; +0x27c, 0x14034ac6c sub rax, rcx ; +0x280, 0x14034ac70 sub rax, 8 ; +0x283, 0x14034ac73 cmp rax, 1Fh ; +0x287, 0x14034ac77 jbe short loc_14034AC97 ; +0x28b, 0x14034ac7b mov [rsp+0A8h+Reserved], 0; Reserved ; +0x28d, 0x14034ac7d xor r9d, r9d; LineNo ; +0x296, 0x14034ac86 xor r8d, r8d; FileName ; +0x299, 0x14034ac89 xor edx, edx; FunctionName ; +0x29c, 0x14034ac8c xor ecx, ecx; Expression ; +0x29e, 0x14034ac8e call cs:_invoke_watson ; +0x2a0, 0x14034ac90 db 0CCh ; +0x2a6, 0x14034ac96 call j_j_free ; +0x2a7, 0x14034ac97 test r15d, r15d ; +0x2ac, 0x14034ac9c jle short loc_14034ACB3 ; +0x2af, 0x14034ac9f mov rcx, rsi ; +0x2b1, 0x14034aca1 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2b4, 0x14034aca4 cmp eax, r15d ; +0x2ba, 0x14034acaa jb short loc_14034ACB3 ; +0x2bd, 0x14034acad xor eax, eax ; +0x2bf, 0x14034acaf jmp short loc_14034AD15 ; +0x2c1, 0x14034acb1 mov r8b, 1 ; +0x2c3, 0x14034acb3 xor edx, edx ; +0x2c6, 0x14034acb6 mov rcx, r12 ; +0x2c8, 0x14034acb8 call GameToolbox__particleFromStruct ; +0x2cb, 0x14034acbb mov rbx, rax ; +0x2d0, 0x14034acc0 mov rcx, [rax] ; +0x2d3, 0x14034acc3 mov r8, [rcx+40h] ; +0x2d6, 0x14034acc6 xor edx, edx ; +0x2da, 0x14034acca mov rcx, rax ; +0x2dc, 0x14034accc call r8 ; +0x2df, 0x14034accf mov rcx, rbx ; +0x2e2, 0x14034acd2 call cs:?stopSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::stopSystem(void) ; +0x2e5, 0x14034acd5 mov rcx, [rbx] ; +0x2eb, 0x14034acdb mov r8, [rcx+150h] ; +0x2ee, 0x14034acde xor edx, edx ; +0x2f5, 0x14034ace5 mov rcx, rbx ; +0x2f7, 0x14034ace7 call r8 ; +0x2fa, 0x14034acea cmp [rsp+0A8h+arg_20], 0 ; +0x2fd, 0x14034aced jnz short loc_14034AD12 ; +0x305, 0x14034acf5 mov rdx, rbx ; +0x307, 0x14034acf7 mov rcx, rsi ; +0x30a, 0x14034acfa call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x30d, 0x14034acfd mov rax, [rsi] ; +0x313, 0x14034ad03 mov rcx, rsi ; +0x316, 0x14034ad06 call qword ptr [rax+38h] ; +0x319, 0x14034ad09 mov [rbx+314h], eax ; +0x31c, 0x14034ad0c mov rax, rbx ; +0x322, 0x14034ad12 mov rcx, [rsp+0A8h+var_30] ; +0x325, 0x14034ad15 xor rcx, rsp; StackCookie ; +0x32a, 0x14034ad1a call __security_check_cookie ; +0x32d, 0x14034ad1d mov rbx, [rsp+0A8h+arg_18] ; +0x332, 0x14034ad22 add rsp, 80h ; +0x33a, 0x14034ad2a pop r15 ; +0x341, 0x14034ad31 pop r12 ; +0x343, 0x14034ad33 pop rdi ; +0x345, 0x14034ad35 pop rsi ; +0x346, 0x14034ad36 pop rbp ; +0x347, 0x14034ad37 retn ; +0x348, 0x14034ad38