; ; GJEffectManager::resetEffects from 0x140366300 to 0x1403665b8 (696 bytes) ; ; 7 xrefs: ; > GJBaseGameLayer::resetLevelVariables @ 0x1403454d0 ; > GJEffectManager::reset @ 0x140365534 ; > LevelEditorLayer::onPlaytest @ 0x1403fed9f ; > @ 0x1408bac00 ; > @ 0x1408bac34 ; > @ 0x1409216f8 ; > @ 0x140921704 ; ; 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:55 +0000 ; push rbx ; +0x0, 0x140366300 push rdi ; +0x2, 0x140366302 push r14 ; +0x3, 0x140366303 sub rsp, 20h ; +0x5, 0x140366305 mov rax, [rcx+158h] ; +0x9, 0x140366309 mov rbx, rcx ; +0x10, 0x140366310 mov [rsp+38h+arg_10], rsi ; +0x13, 0x140366313 cmp rax, [rcx+160h] ; +0x18, 0x140366318 jz short loc_140366328 ; +0x1f, 0x14036631f mov [rcx+160h], rax ; +0x21, 0x140366321 add rcx, 170h ; +0x28, 0x140366328 call sub_140370000 ; +0x2f, 0x14036632f xor r14d, r14d ; +0x34, 0x140366334 mov r10d, 2710h ; +0x37, 0x140366337 mov r9d, r14d ; +0x3d, 0x14036633d mov rdx, [rbx+310h] ; +0x40, 0x140366340 mov r8, r9 ; +0x47, 0x140366347 shr r8, 5 ; +0x4a, 0x14036634a mov ecx, r9d ; +0x4e, 0x14036634e and ecx, 1Fh ; +0x51, 0x140366351 inc r9 ; +0x54, 0x140366354 mov eax, [rdx+r8*4] ; +0x57, 0x140366357 btr eax, ecx ; +0x5b, 0x14036635b mov [rdx+r8*4], eax ; +0x5e, 0x14036635e sub r10, 1 ; +0x62, 0x140366362 jnz short loc_140366340 ; +0x66, 0x140366366 lea rcx, [rbx+1B0h] ; +0x68, 0x140366368 call sub_14035C120 ; +0x6f, 0x14036636f mov rsi, [rbx+1F8h] ; +0x74, 0x140366374 mov rdi, [rbx+1F0h] ; +0x7b, 0x14036637b cmp rdi, rsi ; +0x82, 0x140366382 jz short loc_1403663A7 ; +0x85, 0x140366385 lea rcx, [rdi+20h] ; +0x87, 0x140366387 call sub_140069730 ; +0x8b, 0x14036638b add rdi, 38h ; '8' ; +0x90, 0x140366390 cmp rdi, rsi ; +0x94, 0x140366394 jnz short loc_140366387 ; +0x97, 0x140366397 mov rax, [rbx+1F0h] ; +0x99, 0x140366399 mov [rbx+1F8h], rax ; +0xa0, 0x1403663a0 mov rsi, [rbx+268h] ; +0xa7, 0x1403663a7 mov rdi, [rbx+260h] ; +0xae, 0x1403663ae cmp rdi, rsi ; +0xb5, 0x1403663b5 jz short loc_1403663E0 ; +0xb8, 0x1403663b8 nop word ptr [rax+rax+00h] ; +0xba, 0x1403663ba lea rcx, [rdi+18h] ; +0xc0, 0x1403663c0 call sub_140069730 ; +0xc4, 0x1403663c4 add rdi, 30h ; '0' ; +0xc9, 0x1403663c9 cmp rdi, rsi ; +0xcd, 0x1403663cd jnz short loc_1403663C0 ; +0xd0, 0x1403663d0 mov rax, [rbx+260h] ; +0xd2, 0x1403663d2 mov [rbx+268h], rax ; +0xd9, 0x1403663d9 mov rsi, [rbx+250h] ; +0xe0, 0x1403663e0 mov rdi, [rbx+248h] ; +0xe7, 0x1403663e7 cmp rdi, rsi ; +0xee, 0x1403663ee jz short loc_140366413 ; +0xf1, 0x1403663f1 lea rcx, [rdi+20h] ; +0xf3, 0x1403663f3 call sub_140069730 ; +0xf7, 0x1403663f7 add rdi, 38h ; '8' ; +0xfc, 0x1403663fc cmp rdi, rsi ; +0x100, 0x140366400 jnz short loc_1403663F3 ; +0x103, 0x140366403 mov rax, [rbx+248h] ; +0x105, 0x140366405 mov [rbx+250h], rax ; +0x10c, 0x14036640c mov rdi, [rbx+518h] ; +0x113, 0x140366413 mov rdx, [rbx+500h] ; +0x11a, 0x14036641a test rdi, rdi ; +0x121, 0x140366421 jns short loc_140366448 ; +0x124, 0x140366424 mov rax, rdi ; +0x126, 0x140366426 neg rax ; +0x129, 0x140366429 jz short loc_140366448 ; +0x12c, 0x14036642c mov rax, rdi ; +0x12e, 0x14036642e mov rsi, rdx ; +0x131, 0x140366431 not rax ; +0x134, 0x140366434 shr rax, 5 ; +0x137, 0x140366437 lea rax, ds:4[rax*4] ; +0x13b, 0x14036643b sub rsi, rax ; +0x143, 0x140366443 jmp short loc_140366453 ; +0x146, 0x140366446 mov rax, rdi ; +0x148, 0x140366448 shr rax, 5 ; +0x14b, 0x14036644b lea rsi, [rdx+rax*4] ; +0x14f, 0x14036644f mov eax, 1Fh ; +0x153, 0x140366453 and rdi, rax ; +0x158, 0x140366458 cmp rdx, rsi ; +0x15b, 0x14036645b jnz short loc_140366465 ; +0x15e, 0x14036645e test rdi, rdi ; +0x160, 0x140366460 jz short loc_1403664BE ; +0x163, 0x140366463 mov [rsp+38h+arg_8], rbp ; +0x165, 0x140366465 mov ebp, 0FFFFFFFFh ; +0x16a, 0x14036646a cmp rdx, rsi ; +0x16f, 0x14036646f jnz short loc_14036648A ; +0x172, 0x140366472 mov ecx, 20h ; ' ' ; +0x174, 0x140366474 sub cl, dil ; +0x179, 0x140366479 shr ebp, cl ; +0x17c, 0x14036647c mov eax, ebp ; +0x17e, 0x14036647e not eax ; +0x180, 0x140366480 and eax, [rdx] ; +0x182, 0x140366482 or eax, ebp ; +0x184, 0x140366484 mov [rdx], eax ; +0x186, 0x140366486 jmp short loc_1403664B9 ; +0x188, 0x140366488 lea rcx, [rdx+4]; void * ; +0x18a, 0x14036648a mov [rdx], ebp ; +0x18e, 0x14036648e mov r8, rsi ; +0x190, 0x140366490 mov edx, 0FFh; Val ; +0x193, 0x140366493 sub r8, rcx; Size ; +0x198, 0x140366498 call memset ; +0x19b, 0x14036649b test rdi, rdi ; +0x1a0, 0x1403664a0 jz short loc_1403664B9 ; +0x1a3, 0x1403664a3 mov ecx, 20h ; ' ' ; +0x1a5, 0x1403664a5 sub cl, dil ; +0x1aa, 0x1403664aa shr ebp, cl ; +0x1ad, 0x1403664ad mov eax, ebp ; +0x1af, 0x1403664af not eax ; +0x1b1, 0x1403664b1 and eax, [rsi] ; +0x1b3, 0x1403664b3 or eax, ebp ; +0x1b5, 0x1403664b5 mov [rsi], eax ; +0x1b7, 0x1403664b7 mov rbp, [rsp+38h+arg_8] ; +0x1b9, 0x1403664b9 lea rcx, [rbx+520h] ; +0x1be, 0x1403664be call sub_14003EB60 ; +0x1c5, 0x1403664c5 lea rcx, [rbx+330h] ; +0x1ca, 0x1403664ca call sub_14003EB60 ; +0x1d1, 0x1403664d1 mov rcx, rbx ; +0x1d6, 0x1403664d6 call GJEffectManager__transferPersistentItems ; +0x1d9, 0x1403664d9 lea rcx, [rbx+560h] ; +0x1de, 0x1403664de mov [rbx+3F0h], r14d ; +0x1e5, 0x1403664e5 call sub_14016EDD0 ; +0x1ec, 0x1403664ec mov rsi, [rbx+5B8h] ; +0x1f1, 0x1403664f1 mov rdi, [rbx+5B0h] ; +0x1f8, 0x1403664f8 cmp rdi, rsi ; +0x1ff, 0x1403664ff jz short loc_140366524 ; +0x202, 0x140366502 lea rcx, [rdi+30h] ; +0x204, 0x140366504 call sub_140069730 ; +0x208, 0x140366508 add rdi, 48h ; 'H' ; +0x20d, 0x14036650d cmp rdi, rsi ; +0x211, 0x140366511 jnz short loc_140366504 ; +0x214, 0x140366514 mov rax, [rbx+5B0h] ; +0x216, 0x140366516 mov [rbx+5B8h], rax ; +0x21d, 0x14036651d lea rcx, [rbx+570h] ; +0x224, 0x140366524 call sub_14003EB60 ; +0x22b, 0x14036652b lea rcx, [rbx+208h] ; +0x230, 0x140366530 call sub_14036FE40 ; +0x237, 0x140366537 lea rcx, [rbx+4B8h] ; +0x23c, 0x14036653c call sub_14036F7E0 ; +0x243, 0x140366543 mov rax, [rbx+480h] ; +0x248, 0x140366548 mov rsi, [rsp+38h+arg_10] ; +0x24f, 0x14036654f mov r10, [rax] ; +0x254, 0x140366554 cmp r10, rax ; +0x257, 0x140366557 jz short loc_14036659A ; +0x25a, 0x14036655a nop dword ptr [rax+00h] ; +0x25c, 0x14036655c lea rdx, [r10+10h] ; +0x260, 0x140366560 lea rcx, [rbx+3B0h] ; +0x264, 0x140366564 call sub_140066B50 ; +0x26b, 0x14036656b test rax, rax ; +0x270, 0x140366570 jnz short loc_14036658E ; +0x273, 0x140366573 lea rcx, [rbx+478h] ; +0x275, 0x140366575 mov r8, r10 ; +0x27c, 0x14036657c lea rdx, [rsp+38h+arg_0] ; +0x27f, 0x14036657f call sub_14036F1B0 ; +0x284, 0x140366584 mov r10, [rax] ; +0x289, 0x140366589 jmp short loc_140366591 ; +0x28c, 0x14036658c mov r10, [r10] ; +0x28e, 0x14036658e cmp r10, [rbx+480h] ; +0x291, 0x140366591 jnz short loc_140366560 ; +0x298, 0x140366598 mov [rbx+808h], r14 ; +0x29a, 0x14036659a mov [rbx+810h], r14 ; +0x2a1, 0x1403665a1 mov [rbx+818h], r14 ; +0x2a8, 0x1403665a8 add rsp, 20h ; +0x2af, 0x1403665af pop r14 ; +0x2b3, 0x1403665b3 pop rdi ; +0x2b5, 0x1403665b5 pop rbx ; +0x2b6, 0x1403665b6 retn ; +0x2b7, 0x1403665b7