Function at 0x40ade7
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 0x40b0a2
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 0x40b09f
cmp dword [ebp - 8], 0x800
jbe 0x40aebe
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx]
mov byte [ebp - 1], dl
cmp byte [ebx + 3], dl
je 0x40aebe
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 0x40b09f
mov eax, esi
sub eax, ebx
lea edx, [eax - 1]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], edx
cmp edx, 0xbffe
ja 0x40b09f
cmp eax, 0x800
jbe 0x40aebe
mov al, byte [ebp - 1]
cmp byte [ebx + 3], al
jne 0x40b09f
mov ax, word [ebx]
cmp ax, word [esi]
jne 0x40b09f
mov al, byte [esi + 2]
cmp byte [ebx + 2], al
jne 0x40b09f
mov dword [ecx], esi
sub esi, dword [ebp - 0xc]
test esi, esi
jle 0x40af46
mov edx, esi
mov dword [ebp - 0x20], edx
cmp edx, 3
ja 0x40aeee
or byte [edi - 2], dl
jmp 0x40af38
cmp edx, 0x12
ja 0x40aef8
lea eax, [edx - 3]
jmp 0x40af35
lea eax, [edx - 0x12]
mov byte [edi], 0
mov ecx, 0xff
inc edi
mov dword [ebp - 0x18], eax
cmp eax, ecx
jbe 0x40af35
add eax, 0xffffff00
xor edx, edx
div ecx
lea esi, [eax + 1]
push esi
push 0
push edi
call fcn.0040a74e
add esp, 0xc
add edi, esi
sub dword [ebp - 0x18], 0xff
dec esi
jne 0x40af25
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 0x40af38
mov esi, dword [ebp - 0x1c]
mov al, byte [esi]
inc esi
cmp byte [ebx + 3], al
jne 0x40b02f
mov al, byte [esi]
inc esi
cmp byte [ebx + 4], al
jne 0x40b02f
mov al, byte [esi]
inc esi
cmp byte [ebx + 5], al
jne 0x40b02f
mov al, byte [esi]
inc esi
cmp byte [ebx + 6], al
jne 0x40b02f
mov al, byte [esi]
inc esi
cmp byte [ebx + 7], al
jne 0x40b02f
mov al, byte [esi]
inc esi
cmp byte [ebx + 8], al
jne 0x40b02f
add ebx, 9
jmp 0x40af9e
mov al, byte [ebx]
cmp al, byte [esi]
jne 0x40afa3
inc ebx
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x40af96
mov ebx, esi
sub ebx, dword [ebp - 0xc]
mov eax, 0x4000
cmp dword [ebp - 8], eax
ja 0x40afd2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp ebx, 0x21
ja 0x40afca
sub bl, 2
or bl, 0x20
mov byte [edi], bl
jmp 0x40b086
sub ebx, 0x21
mov byte [edi], 0x20
jmp 0x40aff7
sub dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0xb
and al, 8
cmp ebx, 9
ja 0x40aff0
sub bl, 2
or al, bl
or al, 0x10
mov byte [edi], al
jmp 0x40b086
sub ebx, 9
or al, 0x10
mov byte [edi], al
inc edi
cmp ebx, 0xff
jbe 0x40afc3
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.0040a74e
add esp, 0xc
add edi, dword [ebp - 0x18]
sub ebx, 0xff
dec dword [ebp - 0x18]
jne 0x40b022
jmp 0x40afc3
dec esi
mov eax, esi
sub eax, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x800
ja 0x40b05a
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 0x40b097
mov ecx, 0x4000
sub al, 2
cmp dword [ebp - 8], ecx
ja 0x40b073
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
or al, 0x20
jmp 0x40afe9
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 0x40b0a6
mov edx, dword [ebp - 0x20]
mov dword [ecx], esi
mov esi, edx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff3
cmp esi, eax
jb 0x40ae01
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