Function at 0x419e8c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x28]
lea edx, [eax + 1]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x2c]
lea ecx, [edx + 1]
mov dword [ebp - 0x2c], ecx
movzx edx, byte [edx]
mov byte [eax], dl
jmp 0x41a0e6
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00419df1
test eax, eax
je 0x41a0c8
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00419df1
test eax, eax
je 0x419fe0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00419df1
test eax, eax
je 0x419f77
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 4
jmp 0x419f36
mov eax, dword [ebp - 8]
lea ebx, [eax + eax]
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00419df1
add eax, ebx
mov dword [ebp - 8], eax
sub dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
jne 0x419f1c
cmp dword [ebp - 8], 0
je 0x419f5f
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
neg ecx
add edx, ecx
movzx edx, byte [edx]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x419f6b
mov eax, dword [ebp - 0x28]
lea edx, [eax + 1]
mov dword [ebp - 0x28], edx
mov byte [eax], 0
mov dword [ebp - 0x14], 0
jmp 0x41a0e6
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov dword [ebp - 0x2c], edx
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 1
add eax, 2
mov dword [ebp - 0xc], eax
shr dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x419fc7
jmp 0x419fbf
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
neg ecx
add edx, ecx
movzx edx, byte [edx]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
sub dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x419fa0
jmp 0x419fce
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
jmp 0x41a0e6
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00419e50
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], 0
jne 0x41a03a
cmp dword [ebp - 8], 2
jne 0x41a03a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00419e50
mov dword [ebp - 0xc], eax
jmp 0x41a02f
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
neg ecx
add edx, ecx
movzx edx, byte [edx]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
sub dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x41a010
jmp 0x41a0bf
cmp dword [ebp - 0x14], 0
jne 0x41a046
sub dword [ebp - 8], 3
jmp 0x41a04a
sub dword [ebp - 8], 2
shl dword [ebp - 8], 8
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov dword [ebp - 0x2c], edx
movzx eax, byte [eax]
movzx eax, al
add dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00419e50
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0x7cff
jbe 0x41a07b
add dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0x4ff
jbe 0x41a088
add dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0x7f
ja 0x41a0b3
add dword [ebp - 0xc], 2
jmp 0x41a0b3
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
neg ecx
add edx, ecx
movzx edx, byte [edx]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
sub dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x41a094
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
jmp 0x41a0e6
mov eax, dword [ebp - 0x28]
lea edx, [eax + 1]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x2c]
lea ecx, [edx + 1]
mov dword [ebp - 0x2c], ecx
movzx edx, byte [edx]
mov byte [eax], dl
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x419ed7
mov eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp + 0xc]
sub edx, eax
mov eax, edx
add esp, 0x34
pop ebx
pop ebp
ret