// Elf Lag Fix

var pattern = scan('CC 55 8B EC 56 57 8B F9 8B 07 8B 50 04 FF D2 8B C8 E8');

if (pattern == NULL)
	send('Failed to apply patch.');
else
{
	patch(pattern.add(1), 0x32);
	patch(pattern.add(2), 0xC0);
	patch(pattern.add(3), 0xC2);
	patch(pattern.add(4), 0x04);
	patch(pattern.add(5), 0x00);
}

@@ -150,10 +150,8 @@
 lse%0A
-%7B%0A
 %09pat
@@ -173,133 +173,37 @@
 1), 
+%5B
 0x32
-);%0A%09patch(pattern.add(2), 0xC0);%0A%09patch(pattern.add(3), 0xC2);%0A%09patch(pattern.add(4), 0x04);%0A%09patch(pattern.add(5)
+, 0xC0, 0xC2, 0x04
 , 0x00
+%5D
 );%0A
-%7D%0A

Update ElfLagFix.js