Function at 0x7810b0
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 r10d, r10d
lea r11, [rdx + 1]
mov byte [rdx], al
mov edx, dword [rsp + 0x10]
lea r8, [rcx + 1]
xor edi, edi
nop
mov eax, r9d
dec r9d
test eax, eax
jne 0x7810f5
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
je 0x78138b
mov eax, r9d
dec r9d
test eax, eax
jne 0x78111a
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
je 0x7811ee
mov eax, r9d
dec r9d
test eax, eax
jne 0x78113f
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
je 0x781199
xor ecx, ecx
lea r10d, [rcx + 4]
mov eax, r9d
dec r9d
test eax, eax
jne 0x781166
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
sub r10d, 1
lea ecx, [rax + rcx*2]
jne 0x781151
test ecx, ecx
je 0x781190
mov eax, ecx
mov rcx, r11
sub rcx, rax
movzx eax, byte [rcx]
mov byte [r11], al
jmp 0x781395
mov byte [r11], 0
jmp 0x781395
movzx ebx, byte [r8]
inc r8
mov r10d, ebx
and r10d, 1
add r10d, 2
shr ebx, 1
je 0x7811de
mov eax, ebx
test r10d, r10d
je 0x7811e3
mov rcx, r11
sub rcx, rax
nop dword [rax]
movzx eax, byte [rcx]
inc r11
inc rcx
add r10d, 0xffffffff
mov byte [r11 - 1], al
jne 0x7811c0
mov r10d, 1
jmp 0x78139b
mov edi, 1
mov r10d, 1
jmp 0x78139b
mov ecx, 1
mov eax, r9d
dec r9d
test eax, eax
jne 0x781208
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
lea ecx, [rax + rcx*2]
mov eax, r9d
dec r9d
test eax, eax
jne 0x78122a
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
jne 0x7811f3
test r10d, r10d
jne 0x7812d3
cmp ecx, 2
jne 0x7812ce
lea r10d, [rax + 1]
nop dword [rax]
mov eax, r9d
dec r9d
test eax, eax
jne 0x781265
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
lea r10d, [rax + r10*2]
mov eax, r9d
dec r9d
test eax, eax
jne 0x781288
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
jne 0x781250
movsxd rax, ebx
test r10d, r10d
je 0x781383
mov rcx, r11
sub rcx, rax
nop word [rax + rax]
movzx eax, byte [rcx]
inc r11
inc rcx
add r10d, 0xffffffff
mov byte [r11 - 1], al
jne 0x7812b0
mov r10d, 1
jmp 0x78139b
lea ebx, [rcx - 3]
jmp 0x7812d6
lea ebx, [rcx - 2]
movzx eax, byte [r8]
shl ebx, 8
mov r10d, 1
add ebx, eax
inc r8
nop dword [rax + rax]
mov eax, r9d
dec r9d
test eax, eax
jne 0x781305
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
lea r10d, [rax + r10*2]
mov eax, r9d
dec r9d
test eax, eax
jne 0x781328
movzx edx, byte [r8]
inc r8
lea r9d, [rax + 7]
mov eax, edx
add edx, edx
shr eax, 7
and eax, 1
jne 0x7812f0
cmp ebx, 0x7d00
jb 0x78133f
inc r10d
cmp ebx, 0x500
jb 0x78134a
inc r10d
cmp ebx, 0x80
jae 0x781356
add r10d, 2
movsxd rax, ebx
test r10d, r10d
je 0x781383
mov rcx, r11
sub rcx, rax
nop word [rax + rax]
movzx eax, byte [rcx]
inc r11
inc rcx
add r10d, 0xffffffff
mov byte [r11 - 1], al
jne 0x781370
mov r10d, 1
jmp 0x78139b
movzx ecx, byte [r8]
inc r8
mov byte [r11], cl
inc r11
xor r10d, r10d
test edi, edi
je 0x7810e0
mov rbx, qword [rsp + 0x38]
sub r11, rsi
mov rsi, qword [rsp + 0x40]
mov eax, r11d
add rsp, 0x20
pop rdi
ret