; ; GJBaseGameLayer::claimParticle from 0x14034a620 to 0x14034a83d (541 bytes) ; ; 2 xrefs: ; > GameObject::claimParticle @ 0x140295fbb ; > @ 0x14091fff4 ; ; 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_10], rbx ; +0x0, 0x14034a620 mov [rsp+arg_18], rbp ; +0x5, 0x14034a625 push rsi ; +0xa, 0x14034a62a push rdi ; +0xb, 0x14034a62b push r14 ; +0xc, 0x14034a62c sub rsp, 0B0h ; +0xe, 0x14034a62e mov rax, cs:__security_cookie ; +0x15, 0x14034a635 xor rax, rsp ; +0x1c, 0x14034a63c mov [rsp+0C8h+var_28], rax ; +0x1f, 0x14034a63f mov rdi, rdx ; +0x27, 0x14034a647 mov rbp, rcx ; +0x2a, 0x14034a64a mov [rsp+0C8h+var_70], rdx ; +0x2d, 0x14034a64d cmp qword ptr [rdx+18h], 0Fh ; +0x32, 0x14034a652 jbe short loc_14034A65C ; +0x37, 0x14034a657 mov rdx, [rdx] ; +0x39, 0x14034a659 xorps xmm0, xmm0 ; +0x3c, 0x14034a65c movups xmmword ptr [rsp+0C8h+Block], xmm0 ; +0x3f, 0x14034a65f xorps xmm1, xmm1 ; +0x44, 0x14034a664 movdqu [rsp+0C8h+var_58], xmm1 ; +0x47, 0x14034a667 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x4d, 0x14034a66d inc r8 ; +0x54, 0x14034a674 cmp byte ptr [rdx+r8], 0 ; +0x57, 0x14034a677 jnz short loc_14034A674 ; +0x5c, 0x14034a67c lea rcx, [rsp+0C8h+Block] ; +0x5e, 0x14034a67e call sub_14003D230 ; +0x63, 0x14034a683 nop ; +0x68, 0x14034a688 lea rdx, [rsp+0C8h+Block] ; +0x69, 0x14034a689 mov rcx, [rbp+31A8h] ; +0x6e, 0x14034a68e 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 &) ; +0x75, 0x14034a695 mov r14, rax ; +0x7b, 0x14034a69b mov rdx, qword ptr [rsp+0C8h+var_58+8] ; +0x7e, 0x14034a69e cmp rdx, 0Fh ; +0x83, 0x14034a6a3 jbe short loc_14034A6F4 ; +0x87, 0x14034a6a7 inc rdx ; +0x89, 0x14034a6a9 mov r8, [rsp+0C8h+Block] ; +0x8c, 0x14034a6ac mov rcx, r8 ; +0x91, 0x14034a6b1 cmp rdx, 1000h ; +0x94, 0x14034a6b4 jb short loc_14034A6EC ; +0x9b, 0x14034a6bb add rdx, 27h ; ''' ; +0x9d, 0x14034a6bd mov r8, [r8-8] ; +0xa1, 0x14034a6c1 sub rcx, r8 ; +0xa5, 0x14034a6c5 sub rcx, 8 ; +0xa8, 0x14034a6c8 cmp rcx, 1Fh ; +0xac, 0x14034a6cc jbe short loc_14034A6EC ; +0xb0, 0x14034a6d0 mov [rsp+0C8h+Reserved], 0; Reserved ; +0xb2, 0x14034a6d2 xor r9d, r9d; LineNo ; +0xbb, 0x14034a6db xor r8d, r8d; FileName ; +0xbe, 0x14034a6de xor edx, edx; FunctionName ; +0xc1, 0x14034a6e1 xor ecx, ecx; Expression ; +0xc3, 0x14034a6e3 call cs:_invoke_watson ; +0xc5, 0x14034a6e5 align 4 ; +0xcb, 0x14034a6eb mov rcx, r8; Block ; +0xcc, 0x14034a6ec call j_j_free ; +0xcf, 0x14034a6ef movdqa xmm0, cs:Size ; +0xd4, 0x14034a6f4 movdqu [rsp+0C8h+var_58], xmm0 ; +0xdc, 0x14034a6fc mov byte ptr [rsp+0C8h+Block], 0 ; +0xe2, 0x14034a702 test r14, r14 ; +0xe7, 0x14034a707 jz loc_14034A80B ; +0xea, 0x14034a70a mov rcx, r14 ; +0xf0, 0x14034a710 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf3, 0x14034a713 test eax, eax ; +0xf9, 0x14034a719 jz loc_14034A80B ; +0xfb, 0x14034a71b mov rcx, r14 ; +0x101, 0x14034a721 call cs:?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x104, 0x14034a724 mov rsi, rax ; +0x10a, 0x14034a72a mov rdx, rdi ; +0x10d, 0x14034a72d lea rcx, [rsp+0C8h+var_90] ; +0x110, 0x14034a730 call sub_14003F4F0 ; +0x115, 0x14034a735 mov r8, rax ; +0x11a, 0x14034a73a lea rdx, [rsp+0C8h+var_48] ; +0x11d, 0x14034a73d call GJBaseGameLayer__getParticleKey2 ; +0x125, 0x14034a745 nop ; +0x12a, 0x14034a74a mov rdx, rax ; +0x12b, 0x14034a74b mov rcx, [rbp+31A8h] ; +0x12e, 0x14034a74e 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 &) ; +0x135, 0x14034a755 mov rbx, rax ; +0x13b, 0x14034a75b lea rcx, [rsp+0C8h+var_48] ; +0x13e, 0x14034a75e call sub_14003D310 ; +0x146, 0x14034a766 mov rdx, rsi ; +0x14b, 0x14034a76b mov rcx, rbx ; +0x14e, 0x14034a76e call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x151, 0x14034a771 mov dl, 1 ; +0x157, 0x14034a777 mov rcx, r14 ; +0x159, 0x14034a779 call cs:?removeLastObject@CCArray@cocos2d@@QEAAX_N@Z; cocos2d::CCArray::removeLastObject(bool) ; +0x15c, 0x14034a77c mov rax, [rsi] ; +0x162, 0x14034a782 mov rcx, rsi ; +0x165, 0x14034a785 call qword ptr [rax+1F8h] ; +0x168, 0x14034a788 test rax, rax ; +0x16e, 0x14034a78e jnz short loc_14034A7DF ; +0x171, 0x14034a791 mov r14, [rbp+10C8h] ; +0x173, 0x14034a793 mov rax, [rbp+3260h] ; +0x17a, 0x14034a79a test rax, rax ; +0x181, 0x14034a7a1 jz short loc_14034A7C4 ; +0x184, 0x14034a7a4 cmp byte ptr [rax+466h], 0 ; +0x186, 0x14034a7a6 jz short loc_14034A7C4 ; +0x18d, 0x14034a7ad mov eax, [rax+45Ch] ; +0x18f, 0x14034a7af sub eax, 2 ; +0x195, 0x14034a7b5 cmp eax, 5 ; +0x198, 0x14034a7b8 ja short loc_14034A7C4 ; +0x19b, 0x14034a7bb mov r14, [rbp+10D0h] ; +0x19d, 0x14034a7bd mov rbx, [r14] ; +0x1a4, 0x14034a7c4 mov rax, [rsi] ; +0x1a7, 0x14034a7c7 mov rcx, rsi ; +0x1aa, 0x14034a7ca call qword ptr [rax+38h] ; +0x1ad, 0x14034a7cd mov r8d, eax ; +0x1b0, 0x14034a7d0 mov rdx, rsi ; +0x1b3, 0x14034a7d3 mov rcx, r14 ; +0x1b6, 0x14034a7d6 call qword ptr [rbx+1C8h] ; +0x1b9, 0x14034a7d9 mov rdx, rsi ; +0x1bf, 0x14034a7df mov rcx, [rbp+3208h] ; +0x1c2, 0x14034a7e2 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x1c9, 0x14034a7e9 mov rax, [rsi] ; +0x1cf, 0x14034a7ef mov dl, 1 ; +0x1d2, 0x14034a7f2 mov rcx, rsi ; +0x1d4, 0x14034a7f4 call qword ptr [rax+150h] ; +0x1d7, 0x14034a7f7 nop ; +0x1dd, 0x14034a7fd mov rcx, rdi ; +0x1de, 0x14034a7fe call sub_14003D310 ; +0x1e1, 0x14034a801 mov rax, rsi ; +0x1e6, 0x14034a806 jmp short loc_14034A815 ; +0x1e9, 0x14034a809 mov rcx, rdi ; +0x1eb, 0x14034a80b call sub_14003D310 ; +0x1ee, 0x14034a80e xor eax, eax ; +0x1f3, 0x14034a813 mov rcx, [rsp+0C8h+var_28] ; +0x1f5, 0x14034a815 xor rcx, rsp; StackCookie ; +0x1fd, 0x14034a81d call __security_check_cookie ; +0x200, 0x14034a820 lea r11, [rsp+0C8h+var_18] ; +0x205, 0x14034a825 mov rbx, [r11+30h] ; +0x20d, 0x14034a82d mov rbp, [r11+38h] ; +0x211, 0x14034a831 mov rsp, r11 ; +0x215, 0x14034a835 pop r14 ; +0x218, 0x14034a838 pop rdi ; +0x21a, 0x14034a83a pop rsi ; +0x21b, 0x14034a83b retn ; +0x21c, 0x14034a83c