Function at 0xd15653
Capabilities:
Decompress data using aplib

Disassembly:
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.00cc798f
test eax, eax
je 0xcc7d62
cmp dword [esp + 0x14], 0
je 0xcc7d15
call fcn.00cc798f
test eax, eax
je 0xcc7d62
cmp dword [esp + 0x14], 0
je 0xcc7bf1
call fcn.00cc798f
test eax, eax
je 0xcc7d62
cmp dword [esp + 0x14], 0
je 0xcc7b79
push 4
xor edi, edi
pop esi
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.00cc798f
test eax, eax
je 0xcc7d62
dec esi
mov eax, dword [esp + 0x14]
lea edi, [eax + edi*2]
mov dword [esp + 0x18], edi
jne 0xcc7b03
test edi, edi
je 0xcc7b59
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x2c]
cmp edi, eax
ja 0xcc7d62
mov eax, dword [esp + 0x2c]
dec dword [esp + 0x2c]
test eax, eax
je 0xcc7d62
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
sub eax, edi
mov al, byte [eax]
mov byte [ecx], al
jmp 0xcc7b70
mov eax, dword [esp + 0x2c]
dec dword [esp + 0x2c]
test eax, eax
je 0xcc7d62
mov eax, dword [esp + 0x28]
mov byte [eax], 0
inc dword [esp + 0x28]
jmp 0xcc7d41
mov eax, dword [esp + 0x24]
dec dword [esp + 0x24]
test eax, eax
je 0xcc7d62
mov eax, dword [esp + 0x20]
movzx esi, byte [eax]
inc dword [esp + 0x20]
xor edi, edi
inc edi
mov eax, esi
and eax, edi
inc eax
inc eax
shr esi, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
je 0xcc7be6
mov ecx, dword [ebp + 0xc]
sub ecx, dword [esp + 0x2c]
cmp esi, ecx
ja 0xcc7d62
cmp eax, dword [esp + 0x2c]
ja 0xcc7d62
sub dword [esp + 0x2c], eax
test eax, eax
je 0xcc7bea
mov ecx, dword [esp + 0x28]
sub ecx, esi
mov ebx, dword [esp + 0x28]
mov dl, byte [ecx]
inc dword [esp + 0x28]
inc ecx
dec eax
mov byte [ebx], dl
jne 0xcc7bd0
mov dword [esp + 0x10], eax
jmp 0xcc7bea
mov dword [esp + 0x1c], edi
mov ebx, esi
jmp 0xcc7d43
lea edx, [esp + 0x18]
call fcn.00cc79eb
test eax, eax
je 0xcc7d62
mov eax, dword [esp + 0x18]
test edi, edi
jne 0xcc7c71
cmp eax, 2
jne 0xcc7c6c
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call fcn.00cc79eb
test eax, eax
je 0xcc7d62
sub esi, dword [esp + 0x2c]
cmp ebx, esi
ja 0xcc7d62
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
ja 0xcc7d62
sub dword [esp + 0x2c], eax
test eax, eax
je 0xcc7d10
mov eax, dword [esp + 0x28]
sub eax, ebx
mov edx, dword [esp + 0x28]
mov cl, byte [eax]
inc dword [esp + 0x28]
inc eax
dec dword [esp + 0x10]
mov byte [edx], cl
jne 0xcc7c54
jmp 0xcc7d10
sub eax, 3
jmp 0xcc7c73
dec eax
dec eax
mov ecx, dword [esp + 0x24]
dec dword [esp + 0x24]
test ecx, ecx
je 0xcc7d62
mov ecx, dword [esp + 0x20]
movzx ecx, byte [ecx]
shl eax, 8
add eax, ecx
inc dword [esp + 0x20]
mov esi, eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.00cc79eb
test eax, eax
je 0xcc7d62
cmp esi, 0x7d00
jb 0xcc7cba
inc dword [esp + 0x10]
cmp esi, 0x500
jb 0xcc7cc6
inc dword [esp + 0x10]
cmp esi, 0x80
jae 0xcc7cd3
add dword [esp + 0x10], 2
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x2c]
cmp esi, eax
ja 0xcc7d62
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x2c]
ja 0xcc7d62
sub dword [esp + 0x2c], ecx
test ecx, ecx
je 0xcc7d0e
mov eax, dword [esp + 0x28]
sub eax, esi
mov edi, dword [esp + 0x28]
mov dl, byte [eax]
inc dword [esp + 0x28]
inc eax
dec ecx
mov byte [edi], dl
jne 0xcc7cfa
mov dword [esp + 0x10], ecx
mov ebx, esi
xor edi, edi
inc edi
jmp 0xcc7d43
mov eax, dword [esp + 0x24]
dec dword [esp + 0x24]
test eax, eax
je 0xcc7d62
mov eax, dword [esp + 0x2c]
dec dword [esp + 0x2c]
and al, 0x2c
test eax, eax
je 0xcc7d62
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov al, byte [eax]
inc dword [esp + 0x28]
inc dword [esp + 0x20]
mov byte [ecx], al
xor edi, edi
cmp dword [esp + 0x1c], 0
je 0xcc7aaf
jmp 0xcc7d59
mov eax, dword [esp + 0x28]
sub eax, dword [ebp + 8]
jmp 0xcc7d65
or eax, reloc.RASAPI32.dll_RasGetConnectStatusA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dl, byte [eax]
jmp 0xcc7d80
inc eax
test dl, dl
jne 0xcc7d78
je 0xd15673
or byte [ebx + 0x2c687dc2], ch
je 0xcc7d27
hlt
mov cl, byte [esp + 4]
jmp 0xd15689
push sp
lea esp, [esp + 2]
jmp 0xd156ad
lea esp, [esp + 4]
jmp 0xce34b7
ret
jmp 0xd157a5
push esi
mov si, word [esp]
sub esp, 0xd
lea esp, [esp + 1]
jmp 0xd157f7
pop esi
cmp byte [eax], cl
je 0xd1565d
jne 0xd156f0
cmp byte [eax], cl
jne 0xd15673
je 0xd1563d
xor eax, eax
jmp 0xd1565d
je 0xd1563d
sub esp, 0x14
add esp, 9
lea esp, [esp + 3]
lea esp, [esp + 8]
jmp 0xd156d0
dec eax
cmc
cmp eax, esi
jmp 0xd15757
mov esi, eax
lea esp, [esp + 0xc]
jmp 0xcc7d78