Function at 0x4b1c50
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov ebx, ecx
push 1
lea ecx, [ebp - 8]
push ecx
mov ecx, esi
call dword [eax + 4]
cmp eax, 1
jae 0x4b1c5c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x34]
call fcn.004cd050
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x4c0e0]
lea edi, [ebx + 0x4c0dc]
and eax, 0xff
test ecx, ecx
mov byte [ebp - 0x1c], 0
mov dword [ebp - 4], eax
jne 0x4b1c87
xor edx, edx
jmp 0x4b1ca0
mov edx, dword [edi + 8]
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp - 4]
cmp edx, eax
jae 0x4b1cd9
test ecx, ecx
jne 0x4b1cac
xor edx, edx
jmp 0x4b1cc5
mov edx, dword [edi + 8]
sub edx, ecx
mov eax, 0x66666667
imul edx
mov eax, dword [ebp - 4]
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [ebp - 0x34]
push ecx
sub eax, edx
mov edx, dword [edi + 8]
push eax
push edx
mov ecx, edi
call fcn.004c76b0
jmp 0x4b1cfc
mov ecx, edi
call fcn.004c6450
mov ecx, dword [ebp - 4]
cmp ecx, eax
jae 0x4b1cfc
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
lea ecx, [ecx + ecx*4]
push eax
lea eax, [edx + ecx*8]
push eax
mov ecx, edi
call fcn.004c79a0
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x4c0e0]
test eax, eax
je 0x4b1e5a
mov ecx, dword [ebx + 0x4c0e4]
sub ecx, eax
mov eax, 0x66666667
imul ecx
mov eax, dword [ebp - 4]
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp eax, edx
jae 0x4b1e5a
mov edx, dword [esi]
push 1
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
call dword [edx + 4]
cmp eax, 1
jb 0x4b1c50
mov dl, byte [ebp + 0xb]
test dl, dl
mov edx, dword [ebx + 0x4c0e0]
setne cl
mov byte [edx + edi + 0x18], cl
mov eax, dword [esi]
push 1
lea ecx, [ebp - 8]
push ecx
mov ecx, esi
call dword [eax + 4]
cmp eax, 1
jb 0x4b1c50
mov edx, dword [ebx + 0x4c0e0]
mov al, byte [ebp - 8]
mov byte [edx + edi + 0x19], al
mov edx, dword [esi]
push 1
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
call dword [edx + 4]
cmp eax, 1
jb 0x4b1c50
mov ecx, dword [ebx + 0x4c0e0]
mov dl, byte [ebp + 0xb]
mov byte [ecx + edi + 0x1a], dl
mov eax, dword [esi]
push 1
lea ecx, [ebp + 0xb]
push ecx
mov ecx, esi
call dword [eax + 4]
cmp eax, 1
jb 0x4b1c50
mov edx, dword [ebx + 0x4c0e0]
mov al, byte [ebp + 0xb]
mov byte [edx + edi + 0x1b], al
mov edx, dword [esi]
push 1
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
call dword [edx + 4]
cmp eax, 1
jb 0x4b1c50
mov ecx, dword [ebx + 0x4c0e0]
mov dl, byte [ebp + 0xb]
mov byte [ecx + edi + 0x1c], dl
mov eax, dword [esi]
push 2
lea ecx, [ebp - 0xc]
push ecx
mov ecx, esi
call dword [eax + 4]
cmp eax, 2
jb 0x4b1c50
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x4c0e0]
and edx, 0xffff
mov dword [eax + edi + 0x20], edx
mov edx, dword [esi]
push 1
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
call dword [edx + 4]
cmp eax, 1
jb 0x4b1c50
mov al, byte [ebp + 0xb]
mov edx, dword [ebx + 0x4c0e0]
test al, al
setne cl
mov byte [edx + edi + 0x24], cl
mov eax, dword [ebx + 0x4c0e0]
push esi
lea ecx, [edi + eax]
call fcn.004cd0d0
test al, al
je 0x4b1c50
inc dword [ebp - 4]
add edi, 0x28
jmp 0x4b1d01
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4