Function at 0x5bcff0
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 0x5bd026
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 0x5bd273
mov eax, esi
dec esi
test eax, eax
jne 0x5bd049
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 0x5bd11e
mov eax, esi
dec esi
test eax, eax
jne 0x5bd06c
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 0x5bd0ca
xor eax, eax
mov ebx, 4
mov edi, esi
dec esi
test edi, edi
jne 0x5bd092
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 0x5bd081
test eax, eax
je 0x5bd0bb
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 0x5bd27f
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
inc eax
mov dword [ebp - 0x14], eax
jmp 0x5bd27f
xor eax, eax
mov al, byte [edx]
inc edx
mov edi, eax
and edi, 1
add edi, 2
shr eax, 1
je 0x5bd10a
test edi, edi
je 0x5bd111
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 0x5bd0e2
mov dword [ebp - 4], eax
mov ebx, 1
jmp 0x5bd281
mov dword [ebp - 8], 1
mov dword [ebp - 4], eax
mov ebx, 1
jmp 0x5bd281
mov eax, 1
mov edi, esi
dec esi
test edi, edi
jne 0x5bd134
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 0x5bd152
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 0x5bd123
test ebx, ebx
jne 0x5bd1d6
cmp eax, 2
jne 0x5bd1d1
mov eax, 1
mov edi, esi
dec esi
test edi, edi
jne 0x5bd17f
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 0x5bd19d
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 0x5bd16e
test eax, eax
je 0x5bd26c
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 0x5bd1b3
mov ebx, 1
jmp 0x5bd281
lea edi, [eax - 3]
jmp 0x5bd1d9
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 0x5bd1fc
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 0x5bd21a
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 0x5bd1eb
cmp dword [ebp + 8], 0x7d00
jb 0x5bd232
inc eax
mov edi, dword [ebp + 8]
cmp edi, 0x500
jb 0x5bd23e
inc eax
cmp edi, 0x80
jae 0x5bd249
add eax, 2
test eax, eax
je 0x5bd269
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 0x5bd250
mov dword [ebp - 4], edi
mov ebx, 1
jmp 0x5bd281
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 0x5bd015
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