; ; GJBaseGameLayer::createParticle from 0x14034a200 to 0x14034a615 (1045 bytes) ; ; 2 xrefs: ; > GameObject::createAndAddParticle @ 0x140295c77 ; > @ 0x14091ffe8 ; ; 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 ; push rbp ; +0x0, 0x14034a200 push rbx ; +0x2, 0x14034a202 push rsi ; +0x3, 0x14034a203 push rdi ; +0x4, 0x14034a204 push r12 ; +0x5, 0x14034a205 push r13 ; +0x7, 0x14034a207 push r14 ; +0x9, 0x14034a209 push r15 ; +0xb, 0x14034a20b lea rbp, [rsp-17h] ; +0xd, 0x14034a20d sub rsp, 0C8h ; +0x12, 0x14034a212 mov rax, cs:__security_cookie ; +0x19, 0x14034a219 xor rax, rsp ; +0x20, 0x14034a220 mov [rbp+4Fh+var_48], rax ; +0x23, 0x14034a223 mov [rsp+100h+var_D0], r9d ; +0x27, 0x14034a227 mov r15, r8 ; +0x2c, 0x14034a22c mov [rbp+4Fh+var_B8], r8 ; +0x2f, 0x14034a22f mov ebx, edx ; +0x33, 0x14034a233 mov r14, rcx ; +0x35, 0x14034a235 mov [rbp+4Fh+var_C0], rcx ; +0x38, 0x14034a238 mov ecx, [rbp+4Fh+arg_20] ; +0x3c, 0x14034a23c mov [rbp+4Fh+var_CC], ecx ; +0x3f, 0x14034a23f mov rax, cs:qword_14090BFD0 ; +0x42, 0x14034a242 test rax, rax ; +0x49, 0x14034a249 jnz short loc_14034A287 ; +0x4c, 0x14034a24c mov ecx, 6E8h; Size ; +0x4e, 0x14034a24e call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x53, 0x14034a253 mov [rbp+4Fh+var_C8], rax ; +0x58, 0x14034a258 mov rcx, rax ; +0x5c, 0x14034a25c call GameManager__GameManager ; +0x5f, 0x14034a25f nop ; +0x64, 0x14034a264 mov cs:qword_14090BFD0, rax ; +0x65, 0x14034a265 mov rcx, [rax] ; +0x6c, 0x14034a26c mov rdx, [rcx+48h] ; +0x6f, 0x14034a26f mov rcx, rax ; +0x73, 0x14034a273 call rdx ; +0x76, 0x14034a276 mov rax, cs:qword_14090BFD0 ; +0x78, 0x14034a278 mov r9d, [rsp+100h+var_D0] ; +0x7f, 0x14034a27f mov ecx, [rbp+4Fh+var_CC] ; +0x84, 0x14034a284 cmp byte ptr [rax+3BDh], 0 ; +0x87, 0x14034a287 jz short loc_14034A297 ; +0x8e, 0x14034a28e xor eax, eax ; +0x90, 0x14034a290 jmp loc_14034A5EF ; +0x92, 0x14034a292 mov [rsp+100h+var_D8], ecx ; +0x97, 0x14034a297 mov dword ptr [rsp+100h+Reserved], r9d ; +0x9b, 0x14034a29b mov r9, r15 ; +0xa0, 0x14034a2a0 mov r8d, ebx ; +0xa3, 0x14034a2a3 lea rdx, [rbp+4Fh+Src] ; +0xa6, 0x14034a2a6 call GJBaseGameLayer__getParticleKey ; +0xaa, 0x14034a2aa nop ; +0xaf, 0x14034a2af lea rdx, [rbp+4Fh+Src] ; +0xb0, 0x14034a2b0 cmp [rbp+4Fh+var_70], 0Fh ; +0xb4, 0x14034a2b4 cmova rdx, [rbp+4Fh+Src] ; +0xb9, 0x14034a2b9 xorps xmm0, xmm0 ; +0xbe, 0x14034a2be movups xmmword ptr [rbp+4Fh+Block], xmm0 ; +0xc1, 0x14034a2c1 xor edi, edi ; +0xc5, 0x14034a2c5 mov [rbp+4Fh+var_98], rdi ; +0xc7, 0x14034a2c7 mov [rbp+4Fh+var_90], rdi ; +0xcb, 0x14034a2cb mov rbx, 0FFFFFFFFFFFFFFFFh ; +0xcf, 0x14034a2cf mov r8, rbx ; +0xd6, 0x14034a2d6 nop dword ptr [rax+00000000h] ; +0xd9, 0x14034a2d9 inc r8 ; +0xe0, 0x14034a2e0 cmp [rdx+r8], dil ; +0xe3, 0x14034a2e3 jnz short loc_14034A2E0 ; +0xe7, 0x14034a2e7 lea rcx, [rbp+4Fh+Block] ; +0xe9, 0x14034a2e9 call sub_14003D230 ; +0xed, 0x14034a2ed nop ; +0xf2, 0x14034a2f2 lea rdx, [rbp+4Fh+Block] ; +0xf3, 0x14034a2f3 mov rcx, [r14+31A8h] ; +0xf7, 0x14034a2f7 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 &) ; +0xfe, 0x14034a2fe mov rsi, rax ; +0x104, 0x14034a304 mov rdx, [rbp+4Fh+var_90] ; +0x107, 0x14034a307 cmp rdx, 0Fh ; +0x10b, 0x14034a30b jbe short loc_14034A357 ; +0x10f, 0x14034a30f inc rdx ; +0x111, 0x14034a311 mov r8, [rbp+4Fh+Block] ; +0x114, 0x14034a314 mov rcx, r8 ; +0x118, 0x14034a318 cmp rdx, 1000h ; +0x11b, 0x14034a31b jb short loc_14034A34F ; +0x122, 0x14034a322 add rdx, 27h ; ''' ; +0x124, 0x14034a324 mov r8, [r8-8] ; +0x128, 0x14034a328 sub rcx, r8 ; +0x12c, 0x14034a32c sub rcx, 8 ; +0x12f, 0x14034a32f cmp rcx, 1Fh ; +0x133, 0x14034a333 jbe short loc_14034A34F ; +0x137, 0x14034a337 mov [rsp+100h+Reserved], rdi; Reserved ; +0x139, 0x14034a339 xor r9d, r9d; LineNo ; +0x13e, 0x14034a33e xor r8d, r8d; FileName ; +0x141, 0x14034a341 xor edx, edx; FunctionName ; +0x144, 0x14034a344 xor ecx, ecx; Expression ; +0x146, 0x14034a346 call cs:_invoke_watson ; +0x148, 0x14034a348 db 0CCh ; +0x14e, 0x14034a34e mov rcx, r8; Block ; +0x14f, 0x14034a34f call j_j_free ; +0x152, 0x14034a352 test rsi, rsi ; +0x157, 0x14034a357 jnz loc_14034A4D4 ; +0x15a, 0x14034a35a call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x160, 0x14034a360 mov rsi, rax ; +0x166, 0x14034a366 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x169, 0x14034a369 mov [rbp+4Fh+var_C8], rax ; +0x16f, 0x14034a36f lea rdx, [rbp+4Fh+Src] ; +0x173, 0x14034a373 cmp [rbp+4Fh+var_70], 0Fh ; +0x177, 0x14034a377 cmova rdx, [rbp+4Fh+Src] ; +0x17c, 0x14034a37c xorps xmm0, xmm0 ; +0x181, 0x14034a381 movups xmmword ptr [rbp+4Fh+Block], xmm0 ; +0x184, 0x14034a384 mov [rbp+4Fh+var_98], rdi ; +0x188, 0x14034a388 mov [rbp+4Fh+var_90], rdi ; +0x18c, 0x14034a38c mov r8, rbx ; +0x190, 0x14034a390 inc r8 ; +0x193, 0x14034a393 cmp byte ptr [rdx+r8], 0 ; +0x196, 0x14034a396 jnz short loc_14034A393 ; +0x19b, 0x14034a39b lea rcx, [rbp+4Fh+Block] ; +0x19d, 0x14034a39d call sub_14003D230 ; +0x1a1, 0x14034a3a1 nop ; +0x1a6, 0x14034a3a6 lea r8, [rbp+4Fh+Block] ; +0x1a7, 0x14034a3a7 mov rdx, rsi ; +0x1ab, 0x14034a3ab mov rcx, [r14+31A8h] ; +0x1ae, 0x14034a3ae 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 &) ; +0x1b5, 0x14034a3b5 nop ; +0x1bb, 0x14034a3bb mov rdx, [rbp+4Fh+var_90] ; +0x1bc, 0x14034a3bc cmp rdx, 0Fh ; +0x1c0, 0x14034a3c0 jbe short loc_14034A409 ; +0x1c4, 0x14034a3c4 inc rdx ; +0x1c6, 0x14034a3c6 mov rcx, [rbp+4Fh+Block]; Block ; +0x1c9, 0x14034a3c9 mov rax, rcx ; +0x1cd, 0x14034a3cd cmp rdx, 1000h ; +0x1d0, 0x14034a3d0 jb short loc_14034A404 ; +0x1d7, 0x14034a3d7 add rdx, 27h ; ''' ; +0x1d9, 0x14034a3d9 mov rcx, [rcx-8] ; +0x1dd, 0x14034a3dd sub rax, rcx ; +0x1e1, 0x14034a3e1 sub rax, 8 ; +0x1e4, 0x14034a3e4 cmp rax, 1Fh ; +0x1e8, 0x14034a3e8 jbe short loc_14034A404 ; +0x1ec, 0x14034a3ec mov [rsp+100h+Reserved], rdi; Reserved ; +0x1ee, 0x14034a3ee xor r9d, r9d; LineNo ; +0x1f3, 0x14034a3f3 xor r8d, r8d; FileName ; +0x1f6, 0x14034a3f6 xor edx, edx; FunctionName ; +0x1f9, 0x14034a3f9 xor ecx, ecx; Expression ; +0x1fb, 0x14034a3fb call cs:_invoke_watson ; +0x1fd, 0x14034a3fd align 4 ; +0x203, 0x14034a403 call j_j_free ; +0x204, 0x14034a404 xorps xmm0, xmm0 ; +0x209, 0x14034a409 movups xmmword ptr [rbp+4Fh+Block], xmm0 ; +0x20c, 0x14034a40c mov [rbp+4Fh+var_98], rdi ; +0x210, 0x14034a410 mov [rbp+4Fh+var_90], rdi ; +0x214, 0x14034a414 lea r15, [rbp+4Fh+Src] ; +0x218, 0x14034a418 mov r12, [rbp+4Fh+Src] ; +0x21c, 0x14034a41c mov r13, [rbp+4Fh+var_70] ; +0x220, 0x14034a420 cmp r13, 0Fh ; +0x224, 0x14034a424 cmova r15, r12 ; +0x228, 0x14034a428 mov rsi, 7FFFFFFFFFFFFFFFh ; +0x22c, 0x14034a42c mov r14, [rbp+4Fh+var_78] ; +0x236, 0x14034a436 cmp r14, rsi ; +0x23a, 0x14034a43a ja loc_14034A60F ; +0x23d, 0x14034a43d cmp r14, 0Fh ; +0x243, 0x14034a443 ja short loc_14034A45F ; +0x247, 0x14034a447 mov [rbp+4Fh+var_98], r14 ; +0x249, 0x14034a449 mov [rbp+4Fh+var_90], 0Fh ; +0x24d, 0x14034a44d movups xmm0, xmmword ptr [r15] ; +0x255, 0x14034a455 movups xmmword ptr [rbp+4Fh+Block], xmm0 ; +0x259, 0x14034a459 jmp short loc_14034A49E ; +0x25d, 0x14034a45d mov rax, r14 ; +0x25f, 0x14034a45f or rax, 0Fh ; +0x262, 0x14034a462 cmp rax, rsi ; +0x266, 0x14034a466 ja short loc_14034A47A ; +0x269, 0x14034a469 mov rsi, rax ; +0x26b, 0x14034a46b mov ecx, 16h ; +0x26e, 0x14034a46e cmp rax, rcx ; +0x273, 0x14034a473 cmovb rsi, rcx ; +0x276, 0x14034a476 lea rcx, [rsi+1] ; +0x27a, 0x14034a47a call sub_14003D460 ; +0x27e, 0x14034a47e mov [rbp+4Fh+Block], rax ; +0x283, 0x14034a483 mov [rbp+4Fh+var_98], r14 ; +0x287, 0x14034a487 mov [rbp+4Fh+var_90], rsi ; +0x28b, 0x14034a48b lea r8, [r14+1]; Size ; +0x28f, 0x14034a48f mov rdx, r15; Src ; +0x293, 0x14034a493 mov rcx, rax; void * ; +0x296, 0x14034a496 call memcpy ; +0x299, 0x14034a499 lea r8, [rbp+4Fh+Block] ; +0x29e, 0x14034a49e lea rdx, [rbp+4Fh+var_68] ; +0x2a2, 0x14034a4a2 call GJBaseGameLayer__getParticleKey2 ; +0x2a6, 0x14034a4a6 nop ; +0x2ab, 0x14034a4ab mov r8, rax ; +0x2ac, 0x14034a4ac mov rdx, [rbp+4Fh+var_C8] ; +0x2af, 0x14034a4af mov r14, [rbp+4Fh+var_C0] ; +0x2b3, 0x14034a4b3 mov rcx, [r14+31A8h] ; +0x2b7, 0x14034a4b7 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 &) ; +0x2be, 0x14034a4be nop ; +0x2c4, 0x14034a4c4 lea rcx, [rbp+4Fh+var_68] ; +0x2c5, 0x14034a4c5 call sub_14003D310 ; +0x2c9, 0x14034a4c9 mov r15, [rbp+4Fh+var_B8] ; +0x2ce, 0x14034a4ce jmp short loc_14034A4DC ; +0x2d2, 0x14034a4d2 mov r13, [rbp+4Fh+var_70] ; +0x2d4, 0x14034a4d4 mov r12, [rbp+4Fh+Src] ; +0x2d8, 0x14034a4d8 lea rdx, [rbp+4Fh+Src] ; +0x2dc, 0x14034a4dc cmp r13, 0Fh ; +0x2e0, 0x14034a4e0 cmova rdx, r12 ; +0x2e4, 0x14034a4e4 xorps xmm0, xmm0 ; +0x2e8, 0x14034a4e8 movups xmmword ptr [rbp+4Fh+Block], xmm0 ; +0x2eb, 0x14034a4eb mov [rbp+4Fh+var_98], rdi ; +0x2ef, 0x14034a4ef mov [rbp+4Fh+var_90], rdi ; +0x2f3, 0x14034a4f3 inc rbx ; +0x2f7, 0x14034a4f7 cmp byte ptr [rdx+rbx], 0 ; +0x2fa, 0x14034a4fa jnz short loc_14034A4F7 ; +0x2fe, 0x14034a4fe mov r8, rbx ; +0x300, 0x14034a500 lea rcx, [rbp+4Fh+Block] ; +0x303, 0x14034a503 call sub_14003D230 ; +0x307, 0x14034a507 nop ; +0x30c, 0x14034a50c lea rdx, [rbp+4Fh+Block] ; +0x30d, 0x14034a50d mov rcx, [r14+31A8h] ; +0x311, 0x14034a511 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 &) ; +0x318, 0x14034a518 mov rsi, rax ; +0x31e, 0x14034a51e mov rdx, [rbp+4Fh+var_90] ; +0x321, 0x14034a521 cmp rdx, 0Fh ; +0x325, 0x14034a525 jbe short loc_14034A571 ; +0x329, 0x14034a529 inc rdx ; +0x32b, 0x14034a52b mov r8, [rbp+4Fh+Block] ; +0x32e, 0x14034a52e mov rcx, r8 ; +0x332, 0x14034a532 cmp rdx, 1000h ; +0x335, 0x14034a535 jb short loc_14034A569 ; +0x33c, 0x14034a53c add rdx, 27h ; ''' ; +0x33e, 0x14034a53e mov r8, [r8-8] ; +0x342, 0x14034a542 sub rcx, r8 ; +0x346, 0x14034a546 sub rcx, 8 ; +0x349, 0x14034a549 cmp rcx, 1Fh ; +0x34d, 0x14034a54d jbe short loc_14034A569 ; +0x351, 0x14034a551 mov [rsp+100h+Reserved], rdi; Reserved ; +0x353, 0x14034a553 xor r9d, r9d; LineNo ; +0x358, 0x14034a558 xor r8d, r8d; FileName ; +0x35b, 0x14034a55b xor edx, edx; FunctionName ; +0x35e, 0x14034a55e xor ecx, ecx; Expression ; +0x360, 0x14034a560 call cs:_invoke_watson ; +0x362, 0x14034a562 db 0CCh ; +0x368, 0x14034a568 mov rcx, r8; Block ; +0x369, 0x14034a569 call j_j_free ; +0x36c, 0x14034a56c mov [rbp+4Fh+var_98], rdi ; +0x371, 0x14034a571 mov [rbp+4Fh+var_90], 0Fh ; +0x375, 0x14034a575 mov byte ptr [rbp+4Fh+Block], 0 ; +0x37d, 0x14034a57d mov ebx, [r14+31A0h] ; +0x381, 0x14034a581 mov rcx, rsi ; +0x388, 0x14034a588 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x38b, 0x14034a58b cmp eax, ebx ; +0x391, 0x14034a591 jnb short loc_14034A5E3 ; +0x393, 0x14034a593 mov dl, 1 ; +0x395, 0x14034a595 mov rcx, r15 ; +0x397, 0x14034a597 call cs:?create@CCParticleSystemQuad@cocos2d@@SAPEAV12@PEBD_N@Z; cocos2d::CCParticleSystemQuad::create(char const *,bool) ; +0x39a, 0x14034a59a mov rdi, rax ; +0x3a0, 0x14034a5a0 mov rax, [rax] ; +0x3a3, 0x14034a5a3 mov edx, [rsp+100h+var_D0] ; +0x3a6, 0x14034a5a6 mov rcx, rdi ; +0x3aa, 0x14034a5aa call qword ptr [rax+40h] ; +0x3ad, 0x14034a5ad mov rax, [rdi] ; +0x3b0, 0x14034a5b0 mov edx, [rbp+4Fh+var_CC] ; +0x3b3, 0x14034a5b3 mov rcx, rdi ; +0x3b6, 0x14034a5b6 call qword ptr [rax+5F8h] ; +0x3b9, 0x14034a5b9 mov rcx, rdi ; +0x3bf, 0x14034a5bf call cs:?stopSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::stopSystem(void) ; +0x3c2, 0x14034a5c2 mov rax, [rdi] ; +0x3c8, 0x14034a5c8 xor edx, edx ; +0x3cb, 0x14034a5cb mov rcx, rdi ; +0x3cd, 0x14034a5cd call qword ptr [rax+150h] ; +0x3d0, 0x14034a5d0 mov rdx, rdi ; +0x3d6, 0x14034a5d6 mov rcx, rsi ; +0x3d9, 0x14034a5d9 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x3dc, 0x14034a5dc nop ; +0x3e2, 0x14034a5e2 lea rcx, [rbp+4Fh+Src] ; +0x3e3, 0x14034a5e3 call sub_14003D310 ; +0x3e7, 0x14034a5e7 mov rax, rdi ; +0x3ec, 0x14034a5ec mov rcx, [rbp+4Fh+var_48] ; +0x3ef, 0x14034a5ef xor rcx, rsp; StackCookie ; +0x3f3, 0x14034a5f3 call __security_check_cookie ; +0x3f6, 0x14034a5f6 add rsp, 0C8h ; +0x3fb, 0x14034a5fb pop r15 ; +0x402, 0x14034a602 pop r14 ; +0x404, 0x14034a604 pop r13 ; +0x406, 0x14034a606 pop r12 ; +0x408, 0x14034a608 pop rdi ; +0x40a, 0x14034a60a pop rsi ; +0x40b, 0x14034a60b pop rbx ; +0x40c, 0x14034a60c pop rbp ; +0x40d, 0x14034a60d retn ; +0x40e, 0x14034a60e call sub_140009D90 ; +0x40f, 0x14034a60f db 90h ; +0x414, 0x14034a614