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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
je 0x2081216e
mov ebp, dword [ebx + 0x1c]
test ebp, ebp
je 0x2081216e
mov ecx, dword [esp + 0x1c]
cmp ecx, 4
jg 0x2081216e
test ecx, ecx
jl 0x2081216e
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x20812165
cmp dword [ebx], 0
jne 0x208115ac
mov eax, dword [ebx + 4]
test eax, eax
jne 0x20812165
mov eax, dword [ebp + 4]
cmp eax, 0x29a
jne 0x208115bf
cmp ecx, 4
jne 0x20812165
mov edx, dword [ebx + 0x10]
test edx, edx
jne 0x208115d9
mov eax, dword [0x20731af8]
pop edi
pop esi
mov dword [ebx + 0x18], eax
pop ebp
mov eax, 0xfffffffb
pop ebx
pop ecx
ret
mov edx, dword [ebp + 0x28]
cmp eax, 0x2a
mov dword [ebp], ebx
mov dword [esp + 0x10], edx
mov dword [ebp + 0x28], ecx
jne 0x2081192c
mov eax, dword [ebp + 0x18]
mov edi, 2
cmp eax, edi
jne 0x2081183f
push 0
push 0
push 0
call fcn.20835ad0
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov byte [eax + ecx], 0x1f
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc esi
mov eax, esi
mov dword [ebp + 0x14], esi
mov byte [eax + edx], 0x8b
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc edx
mov eax, edx
mov dword [ebp + 0x14], edx
mov byte [eax + ecx], 8
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
inc ecx
test esi, esi
mov dword [ebp + 0x14], ecx
mov edi, ecx
jne 0x208116ee
mov edx, dword [ebp + 8]
mov byte [edi + edx], 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 0x208116ae
mov eax, 2
jmp 0x208116c5
cmp dword [ebp + 0x88], 2
jge 0x208116c0
cmp eax, 2
jl 0x208116c0
xor eax, eax
jmp 0x208116c5
mov eax, 4
mov edx, dword [ebp + 8]
mov byte [ecx + edx], al
mov ecx, dword [ebp + 0x14]
inc ecx
mov dword [ebp + 0x14], ecx
mov eax, ecx
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0xb
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 4], 0x71
mov dword [ebp + 0x14], eax
jmp 0x2081192c
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
neg edx
sbb dl, dl
mov ecx, dword [esi + 0x1c]
and edx, 0x10
neg eax
sbb al, al
and eax, 2
add dl, al
mov eax, dword [esi + 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 [esi]
test eax, eax
mov eax, dword [ebp + 8]
setne cl
add dl, cl
mov byte [edi + eax], 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 + 4]
mov byte [eax + edx], cl
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
inc edi
mov dword [ebp + 0x14], edi
mov eax, edi
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 8]
shr ecx, 8
mov byte [eax + edx], cl
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
inc edx
mov dword [ebp + 0x14], edx
mov eax, edx
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 8]
shr edx, 0x10
mov byte [eax + ecx], dl
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
inc eax
mov dword [ebp + 0x14], eax
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 8]
shr ecx, 0x18
mov byte [eax + edx], cl
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x84]
inc esi
cmp eax, 9
mov dword [ebp + 0x14], esi
mov ecx, esi
jne 0x2081179f
mov eax, 2
jmp 0x208117b6
cmp dword [ebp + 0x88], 2
jge 0x208117b1
cmp eax, 2
jl 0x208117b1
xor eax, eax
jmp 0x208117b6
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 0x2081180e
mov edx, dword [ebp + 8]
mov al, byte [eax + 0x14]
mov byte [ecx + edx], al
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
inc edx
mov dword [ebp + 0x14], edx
mov eax, edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ebp + 8]
shr edx, 8
mov byte [eax + ecx], dl
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 0x2081182c
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebx + 0x30]
push eax
push ecx
call fcn.20835ad0
add esp, 0xc
mov dword [ebx + 0x30], eax
mov dword [ebp + 0x20], 0
mov dword [ebp + 4], 0x45
jmp 0x2081192c
mov ecx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x88]
shl ecx, 0xc
sub ecx, 0x7800
cmp eax, edi
jge 0x20811877
mov esi, dword [ebp + 0x84]
cmp esi, edi
jl 0x20811877
cmp esi, 6
jge 0x2081186b
mov eax, 1
jmp 0x20811879
xor eax, eax
cmp esi, 6
setne al
add eax, edi
jmp 0x20811879
xor eax, eax
shl eax, 6
or ecx, eax
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x20811888
or ecx, 0x20
mov eax, ecx
xor edx, edx
mov esi, 0x1f
mov dword [ebp + 4], 0x71
div esi
mov eax, esi
mov esi, dword [ebp + 0x14]
sub eax, edx
add ecx, eax
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 8
mov byte [eax + esi], dl
mov edx, dword [ebp + 0x14]
inc edx
mov dword [ebp + 0x14], edx
mov eax, edx
mov edx, dword [ebp + 8]
mov byte [eax + edx], cl
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x6c]
inc ecx
test eax, eax
mov dword [ebp + 0x14], ecx
mov esi, ecx
je 0x2081191b
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp + 8]
shr eax, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esi + edx], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc ecx
mov dword [ebp + 0x14], ecx
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x14]
inc eax
mov edx, dword [ebp + 8]
mov dword [ebp + 0x14], eax
mov esi, eax
mov eax, dword [ebx + 0x30]
and eax, 0xffff
mov ecx, eax
shr ecx, 8
mov byte [esi + edx], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc ecx
mov dword [ebp + 0x14], ecx
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x14], eax
push 0
push 0
push 0
call fcn.20833cf0
add esp, 0xc
mov dword [ebx + 0x30], eax
cmp dword [ebp + 4], 0x45
jne 0x20811a74
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x20811a6d
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x14]
and eax, 0xffff
cmp edx, eax
jae 0x20811a32
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
cmp eax, edx
jne 0x208119fe
mov edx, dword [ecx + 0x2c]
test edx, edx
je 0x2081198b
cmp eax, esi
jbe 0x2081198b
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
sub eax, esi
add ecx, esi
push eax
push ecx
push edx
call fcn.20835ad0
add esp, 0xc
mov dword [ebx + 0x30], eax
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0x14]
cmp eax, ecx
jbe 0x2081199a
mov eax, ecx
test eax, eax
je 0x208119f2
mov esi, dword [edx + 0x10]
mov edi, dword [ebx + 0xc]
mov ecx, eax
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 [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
add esi, eax
mov dword [ebx + 0xc], esi
mov edx, dword [ecx + 0x10]
add edx, eax
mov dword [ecx + 0x10], edx
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
add edi, eax
sub esi, eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], esi
mov edx, dword [ecx + 0x14]
sub edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x208119f2
mov ecx, dword [eax + 8]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
mov esi, eax
je 0x20811a32
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
mov edx, dword [ebp + 0x20]
mov cl, byte [ecx + edx]
mov byte [edi + eax], cl
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x20]
inc ecx
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x1c]
inc eax
mov dword [ebp + 0x20], eax
mov edx, dword [ecx + 0x14]
and edx, 0xffff
cmp eax, edx
jb 0x2081195a
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x20811a5b
mov eax, dword [ebp + 0x14]
cmp eax, esi
jbe 0x20811a5b
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
sub eax, esi
add ecx, esi
push eax
push ecx
push edx
call fcn.20835ad0
add esp, 0xc
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [eax + 0x14]
jne 0x20811a74
mov dword [ebp + 0x20], 0
mov dword [ebp + 4], 0x49
cmp dword [ebp + 4], 0x49
jne 0x20811ba9
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x20811ba2
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x20811b36
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 0x2c]
test edx, edx
je 0x20811ac3
cmp eax, esi
jbe 0x20811ac3
mov edx, dword [ebp + 8]
sub eax, esi
push eax
mov eax, dword [ebx + 0x30]
add edx, esi
push edx
push eax
call fcn.20835ad0
add esp, 0xc
mov dword [ebx + 0x30], eax
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0x14]
cmp eax, ecx
jbe 0x20811ad2
mov eax, ecx
test eax, eax
je 0x20811b2a
mov esi, dword [edx + 0x10]
mov edi, dword [ebx + 0xc]
mov ecx, eax
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 [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
add esi, eax
mov dword [ebx + 0xc], esi
mov edx, dword [ecx + 0x10]
add edx, eax
mov dword [ecx + 0x10], edx
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
add edi, eax
sub esi, eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], esi
mov edx, dword [ecx + 0x14]
sub edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x20811b2a
mov ecx, dword [eax + 8]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
mov esi, eax
je 0x20811b62
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov edi, dword [ecx + 0x1c]
xor ecx, ecx
mov cl, byte [edi + edx]
inc edx
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov byte [edx + eax], cl
mov edx, dword [ebp + 0x14]
inc edx
test ecx, ecx
mov dword [ebp + 0x14], edx
je 0x20811b6e
jmp 0x20811a8f
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x20811b9b
mov eax, dword [ebp + 0x14]
cmp eax, esi
jbe 0x20811b9b
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
sub eax, esi
add ecx, esi
push eax
push ecx
push edx
call fcn.20835ad0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebx + 0x30], eax
test ecx, ecx
jne 0x20811ba9
mov dword [ebp + 0x20], ecx
mov dword [ebp + 4], 0x5b
cmp dword [ebp + 4], 0x5b
jne 0x20811cdb
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x20811cd4
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x20811c6b
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 0x2c]
test edx, edx
je 0x20811bf8
cmp eax, esi
jbe 0x20811bf8
mov edx, dword [ebp + 8]
sub eax, esi
push eax
mov eax, dword [ebx + 0x30]
add edx, esi
push edx
push eax
call fcn.20835ad0
add esp, 0xc
mov dword [ebx + 0x30], eax
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0x14]
cmp eax, ecx
jbe 0x20811c07
mov eax, ecx
test eax, eax
je 0x20811c5f
mov esi, dword [edx + 0x10]
mov edi, dword [ebx + 0xc]
mov ecx, eax
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 [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
add esi, eax
mov dword [ebx + 0xc], esi
mov edx, dword [ecx + 0x10]
add edx, eax
mov dword [ecx + 0x10], edx
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
add edi, eax
sub esi, eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], esi
mov edx, dword [ecx + 0x14]
sub edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x20811c5f
mov ecx, dword [eax + 8]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
mov esi, eax
je 0x20811c97
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov edi, dword [ecx + 0x24]
xor ecx, ecx
mov cl, byte [edi + edx]
inc edx
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov byte [edx + eax], cl
mov edx, dword [ebp + 0x14]
inc edx
test ecx, ecx
mov dword [ebp + 0x14], edx
je 0x20811ca3
jmp 0x20811bc4
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x20811cd0
mov eax, dword [ebp + 0x14]
cmp eax, esi
jbe 0x20811cd0
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
sub eax, esi
add ecx, esi
push eax
push ecx
push edx
call fcn.20835ad0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebx + 0x30], eax
test ecx, ecx
jne 0x20811cdb
mov dword [ebp + 4], 0x67
cmp dword [ebp + 4], 0x67
jne 0x20811db1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x20811daa
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ecx, 2
cmp ecx, eax
jbe 0x20811d67
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0x14]
cmp eax, ecx
jbe 0x20811d0f
mov eax, ecx
test eax, eax
je 0x20811d67
mov esi, dword [edx + 0x10]
mov edi, dword [ebx + 0xc]
mov ecx, eax
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 [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
add esi, eax
mov dword [ebx + 0xc], esi
mov edx, dword [ecx + 0x10]
add edx, eax
mov dword [ecx + 0x10], edx
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
add edi, eax
sub esi, eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], esi
mov edx, dword [ecx + 0x14]
sub edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x20811d67
mov ecx, dword [eax + 8]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
lea edx, [eax + 2]
cmp edx, ecx
ja 0x20811db1
mov ecx, dword [ebp + 8]
mov dl, byte [ebx + 0x30]
push 0
push 0
mov byte [eax + ecx], dl
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc esi
mov dword [ebp + 0x14], esi
mov ecx, dword [ebx + 0x30]
mov eax, esi
push 0
shr ecx, 8
mov byte [eax + edx], cl
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x14], eax
call fcn.20835ad0
add esp, 0xc
mov dword [ebx + 0x30], eax
mov dword [ebp + 4], 0x71
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x20811e35
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0x14]
cmp eax, ecx
jbe 0x20811dc7
mov eax, ecx
test eax, eax
je 0x20811e1f
mov esi, dword [edx + 0x10]
mov edi, dword [ebx + 0xc]
mov ecx, eax
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 [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
add esi, eax
mov dword [ebx + 0xc], esi
mov edx, dword [ecx + 0x10]
add edx, eax
mov dword [ecx + 0x10], edx
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
add edi, eax
sub esi, eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], esi
mov edx, dword [ecx + 0x14]
sub edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x20811e1f
mov ecx, dword [eax + 8]
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x20811e61
pop edi
mov dword [ebp + 0x28], 0xffffffff
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebx + 4]
test eax, eax
jne 0x20811e61
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jg 0x20811e61
cmp eax, 4
je 0x20811e61
mov edx, dword [0x20731af8]
pop edi
pop esi
mov dword [ebx + 0x18], edx
pop ebp
mov eax, 0xfffffffb
pop ebx
pop ecx
ret
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + 4]
cmp eax, 0x29a
jne 0x20811e85
test ecx, ecx
je 0x20811e89
mov eax, dword [0x20731af8]
pop edi
pop esi
mov dword [ebx + 0x18], eax
pop ebp
mov eax, 0xfffffffb
pop ebx
pop ecx
ret
test ecx, ecx
jne 0x20811ea7
mov ecx, dword [ebp + 0x74]
test ecx, ecx
jne 0x20811ea7
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x20811fb5
cmp eax, 0x29a
je 0x20811fb5
mov eax, dword [ebp + 0x84]
mov edx, dword [esp + 0x1c]
push edx
push ebp
lea ecx, [eax + eax*2]
call dword [ecx*4 + 0x20730690]
add esp, 8
cmp eax, 2
je 0x20811eca
cmp eax, 3
jne 0x20811ed1
mov dword [ebp + 4], 0x29a
test eax, eax
je 0x2081214f
cmp eax, 2
je 0x2081214f
cmp eax, 1
jne 0x20811fb5
mov esi, dword [esp + 0x1c]
cmp esi, eax
jne 0x20811efe
push ebp
call fcn.20834180
add esp, 4
jmp 0x20811f38
push 0
push 0
push 0
push ebp
call fcn.20834020
add esp, 0x10
cmp esi, 3
inc byte [ebx]
jne 0x20811f38
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 edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0x14]
cmp eax, ecx
jbe 0x20811f47
mov eax, ecx
test eax, eax
je 0x20811f9f
mov esi, dword [edx + 0x10]
mov edi, dword [ebx + 0xc]
mov ecx, eax
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 [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
add esi, eax
mov dword [ebx + 0xc], esi
mov edx, dword [ecx + 0x10]
add edx, eax
mov dword [ecx + 0x10], edx
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
add edi, eax
sub esi, eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], esi
mov edx, dword [ecx + 0x14]
sub edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x20811f9f
mov ecx, dword [eax + 8]
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x20811fb5
pop edi
mov dword [ebp + 0x28], 0xffffffff
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esp + 0x1c], 4
je 0x20811fc4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
test eax, eax
jg 0x20811fd6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x2081207b
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov cl, byte [ebx + 0x30]
mov byte [edx + eax], cl
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc edi
mov dword [ebp + 0x14], edi
mov edx, dword [ebx + 0x30]
mov eax, edi
shr edx, 8
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 edx, dword [ebx + 0x30]
shr edx, 0x10
mov byte [eax + ecx], dl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp + 0x14], eax
mov edx, dword [ebx + 0x30]
shr edx, 0x18
mov byte [eax + ecx], dl
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc esi
mov dword [ebp + 0x14], esi
mov cl, byte [ebx + 8]
mov eax, esi
mov byte [eax + edx], cl
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc edx
mov dword [ebp + 0x14], edx
mov eax, edx
mov edx, dword [ebx + 8]
shr edx, 8
mov byte [eax + ecx], dl
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
inc edi
mov dword [ebp + 0x14], edi
mov edx, dword [ebx + 8]
mov eax, edi
shr edx, 0x10
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 edx, dword [ebx + 8]
shr edx, 0x18
mov byte [eax + ecx], dl
jmp 0x208120c5
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
shr eax, 0x10
mov edx, eax
shr edx, 8
mov byte [ecx + esi], dl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc ecx
mov dword [ebp + 0x14], ecx
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x14]
inc eax
mov edx, dword [ebp + 8]
mov dword [ebp + 0x14], eax
mov esi, eax
mov eax, dword [ebx + 0x30]
and eax, 0xffff
mov ecx, eax
shr ecx, 8
mov byte [esi + edx], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
inc ecx
mov dword [ebp + 0x14], ecx
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x14], eax
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0x14]
cmp eax, ecx
jbe 0x208120db
mov eax, ecx
test eax, eax
je 0x20812133
mov esi, dword [edx + 0x10]
mov edi, dword [ebx + 0xc]
mov ecx, eax
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 [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
add esi, eax
mov dword [ebx + 0xc], esi
mov edx, dword [ecx + 0x10]
add edx, eax
mov dword [ecx + 0x10], edx
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
add edi, eax
sub esi, eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], esi
mov edx, dword [ecx + 0x14]
sub edx, eax
mov dword [ecx + 0x14], edx
mov ebx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x20812133
mov eax, dword [ebx + 8]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x2081213f
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
pop ecx
ret
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x2081215d
mov dword [ebp + 0x28], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [0x20731aec]
mov dword [ebx + 0x18], ecx
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
pop ecx
ret