Function at 0x918c12
Capabilities:
Compress data using lzo

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
add esi, 4
movzx ecx, byte [esi + 2]
lea eax, [esi + 3]
mov dword [ebp - 0x1c], eax
mov al, byte [eax]
movzx eax, al
shl eax, 6
xor eax, ecx
shl eax, 5
lea edx, [esi + 1]
movzx ecx, byte [edx]
xor eax, ecx
movzx ecx, byte [esi]
shl eax, 5
xor eax, ecx
mov ecx, dword [ebp + 0x14]
imul eax, eax, 0x21
shr eax, 5
and eax, 0x3fff
lea ecx, [ecx + eax*4]
mov ebx, dword [ecx]
mov dword [ebp - 0x20], edx
cmp ebx, dword [ebp + 8]
jb 0x918ecb
mov edx, esi
sub edx, ebx
mov dword [ebp - 8], edx
dec edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
cmp edx, 0xbffe
ja 0x918ec8
cmp dword [ebp - 8], 0x800
jbe 0x918ce9
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx]
mov byte [ebp - 1], dl
cmp byte [ebx + 3], dl
je 0x918ce9
mov ecx, dword [ebp + 0x14]
and eax, 0x7ff
xor eax, 0x201f
lea ecx, [ecx + eax*4]
mov ebx, dword [ecx]
cmp ebx, dword [ebp + 8]
jb 0x918ec8
mov eax, esi
sub eax, ebx
lea edx, [eax - 1]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], edx
cmp edx, 0xbffe
ja 0x918ec8
cmp eax, 0x800
jbe 0x918ce9
mov al, byte [ebp - 1]
cmp byte [ebx + 3], al
jne 0x918ec8
mov ax, word [ebx]
cmp ax, word [esi]
jne 0x918ec8
mov al, byte [esi + 2]
cmp byte [ebx + 2], al
jne 0x918ec8
mov dword [ecx], esi
sub esi, dword [ebp - 0xc]
je 0x918d6f
mov edx, esi
mov dword [ebp - 0x20], edx
cmp edx, 3
ja 0x918d17
or byte [edi - 2], dl
jmp 0x918d61
cmp edx, 0x12
ja 0x918d21
lea eax, [edx - 3]
jmp 0x918d5e
lea eax, [edx - 0x12]
mov byte [edi], 0
mov ecx, 0xff
inc edi
mov dword [ebp - 0x18], eax
cmp eax, ecx
jbe 0x918d5e
add eax, 0xffffff00
xor edx, edx
div ecx
lea esi, [eax + 1]
push esi
push 0
push edi
call fcn.00914df4
add esp, 0xc
add edi, esi
sub dword [ebp - 0x18], 0xff
dec esi
jne 0x918d4e
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov byte [edi], al
inc edi
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov byte [edi], al
inc edi
inc dword [ebp - 0xc]
dec edx
jne 0x918d61
mov esi, dword [ebp - 0x1c]
mov al, byte [esi]
inc esi
cmp byte [ebx + 3], al
jne 0x918e58
mov al, byte [esi]
inc esi
cmp byte [ebx + 4], al
jne 0x918e58
mov al, byte [esi]
inc esi
cmp byte [ebx + 5], al
jne 0x918e58
mov al, byte [esi]
inc esi
cmp byte [ebx + 6], al
jne 0x918e58
mov al, byte [esi]
inc esi
cmp byte [ebx + 7], al
jne 0x918e58
mov al, byte [esi]
inc esi
cmp byte [ebx + 8], al
jne 0x918e58
add ebx, 9
jmp 0x918dc7
mov al, byte [ebx]
cmp al, byte [esi]
jne 0x918dcc
inc ebx
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x918dbf
mov ebx, esi
sub ebx, dword [ebp - 0xc]
mov eax, 0x4000
cmp dword [ebp - 8], eax
ja 0x918dfb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp ebx, 0x21
ja 0x918df3
sub bl, 2
or bl, 0x20
mov byte [edi], bl
jmp 0x918eaf
sub ebx, 0x21
mov byte [edi], 0x20
jmp 0x918e20
sub dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0xb
and al, 8
cmp ebx, 9
ja 0x918e19
sub bl, 2
or al, bl
or al, 0x10
mov byte [edi], al
jmp 0x918eaf
sub ebx, 9
or al, 0x10
mov byte [edi], al
inc edi
cmp ebx, 0xff
jbe 0x918dec
xor edx, edx
mov ecx, 0xff
lea eax, [ebx - 0x100]
div ecx
inc eax
push eax
push 0
push edi
mov dword [ebp - 0x18], eax
call fcn.00914df4
add esp, 0xc
add edi, dword [ebp - 0x18]
sub ebx, 0xff
dec dword [ebp - 0x18]
jne 0x918e4b
jmp 0x918dec
dec esi
mov eax, esi
sub eax, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x800
ja 0x918e83
mov ecx, dword [ebp - 0x14]
dec al
mov dl, cl
shl al, 3
and dl, 7
or al, dl
shl al, 2
shr ecx, 3
mov byte [edi], al
mov byte [edi + 1], cl
jmp 0x918ec0
mov ecx, 0x4000
sub al, 2
cmp dword [ebp - 8], ecx
ja 0x918e9c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
or al, 0x20
jmp 0x918e12
sub dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
shr ecx, 0xb
and cl, 8
or cl, al
or cl, 0x10
mov byte [edi], cl
mov eax, dword [ebp - 8]
mov cl, al
inc edi
shl cl, 2
shr eax, 6
mov byte [edi], cl
mov byte [edi + 1], al
add edi, 2
mov dword [ebp - 0xc], esi
jmp 0x918ecf
mov edx, dword [ebp - 0x20]
mov dword [ecx], esi
mov esi, edx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff3
cmp esi, eax
jb 0x918c2c
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret