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

Disassembly:
push ebp
mov ebp, esp
pop ebp
mov eax, dword [esp + 4]
sub esp, 0x34
test eax, eax
push ebx
je 0x4af9ad
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x4af9ad
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4af9ad
cmp dword [eax], 0
jne 0x4aeaaa
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4af9ad
cmp dword [ebx], 0xb
jne 0x4aeab5
mov dword [ebx], 0xc
mov ecx, dword [eax + 0xc]
mov edx, dword [ebx + 0x38]
push ebp
mov ebp, dword [ebx + 0x3c]
push esi
mov esi, dword [eax]
push edi
mov edi, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [ebx]
cmp eax, 0x1c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
ja case.0x4aeaf8.1
jmp dword [eax*4 + 0x4afe94]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4aeb11
mov dword [ebx], 0xc
jmp 0x4af841
cmp ebp, 0x10
jae 0x4aeb3d
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x18], edi
add edx, eax
inc esi
cmp ebp, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jb 0x4aeb16
mov eax, edx
and eax, 0xff
shr edx, 8
shl eax, 8
add eax, edx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
je 0x4aeb6d
mov edx, dword [esp + 0x48]
mov dword [edx + 0x18], 0x4be7b0
mov edx, dword [esp + 0x10]
jmp 0x4af83b
mov ecx, dword [esp + 0x10]
mov eax, ecx
and al, 0xf
cmp al, 8
je 0x4aeb8d
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], 0x4be7b0
jmp 0x4af83b
mov eax, dword [ebx + 0x24]
shr ecx, 4
mov dword [esp + 0x10], ecx
and ecx, 0xf
add ecx, 8
sub ebp, 4
cmp ecx, eax
jbe 0x4aebb8
mov edx, dword [esp + 0x48]
mov dword [edx + 0x18], 0x4be7b0
mov edx, dword [esp + 0x10]
jmp 0x4af83b
mov eax, 1
shl eax, cl
mov dword [ebx + 0x14], eax
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebp, ebp
call fcn.004b0914
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
shr edx, 8
not edx
and edx, 2
or edx, 9
mov dword [ebx + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [ebx], edx
mov dword [esp + 0x10], ebp
mov edx, ebp
jmp 0x4af841
cmp ebp, 0x20
jae 0x4aec21
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x18], edi
add edx, eax
inc esi
cmp ebp, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jb 0x4aebfa
mov ecx, edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
xor eax, eax
mov ah, byte [esp + 0x12]
shl ecx, 8
shr edx, 0x18
add ecx, eax
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x48]
xor ebp, ebp
mov dword [ebx + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [esp + 0x10], ebp
mov dword [ebx], 0xa
mov edx, ebp
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4af85b
xor eax, eax
xor ecx, ecx
xor edx, edx
call fcn.004b0914
mov edx, dword [esp + 0x48]
mov dword [ebx + 0x18], eax
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
mov dword [ebx], 0xb
cmp dword [esp + 0x4c], 5
je 0x4af8a7
mov eax, dword [ebx + 4]
test eax, eax
je 0x4aecad
mov ecx, ebp
and ecx, 7
shr edx, cl
sub ebp, ecx
mov dword [ebx], 0x18
mov dword [esp + 0x10], edx
jmp 0x4af841
cmp ebp, 3
jae 0x4aecd5
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x18], edi
add edx, eax
inc esi
cmp ebp, 3
mov dword [esp + 0x14], esi
jb 0x4aecb2
mov ecx, edx
shr edx, 1
and ecx, 1
mov eax, edx
and eax, 3
dec ebp
cmp eax, 3
mov dword [ebx + 4], ecx
ja case.default.0x4aecea
jmp dword [eax*4 + 0x4aff08]
shr edx, 2
mov dword [ebx], 0xd
mov dword [esp + 0x10], edx
sub ebp, 2
jmp 0x4af841
shr edx, 2
mov dword [ebx + 0x4c], 0x4aff40
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x4b0740
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
mov dword [esp + 0x10], edx
sub ebp, 2
jmp 0x4af841
shr edx, 2
mov dword [ebx], 0xf
mov dword [esp + 0x10], edx
sub ebp, 2
jmp 0x4af841
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], 0x4be7b0
mov dword [ebx], 0x1b
shr edx, 2
mov dword [esp + 0x10], edx
sub ebp, 2
jmp 0x4af841
mov ecx, ebp
and ecx, 7
shr edx, cl
sub ebp, ecx
cmp ebp, 0x20
mov dword [esp + 0x10], edx
jae 0x4aeda5
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x18], edi
add edx, eax
inc esi
cmp ebp, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jb 0x4aed7e
mov ecx, edx
mov eax, edx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x4aedc7
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], 0x4be7b0
jmp 0x4af83b
xor ebp, ebp
mov dword [ebx + 0x40], eax
mov dword [esp + 0x10], ebp
mov dword [ebx], 0xe
mov edx, ebp
mov ecx, dword [ebx + 0x40]
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x4af464
cmp ecx, edi
jbe 0x4aedf1
mov ecx, edi
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jbe 0x4aedff
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4af8a7
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
sub esi, eax
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x24]
add ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x40]
sub edi, eax
add esi, eax
sub ecx, eax
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x40], ecx
jmp 0x4af841
cmp ebp, 0xe
jae 0x4aee86
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x18], edi
add edx, eax
inc esi
cmp ebp, 0xe
mov dword [esp + 0x14], esi
jb 0x4aee63
mov ecx, edx
and ecx, 0x1f
shr edx, 5
add ecx, 0x101
mov eax, edx
mov dword [ebx + 0x60], ecx
and eax, 0x1f
shr edx, 5
inc eax
mov ecx, edx
and ecx, 0xf
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x60]
add ecx, 4
shr edx, 4
sub ebp, 0xe
cmp eax, 0x11e
mov dword [ebx + 0x5c], ecx
mov dword [esp + 0x10], edx
ja 0x4aefac
cmp dword [ebx + 0x64], 0x1e
ja 0x4aefac
mov dword [ebx + 0x68], 0
mov dword [ebx], 0x10
mov ecx, dword [ebx + 0x68]
cmp ecx, dword [ebx + 0x5c]
jae 0x4aef3a
cmp ebp, 3
jae 0x4aef0d
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x18], edi
add edx, eax
inc esi
cmp ebp, 3
mov dword [esp + 0x14], esi
jb 0x4aeeea
mov eax, dword [ebx + 0x68]
movzx eax, word [eax*2 + 0x4aff18]
xor ecx, ecx
mov cl, dl
shr edx, 3
sub ebp, 3
mov dword [esp + 0x10], edx
and ecx, 7
mov word [ebx + eax*2 + 0x70], cx
mov ecx, dword [ebx + 0x68]
inc ecx
mov dword [ebx + 0x68], ecx
cmp ecx, dword [ebx + 0x5c]
jb 0x4aeee5
mov ecx, dword [ebx + 0x68]
mov eax, 0x13
cmp ecx, eax
jae 0x4aef63
xor ecx, ecx
mov edx, dword [ebx + 0x68]
movzx edx, word [edx*2 + 0x4aff18]
mov word [ebx + edx*2 + 0x70], cx
mov edx, dword [ebx + 0x68]
inc edx
cmp edx, eax
mov dword [ebx + 0x68], edx
jb 0x4aef48
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ecx], eax
mov dword [ebx + 0x4c], eax
lea edx, [ebx + 0x2f0]
push edx
lea eax, [ebx + 0x54]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [ebx + 0x70]
push eax
push 0
call fcn.004af9b9
test eax, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
je 0x4aefbc
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], 0x4be7b0
jmp 0x4af83b
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], 0x4be7b0
jmp 0x4af83b
mov dword [ebx + 0x68], 0
mov dword [ebx], 0x11
mov ecx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x64]
add eax, ecx
cmp dword [ebx + 0x68], eax
jae 0x4af1f3
mov ecx, dword [ebx + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x4c]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x3c], eax
jbe 0x4af034
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [ebx + 0x54]
dec edi
add ebp, 8
add edx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x4c]
inc esi
mov dword [esp + 0x18], edi
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], eax
ja 0x4aeff8
mov ecx, dword [esp + 0x3c]
shr ecx, 0x10
cmp cx, 0x10
jae 0x4af093
movzx ecx, ah
cmp ebp, ecx
mov dword [esp + 0x20], ecx
jae 0x4af072
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [esp + 0x20]
dec edi
add ebp, 8
add edx, eax
inc esi
cmp ebp, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
jb 0x4af04c
mov ax, word [esp + 0x3e]
shr edx, cl
sub ebp, ecx
mov ecx, dword [ebx + 0x68]
mov word [ebx + ecx*2 + 0x70], ax
mov eax, dword [ebx + 0x68]
inc eax
mov dword [esp + 0x10], edx
mov dword [ebx + 0x68], eax
jmp 0x4af1e2
jne 0x4af0ff
movzx ecx, ah
lea eax, [ecx + 2]
cmp ebp, eax
mov dword [esp + 0x20], ecx
jae 0x4af0cc
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [esp + 0x20]
dec edi
add ebp, 8
add edx, eax
inc esi
lea eax, [ecx + 2]
cmp ebp, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
jb 0x4af0a3
mov eax, dword [ebx + 0x68]
shr edx, cl
sub ebp, ecx
test eax, eax
mov dword [esp + 0x10], edx
je 0x4af247
movzx ecx, word [ebx + eax*2 + 0x6e]
mov eax, edx
and eax, 3
add eax, 3
shr edx, 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
sub ebp, 2
jmp 0x4af1a6
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x20], ecx
jne 0x4af154
lea eax, [ecx + 3]
cmp ebp, eax
jae 0x4af13c
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [esp + 0x20]
dec edi
add ebp, 8
add edx, eax
inc esi
lea eax, [ecx + 3]
cmp ebp, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
jb 0x4af113
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
mov dword [esp + 0x20], eax
shr edx, 3
mov eax, 0xfffffffd
jmp 0x4af19a
lea eax, [ecx + 7]
cmp ebp, eax
jae 0x4af184
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [esp + 0x20]
dec edi
add ebp, 8
add edx, eax
inc esi
lea eax, [ecx + 7]
cmp ebp, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
jb 0x4af15b
shr edx, cl
mov eax, edx
and eax, 0x7f
add eax, 0xb
mov dword [esp + 0x20], eax
shr edx, 7
mov eax, 0xfffffff9
sub eax, ecx
mov dword [esp + 0x30], 0
add ebp, eax
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x64]
add ecx, eax
mov eax, dword [ebx + 0x68]
add eax, dword [esp + 0x20]
mov dword [esp + 0x10], edx
cmp eax, ecx
ja 0x4af257
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4af1e2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + 0x68]
mov word [ebx + ecx*2 + 0x70], ax
inc dword [ebx + 0x68]
dec dword [esp + 0x20]
jne 0x4af1d1
mov ecx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x64]
add eax, ecx
cmp dword [ebx + 0x68], eax
jb 0x4aefda
cmp dword [ebx], 0x1b
je 0x4af841
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ecx], eax
lea edx, [ebx + 0x2f0]
push edx
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x54]
push eax
push ecx
mov ecx, dword [ebx + 0x60]
push ecx
lea edx, [ebx + 0x70]
push edx
push 1
mov dword [eax], 9
call fcn.004af9b9
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4af267
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x18], 0x4be7b0
jmp 0x4af83b
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], 0x4be7b0
jmp 0x4af83b
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], 0x4be7b0
jmp 0x4af83b
mov edx, dword [ebx + 0x6c]
lea ecx, [ebx + 0x6c]
mov dword [ebx + 0x50], edx
lea edx, [ebx + 0x2f0]
push edx
lea eax, [ebx + 0x58]
push eax
push ecx
mov ecx, dword [ebx + 0x60]
mov dword [eax], 6
mov eax, dword [ebx + 0x64]
push eax
lea edx, [ebx + ecx*2 + 0x70]
push edx
push 2
call fcn.004af9b9
test eax, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
je 0x4af2b1
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], 0x4be7b0
jmp 0x4af83b
mov dword [ebx], 0x12
cmp edi, 6
jb 0x4af31e
cmp dword [esp + 0x1c], 0x102
jb 0x4af31e
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [ebx + 0x38], edx
mov edx, dword [esp + 0x28]
push edx
push eax
mov dword [ebx + 0x3c], ebp
call fcn.004ae3d4
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ebx + 0x38]
mov ebp, dword [ebx + 0x3c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov edx, eax
jmp 0x4af841
mov ecx, dword [ebx + 0x54]
mov eax, 1
shl eax, cl
dec eax
and eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + ecx*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x3c], eax
jbe 0x4af37a
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [ebx + 0x54]
dec edi
add ebp, 8
add edx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x4c]
inc esi
mov dword [esp + 0x18], edi
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], eax
ja 0x4af33e
test al, al
je 0x4af439
test al, 0xf0
jne 0x4af439
movzx ecx, ah
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov cl, al
mov dword [esp + 0x10], eax
add ecx, dword [esp + 0x20]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
dec eax
and eax, edx
shr eax, cl
mov ecx, dword [esp + 0x3c]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x10]
shr ecx, 8
mov dword [esp + 0x3c], eax
movzx ecx, cl
movzx eax, ah
add eax, ecx
cmp eax, ebp
mov dword [esp + 0x20], ecx
jbe 0x4af431
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
xor ecx, ecx
mov cl, byte [esp + 0x10]
dec edi
add edx, eax
mov eax, dword [esp + 0x20]
inc esi
add ebp, 8
mov dword [esp + 0x18], edi
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
dec eax
and eax, edx
shr eax, cl
movzx ecx, word [esp + 0x12]
add eax, ecx
mov ecx, dword [ebx + 0x4c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
movzx eax, ah
add eax, ecx
cmp eax, ebp
ja 0x4af3d9
mov eax, dword [esp + 0x3c]
shr edx, cl
sub ebp, ecx
movzx ecx, ah
shr edx, cl
movzx ecx, ah
sub ebp, ecx
mov ecx, dword [esp + 0x3c]
shr ecx, 0x10
test al, al
mov dword [esp + 0x10], edx
mov dword [ebx + 0x40], ecx
jne 0x4af460
mov dword [ebx], 0x17
jmp 0x4af841
test al, 0x20
je 0x4af46f
mov dword [ebx], 0xb
jmp 0x4af841
test al, 0x40
je 0x4af483
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], 0x4be7b0
jmp 0x4af83b
and eax, 0xf
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x13
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4af4db
cmp ebp, eax
jae 0x4af4bf
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x18], edi
add edx, eax
mov eax, dword [ebx + 0x48]
inc esi
cmp ebp, eax
mov dword [esp + 0x14], esi
jb 0x4af49a
mov ecx, dword [ebx + 0x48]
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x40]
dec eax
and eax, edx
add ecx, eax
mov dword [ebx + 0x40], ecx
mov ecx, dword [ebx + 0x48]
shr edx, cl
sub ebp, ecx
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x58]
mov eax, 1
shl eax, cl
dec eax
and eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + ecx*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x3c], eax
jbe 0x4af53d
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [ebx + 0x58]
dec edi
add ebp, 8
add edx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x50]
inc esi
mov dword [esp + 0x18], edi
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], eax
ja 0x4af501
test al, 0xf0
jne 0x4af5f4
movzx ecx, ah
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov cl, al
mov dword [esp + 0x10], eax
add ecx, dword [esp + 0x20]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
dec eax
and eax, edx
shr eax, cl
mov ecx, dword [esp + 0x3c]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x10]
shr ecx, 8
mov dword [esp + 0x3c], eax
movzx ecx, cl
movzx eax, ah
add eax, ecx
cmp eax, ebp
mov dword [esp + 0x20], ecx
jbe 0x4af5ec
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
xor ecx, ecx
mov cl, byte [esp + 0x10]
dec edi
add edx, eax
mov eax, dword [esp + 0x20]
inc esi
add ebp, 8
mov dword [esp + 0x18], edi
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
dec eax
and eax, edx
shr eax, cl
movzx ecx, word [esp + 0x12]
add eax, ecx
mov ecx, dword [ebx + 0x50]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
movzx eax, ah
add eax, ecx
cmp eax, ebp
ja 0x4af594
mov eax, dword [esp + 0x3c]
shr edx, cl
sub ebp, ecx
movzx ecx, ah
shr edx, cl
movzx ecx, ah
sub ebp, ecx
test al, 0x40
mov dword [esp + 0x10], edx
je 0x4af616
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], 0x4be7b0
jmp 0x4af83b
mov ecx, dword [esp + 0x3c]
shr ecx, 0x10
and eax, 0xf
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x15
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4af67c
cmp ebp, eax
jae 0x4af65c
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x18], edi
add edx, eax
mov eax, dword [ebx + 0x48]
inc esi
cmp ebp, eax
mov dword [esp + 0x14], esi
jb 0x4af637
mov ecx, dword [ebx + 0x48]
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x44]
dec eax
and eax, edx
add ecx, eax
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebx + 0x48]
shr edx, cl
sub ebp, ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x2c]
sub ecx, eax
add ecx, dword [esp + 0x28]
cmp dword [ebx + 0x44], ecx
jbe 0x4af69e
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], 0x4be7b0
jmp 0x4af83b
mov dword [ebx], 0x16
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4af8a7
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [ebx + 0x44]
cmp eax, ecx
jbe 0x4af6f9
sub eax, ecx
mov ecx, dword [ebx + 0x30]
cmp eax, ecx
mov dword [esp + 0x20], eax
jbe 0x4af6da
sub eax, ecx
mov ecx, dword [ebx + 0x34]
add ecx, dword [ebx + 0x28]
mov dword [esp + 0x20], eax
sub ecx, eax
jmp 0x4af6e6
mov ecx, dword [ebx + 0x34]
sub ecx, eax
add ecx, dword [ebx + 0x30]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x40]
cmp eax, ecx
mov dword [esp + 0x34], ecx
jbe 0x4af70e
mov eax, ecx
jmp 0x4af70a
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x4af71c
mov eax, ecx
mov dword [esp + 0x20], eax
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x40], ecx
mov ecx, dword [esp + 0x30]
mov cl, byte [ecx]
mov byte [eax], cl
mov ecx, dword [esp + 0x30]
inc eax
inc ecx
mov dword [esp + 0x30], ecx
dec dword [esp + 0x20]
jne 0x4af72f
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x4af841
mov dword [ebx], 0x12
jmp 0x4af841
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4af8a7
mov eax, dword [esp + 0x24]
mov cl, byte [ebx + 0x40]
mov byte [eax], cl
inc eax
mov dword [esp + 0x24], eax
dec dword [esp + 0x1c]
mov dword [ebx], 0x12
jmp 0x4af841
mov eax, dword [ebx + 8]
test eax, eax
je 0x4af88f
cmp ebp, 0x20
jae 0x4af7c1
test edi, edi
je 0x4af8a7
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x18], edi
add edx, eax
inc esi
cmp ebp, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jb 0x4af79a
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
add dword [ecx + 0x14], eax
mov ecx, dword [ebx + 0x1c]
add ecx, eax
test eax, eax
mov dword [esp + 0x28], eax
mov dword [ebx + 0x1c], ecx
je 0x4af802
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x18]
push eax
sub ecx, eax
push ecx
push edx
pop eax
pop edx
pop ecx
call fcn.004b0914
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x18], eax
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov ecx, edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
xor eax, eax
mov ah, byte [esp + 0x12]
shl ecx, 8
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp ecx, dword [ebx + 0x18]
je 0x4af887
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], 0x4be7b0
mov dword [ebx], 0x1b
mov eax, dword [ebx]
cmp eax, 0x1c
jbe switch.0x004aeaf8
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edi
mov dword [eax], esi
pop edi
mov dword [eax + 0x10], ecx
pop esi
mov dword [ebx + 0x3c], ebp
pop ebp
mov dword [ebx + 0x38], edx
mov eax, 2
pop ebx
add esp, 0x34
ret 8
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov edx, ebp
mov dword [ebx], 0x1a
mov dword [esp + 0x2c], 1
jmp 0x4af8a7
mov dword [esp + 0x2c], 0xfffffffd
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebx + 0x28]
test eax, eax
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ebp
jne 0x4af8dd
cmp dword [ebx], 0x18
jge 0x4af904
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
cmp edx, dword [eax + 0x10]
je 0x4af904
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
push ecx
call fcn.004ae954
test eax, eax
je 0x4af904
mov dword [ebx], 0x1c
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x34
ret 8
mov esi, dword [esp + 0x48]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 8]
sub ebp, edx
mov edx, dword [esi + 0x14]
sub edi, ecx
add eax, ebp
add edx, edi
mov dword [esi + 8], eax
mov dword [esi + 0x14], edx
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 8]
add ecx, edi
test eax, eax
mov dword [ebx + 0x1c], ecx
je 0x4af952
test edi, edi
je 0x4af952
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x18]
mov ecx, edi
sub edx, edi
call fcn.004b0914
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
neg ecx
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
cmp eax, 0xb
setne dl
dec edx
and edx, 0x80
add ecx, edx
add ecx, dword [ebx + 0x3c]
test ebp, ebp
mov dword [esi + 0x2c], ecx
jne 0x4af97d
test edi, edi
je 0x4af984
cmp dword [esp + 0x4c], 4
jne 0x4af99f
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4af851
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x34
ret 8
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
mov eax, 0xfffffffe
pop ebx
add esp, 0x34
ret 8