Function at 0x54cca0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
call fcn.0054c9c0
add esp, 4
test eax, eax
jne 0x54d642
mov esi, dword [esp + 0x20]
cmp esi, 5
jg 0x54d642
test esi, esi
jl 0x54d642
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x1c]
test eax, eax
je 0x54d642
mov eax, dword [ebx + 4]
test eax, eax
je 0x54ccef
cmp dword [ebx], 0
je 0x54d642
cmp dword [ebp + 4], 0x29a
jne 0x54cd01
cmp esi, 4
jne 0x54d642
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x54d642
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x28]
test ecx, ecx
mov dword [ebp + 0x28], esi
je 0x54cd3a
push ebx
call fcn.0054d680
mov eax, dword [ebx + 0x10]
add esp, 4
test eax, eax
jne 0x54cd70
pop edi
mov dword [ebp + 0x28], 0xffffffff
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x54cd70
xor ecx, ecx
cmp eax, 4
setle cl
dec ecx
lea edx, [eax + eax]
and ecx, 9
xor eax, eax
sub edx, ecx
cmp esi, 4
setle al
dec eax
lea ecx, [esi + esi]
and eax, 9
sub ecx, eax
cmp ecx, edx
jg 0x54cd70
cmp esi, 4
jne 0x54d642
mov eax, dword [ebp + 4]
cmp eax, 0x29a
jne 0x54cd85
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x54d642
cmp eax, 0x2a
jne 0x54cd98
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x54cd98
mov dword [ebp + 4], 0x71
cmp dword [ebp + 4], 0x2a
jne 0x54ce63
mov ecx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x88]
shl ecx, 0xc
sub ecx, 0x7800
cmp eax, 2
jge 0x54cddd
mov edi, dword [ebp + 0x84]
cmp edi, 2
jl 0x54cddd
cmp edi, 6
jge 0x54cdd0
mov eax, 1
jmp 0x54cddf
xor eax, eax
cmp edi, 6
setne al
add eax, 2
jmp 0x54cddf
xor eax, eax
shl eax, 6
or ecx, eax
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x54cdee
or ecx, 0x20
mov eax, ecx
xor edx, edx
mov edi, 0x1f
div edi
sub ecx, edx
add ecx, edi
push ecx
push ebp
call fcn.0054d650
mov eax, dword [ebp + 0x6c]
add esp, 8
test eax, eax
je 0x54ce2d
xor edx, edx
mov dx, word [ebx + 0x32]
push edx
push ebp
call fcn.0054d650
mov eax, dword [ebx + 0x30]
and eax, 0xffff
push eax
push ebp
call fcn.0054d650
add esp, 0x10
push 0
push 0
push 0
call fcn.0054fc80
mov dword [ebx + 0x30], eax
push ebx
mov dword [ebp + 4], 0x71
call fcn.0054d680
mov eax, dword [ebp + 0x14]
add esp, 0x10
test eax, eax
je 0x54ce63
pop edi
mov dword [ebp + 0x28], 0xffffffff
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 4], 0x39
jne 0x54d0c2
push 0
push 0
push 0
call fcn.0054f120
mov dword [ebx + 0x30], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
add esp, 0xc
mov byte [ecx + edx], 0x1f
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc esi
mov eax, esi
mov dword [ebp + 0x14], esi
mov byte [eax + ecx], 0x8b
mov edx, dword [ebp + 0x14]
inc edx
mov dword [ebp + 0x14], edx
mov eax, edx
mov edx, dword [ebp + 8]
mov byte [eax + edx], 8
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
inc ecx
test edi, edi
mov dword [ebp + 0x14], ecx
mov esi, ecx
jne 0x54cf7c
mov eax, dword [ebp + 8]
mov byte [esi + eax], 0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc edx
mov eax, edx
mov dword [ebp + 0x14], edx
mov byte [eax + ecx], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc ecx
mov eax, ecx
mov dword [ebp + 0x14], ecx
mov byte [eax + edx], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp + 0x14], eax
mov byte [eax + ecx], 0
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc edi
mov eax, edi
mov dword [ebp + 0x14], edi
mov byte [eax + edx], 0
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x84]
inc esi
cmp eax, 9
mov dword [ebp + 0x14], esi
mov ecx, esi
jne 0x54cf1c
mov eax, 2
jmp 0x54cf33
cmp dword [ebp + 0x88], 2
jge 0x54cf2e
cmp eax, 2
jl 0x54cf2e
xor eax, eax
jmp 0x54cf33
mov eax, 4
mov edx, dword [ebp + 8]
push ebx
mov byte [ecx + edx], al
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc edi
mov eax, edi
mov dword [ebp + 0x14], edi
mov byte [eax + ecx], 0xa
mov esi, dword [ebp + 0x14]
inc esi
mov dword [ebp + 4], 0x71
mov dword [ebp + 0x14], esi
call fcn.0054d680
mov eax, dword [ebp + 0x14]
add esp, 4
test eax, eax
je 0x54d0be
pop edi
mov dword [ebp + 0x28], 0xffffffff
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x2c]
neg edx
sbb dl, dl
mov ecx, dword [edi + 0x1c]
and edx, 0x10
neg eax
sbb al, al
and eax, 2
add dl, al
mov eax, dword [edi + 0x10]
neg ecx
sbb cl, cl
and ecx, 8
add dl, cl
neg eax
sbb al, al
and eax, 4
add dl, al
mov eax, dword [edi]
test eax, eax
mov eax, dword [ebp + 8]
setne cl
add dl, cl
mov byte [esi + eax], dl
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
inc edx
mov dword [ebp + 0x14], edx
mov eax, edx
mov edx, dword [ebp + 8]
mov cl, byte [ecx + 4]
mov byte [eax + edx], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
inc ecx
mov dword [ebp + 0x14], ecx
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dl, byte [edx + 5]
mov byte [eax + ecx], dl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
inc eax
mov dword [ebp + 0x14], eax
mov cl, byte [ecx + 6]
mov byte [eax + edx], cl
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
inc edi
mov dword [ebp + 0x14], edi
mov dl, byte [edx + 7]
mov eax, edi
mov byte [eax + ecx], dl
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x84]
inc esi
cmp eax, 9
mov dword [ebp + 0x14], esi
mov ecx, esi
jne 0x54d026
mov eax, 2
jmp 0x54d03d
cmp dword [ebp + 0x88], 2
jge 0x54d038
cmp eax, 2
jl 0x54d038
xor eax, eax
jmp 0x54d03d
mov eax, 4
mov edx, dword [ebp + 8]
mov byte [ecx + edx], al
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
inc edi
mov dword [ebp + 0x14], edi
mov cl, byte [ecx + 0xc]
mov eax, edi
mov byte [eax + edx], cl
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
inc esi
mov dword [ebp + 0x14], esi
mov ecx, esi
mov edx, dword [eax + 0x10]
test edx, edx
je 0x54d092
mov edx, dword [ebp + 8]
mov al, byte [eax + 0x14]
mov byte [ecx + edx], al
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc ecx
mov dword [ebp + 0x14], ecx
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
mov cl, byte [ecx + 0x15]
mov byte [eax + edx], cl
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x14], eax
mov ecx, eax
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x54d0b0
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebx + 0x30]
push eax
push ecx
call fcn.0054f120
add esp, 0xc
mov dword [ebx + 0x30], eax
mov dword [ebp + 0x20], 0
mov dword [ebp + 4], 0x45
mov esi, dword [esp + 0x20]
cmp dword [ebp + 4], 0x45
jne 0x54d204
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x54d1fd
mov ecx, dword [eax + 0x14]
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
and ecx, 0xffff
mov dword [esp + 0x10], edx
sub ecx, edi
mov dword [esp + 0x1c], ecx
add ecx, edx
cmp ecx, eax
jbe 0x54d197
mov edi, dword [ebp + 0x20]
sub eax, edx
mov dword [esp + 0x14], eax
mov ecx, eax
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax + 0x10]
add esi, edi
mov edi, dword [ebp + 8]
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x14], eax
mov edx, dword [ecx + 0x2c]
test edx, edx
je 0x54d156
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jbe 0x54d156
mov edx, dword [ebp + 8]
sub eax, ecx
push eax
mov eax, dword [ebx + 0x30]
add edx, ecx
push edx
push eax
call fcn.0054f120
add esp, 0xc
mov dword [ebx + 0x30], eax
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0x20]
add edi, esi
push ebx
mov dword [ebp + 0x20], edi
call fcn.0054d680
mov eax, dword [ebp + 0x14]
add esp, 4
test eax, eax
jne 0x54d515
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [ebp + 0xc]
sub ecx, esi
mov dword [esp + 0x1c], ecx
add ecx, edx
cmp ecx, eax
mov dword [esp + 0x10], 0
ja 0x54d100
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [edx + 0x10]
mov edx, dword [ebp + 8]
add esi, edi
mov edi, dword [ebp + 0x14]
mov ecx, eax
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
add esi, eax
mov dword [ebp + 0x14], esi
mov edx, dword [ecx + 0x2c]
test edx, edx
mov eax, esi
je 0x54d1f2
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jbe 0x54d1f2
mov edx, dword [ebp + 8]
sub eax, ecx
push eax
mov eax, dword [ebx + 0x30]
add edx, ecx
push edx
push eax
call fcn.0054f120
add esp, 0xc
mov dword [ebx + 0x30], eax
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x20], 0
mov dword [ebp + 4], 0x49
cmp dword [ebp + 4], 0x49
jne 0x54d2c2
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x54d2bb
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jne 0x54d265
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x54d24f
cmp ecx, edi
jbe 0x54d24f
mov eax, dword [ebp + 8]
sub ecx, edi
push ecx
mov ecx, dword [ebx + 0x30]
add eax, edi
push eax
push ecx
call fcn.0054f120
add esp, 0xc
mov dword [ebx + 0x30], eax
push ebx
call fcn.0054d680
mov ecx, dword [ebp + 0x14]
add esp, 4
test ecx, ecx
jne 0x54d515
xor edi, edi
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov esi, dword [eax + 0x1c]
xor eax, eax
mov al, byte [esi + edx]
inc edx
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 8]
mov byte [ecx + edx], al
mov esi, dword [ebp + 0x14]
inc esi
test eax, eax
mov dword [ebp + 0x14], esi
mov ecx, esi
jne 0x54d21f
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x54d2b0
cmp ecx, edi
jbe 0x54d2b0
mov edx, dword [ebx + 0x30]
sub ecx, edi
push ecx
mov ecx, dword [ebp + 8]
add ecx, edi
push ecx
push edx
call fcn.0054f120
add esp, 0xc
mov dword [ebx + 0x30], eax
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x20], 0
mov dword [ebp + 4], 0x5b
cmp dword [ebp + 4], 0x5b
jne 0x54d379
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x54d372
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jne 0x54d323
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x54d30d
cmp ecx, edi
jbe 0x54d30d
mov eax, dword [ebp + 8]
sub ecx, edi
push ecx
mov ecx, dword [ebx + 0x30]
add eax, edi
push eax
push ecx
call fcn.0054f120
add esp, 0xc
mov dword [ebx + 0x30], eax
push ebx
call fcn.0054d680
mov ecx, dword [ebp + 0x14]
add esp, 4
test ecx, ecx
jne 0x54d515
xor edi, edi
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov esi, dword [eax + 0x24]
xor eax, eax
mov al, byte [esi + edx]
inc edx
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 8]
mov byte [ecx + edx], al
mov esi, dword [ebp + 0x14]
inc esi
test eax, eax
mov dword [ebp + 0x14], esi
mov ecx, esi
jne 0x54d2dd
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x54d36e
cmp ecx, edi
jbe 0x54d36e
mov edx, dword [ebx + 0x30]
sub ecx, edi
push ecx
mov ecx, dword [ebp + 8]
add ecx, edi
push ecx
push edx
call fcn.0054f120
add esp, 0xc
mov dword [ebx + 0x30], eax
mov esi, dword [esp + 0x20]
mov dword [ebp + 4], 0x67
cmp dword [ebp + 4], 0x67
jne 0x54d416
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x54d3ee
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
lea ecx, [eax + 2]
cmp ecx, edx
jbe 0x54d3bb
push ebx
call fcn.0054d680
mov eax, dword [ebp + 0x14]
add esp, 4
test eax, eax
je 0x54d3bb
pop edi
mov dword [ebp + 0x28], 0xffffffff
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [ebp + 8]
mov cl, byte [ebx + 0x30]
push 0
push 0
mov byte [eax + edx], cl
mov edx, dword [ebp + 0x14]
inc edx
push 0
mov dword [ebp + 0x14], edx
mov cl, byte [ebx + 0x31]
mov eax, edx
mov edx, dword [ebp + 8]
mov byte [eax + edx], cl
mov ecx, dword [ebp + 0x14]
inc ecx
mov dword [ebp + 0x14], ecx
call fcn.0054f120
add esp, 0xc
mov dword [ebx + 0x30], eax
push ebx
mov dword [ebp + 4], 0x71
call fcn.0054d680
mov eax, dword [ebp + 0x14]
add esp, 4
test eax, eax
je 0x54d416
pop edi
mov dword [ebp + 0x28], 0xffffffff
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx + 4]
test eax, eax
jne 0x54d439
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x54d439
test esi, esi
je 0x54d526
cmp dword [ebp + 4], 0x29a
je 0x54d526
mov eax, dword [ebp + 0x84]
push esi
test eax, eax
push ebp
jne 0x54d44c
call fcn.0054daa0
jmp 0x54d474
mov ecx, dword [ebp + 0x88]
cmp ecx, 2
jne 0x54d45e
call fcn.0054ebf0
jmp 0x54d474
cmp ecx, 3
jne 0x54d46a
call fcn.0054e8d0
jmp 0x54d474
lea edx, [eax + eax*2]
call dword [edx*4 + 0x591710]
add esp, 8
cmp eax, 2
je 0x54d481
cmp eax, 3
jne 0x54d488
mov dword [ebp + 4], 0x29a
test eax, eax
je 0x54d62a
cmp eax, 2
je 0x54d62a
cmp eax, 1
jne 0x54d526
cmp esi, eax
jne 0x54d4b1
push ebp
call fcn.0054fe90
add esp, 4
jmp 0x54d505
cmp esi, 5
je 0x54d505
push 0
push 0
push 0
push ebp
call fcn.0054fd70
add esp, 0x10
cmp esi, 3
jne 0x54d505
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x44]
mov word [ecx + eax*2 - 2], 0
mov edx, dword [ebp + 0x4c]
mov edi, dword [ebp + 0x44]
xor eax, eax
lea ecx, [edx + edx - 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, esi
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x54d505
xor eax, eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x16b4], eax
push ebx
call fcn.0054d680
mov eax, dword [ebx + 0x10]
add esp, 4
test eax, eax
jne 0x54d526
pop edi
mov dword [ebp + 0x28], 0xffffffff
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp esi, 4
je 0x54d535
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebp + 0x18]
test eax, eax
jg 0x54d549
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x54d5e3
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dl, byte [ebx + 0x30]
mov byte [eax + ecx], dl
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc edx
mov dword [ebp + 0x14], edx
mov eax, edx
mov dl, byte [ebx + 0x31]
mov byte [eax + ecx], dl
mov ecx, dword [ebp + 0x14]
inc ecx
mov dword [ebp + 0x14], ecx
mov dl, byte [ebx + 0x32]
mov eax, ecx
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], dl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp + 0x14], eax
mov dl, byte [ebx + 0x33]
mov byte [eax + ecx], dl
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc edi
mov dword [ebp + 0x14], edi
mov dl, byte [ebx + 8]
mov eax, edi
mov byte [eax + ecx], dl
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc esi
mov dword [ebp + 0x14], esi
mov dl, byte [ebx + 9]
mov eax, esi
mov byte [eax + ecx], dl
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc edx
mov dword [ebp + 0x14], edx
mov eax, edx
mov dl, byte [ebx + 0xa]
mov byte [eax + ecx], dl
mov ecx, dword [ebp + 0x14]
inc ecx
mov dword [ebp + 0x14], ecx
mov dl, byte [ebx + 0xb]
mov eax, ecx
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], dl
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x14], eax
jmp 0x54d603
xor eax, eax
mov ax, word [ebx + 0x32]
push eax
push ebp
call fcn.0054d650
mov ecx, dword [ebx + 0x30]
and ecx, 0xffff
push ecx
push ebp
call fcn.0054d650
add esp, 0x10
push ebx
call fcn.0054d680
mov eax, dword [ebp + 0x18]
add esp, 4
test eax, eax
jle 0x54d618
neg eax
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
sete al
add esp, 8
ret
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x54d638
mov dword [ebp + 0x28], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 8
ret