Function at 0x402567
Capabilities:
Compress data using lzo

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x10000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov dword [ebp - 4], ebx
pop ecx
mov dword [ebp - 8], eax
add ebx, 4
mov cl, byte [ebx + 2]
lea eax, [ebx + 3]
mov dword [ebp - 0x18], eax
lea edi, [ebx + 1]
mov al, byte [eax]
mov dword [ebp - 0x1c], 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
mov ecx, dword [ebp - 0x14]
imul eax, eax, 0x21
shr eax, 5
and eax, 0x3fff
lea edi, [ecx + eax*4]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
jb 0x40282b
mov edx, ebx
mov dword [ebp + 0xc], ebx
sub edx, ecx
mov dword [ebp + 0xc], edx
je 0x40282b
cmp edx, 0xbfff
ja 0x40282b
cmp edx, 0x800
jbe 0x402658
mov edx, dword [ebp - 0x18]
mov dl, byte [edx]
cmp byte [ecx + 3], dl
je 0x402658
mov ecx, dword [ebp - 0x14]
and eax, 0x7ff
xor eax, 0x201f
lea edi, [ecx + eax*4]
mov eax, dword [ecx + eax*4]
cmp eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jb 0x40282b
mov ecx, ebx
sub ecx, eax
mov dword [ebp + 0xc], ecx
je 0x40282b
cmp ecx, 0xbfff
ja 0x40282b
cmp ecx, 0x800
jbe 0x402655
cmp byte [eax + 3], dl
jne 0x40282b
mov ecx, dword [ebp - 0xc]
mov ax, word [ecx]
mov edx, dword [ebp + 0xc]
cmp ax, word [ebx]
jne 0x40282b
mov al, byte [ebx + 2]
cmp byte [ecx + 2], al
jne 0x40282b
mov dword [edi], ebx
sub ebx, dword [ebp - 4]
test ebx, ebx
jle 0x4026ec
mov eax, ebx
cmp eax, 3
mov dword [ebp - 0x1c], eax
ja 0x40268b
or byte [esi - 2], al
jmp 0x4026de
cmp eax, 0x12
ja 0x402697
mov bl, al
sub bl, 3
jmp 0x4026db
and byte [esi], 0
lea ebx, [eax - 0x12]
mov edi, 0xff
inc esi
cmp ebx, edi
jbe 0x4026db
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 0x4026c7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
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 0x4026de
mov ebx, dword [ebp - 0x18]
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 3], al
jne 0x4027cc
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 4], al
jne 0x4027cc
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 5], al
jne 0x4027cc
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 6], al
jne 0x4027cc
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 7], al
jne 0x4027cc
mov al, byte [ebx]
inc ebx
cmp byte [ecx + 8], al
jne 0x4027cc
lea edi, [ecx + 9]
cmp ebx, dword [ebp - 8]
jae 0x402749
mov al, byte [edi]
cmp al, byte [ebx]
jne 0x402749
inc edi
inc ebx
jmp 0x40273a
mov eax, ebx
mov ecx, 0x4000
sub eax, dword [ebp - 4]
cmp edx, ecx
ja 0x40276f
dec edx
cmp eax, 0x21
mov dword [ebp + 0xc], edx
jbe 0x4027fc
sub eax, 0x21
mov byte [esi], 0x20
mov dword [ebp - 0xc], eax
jmp 0x402790
sub edx, ecx
cmp eax, 9
mov dword [ebp + 0xc], edx
jbe 0x402806
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 0x402800
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 0x4027b8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
jmp 0x402800
dec ebx
mov eax, ebx
sub eax, dword [ebp - 4]
cmp edx, 0x800
ja 0x4027f2
dec edx
add al, 7
mov cl, dl
and cl, 7
shl cl, 2
shl al, 5
or cl, al
mov byte [esi], cl
inc esi
shr edx, 3
jmp 0x402823
mov ecx, 0x4000
cmp edx, ecx
ja 0x402804
dec edx
sub al, 2
or al, 0x20
mov byte [esi], al
jmp 0x402817
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 0x402830
mov dword [edi], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add eax, 0xfffffff3
cmp ebx, eax
jb 0x402592
sub esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push dword [ebp - 0x14]
mov dword [eax], esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 8]
pop ecx
sub eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret