Function at 0x40b430
Capabilities:
Compress data using lzo

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
lea eax, [ecx + edx]
mov edx, dword [ebp + 8]
push esi
mov dword [ebp - 0x24], eax
add eax, 0xfffffff3
mov esi, ecx
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
lea ebx, [ecx + 4]
lea eax, [ebx + 3]
mov dword [ebp - 0x30], eax
mov al, byte [eax]
movzx ecx, al
mov byte [ebp - 1], al
movzx eax, byte [ebx + 2]
shl ecx, 6
xor ecx, eax
movzx eax, byte [ebx + 1]
lea edi, [ebx + 1]
shl ecx, 5
xor ecx, eax
movzx eax, byte [ebx]
shl ecx, 5
xor ecx, eax
mov eax, ecx
shl eax, 5
add eax, ecx
mov ecx, dword [ebp + 0x10]
shr eax, 5
and eax, 0x3fff
mov dword [ebp - 0x2c], edi
lea edi, [ecx + eax*4]
mov dword [ebp - 0x10], edi
mov edi, dword [edi]
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp - 0x18]
jb 0x40b741
mov ecx, ebx
sub ecx, edi
mov dword [ebp - 8], ecx
lea edi, [ecx - 1]
mov dword [ebp - 0xc], edi
cmp edi, 0xbffe
mov edi, dword [ebp - 0x14]
ja 0x40b741
cmp ecx, 0x800
jbe 0x40b520
mov cl, byte [ebp - 1]
cmp byte [edi + 3], cl
je 0x40b520
mov ecx, dword [ebp + 0x10]
and eax, 0x7ff
xor eax, 0x201f
lea edi, [ecx + eax*4]
mov dword [ebp - 0x10], edi
mov edi, dword [edi]
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp - 0x18]
jb 0x40b741
mov ecx, ebx
sub ecx, edi
mov dword [ebp - 8], ecx
lea eax, [ecx - 1]
mov dword [ebp - 0xc], eax
cmp eax, 0xbffe
ja 0x40b741
cmp ecx, 0x800
jbe 0x40b520
mov al, byte [ebp - 1]
cmp byte [edi + 3], al
jne 0x40b741
mov ax, word [edi]
cmp ax, word [ebx]
jne 0x40b741
mov al, byte [ebx + 2]
cmp byte [edi + 2], al
jne 0x40b741
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
sub ebx, esi
je 0x40b5ba
cmp ebx, 3
ja 0x40b54b
or byte [edx - 2], bl
jmp 0x40b5b1
cmp ebx, 0x12
ja 0x40b556
mov al, bl
sub al, 3
jmp 0x40b5ae
lea eax, [ebx - 0x12]
mov byte [edx], 0
inc edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], edx
cmp eax, 0xff
jbe 0x40b5ae
lea ecx, [eax - 0x100]
mov eax, 0x80808081
mul ecx
shr edx, 7
inc edx
mov ecx, edx
mov esi, ecx
shr ecx, 2
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x2c]
mov ecx, esi
add edx, ecx
lea esp, [esp]
sub eax, 0xff
dec ecx
jne 0x40b5a0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov byte [edx], al
inc edx
mov al, byte [esi]
mov byte [edx], al
inc edx
inc esi
dec ebx
jne 0x40b5b1
mov ebx, dword [ebp - 0x30]
inc ebx
mov al, byte [ebx - 1]
cmp byte [edi + 3], al
jne 0x40b6c3
mov al, byte [ebx]
inc ebx
cmp byte [edi + 4], al
jne 0x40b6c3
mov al, byte [ebx]
inc ebx
cmp byte [edi + 5], al
jne 0x40b6c3
mov al, byte [ebx]
inc ebx
cmp byte [edi + 6], al
jne 0x40b6c3
mov al, byte [ebx]
inc ebx
cmp byte [edi + 7], al
jne 0x40b6c3
mov al, byte [ebx]
inc ebx
cmp byte [edi + 8], al
jne 0x40b6c3
lea ecx, [edi + 9]
mov edi, dword [ebp - 0x24]
cmp ebx, edi
jae 0x40b61c
mov al, byte [ecx]
cmp al, byte [ebx]
jne 0x40b61c
inc ebx
inc ecx
cmp ebx, edi
jb 0x40b610
mov eax, dword [ebp - 8]
mov ecx, ebx
sub ecx, esi
cmp eax, 0x4000
ja 0x40b64c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp ecx, 0x21
ja 0x40b644
sub cl, 2
or cl, 0x20
mov byte [edx], cl
mov ecx, eax
jmp 0x40b729
sub ecx, 0x21
mov byte [edx], 0x20
jmp 0x40b672
sub eax, 0x4000
mov dword [ebp - 8], eax
shr eax, 0xb
and al, 8
cmp ecx, 9
ja 0x40b66b
sub cl, 2
or al, cl
mov ecx, dword [ebp - 8]
jmp 0x40b725
sub ecx, 9
or al, 0x10
mov byte [edx], al
inc edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
cmp ecx, 0xff
jbe 0x40b6bc
add ecx, 0xffffff00
mov eax, 0x80808081
mul ecx
shr edx, 7
inc edx
mov ecx, edx
mov esi, ecx
shr ecx, 2
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x14]
mov eax, esi
add edx, eax
sub ecx, 0xff
dec eax
jne 0x40b6b3
mov byte [edx], cl
mov ecx, dword [ebp - 8]
jmp 0x40b729
mov ecx, dword [ebp - 8]
dec ebx
mov eax, ebx
sub eax, esi
mov dword [ebp - 0x10], eax
cmp ecx, 0x800
ja 0x40b700
dec al
shl al, 3
mov esi, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], eax
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
and al, 7
or cl, al
mov eax, dword [ebp - 0xc]
shl cl, 2
shr eax, 3
mov byte [edx], cl
mov byte [edx + 1], al
add edx, 2
jmp 0x40b749
cmp ecx, 0x4000
ja 0x40b711
mov ecx, dword [ebp - 0xc]
sub al, 2
or al, 0x20
jmp 0x40b727
sub byte [ebp - 0x10], 2
sub ecx, 0x4000
mov eax, ecx
shr eax, 0xb
and al, 8
or al, byte [ebp - 0x10]
or al, 0x10
mov byte [edx], al
inc edx
mov al, cl
shl al, 2
shr ecx, 6
mov byte [edx], al
mov esi, ebx
mov byte [edx + 1], cl
add edx, 2
mov dword [ebp - 0x1c], esi
jmp 0x40b749
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
mov ebx, dword [ebp - 0x2c]
cmp ebx, dword [ebp - 0x20]
jb 0x40b453
sub edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
pop edi
sub eax, esi
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret