Function at 0x7621e0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
push esi
mov ecx, dword [ebp - 0x10]
mov al, byte [edx]
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 4], esi
mov byte [edi], al
inc edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], edi
inc edx
mov eax, esi
dec esi
test eax, eax
jne 0x762216
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov eax, ecx
shr eax, 7
and eax, 1
shl ecx, 1
test eax, eax
je 0x762463
mov eax, esi
dec esi
test eax, eax
jne 0x762239
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov eax, ecx
shr eax, 7
and eax, 1
shl ecx, 1
test eax, eax
je 0x76230e
mov eax, esi
dec esi
test eax, eax
jne 0x76225c
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov eax, ecx
shr eax, 7
and eax, 1
shl ecx, 1
test eax, eax
je 0x7622ba
xor eax, eax
mov ebx, 4
mov edi, esi
dec esi
test edi, edi
jne 0x762282
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov edi, ecx
shr edi, 7
and edi, 1
shl ecx, 1
dec ebx
lea eax, [edi + eax*2]
jne 0x762271
test eax, eax
je 0x7622ab
mov edi, dword [ebp - 0x14]
mov ebx, edi
sub ebx, eax
inc edi
mov dword [ebp - 0x14], edi
mov al, byte [ebx]
mov byte [edi - 1], al
jmp 0x76246f
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
inc eax
mov dword [ebp - 0x14], eax
jmp 0x76246f
xor eax, eax
mov al, byte [edx]
inc edx
mov edi, eax
and edi, 1
add edi, 2
shr eax, 1
je 0x7622fa
test edi, edi
je 0x762301
mov dword [ebp + 8], edi
mov edi, dword [ebp - 0x14]
sub edi, eax
mov bl, byte [edi]
mov edi, dword [ebp - 0x14]
mov byte [edi], bl
mov ebx, edi
mov edi, dword [ebp + 8]
inc ebx
dec edi
mov dword [ebp - 0x14], ebx
mov dword [ebp + 8], edi
jne 0x7622d2
mov dword [ebp - 4], eax
mov ebx, 1
jmp 0x762471
mov dword [ebp - 8], 1
mov dword [ebp - 4], eax
mov ebx, 1
jmp 0x762471
mov eax, 1
mov edi, esi
dec esi
test edi, edi
jne 0x762324
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov edi, ecx
shr edi, 7
and edi, 1
shl ecx, 1
lea eax, [edi + eax*2]
mov edi, esi
dec esi
test edi, edi
jne 0x762342
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov edi, ecx
shr edi, 7
and edi, 1
shl ecx, 1
test edi, edi
jne 0x762313
test ebx, ebx
jne 0x7623c6
cmp eax, 2
jne 0x7623c1
mov eax, 1
mov edi, esi
dec esi
test edi, edi
jne 0x76236f
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov edi, ecx
shr edi, 7
and edi, 1
shl ecx, 1
lea eax, [edi + eax*2]
mov edi, esi
dec esi
test edi, edi
jne 0x76238d
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov edi, ecx
shr edi, 7
and edi, 1
shl ecx, 1
test edi, edi
jne 0x76235e
test eax, eax
je 0x76245c
mov edi, dword [ebp - 0x14]
mov ebx, edi
sub ebx, dword [ebp - 4]
inc edi
dec eax
mov dword [ebp - 0x14], edi
mov bl, byte [ebx]
mov byte [edi - 1], bl
jne 0x7623a3
mov ebx, 1
jmp 0x762471
lea edi, [eax - 3]
jmp 0x7623c9
lea edi, [eax - 2]
xor eax, eax
mov al, byte [edx]
shl edi, 8
add edi, eax
inc edx
mov dword [ebp + 8], edi
mov eax, 1
mov edi, esi
dec esi
test edi, edi
jne 0x7623ec
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov edi, ecx
shr edi, 7
and edi, 1
shl ecx, 1
lea eax, [edi + eax*2]
mov edi, esi
dec esi
test edi, edi
jne 0x76240a
xor ecx, ecx
mov esi, 7
mov cl, byte [edx]
inc edx
mov edi, ecx
shr edi, 7
and edi, 1
shl ecx, 1
test edi, edi
jne 0x7623db
cmp dword [ebp + 8], 0x7d00
jb 0x762422
inc eax
mov edi, dword [ebp + 8]
cmp edi, 0x500
jb 0x76242e
inc eax
cmp edi, 0x80
jae 0x762439
add eax, 2
test eax, eax
je 0x762459
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
mov ebx, eax
sub ebx, edi
inc eax
mov dword [ebp - 0x14], eax
mov bl, byte [ebx]
mov byte [eax - 1], bl
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
jne 0x762440
mov dword [ebp - 4], edi
mov ebx, 1
jmp 0x762471
mov edi, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [edi], al
inc edi
mov dword [ebp - 0x14], edi
inc edx
xor ebx, ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x762205
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
sub eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret