Function at 0x404b97
Capabilities:
Decompress data using lzo

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
push edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
push 4
mov ecx, esi
and dword [eax], 0
mov dl, byte [esi]
mov eax, dword [ebp + 0x10]
cmp dl, 0x11
pop ebx
jbe 0x404bd9
movzx edi, dl
sub edi, 0x11
lea ecx, [esi + 1]
cmp edi, ebx
jb 0x404c77
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec edi
jne 0x404bce
jmp 0x404c35
movzx esi, byte [ecx]
inc ecx
cmp esi, 0x10
jae 0x404c97
test esi, esi
jne 0x404c00
cmp byte [ecx], 0
jne 0x404bf8
add esi, 0xff
inc ecx
jmp 0x404bea
movzx edx, byte [ecx]
inc ecx
lea esi, [esi + edx + 0xf]
mov edx, dword [ecx]
mov dword [eax], edx
add eax, ebx
add ecx, ebx
dec esi
je 0x404c35
cmp esi, ebx
jb 0x404c2c
mov edx, dword [ecx]
mov dword [eax], edx
sub esi, ebx
add eax, ebx
add ecx, ebx
cmp esi, ebx
jae 0x404c0f
test esi, esi
jbe 0x404c35
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x404c21
jmp 0x404c35
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x404c2c
movzx esi, byte [ecx]
inc ecx
cmp esi, 0x10
jae 0x404c97
movzx edx, byte [ecx]
shr esi, 2
mov edi, eax
sub edi, esi
shl edx, 2
sub edi, edx
mov dl, byte [edi - 0x801]
sub edi, 0x801
inc ecx
mov byte [eax], dl
inc eax
inc edi
mov dl, byte [edi]
mov byte [eax], dl
mov dl, byte [edi + 1]
inc eax
mov byte [eax], dl
inc eax
mov dl, byte [ecx - 2]
and edx, 3
mov edi, edx
je 0x404bd9
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
cmp edi, 1
jbe 0x404c93
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
cmp edi, 2
jbe 0x404c93
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
movzx esi, byte [ecx]
inc ecx
cmp esi, 0x40
jb 0x404cce
mov edx, esi
mov edi, eax
shr edx, 2
and edx, 7
sub edi, edx
movzx edx, byte [ecx]
shl edx, 3
sub edi, edx
dec edi
inc ecx
shr esi, 5
dec esi
mov dl, byte [edi]
mov byte [eax], dl
mov dl, byte [edi + 1]
inc eax
inc edi
mov byte [eax], dl
inc eax
inc edi
mov dl, byte [edi]
mov byte [eax], dl
inc eax
inc edi
dec esi
jne 0x404cc3
jmp 0x404c69
cmp esi, 0x20
jb 0x404cfd
and esi, 0x1f
jne 0x404cee
cmp byte [ecx], 0
jne 0x404ce6
add esi, 0xff
inc ecx
jmp 0x404cd8
movzx edx, byte [ecx]
inc ecx
lea esi, [esi + edx + 0x1f]
lea edi, [eax - 1]
movzx edx, word [ecx]
shr edx, 2
sub edi, edx
inc ecx
inc ecx
jmp 0x404d64
cmp esi, 0x10
jb 0x404da7
mov edx, esi
mov edi, eax
and edx, 8
shl edx, 0xb
sub edi, edx
and esi, 7
jne 0x404d2d
cmp byte [ecx], 0
jne 0x404d25
add esi, 0xff
inc ecx
jmp 0x404d17
movzx edx, byte [ecx]
inc ecx
lea esi, [esi + edx + 7]
movzx edx, word [ecx]
shr edx, 2
sub edi, edx
inc ecx
inc ecx
cmp edi, eax
jne 0x404d5e
sub eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [edx], eax
mov eax, ecx
sub eax, dword [ebp + 8]
cmp ecx, dword [ebp + 8]
sbb ecx, ecx
pop ebx
and ecx, 0xfffffffc
add ecx, 0xfffffffc
neg eax
sbb eax, eax
and eax, ecx
pop ebp
ret
sub edi, 0x4000
cmp esi, 6
jb 0x404cb6
mov edx, eax
sub edx, edi
cmp edx, ebx
jl 0x404cb6
mov edx, dword [edi]
mov dword [eax], edx
add eax, ebx
add edi, ebx
dec esi
dec esi
mov edx, dword [edi]
mov dword [eax], edx
sub esi, ebx
add eax, ebx
add edi, ebx
cmp esi, ebx
jae 0x404d83
test esi, esi
jbe 0x404c69
mov dl, byte [edi]
mov byte [eax], dl
inc eax
inc edi
dec esi
jne 0x404d99
jmp 0x404c69
movzx edx, byte [ecx]
shr esi, 2
mov edi, eax
sub edi, esi
shl edx, 2
sub edi, edx
dec edi
inc ecx
jmp 0x404c5e