; ; GJEffectManager::reset from 0x1403653a0 to 0x1403655c1 (545 bytes) ; ; 6 xrefs: ; > GJEffectManager::loadFromState @ 0x14036ebdc ; > LevelEditorLayer::updateGameObjects @ 0x1403faada ; > LevelEditorLayer::onPlaytest @ 0x1403fea1a ; > LevelEditorLayer::onStopPlaytest @ 0x1404004fe ; > PlayLayer::loadDefaultColors @ 0x140510798 ; > @ 0x1409215f0 ; ; 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:54 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x1403653a0 mov [rsp+arg_8], rsi ; +0x5, 0x1403653a5 push rdi ; +0xa, 0x1403653aa sub rsp, 20h ; +0xb, 0x1403653ab mov rdi, rcx ; +0xf, 0x1403653af add rcx, 2A0h ; +0x12, 0x1403653b2 call sub_14003EB60 ; +0x19, 0x1403653b9 mov rcx, [rdi+278h] ; +0x1e, 0x1403653be call cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x25, 0x1403653c5 mov rcx, [rdi+280h] ; +0x2b, 0x1403653cb call cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x32, 0x1403653d2 mov rcx, [rdi+148h] ; +0x38, 0x1403653d8 call cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x3f, 0x1403653df lea rdx, [rdi+2E0h] ; +0x45, 0x1403653e5 xor ebx, ebx ; +0x4c, 0x1403653ec mov rax, [rdx] ; +0x4e, 0x1403653ee lea rcx, [rax+2268h] ; +0x51, 0x1403653f1 cmp rax, rdx ; +0x58, 0x1403653f8 ja short loc_140365426 ; +0x5b, 0x1403653fb cmp rcx, rdx ; +0x5d, 0x1403653fd jb short loc_140365426 ; +0x60, 0x140365400 lea rcx, ds:0[rbx*8] ; +0x62, 0x140365402 nop word ptr [rax+rax+00h] ; +0x6a, 0x14036540a mov rax, [rdx] ; +0x70, 0x140365410 mov [rcx+rax], rbx ; +0x73, 0x140365413 add rcx, 8 ; +0x77, 0x140365417 cmp rcx, 2268h ; +0x7b, 0x14036541b jle short loc_140365410 ; +0x82, 0x140365422 jmp short loc_140365470 ; +0x84, 0x140365424 mov ecx, 89h ; +0x86, 0x140365426 nop dword ptr [rax+rax+00h] ; +0x8b, 0x14036542b mov [rax], rbx ; +0x90, 0x140365430 mov [rax+8], rbx ; +0x93, 0x140365433 mov [rax+10h], rbx ; +0x97, 0x140365437 lea rax, [rax+40h] ; +0x9b, 0x14036543b mov [rax-28h], rbx ; +0x9f, 0x14036543f mov [rax-20h], rbx ; +0xa3, 0x140365443 mov [rax-18h], rbx ; +0xa7, 0x140365447 mov [rax-10h], rbx ; +0xab, 0x14036544b mov [rax-8], rbx ; +0xaf, 0x14036544f sub rcx, 1 ; +0xb3, 0x140365453 jnz short loc_140365430 ; +0xb7, 0x140365457 mov [rax], rbx ; +0xb9, 0x140365459 mov [rax+8], rbx ; +0xbc, 0x14036545c mov [rax+10h], rbx ; +0xc0, 0x140365460 mov [rax+18h], rbx ; +0xc4, 0x140365464 mov [rax+20h], rbx ; +0xc8, 0x140365468 mov [rax+28h], rbx ; +0xcc, 0x14036546c lea rdx, [rdi+288h] ; +0xd0, 0x140365470 mov rcx, [rdx]; void * ; +0xd7, 0x140365477 lea rax, [rcx+13878h] ; +0xda, 0x14036547a cmp rcx, rdx ; +0xe1, 0x140365481 ja short loc_1403654A9 ; +0xe4, 0x140365484 cmp rax, rdx ; +0xe6, 0x140365486 jb short loc_1403654A9 ; +0xe9, 0x140365489 lea rcx, ds:0[rbx*8] ; +0xeb, 0x14036548b mov rax, [rdx] ; +0xf3, 0x140365493 mov [rcx+rax], rbx ; +0xf6, 0x140365496 add rcx, 8 ; +0xfa, 0x14036549a cmp rcx, 13878h ; +0xfe, 0x14036549e jle short loc_140365493 ; +0x105, 0x1403654a5 jmp short loc_1403654B6 ; +0x107, 0x1403654a7 xor edx, edx; Val ; +0x109, 0x1403654a9 mov r8d, 13880h; Size ; +0x10b, 0x1403654ab call memset ; +0x111, 0x1403654b1 mov rcx, [rdi+150h] ; +0x116, 0x1403654b6 test rcx, rcx ; +0x11d, 0x1403654bd jz short loc_140365531 ; +0x120, 0x1403654c0 mov rcx, [rcx+38h] ; +0x122, 0x1403654c2 test rcx, rcx ; +0x126, 0x1403654c6 jz short loc_140365531 ; +0x129, 0x1403654c9 mov rdx, [rcx+120h] ; +0x12b, 0x1403654cb movzx eax, cs:word_140703460 ; +0x132, 0x1403654d2 mov rcx, [rcx+108h] ; +0x139, 0x1403654d9 mov [rcx+144h], ax ; +0x140, 0x1403654e0 movzx eax, cs:byte_140703462 ; +0x147, 0x1403654e7 mov [rcx+146h], al ; +0x14e, 0x1403654ee movzx eax, cs:word_140703460 ; +0x154, 0x1403654f4 mov [rcx+147h], ax ; +0x15b, 0x1403654fb movzx eax, cs:byte_140703462 ; +0x162, 0x140365502 mov [rcx+149h], al ; +0x169, 0x140365509 mov dword ptr [rcx+140h], 437F0000h ; +0x16f, 0x14036550f mov [rcx+158h], rbx ; +0x179, 0x140365519 mov rcx, rdx ; +0x180, 0x140365520 test rdx, rdx ; +0x183, 0x140365523 jz short loc_140365531 ; +0x186, 0x140365526 mov rdx, [rdx+120h] ; +0x188, 0x140365528 jmp short loc_1403654D2 ; +0x18f, 0x14036552f mov rcx, rdi ; +0x191, 0x140365531 call GJEffectManager__resetEffects ; +0x194, 0x140365534 mov rsi, [rdi+618h] ; +0x199, 0x140365539 mov rbx, [rdi+610h] ; +0x1a0, 0x140365540 cmp rbx, rsi ; +0x1a7, 0x140365547 jz short loc_140365582 ; +0x1aa, 0x14036554a nop dword ptr [rax+00h] ; +0x1ac, 0x14036554c lea rcx, [rbx+1E8h] ; +0x1b0, 0x140365550 call sub_140069730 ; +0x1b7, 0x140365557 lea rcx, [rbx+1B8h] ; +0x1bc, 0x14036555c call sub_1403620A0 ; +0x1c3, 0x140365563 add rbx, 208h ; +0x1c8, 0x140365568 cmp rbx, rsi ; +0x1cf, 0x14036556f jnz short loc_140365550 ; +0x1d2, 0x140365572 mov rax, [rdi+610h] ; +0x1d4, 0x140365574 mov [rdi+618h], rax ; +0x1db, 0x14036557b lea rcx, [rdi+628h] ; +0x1e2, 0x140365582 call sub_14036FB50 ; +0x1e9, 0x140365589 lea rcx, [rdi+6D8h] ; +0x1ee, 0x14036558e call sub_140066610 ; +0x1f5, 0x140365595 mov rax, [rdi+798h] ; +0x1fa, 0x14036559a cmp rax, [rdi+7A0h] ; +0x201, 0x1403655a1 jz short loc_1403655B1 ; +0x208, 0x1403655a8 mov [rdi+7A0h], rax ; +0x20a, 0x1403655aa mov rbx, [rsp+28h+arg_0] ; +0x211, 0x1403655b1 mov rsi, [rsp+28h+arg_8] ; +0x216, 0x1403655b6 add rsp, 20h ; +0x21b, 0x1403655bb pop rdi ; +0x21f, 0x1403655bf retn ; +0x220, 0x1403655c0