Function at 0x51246c
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [ebp - 0x15], 1
mov byte [ebp - 9], 1
xor eax, eax
mov dword [ebx + 0x28], eax
jmp 0x512787
mov edx, 0xa
mov eax, ebx
call fcn.005134e8
mov edi, eax
movsx eax, word [edi*2 + 0x6427a0]
mov edx, eax
and edx, 1
mov dword [ebp - 0x14], edx
mov esi, eax
shr esi, 1
and esi, 0xf
cmp esi, 0xc
jne 0x512504
mov edx, 2
mov eax, ebx
call fcn.005133c0
shl edi, 2
and edi, 0xc
or eax, edi
mov edi, eax
movsx eax, word [edi*2 + 0x642fa0]
mov esi, eax
shr esi, 1
and esi, 7
shr eax, 4
and eax, 0xfff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], eax
mov edx, 4
sub edx, esi
mov eax, ebx
call fcn.005139bc
jmp 0x512572
test esi, esi
jne 0x512520
mov ecx, 0x5127b8
mov dl, 1
mov eax, dword [0x418a6c]
call fcn.0040cf4c
call fcn.00403c28
jmp 0x512572
cmp esi, 0xf
jne 0x51253a
mov edx, 0xa
mov eax, ebx
call fcn.005139bc
mov byte [ebp - 9], 0
jmp 0x5127a2
shr eax, 5
and eax, 0x7ff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], eax
mov edx, 0xa
sub edx, esi
mov eax, ebx
call fcn.005139bc
cmp dword [ebp - 0x14], 0
jne 0x512572
mov byte [ebp - 0x15], 0
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebp + 8]
mov dword [eax + edx*4], ecx
inc dword [ebx + 0x28]
cmp byte [ebp - 0x15], 0
jne 0x512494
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x10]
jne 0x51276c
mov eax, ebx
call fcn.005122a4
jmp 0x512793
mov edx, 4
mov eax, ebx
call fcn.005133c0
mov edi, eax
movsx eax, word [edi*2 + 0x642fc0]
mov esi, eax
shr esi, 1
and esi, 0xf
shr eax, 5
and eax, 0x7ff
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x64
jne 0x5126be
mov edx, 9
mov eax, ebx
call fcn.005134e8
mov edi, eax
movsx eax, word [edi*2 + 0x642fe8]
mov edx, eax
and edx, 1
mov dword [ebp - 0x14], edx
mov esi, eax
shr esi, 1
and esi, 0xf
shr eax, 5
and eax, 0x7ff
mov dword [ebp - 0x10], eax
cmp esi, 0xc
jne 0x51265d
mov edx, 5
mov eax, ebx
call fcn.005139bc
mov edx, 4
mov eax, ebx
call fcn.005133c0
mov edi, eax
movsx eax, word [edi*2 + 0x642fa0]
mov esi, eax
shr esi, 1
and esi, 7
shr eax, 4
and eax, 0xfff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.00513918
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], eax
mov edx, 4
sub edx, esi
mov eax, ebx
call fcn.005139bc
jmp 0x51276c
cmp esi, 0xf
jne 0x512673
mov edx, 9
mov eax, ebx
call fcn.005139bc
jmp 0x5127a2
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.00513918
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], eax
mov edx, 9
sub edx, esi
mov eax, ebx
call fcn.005139bc
cmp dword [ebp - 0x14], 0
jne 0x51276c
mov byte [ebp - 0x15], 1
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebp + 8]
mov dword [eax + edx*4], ecx
inc dword [ebx + 0x28]
jmp 0x51276c
cmp dword [ebp - 0x10], 0xc8
jne 0x512730
mov edx, 2
mov eax, ebx
call fcn.005133c0
mov edi, eax
movsx eax, word [edi*2 + 0x642fe0]
mov edx, eax
shr edx, 5
and edx, 0x7ff
mov dword [ebp - 0x10], edx
mov esi, eax
shr esi, 1
and esi, 0xf
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.00513918
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], eax
mov edx, 2
sub edx, esi
mov eax, ebx
call fcn.005139bc
mov byte [ebp - 0x15], 1
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebp + 8]
mov dword [eax + edx*4], ecx
inc dword [ebx + 0x28]
jmp 0x51276c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.00513918
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], eax
mov edx, 4
sub edx, esi
mov eax, ebx
call fcn.005139bc
mov byte [ebp - 0x15], 1
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebp + 8]
mov dword [eax + edx*4], ecx
inc dword [ebx + 0x28]
cmp byte [ebp - 0x15], 0
je 0x512594
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x10]
jne 0x512787
mov eax, ebx
call fcn.005122a4
jmp 0x512793
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x10]
jl 0x512572
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebp + 8]
mov dword [eax + edx*4], ecx
inc dword [ebx + 0x28]
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4