Function at 0x10037620
Capabilities:
Compress data using lzo

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx - 0xd]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 3]
shl ecx, 6
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 2]
xor ecx, eax
shl ecx, 5
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 1]
xor ecx, eax
shl ecx, 5
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
xor ecx, eax
imul ecx, ecx, 0x21
shr ecx, 5
and ecx, 0x3fff
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 8]
jb 0x100376be
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
je 0x100376be
cmp dword [ebp - 0x1c], 0xbfff
jbe 0x100376c3
jmp 0x10037761
cmp dword [ebp - 0x1c], 0x800
jbe 0x100376de
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax + 3]
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 3]
cmp ecx, eax
jne 0x100376e0
jmp 0x1003773b
mov ecx, dword [ebp - 0x28]
and ecx, 0x7ff
xor ecx, 0x201f
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 8]
jb 0x1003771a
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
je 0x1003771a
cmp dword [ebp - 0x1c], 0xbfff
jbe 0x1003771c
jmp 0x10037761
cmp dword [ebp - 0x1c], 0x800
jbe 0x10037737
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 3]
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 3]
cmp edx, ecx
jne 0x10037739
jmp 0x1003773b
jmp 0x10037761
mov edx, dword [ebp - 0x20]
movzx eax, word [edx]
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp eax, edx
je 0x1003774d
jmp 0x10037761
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax + 2]
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 2]
cmp ecx, eax
jne 0x10037761
jmp 0x10037788
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 4]
jb 0x10037783
jmp 0x10037b81
jmp 0x1003765d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
je 0x1003786a
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 3
ja 0x100377cc
mov edx, dword [ebp - 0x2c]
and edx, 0xff
movzx eax, dl
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx - 2]
or edx, eax
mov eax, dword [ebp - 0x14]
mov byte [eax - 2], dl
jmp 0x10037843
cmp dword [ebp - 0x2c], 0x12
ja 0x100377ee
mov ecx, dword [ebp - 0x2c]
sub ecx, 3
and ecx, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10037843
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x12
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x30], 0xff
jbe 0x1003782c
mov ecx, dword [ebp - 0x30]
sub ecx, 0xff
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10037806
mov ecx, dword [ebp - 0x30]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
jne 0x10037843
mov ecx, dword [ebp - 0x10]
add ecx, 3
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 3]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp edx, eax
jne 0x10037917
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 4]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp edx, eax
jne 0x10037917
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 5]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp edx, eax
jne 0x10037917
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 6]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp edx, eax
jne 0x10037917
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 7]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp edx, eax
jne 0x10037917
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 8]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp edx, eax
je 0x100379f5
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0x800
ja 0x1003797e
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x24]
sub edx, 1
shl edx, 5
mov eax, dword [ebp - 0x1c]
and eax, 7
shl eax, 2
or edx, eax
and edx, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], dl
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
shr eax, 3
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x100379f0
cmp dword [ebp - 0x1c], 0x4000
ja 0x100379b4
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
sub ecx, 2
or ecx, 0x20
and ecx, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10037b35
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x4000
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
and edx, 0x4000
shr edx, 0xb
or edx, 0x10
mov eax, dword [ebp - 0x24]
sub eax, 2
or edx, eax
and edx, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], dl
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x10037b35
jmp 0x10037b6c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x20]
add ecx, 9
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x34]
jae 0x10037a30
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
cmp ecx, eax
jne 0x10037a30
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x10037a04
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0x4000
ja 0x10037a8f
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x24], 0x21
ja 0x10037a70
mov edx, dword [ebp - 0x24]
sub edx, 2
or edx, 0x20
and edx, 0xff
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x10037a8a
mov edx, dword [ebp - 0x24]
sub edx, 0x21
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
mov byte [eax], 0x20
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x10037af8
jmp 0x10037b35
mov edx, dword [ebp - 0x1c]
sub edx, 0x4000
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x24], 9
ja 0x10037acc
mov eax, dword [ebp - 0x1c]
and eax, 0x4000
shr eax, 0xb
or eax, 0x10
mov ecx, dword [ebp - 0x24]
sub ecx, 2
or eax, ecx
and eax, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx], al
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10037b35
mov ecx, dword [ebp - 0x24]
sub ecx, 9
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1c]
and edx, 0x4000
shr edx, 0xb
or edx, 0x10
and edx, 0xff
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x24], 0xff
jbe 0x10037b1e
mov edx, dword [ebp - 0x24]
sub edx, 0xff
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x10037af8
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
and edx, 0x3f
shl edx, 2
and edx, 0xff
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
shr edx, 6
and edx, 0xff
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jb 0x10037b7c
jmp 0x10037b81
jmp 0x1003765d
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x14