Function at 0x18001adc0
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 0x18001ae07
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
je 0x18001b09e
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x18001ae2e
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
je 0x18001af0f
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x18001ae55
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
je 0x18001aeba
xor ecx, ecx
lea r11d, [rcx + 4]
nop
nop
nop
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x18001ae87
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 0x18001ae70
test ecx, ecx
je 0x18001aeb1
mov eax, ecx
mov rcx, r10
sub rcx, rax
movzx eax, byte [rcx]
mov byte [r10], al
jmp 0x18001b0a9
mov byte [r10], 0
jmp 0x18001b0a9
movzx ebx, byte [r8]
add r8, 1
mov ecx, ebx
and ecx, 1
add ecx, 2
shr ebx, 1
je 0x18001aeff
test ecx, ecx
mov r11d, ebx
je 0x18001af04
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 0x18001aee0
lea r11d, [rcx + 1]
jmp 0x18001b0b0
mov edi, 1
mov r11d, 1
jmp 0x18001b0b0
mov ecx, 1
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x18001af2b
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 0x18001af4f
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
jne 0x18001af14
test r11d, r11d
jne 0x18001aff4
cmp ecx, 2
jne 0x18001afef
lea ecx, [rax + 1]
mov eax, r9d
add r9d, 0xffffffff
test eax, eax
jne 0x18001af87
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 0x18001afab
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
jne 0x18001af70
test ecx, ecx
movsxd r11, ebx
je 0x18001b096
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 0x18001afd0
lea r11d, [rcx + 1]
jmp 0x18001b0b0
lea ebx, [rcx - 3]
jmp 0x18001aff7
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 0x18001b027
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 0x18001b04b
movzx edx, byte [r8]
add r8, 1
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
jne 0x18001b010
cmp ebx, 0x7d00
jb 0x18001b062
add ecx, 1
cmp ebx, 0x500
jb 0x18001b06d
add ecx, 1
cmp ebx, 0x80
jae 0x18001b078
add ecx, 2
test ecx, ecx
movsxd r11, ebx
je 0x18001b096
nop
mov rax, r10
add r10, 1
sub rax, r11
add ecx, 0xffffffff
movzx eax, byte [rax]
mov byte [r10 - 1], al
jne 0x18001b080
mov r11d, 1
jmp 0x18001b0b0
movzx ecx, byte [r8]
add r8, 1
mov byte [r10], cl
add r10, 1
xor r11d, r11d
test edi, edi
je 0x18001adf0
mov rbx, qword [rsp + 0x38]
sub r10, rsi
mov rsi, qword [rsp + 0x40]
mov eax, r10d
add rsp, 0x20
pop rdi
ret