Function at 0x402e60
Capabilities:
Compress data using lzo

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x2c]
lea ecx, [eax + ebp]
mov dword [esp + 0xc], ebp
push edi
mov dword [esp + 0x18], ecx
add ebp, 4
mov dl, byte [ebp + 3]
mov cl, byte [ebp + 2]
mov eax, edx
and ecx, 0xff
and eax, 0xff
shl eax, 6
xor eax, ecx
xor ecx, ecx
mov cl, byte [ebp + 1]
shl eax, 5
xor eax, ecx
xor ecx, ecx
mov cl, byte [ebp]
shl eax, 5
xor eax, ecx
mov ecx, eax
shl ecx, 5
add eax, ecx
mov ecx, dword [esp + 0x38]
shr eax, 5
and eax, 0x3fff
mov ebx, dword [ecx + eax*4]
lea edi, [ecx + eax*4]
cmp ebx, dword [esp + 0x28]
jb 0x403185
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x2c], ecx
je 0x403185
cmp ecx, 0xbfff
ja 0x403185
cmp ecx, 0x800
jbe 0x402f42
cmp byte [ebx + 3], dl
je 0x402f42
mov ecx, dword [esp + 0x38]
and eax, 0x7ff
xor eax, 0x201f
mov ebx, dword [ecx + eax*4]
lea edi, [ecx + eax*4]
cmp ebx, dword [esp + 0x28]
jb 0x403185
mov eax, ebp
sub eax, ebx
mov dword [esp + 0x2c], eax
je 0x403185
cmp eax, 0xbfff
ja 0x403185
cmp eax, 0x800
jbe 0x402f3e
cmp byte [ebx + 3], dl
jne 0x403185
mov ecx, dword [esp + 0x2c]
mov dx, word [ebx]
cmp dx, word [ebp]
jne 0x403185
mov al, byte [ebp + 2]
mov dl, byte [ebx + 2]
cmp dl, al
jne 0x403185
mov edx, dword [esp + 0x10]
mov eax, ebp
sub eax, edx
mov dword [edi], ebp
je 0x402fff
cmp eax, 3
mov dword [esp + 0x20], eax
ja 0x402f7b
or byte [esi - 2], al
jmp 0x402fe9
cmp eax, 0x12
ja 0x402f87
mov dl, al
sub dl, 3
jmp 0x402fe6
lea edx, [eax - 0x12]
mov byte [esi], 0
inc esi
cmp edx, 0xff
mov dword [esp + 0x14], edx
jbe 0x402fe2
mov eax, edx
mov edi, esi
lea ecx, [eax - 0x100]
mov eax, 0x80808081
mul ecx
mov ecx, edx
xor eax, eax
shr ecx, 7
inc ecx
mov dword [esp + 0x1c], ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
add esi, eax
mov edx, dword [esp + 0x14]
sub edx, 0xff
dec eax
mov dword [esp + 0x14], edx
jne 0x402fc9
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x14]
mov byte [esi], dl
inc esi
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
inc esi
inc edi
mov dl, byte [edx]
dec eax
mov byte [esi - 1], dl
mov dword [esp + 0x10], edi
jne 0x402fe9
mov al, byte [ebp + 3]
mov dl, byte [ebx + 3]
add ebp, 3
inc ebp
cmp dl, al
jne 0x40311d
mov dl, byte [ebp]
mov al, byte [ebx + 4]
inc ebp
cmp al, dl
jne 0x40311d
mov al, byte [ebp]
mov dl, byte [ebx + 5]
inc ebp
cmp dl, al
jne 0x40311d
mov dl, byte [ebp]
mov al, byte [ebx + 6]
inc ebp
cmp al, dl
jne 0x40311d
mov al, byte [ebp]
mov dl, byte [ebx + 7]
inc ebp
cmp dl, al
jne 0x40311d
mov dl, byte [ebp]
mov al, byte [ebx + 8]
inc ebp
cmp al, dl
jne 0x40311d
mov eax, dword [esp + 0x18]
add ebx, 9
cmp ebp, eax
jae 0x403076
mov cl, byte [ebx]
mov dl, byte [ebp]
cmp cl, dl
jne 0x403076
inc ebx
inc ebp
cmp ebp, eax
jb 0x403067
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, edx
cmp eax, 0x4000
ja 0x4030aa
dec eax
cmp ebx, 0x21
mov dword [esp + 0x2c], eax
ja 0x4030a2
sub bl, 2
mov ecx, eax
or bl, 0x20
mov byte [esi], bl
jmp 0x403169
sub ebx, 0x21
mov byte [esi], 0x20
jmp 0x4030d6
sub eax, 0x4000
mov dword [esp + 0x2c], eax
shr eax, 0xb
and al, 8
cmp ebx, 9
ja 0x4030cf
mov ecx, dword [esp + 0x2c]
sub bl, 2
or al, bl
or al, 0x10
mov byte [esi], al
jmp 0x403169
sub ebx, 9
or al, 0x10
mov byte [esi], al
inc esi
cmp ebx, 0xff
jbe 0x403115
lea edx, [ebx - 0x100]
mov eax, 0x80808081
mul edx
mov ecx, edx
xor eax, eax
shr ecx, 7
inc ecx
mov edi, esi
mov dword [esp + 0x20], ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
add esi, eax
sub ebx, 0xff
dec eax
jne 0x40310c
mov ecx, dword [esp + 0x2c]
mov byte [esi], bl
jmp 0x403169
mov edi, dword [esp + 0x10]
dec ebp
mov eax, ebp
sub eax, edi
cmp ecx, 0x800
ja 0x403143
dec ecx
dec al
mov dl, cl
and dl, 7
shl al, 5
shl dl, 2
or al, dl
shr ecx, 3
jmp 0x403172
sub al, 2
cmp ecx, 0x4000
ja 0x403154
dec ecx
or al, 0x20
mov byte [esi], al
jmp 0x403169
sub ecx, 0x4000
mov edx, ecx
shr edx, 0xb
and dl, 8
or dl, al
or dl, 0x10
mov byte [esi], dl
mov al, cl
inc esi
shl al, 2
shr ecx, 6
mov byte [esi], al
inc esi
mov dword [esp + 0x10], ebp
mov byte [esi], cl
mov ecx, dword [esp + 0x18]
inc esi
lea eax, [ecx - 0xd]
jmp 0x40318f
mov edx, dword [esp + 0x18]
mov dword [edi], ebp
inc ebp
lea eax, [edx - 0xd]
cmp ebp, eax
jb 0x402e81
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
sub esi, edx
mov dword [eax], esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x14
ret