Function at 0x180008bd0
Capabilities:
Decompress data using aplib

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rcx]
mov ebx, dword [rsp + 0x30]
mov rsi, rdx
xor r9d, r9d
xor r11d, r11d
lea r10, [rdx + 1]
mov byte [rdx], al
mov edx, dword [rsp + 0x10]
lea r8, [rcx + 1]
xor edi, edi
nop
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008c17
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
je 0x180008eae
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008c3e
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
je 0x180008d1f
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008c65
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
je 0x180008cca
xor ecx, ecx
lea r11d, [rcx + 4]
nop
nop
nop
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008c97
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
sub r11d, 1
lea ecx, [rax + rcx*2]
jne 0x180008c80
test ecx, ecx
je 0x180008cc1
mov eax, ecx
mov rcx, r10
sub rcx, rax
movzx eax, byte [rcx]
mov byte [r10], al
jmp 0x180008eb9
mov byte [r10], 0
jmp 0x180008eb9
movzx ebx, byte [r8]
add r8, 1
mov ecx, ebx
and ecx, 1
add ecx, 2
shr ebx, 1
je 0x180008d0f
test ecx, ecx
mov r11d, ebx
je 0x180008d14
nop
nop
nop
mov rax, r10
add r10, 1
sub rax, r11
add ecx, 0xffffffff
movzx eax, byte [rax]
mov byte [r10 - 1], al
jne 0x180008cf0
lea r11d, [rcx + 1]
jmp 0x180008ec0
mov edi, 1
mov r11d, 1
jmp 0x180008ec0
mov ecx, 1
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008d3b
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
lea ecx, [rax + rcx*2]
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008d5f
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
jne 0x180008d24
test r11d, r11d
jne 0x180008e04
cmp ecx, 2
jne 0x180008dff
lea ecx, [rax + 1]
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008d97
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
lea ecx, [rax + rcx*2]
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008dbb
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
jne 0x180008d80
test ecx, ecx
movsxd r11, ebx
je 0x180008ea6
nop
nop
nop
nop
mov rax, r10
add r10, 1
sub rax, r11
add ecx, 0xffffffff
movzx eax, byte [rax]
mov byte [r10 - 1], al
jne 0x180008de0
lea r11d, [rcx + 1]
jmp 0x180008ec0
lea ebx, [rcx - 3]
jmp 0x180008e07
lea ebx, [rcx - 2]
movzx eax, byte [r8]
shl ebx, 8
mov ecx, 1
add ebx, eax
add r8, 1
nop
nop
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008e37
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
lea ecx, [rax + rcx*2]
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x180008e5b
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
jne 0x180008e20
cmp ebx, 0x7d00
jb 0x180008e72
add ecx, 1
cmp ebx, 0x500
jb 0x180008e7d
add ecx, 1
cmp ebx, 0x80
jae 0x180008e88
add ecx, 2
test ecx, ecx
movsxd r11, ebx
je 0x180008ea6
nop
mov rax, r10
add r10, 1
sub rax, r11
add ecx, 0xffffffff
movzx eax, byte [rax]
mov byte [r10 - 1], al
jne 0x180008e90
mov r11d, 1
jmp 0x180008ec0
movzx ecx, byte [r8]
add r8, 1
mov byte [r10], cl
add r10, 1
xor r11d, r11d
test edi, edi
je 0x180008c00
mov rbx, qword [rsp + 0x38]
sub r10, rsi
mov rsi, qword [rsp + 0x40]
mov eax, r10d
add rsp, 0x20
pop rdi
ret