; ; cocos2d::CCParticleSystem::initWithTotalParticles from 0x18006ad50 to 0x18006ae66 (278 bytes) ; ; 4 xrefs: ; > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006cbc9 ; > @ 0x180105a20 ; > @ 0x18014cf68 ; > @ 0x1801bdf30 ; ; 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:21:54 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x18006ad50 mov [rsp+arg_8], rsi ; +0x5, 0x18006ad55 push rdi ; +0xa, 0x18006ad5a sub rsp, 20h ; +0xb, 0x18006ad5b mov rbx, rcx ; +0xf, 0x18006ad5f mov [rcx+29Ch], edx ; +0x12, 0x18006ad62 mov rcx, [rcx+1A8h]; Block ; +0x18, 0x18006ad68 movzx esi, r8b ; +0x1f, 0x18006ad6f mov edi, edx ; +0x23, 0x18006ad73 test rcx, rcx ; +0x25, 0x18006ad75 jz short loc_18006AD8B ; +0x28, 0x18006ad78 call cs:__imp_free ; +0x2a, 0x18006ad7a mov qword ptr [rbx+1A8h], 0 ; +0x30, 0x18006ad80 mov ecx, [rbx+29Ch]; Count ; +0x3b, 0x18006ad8b mov edx, 94h; Size ; +0x41, 0x18006ad91 call cs:calloc ; +0x46, 0x18006ad96 mov [rbx+1A8h], rax ; +0x4c, 0x18006ad9c test rax, rax ; +0x53, 0x18006ada3 jnz short loc_18006ADC2 ; +0x56, 0x18006ada6 mov rcx, rbx; this ; +0x58, 0x18006ada8 call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x5b, 0x18006adab xor al, al ; +0x60, 0x18006adb0 mov rbx, [rsp+28h+arg_0] ; +0x62, 0x18006adb2 mov rsi, [rsp+28h+arg_8] ; +0x67, 0x18006adb7 add rsp, 20h ; +0x6c, 0x18006adbc pop rdi ; +0x70, 0x18006adc0 retn ; +0x71, 0x18006adc1 cmp qword ptr [rbx+1B8h], 0 ; +0x72, 0x18006adc2 mov [rbx+1C8h], edi ; +0x7a, 0x18006adca jz short loc_18006ADFE ; +0x80, 0x18006add0 xor edx, edx ; +0x82, 0x18006add2 cmp [rbx+29Ch], edx ; +0x84, 0x18006add4 jbe short loc_18006ADFE ; +0x8a, 0x18006adda nop dword ptr [rax+00h] ; +0x8c, 0x18006addc mov eax, edx ; +0x90, 0x18006ade0 imul rcx, rax, 94h ; +0x92, 0x18006ade2 mov rax, [rbx+1A8h] ; +0x99, 0x18006ade9 mov [rcx+rax+48h], edx ; +0xa0, 0x18006adf0 inc edx ; +0xa4, 0x18006adf4 cmp edx, [rbx+29Ch] ; +0xa6, 0x18006adf6 jb short loc_18006ADE0 ; +0xac, 0x18006adfc mov byte ptr [rbx+1CCh], 1 ; +0xae, 0x18006adfe mov dword ptr [rbx+2A8h], 1 ; +0xb5, 0x18006ae05 mov dword ptr [rbx+2ACh], 303h ; +0xbf, 0x18006ae0f mov dword ptr [rbx+2B4h], 0 ; +0xc9, 0x18006ae19 mov dword ptr [rbx+2BCh], 0 ; +0xd3, 0x18006ae23 mov byte ptr [rbx+2B8h], 0 ; +0xdd, 0x18006ae2d mov byte ptr [rbx+1C4h], 0 ; +0xe4, 0x18006ae34 test sil, sil ; +0xeb, 0x18006ae3b jnz short loc_18006AE54 ; +0xee, 0x18006ae3e mov edx, 1; int ; +0xf0, 0x18006ae40 mov rcx, rbx; this ; +0xf5, 0x18006ae45 call ?scheduleUpdateWithPriority@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::scheduleUpdateWithPriority(int) ; +0xf8, 0x18006ae48 mov byte ptr [rbx+235h], 1 ; +0xfd, 0x18006ae4d mov rbx, [rsp+28h+arg_0] ; +0x104, 0x18006ae54 mov al, 1 ; +0x109, 0x18006ae59 mov rsi, [rsp+28h+arg_8] ; +0x10b, 0x18006ae5b add rsp, 20h ; +0x110, 0x18006ae60 pop rdi ; +0x114, 0x18006ae64 retn ; +0x115, 0x18006ae65