Function at 0x40985a
Capabilities:
Compress data using lzo

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
add eax, ebx
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 8], eax
add ebx, 4
mov cl, byte [ebx + 2]
lea eax, [ebx + 3]
mov dword [ebp - 0x14], eax
lea edi, [ebx + 1]
mov al, byte [eax]
mov dword [ebp - 0x18], edi
movzx eax, al
movzx ecx, cl
shl eax, 6
xor eax, ecx
movzx ecx, byte [edi]
shl eax, 5
xor eax, ecx
movzx ecx, byte [ebx]
shl eax, 5
xor eax, ecx
imul eax, eax, 0x21
shr eax, 5
and eax, 0x3fff
mov ecx, dword [eax*4 + 0x416cdc]
lea edi, [eax*4 + 0x416cdc]
cmp ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
jb 0x409b1a
mov edx, ebx
mov dword [ebp + 0xc], ebx
sub edx, ecx
mov dword [ebp + 0xc], edx
je 0x409b1a
cmp edx, 0xbfff
ja 0x409b1a
cmp edx, 0x800
jbe 0x409947
mov edx, dword [ebp - 0x14]
mov dl, byte [edx]
cmp byte [ecx + 3], dl
je 0x409947
and eax, 0x7ff
xor eax, 0x201f
mov ecx, dword [eax*4 + 0x416cdc]
lea edi, [eax*4 + 0x416cdc]
cmp ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
jb 0x409b1a
mov eax, ebx
sub eax, ecx
mov dword [ebp + 0xc], eax
je 0x409b1a
cmp eax, 0xbfff
ja 0x409b1a
cmp eax, 0x800
jbe 0x409944
mov eax, ecx
cmp byte [eax + 3], dl
jne 0x409b1a
mov ecx, dword [ebp - 0xc]
mov ax, word [ecx]
mov edx, dword [ebp + 0xc]
cmp ax, word [ebx]
jne 0x409b1a
mov al, byte [ebx + 2]
cmp byte [ecx + 2], al
jne 0x409b1a
mov dword [edi], ebx
sub ebx, dword [ebp - 4]
test ebx, ebx
jle 0x4099db
mov eax, ebx
cmp eax, 3
mov dword [ebp - 0x18], eax
ja 0x40997a
or byte [esi - 2], al
jmp 0x4099cd
cmp eax, 0x12
ja 0x409986
mov bl, al
sub bl, 3
jmp 0x4099ca
and byte [esi], 0
lea ebx, [eax - 0x12]
mov edi, 0xff
inc esi
cmp ebx, edi
jbe 0x4099ca
lea eax, [ebx - 1]
xor edx, edx
div edi
mov edi, esi
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x10], ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esi, edx
rep stosb byte es:[edi], al
sub ebx, 0xff
dec dword [ebp - 0x10]
jne 0x4099b6
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov byte [esi], bl
inc esi
mov edi, dword [ebp - 4]
mov bl, byte [edi]
mov byte [esi], bl
inc esi
inc dword [ebp - 4]
dec eax
jne 0x4099cd
mov ebx, dword [ebp - 0x14]
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 3], al
jne 0x409abb
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 4], al
jne 0x409abb
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 5], al
jne 0x409abb
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 6], al
jne 0x409abb
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 7], al
jne 0x409abb
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 8], al
jne 0x409abb
lea edi, [ecx + 9]
cmp ebx, dword [ebp - 8]
jae 0x409a38
mov al, byte [edi]
cmp al, byte [ebx]
jne 0x409a38
inc edi
inc ebx
jmp 0x409a29
mov eax, ebx
mov edi, 0x4000
sub eax, dword [ebp - 4]
cmp edx, edi
ja 0x409a5e
dec edx
cmp eax, 0x21
mov dword [ebp + 0xc], edx
jbe 0x409aeb
sub eax, 0x21
mov byte [esi], 0x20
mov dword [ebp - 0xc], eax
jmp 0x409a7f
sub edx, edi
cmp eax, 9
mov dword [ebp + 0xc], edx
jbe 0x409af5
mov ecx, edx
sub eax, 9
shr ecx, 0xb
and cl, 8
mov dword [ebp - 0xc], eax
or cl, 0x10
mov byte [esi], cl
mov ecx, 0xff
inc esi
cmp eax, ecx
jbe 0x409aef
dec eax
xor edx, edx
div ecx
mov edi, esi
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x10], ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esi, edx
rep stosb byte es:[edi], al
sub dword [ebp - 0xc], 0xff
dec dword [ebp - 0x10]
jne 0x409aa7
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
jmp 0x409aef
dec ebx
mov eax, ebx
sub eax, dword [ebp - 4]
cmp edx, 0x800
ja 0x409ae1
dec edx
add al, 7
mov cl, dl
and cl, 7
shl al, 5
shl cl, 2
or al, cl
mov byte [esi], al
inc esi
shr edx, 3
jmp 0x409b12
mov ecx, 0x4000
cmp edx, ecx
ja 0x409af3
dec edx
sub al, 2
or al, 0x20
mov byte [esi], al
jmp 0x409b06
sub edx, ecx
mov ecx, edx
sub al, 2
shr ecx, 0xb
and cl, 8
or cl, al
or cl, 0x10
mov byte [esi], cl
mov al, dl
inc esi
shl al, 2
mov byte [esi], al
inc esi
shr edx, 6
mov byte [esi], dl
inc esi
mov dword [ebp - 4], ebx
jmp 0x409b1f
mov dword [edi], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add eax, 0xfffffff3
cmp ebx, eax
jb 0x409877
sub esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret