Function at 0x100116d0
Capabilities:
Decompress data using aplib

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp edx, edi
je 0x10011a04
mov ecx, dword [esp + 0x3c]
cmp ecx, edi
je 0x10011a04
mov esi, dword [esp + 0x44]
cmp esi, edi
je 0x10011a04
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x10], edx
test eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov dword [esi], ebx
jbe 0x10011a04
test ebp, ebp
jbe 0x10011a04
mov al, byte [edx]
mov esi, edi
mov byte [ecx], al
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x28]
cmp ecx, edx
jae 0x100119f7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp edx, eax
jae 0x100119ef
lea eax, [esp + 0x10]
push eax
call fcn.10011a10
add esp, 4
test eax, eax
je 0x100119a7
lea ecx, [esp + 0x10]
push ecx
call fcn.10011a10
add esp, 4
test eax, eax
je 0x100118a6
lea edx, [esp + 0x10]
push edx
call fcn.10011a10
add esp, 4
test eax, eax
je 0x1001181e
xor edi, edi
mov ebp, 4
lea eax, [esp + 0x10]
push eax
call fcn.10011a10
add esp, 4
dec ebp
lea edi, [eax + edi*2]
jne 0x100117af
test edi, edi
je 0x100117f8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
cmp ecx, edx
jae 0x100119f7
mov eax, ecx
sub eax, edi
js 0x100119ef
mov edx, dword [esp + 0x14]
mov al, byte [eax + edx]
mov byte [ecx + edx], al
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
jmp 0x100119df
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
cmp eax, edx
jae 0x100119f7
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
jmp 0x100119df
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jae 0x100119eb
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dl, byte [eax + ecx]
inc eax
mov dword [esp + 0x1c], eax
mov eax, edx
and eax, 1
add eax, 2
shr edx, 1
je 0x10011891
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
lea esi, [eax + ecx]
cmp esi, edi
jae 0x100119ef
mov esi, ecx
sub esi, edx
js 0x100119ef
test eax, eax
je 0x1001189a
mov edi, eax
mov esi, dword [esp + 0x14]
mov eax, ecx
sub eax, edx
mov al, byte [eax + esi]
mov byte [ecx + esi], al
mov ecx, dword [esp + 0x20]
inc ecx
dec edi
mov dword [esp + 0x20], ecx
jne 0x1001186b
mov esi, edx
mov edi, 1
jmp 0x100119e1
mov ecx, dword [esp + 0x20]
mov ebx, 1
mov esi, edx
mov edi, 1
jmp 0x100119e1
lea ecx, [esp + 0x10]
push ecx
call fcn.10011a60
add esp, 4
test edi, edi
jne 0x10011919
cmp eax, 2
jne 0x10011914
lea edx, [esp + 0x10]
push edx
call fcn.10011a60
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
add esp, 4
lea edx, [eax + ecx]
cmp edx, edi
jae 0x100119ef
mov edx, ecx
sub edx, esi
js 0x100119ef
test eax, eax
je 0x100119a0
mov edi, eax
mov eax, dword [esp + 0x14]
mov edx, ecx
sub edx, esi
mov dl, byte [edx + eax]
mov byte [ecx + eax], dl
mov ecx, dword [esp + 0x20]
inc ecx
dec edi
mov dword [esp + 0x20], ecx
jne 0x100118f0
mov edi, 1
jmp 0x100119e1
sub eax, 3
jmp 0x1001191c
sub eax, 2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jae 0x100119eb
mov esi, dword [esp + 0x10]
xor edx, edx
shl eax, 8
mov dl, byte [ecx + esi]
mov esi, edx
add esi, eax
lea eax, [esp + 0x10]
inc ecx
push eax
mov dword [esp + 0x20], ecx
call fcn.10011a60
add esp, 4
cmp esi, 0x7d00
jb 0x10011957
inc eax
cmp esi, 0x500
jb 0x10011960
inc eax
cmp esi, 0x80
jae 0x1001196b
add eax, 2
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
lea edx, [eax + ecx]
cmp edx, edi
jae 0x100119ef
mov edx, ecx
sub edx, esi
js 0x100119ef
test eax, eax
je 0x100119a0
mov edi, eax
mov eax, dword [esp + 0x14]
mov edx, ecx
sub edx, esi
mov dl, byte [edx + eax]
mov byte [ecx + eax], dl
mov ecx, dword [esp + 0x20]
inc ecx
dec edi
mov dword [esp + 0x20], ecx
jne 0x10011986
mov edi, 1
jmp 0x100119e1
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
cmp ecx, eax
jae 0x10011a04
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
cmp eax, edx
jae 0x10011a04
mov edx, dword [esp + 0x10]
mov al, byte [eax + edx]
mov edx, dword [esp + 0x14]
mov byte [ecx + edx], al
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc ecx
inc eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
xor edi, edi
test ebx, ebx
je 0x10011751
jmp 0x100119ef
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
cmp ecx, edx
jb 0x100119fa
lea ecx, [edx - 1]
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret