Function at 0x465a70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov edx, dword [ebp + 0x128]
test edx, edx
je 0x468a08
mov eax, dword [ebp + 0x7c]
and eax, 0x4040
cmp eax, 0x4000
je 0x4689f8
mov eax, dword [ebp + 0x80]
test ah, 0x10
je 0x465ad6
cmp byte [edi + 8], 3
je 0x466b10
cmp word [ebp + 0x154], 0
je 0x465aca
test eax, 0x2000000
jne 0x466a60
add edx, 1
xor ecx, ecx
mov eax, edi
call fcn.004630a0
mov eax, dword [ebp + 0x80]
and eax, 0x40080
cmp eax, 0x40000
je 0x4666d8
mov edx, dword [ebp + 0x80]
mov eax, edx
and edx, 0x600000
jne 0x4662c0
test ah, 0x40
jne 0x465e07
test al, 0x80
jne 0x465e30
mov eax, dword [ebp + 0x80]
mov ecx, eax
mov edx, eax
and ecx, 0x602000
cmp ecx, 0x2000
je 0x466710
and edx, 0x40080
cmp edx, 0x40080
je 0x466855
mov ebx, dword [ebp + 0x80]
test ebx, 0x800000
jne 0x465c50
test ebx, 0x4000000
jne 0x465ca4
test bh, 4
jne 0x465d18
test bl, 0x40
jne 0x465d70
test bh, 2
jne 0x465dac
test bh, 0x40
jne 0x4660c0
test bl, 0x20
jne 0x4660f0
test ebx, 0x80000
jne 0x466117
test bl, 8
jne 0x466170
and ebx, 4
jne 0x4665f0
cmp byte [edi + 8], 3
je 0x466645
mov eax, dword [ebp + 0x80]
test al, 1
jne 0x4665d0
test eax, 0x10000
jne 0x4664c0
test ah, 0x80
jne 0x4664e4
test eax, 0x20000
jne 0x466664
test al, 0x10
jne 0x4664a0
test eax, 0x100000
je 0x465c45
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x465c0b
mov esi, dword [ebp + 0x128]
mov dword [esp + 4], edi
mov dword [esp], ebp
lea edx, [esi + 1]
mov dword [esp + 8], edx
call eax
movzx eax, byte [ebp + 0x74]
test al, al
jne 0x466286
movzx edx, byte [ebp + 0x75]
movzx ecx, byte [edi + 9]
test dl, dl
jne 0x466297
movzx eax, byte [edi + 0xa]
imul eax, ecx
cmp al, 7
mov byte [edi + 0xb], al
jbe 0x4662aa
shr al, 3
movzx eax, al
imul eax, dword [edi]
mov dword [edi + 4], eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, byte [edi + 8]
test dl, 4
je 0x465b51
mov eax, dword [ebp + 0x128]
movzx ecx, byte [edi + 9]
add eax, 1
cmp cl, 8
mov dword [esp + 0xc], eax
mov eax, dword [edi]
je 0x4678f5
cmp cl, 0x10
je 0x467dd2
mov dword [esp + 4], str.png_do_encode_alpha:_unexpected_call
mov dword [esp], ebp
call fcn.00459730
mov ebx, dword [ebp + 0x80]
test ebx, 0x4000000
je 0x465b5d
cmp byte [edi + 9], 0x10
mov edx, dword [ebp + 0x128]
jne 0x465b5d
mov eax, dword [edi + 4]
add edx, 1
mov ecx, edx
add eax, edx
cmp edx, eax
jae 0x465cf1
mov dword [esp + 0x60], ebp
mov ebp, eax
movzx ebx, byte [edx]
add edx, 2
add ecx, 1
movzx esi, byte [edx - 1]
sub esi, ebx
sub esi, 0xffffff80
mov eax, esi
shl eax, 0x10
sub eax, esi
sar eax, 0x18
add eax, ebx
mov byte [ecx - 1], al
cmp ebp, edx
ja 0x465cc8
mov ebp, dword [esp + 0x60]
movzx eax, byte [edi + 0xa]
mov byte [edi + 9], 8
lea edx, [eax*8]
imul eax, dword [edi]
mov byte [edi + 0xb], dl
mov dword [edi + 4], eax
mov ebx, dword [ebp + 0x80]
test bh, 4
je 0x465b66
cmp byte [edi + 9], 0x10
mov eax, dword [ebp + 0x128]
jne 0x465b66
mov ebx, dword [edi + 4]
add eax, 1
mov edx, eax
add ebx, eax
cmp eax, ebx
jae 0x465d46
movzx ecx, byte [eax]
add eax, 2
add edx, 1
mov byte [edx - 1], cl
cmp ebx, eax
ja 0x465d36
movzx eax, byte [edi + 0xa]
mov byte [edi + 9], 8
lea edx, [eax*8]
imul eax, dword [edi]
mov byte [edi + 0xb], dl
mov dword [edi + 4], eax
mov ebx, dword [ebp + 0x80]
test bl, 0x40
je 0x465b6f
lea esi, [esi]
mov eax, dword [edi]
cmp byte [edi + 9], 8
mov edx, dword [ebp + 0x210]
mov esi, dword [ebp + 0x20c]
mov ecx, dword [ebp + 0x128]
mov dword [esp + 0xc], eax
je 0x4669c0
mov eax, dword [edi + 4]
test eax, eax
je 0x468a18
mov ebx, dword [ebp + 0x80]
test bh, 2
je 0x465b78
cmp byte [edi + 9], 8
mov eax, dword [ebp + 0x128]
jne 0x465b78
cmp byte [edi + 8], 3
je 0x465b78
mov ecx, dword [edi + 4]
lea edx, [eax + ecx + 1]
lea eax, [edx + ecx]
cmp edx, eax
jae 0x465de9
sub edx, 1
movzx ecx, byte [edx]
sub eax, 2
mov byte [eax + 1], cl
mov byte [eax], cl
cmp edx, eax
jb 0x465dd4
mov ecx, dword [edi + 4]
movzx eax, byte [edi + 0xa]
add ecx, ecx
mov dword [edi + 4], ecx
mov byte [edi + 9], 0x10
shl eax, 4
mov byte [edi + 0xb], al
mov ebx, dword [ebp + 0x80]
jmp 0x465b78
test byte [ebp + 0x79], 8
jne 0x465b09
mov eax, dword [ebp + 0x128]
lea edx, [eax + 1]
mov eax, edi
call fcn.00462ec0
mov eax, dword [ebp + 0x80]
test al, 0x80
je case.0x466a2c.0
nop
mov eax, dword [ebp + 0x19c]
mov edx, dword [ebp + 0x128]
mov ebx, dword [ebp + 0x194]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1a0]
lea esi, [edx + 1]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x198]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x1a4]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1a8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
shr dword [esp + 0x14], 0xd
and dword [esp + 0x14], 1
mov dword [esp + 0xc], eax
movzx eax, byte [edi + 8]
cmp al, 2
je 0x466bf0
jbe 0x466a16
cmp al, 4
je 0x466d50
cmp al, 6
nop
jne case.0x466a2c.0
cmp byte [edi + 9], 8
je 0x466f75
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x467970
mov eax, dword [esp + 0x20]
test eax, eax
je 0x467970
mov eax, dword [esp + 0x18]
test eax, eax
je 0x467970
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], 0
test eax, eax
je case.0x466a2c.0
mov dword [esp + 0x64], edi
jmp 0x465f51
movzx eax, byte [ebp + 0x16f]
mov byte [esi], al
movzx eax, word [ebp + 0x16e]
mov byte [esi + 1], al
movzx eax, byte [ebp + 0x171]
mov byte [esi + 2], al
movzx eax, word [ebp + 0x170]
mov byte [esi + 3], al
movzx eax, byte [ebp + 0x173]
mov byte [esi + 4], al
movzx eax, word [ebp + 0x172]
mov byte [esi + 5], al
add dword [esp + 0x24], 1
add esi, 8
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x24], eax
je 0x467500
movzx eax, byte [esi + 6]
movzx edx, byte [esi + 7]
shl eax, 8
add eax, edx
cmp ax, 0xffff
je 0x467550
test ax, ax
je 0x465f00
movzx ecx, byte [esp + 0x10]
movzx eax, ax
mov ebx, 0xffff
movzx edx, byte [esi + 1]
sub ebx, eax
movzx edi, word [ebp + 0x178]
sar edx, cl
movzx ecx, byte [esi]
imul edi, ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x28]
movzx edx, word [edx + ecx*2]
imul edx, eax
lea edx, [edi + edx + 0x8000]
mov edi, dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x10
add edx, ecx
shr edx, 0x10
test edi, edi
mov ecx, edx
jne 0x465fd8
movzx ecx, byte [esp + 0x10]
movzx edi, dl
shr edx, 8
sar edi, cl
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + edi*4]
movzx ecx, word [ecx + edx*2]
mov edx, ecx
shr dx, 8
mov byte [esi], dl
movzx edx, byte [esi + 3]
mov byte [esi + 1], cl
movzx ecx, byte [esp + 0x10]
movzx edi, word [ebp + 0x17a]
sar edx, cl
movzx ecx, byte [esi + 2]
imul edi, ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x28]
movzx edx, word [edx + ecx*2]
imul edx, eax
lea edx, [edi + edx + 0x8000]
mov edi, dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x10
add edx, ecx
shr edx, 0x10
test edi, edi
mov ecx, edx
jne 0x466045
movzx ecx, byte [esp + 0x10]
movzx edi, dl
shr edx, 8
sar edi, cl
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + edi*4]
movzx ecx, word [ecx + edx*2]
mov edx, ecx
mov edi, dword [esp + 0x18]
shr dx, 8
mov byte [esi + 3], cl
movzx ecx, byte [esp + 0x10]
mov byte [esi + 2], dl
movzx edx, word [ebp + 0x17c]
imul ebx, edx
movzx edx, byte [esi + 5]
sar edx, cl
movzx ecx, byte [esi + 4]
mov edx, dword [edi + edx*4]
movzx edx, word [edx + ecx*2]
imul edx, eax
lea eax, [ebx + edx + 0x8000]
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
add eax, edx
shr eax, 0x10
test ebx, ebx
mov edx, eax
jne 0x4660ab
movzx ecx, byte [esp + 0x10]
movzx edx, al
mov edi, dword [esp + 0x20]
shr eax, 8
sar edx, cl
mov edx, dword [edi + edx*4]
movzx edx, word [edx + eax*2]
mov eax, edx
shr ax, 8
mov byte [esi + 4], al
mov byte [esi + 5], dl
jmp 0x465f3b
test byte [ebp + 0x79], 8
je 0x465b81
mov eax, dword [ebp + 0x128]
lea edx, [eax + 1]
mov eax, edi
call fcn.00462ec0
mov ebx, dword [ebp + 0x80]
test bl, 0x20
je 0x465b8a
lea esi, [esi]
mov eax, dword [ebp + 0x128]
mov dword [esp], edi
add eax, 1
mov dword [esp + 4], eax
call fcn.00460800
mov ebx, dword [ebp + 0x80]
test ebx, 0x80000
je 0x465b96
mov eax, dword [ebp + 0x128]
movzx ecx, byte [edi + 8]
mov edx, dword [edi]
add eax, 1
cmp cl, 6
je 0x466a75
cmp cl, 4
jne 0x465b96
cmp byte [edi + 9], 8
je 0x467cf0
add eax, dword [edi + 4]
test edx, edx
je 0x465b96
xor ecx, ecx
nop
add ecx, 1
not byte [eax - 1]
not byte [eax - 2]
sub eax, 4
cmp ecx, edx
jne 0x466150
mov ebx, dword [ebp + 0x80]
test bl, 8
je 0x465b9f
nop
mov eax, dword [ebp + 0x128]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
cmp al, 3
je 0x465b9f
movzx ecx, byte [edi + 9]
test al, 2
mov byte [esp + 0x10], cl
movzx esi, cl
jne 0x466983
movzx edx, byte [ebp + 0x1b4]
mov ecx, esi
sub ecx, edx
mov edx, 1
mov dword [esp + 0x30], ecx
test al, 4
je 0x4661c3
movzx eax, byte [ebp + 0x1b5]
mov ecx, esi
sub ecx, eax
mov dword [esp + edx*4 + 0x30], ecx
add edx, 1
mov dword [esp + 0xc], 0
xor eax, eax
mov ecx, dword [esp + eax*4 + 0x30]
test ecx, ecx
jle 0x466a33
cmp esi, ecx
jle 0x466a33
mov dword [esp + 0xc], 1
add eax, 1
cmp eax, edx
jl 0x4661cd
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x465b9f
mov eax, dword [esp + 0x14]
add eax, 1
cmp byte [esp + 0x10], 4
je 0x467c06
jbe 0x467730
movzx esi, byte [esp + 0x10]
mov ecx, esi
cmp cl, 8
je 0x466f30
cmp cl, 0x10
jne 0x465b9f
mov esi, dword [edi + 4]
add esi, eax
cmp eax, esi
mov ecx, esi
jae 0x465b9f
mov dword [esp + 0x60], ebp
xor ebx, ebx
mov esi, edx
mov ebp, ecx
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
shl edx, 8
add edx, ecx
mov ecx, dword [esp + ebx*4 + 0x30]
add ebx, 1
sar edx, cl
cmp esi, ebx
mov ecx, 0
cmovle ebx, ecx
mov ecx, edx
sar ecx, 8
add eax, 2
mov byte [eax - 2], cl
cmp ebp, eax
mov byte [eax - 1], dl
ja 0x466246
mov ebp, dword [esp + 0x60]
mov ebx, dword [ebp + 0x80]
jmp 0x465b9f
mov byte [edi + 9], al
movzx edx, byte [ebp + 0x75]
mov ecx, eax
test dl, dl
je 0x465c27
mov eax, edx
imul eax, ecx
mov byte [edi + 0xa], dl
cmp al, 7
mov byte [edi + 0xb], al
ja 0x465c39
movzx eax, al
imul eax, dword [edi]
add eax, 7
shr eax, 3
jmp 0x465c42
movzx ecx, byte [edi + 8]
mov esi, dword [ebp + 0x128]
mov ebx, ecx
and ebx, 3
cmp bl, 2
jne 0x465b00
movzx eax, word [ebp + 0x266]
add esi, 1
movzx ebx, word [ebp + 0x268]
mov dword [esp + 0x18], 0x8000
mov dword [esp + 0x24], eax
add eax, ebx
sub dword [esp + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], eax
mov eax, ecx
shr al, 2
and eax, 1
mov dword [esp + 0x10], eax
movzx eax, byte [edi + 9]
cmp al, 8
je 0x4677e1
mov ebx, dword [ebp + 0x1a8]
mov edx, esi
test ebx, ebx
je 0x467d12
mov ebx, dword [ebp + 0x1a4]
test ebx, ebx
je 0x467d12
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x46830c
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x64], edi
jmp 0x4663c5
cmp ax, di
jne 0x4663f4
mov edi, dword [esp + 0x60]
mov edi, dword [edi + 0x198]
test edi, edi
je 0x466395
mov ecx, dword [esp + 0x60]
movzx ebx, al
movzx eax, ah
mov ecx, dword [ecx + 0x18c]
sar ebx, cl
mov ecx, dword [edi + ebx*4]
movzx eax, word [ecx + eax*2]
mov ecx, eax
mov byte [esi + 1], al
mov eax, dword [esp + 0x10]
shr cx, 8
mov byte [esi], cl
test eax, eax
jne 0x466a40
add edx, 6
add esi, 2
add dword [esp + 0x14], 1
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x14], eax
je 0x466e50
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
movzx edi, byte [edx + 3]
movzx ebx, byte [edx + 5]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl ecx, 8
or edi, ecx
movzx ecx, byte [edx + 4]
shl ecx, 8
or ebx, ecx
cmp ax, bx
je 0x466365
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x60]
mov ecx, dword [ecx + 0x1a8]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x18c]
movzx ebp, al
movzx eax, ah
mov dword [esp + 0x1c], ecx
sar ebp, cl
mov ecx, dword [esp + 0x20]
mov ebp, dword [ecx + ebp*4]
mov dword [esp + 0x2c], ecx
mov ecx, edi
movzx eax, word [ebp + eax*2]
movzx ebp, cl
movzx ecx, byte [esp + 0x1c]
imul eax, dword [esp + 0x24]
sar ebp, cl
mov ecx, edi
movzx edi, ch
mov ecx, dword [esp + 0x2c]
mov ebp, dword [ecx + ebp*4]
movzx edi, word [ebp + edi*2]
imul edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
lea edi, [eax + edi + 0x4000]
movzx eax, bl
mov ecx, ebp
movzx ebx, bh
sar eax, cl
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + eax*4]
mov ecx, ebp
mov ebp, 1
movzx eax, word [eax + ebx*2]
imul eax, dword [esp + 0x18]
add eax, edi
mov edi, dword [esp + 0x60]
shr eax, 0xf
movzx ebx, al
movzx eax, ah
sar ebx, cl
mov ecx, dword [edi + 0x1a4]
mov ecx, dword [ecx + ebx*4]
movzx eax, word [ecx + eax*2]
jmp 0x466395
mov eax, dword [ebp + 0x128]
mov dword [esp], edi
add eax, 1
mov dword [esp + 4], eax
call fcn.00460880
mov eax, dword [ebp + 0x80]
jmp 0x465be7
mov eax, dword [ebp + 0x128]
mov dword [esp], edi
add eax, 1
mov dword [esp + 4], eax
call fcn.004608c0
mov eax, dword [ebp + 0x80]
test ah, 0x80
je 0x465bd4
movzx esi, word [ebp + 0x164]
mov ebx, dword [ebp + 0x7c]
mov edx, esi
mov ecx, edx
movzx ecx, ch
mov word [esp + 0x14], si
mov esi, dword [ebp + 0x128]
mov dword [esp + 0x18], ecx
mov byte [esp + 0xc], cl
movzx ecx, byte [edi + 8]
add esi, 1
mov dword [esp + 0x10], esi
mov esi, dword [edi]
test cl, cl
jne 0x466886
movzx ecx, byte [edi + 9]
cmp cl, 8
je 0x4676b0
cmp cl, 0x10
jne 0x465bd4
mov eax, dword [esp + 0x10]
and ebx, 0x80
lea ecx, [eax + esi*2]
lea eax, [eax + esi*4]
je 0x467ec4
cmp esi, 1
mov dword [esp + 0x10], eax
jbe 0x46659a
mov dword [esp + 0x60], ebp
mov ebx, 1
mov ebp, edx
lea esi, [esi]
movzx edx, byte [esp + 0xc]
sub ecx, 2
add ebx, 1
sub eax, 4
mov byte [eax + 3], dl
mov edx, ebp
mov byte [eax + 2], dl
movzx edx, byte [ecx + 1]
mov byte [eax + 1], dl
movzx edx, byte [ecx]
cmp ebx, esi
mov byte [eax], dl
jne 0x466560
mov ebx, dword [esp + 0x10]
mov eax, esi
mov ebp, dword [esp + 0x60]
neg eax
lea eax, [ebx + eax*4 + 4]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
movzx eax, byte [esp + 0x18]
mov byte [ebx - 1], al
movzx eax, byte [esp + 0x14]
mov byte [ebx - 2], al
lea eax, [esi*4]
mov byte [edi + 0xa], 2
mov byte [edi + 0xb], 0x20
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x80]
jmp 0x465bd4
mov eax, dword [ebp + 0x128]
mov dword [esp], edi
add eax, 1
mov dword [esp + 4], eax
call fcn.00460b30
mov eax, dword [ebp + 0x80]
jmp 0x465bc0
movzx edx, byte [edi + 9]
mov eax, dword [ebp + 0x128]
cmp dl, 7
ja 0x465ba8
add eax, 1
cmp dl, 2
mov ebx, dword [edi]
je 0x4675b4
cmp dl, 4
je 0x467658
cmp dl, 1
je 0x467610
movzx eax, byte [edi + 0xa]
mov byte [edi + 9], 8
lea edx, [eax*8]
imul eax, ebx
cmp byte [edi + 8], 3
mov byte [edi + 0xb], dl
mov dword [edi + 4], eax
jne 0x465bb2
mov eax, dword [ebp + 0x150]
test eax, eax
js 0x465bb2
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.00460c30
jmp 0x465bb2
movzx ebx, byte [edi + 8]
mov esi, dword [ebp + 0x128]
mov ecx, dword [edi]
cmp bl, 6
lea edx, [esi + 1]
je 0x466aa5
cmp bl, 4
jne 0x465bdf
cmp byte [edi + 9], 8
je 0x467cc2
add edx, dword [edi + 4]
test ecx, ecx
je 0x465bdf
xor eax, eax
mov esi, ecx
nop
movzx ecx, byte [edx - 1]
add eax, 1
sub edx, 4
movzx ebx, byte [edx + 2]
mov byte [esp + 0xc], cl
movzx ecx, byte [edx + 1]
mov byte [edx + 3], cl
movzx ecx, byte [edx]
mov byte [edx + 2], cl
movzx ecx, byte [esp + 0xc]
mov byte [edx + 1], cl
cmp eax, esi
mov byte [edx], bl
jne 0x4666a0
mov eax, dword [ebp + 0x80]
jmp 0x465bdf
movzx eax, byte [edi + 8]
and eax, 0xfffffffd
cmp al, 4
jne 0x465aec
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x128]
mov dword [esp], edi
add eax, 1
mov dword [esp + 4], eax
call fcn.00460920
jmp 0x465aec
test al, 0x80
jne 0x466960
movzx ecx, byte [ebp + 0x15b]
cmp cl, 3
je 0x465b2d
mov ebx, dword [ebp + 0x18c]
mov esi, dword [ebp + 0x128]
mov ecx, dword [ebp + 0x194]
mov dword [esp + 0xc], ebx
mov ebx, dword [edi]
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 0x198]
mov dword [esp + 0x14], ebx
movzx ebx, byte [edi + 9]
cmp bl, 8
mov byte [esp + 0x10], bl
jbe 0x466ee5
cmp byte [esp + 0x10], 0x10
jne 0x465b2d
test esi, esi
je 0x465b2d
mov ebx, dword [esp + 0x18]
add ebx, 1
mov dword [esp + 0x1c], ebx
movzx ebx, byte [edi + 8]
cmp bl, 2
je 0x467f82
jbe 0x467f42
cmp bl, 4
je 0x468023
cmp bl, 6
lea esi, [esi]
jne 0x465b2d
cmp byte [esp + 0x10], 8
je 0x468559
mov ebx, dword [esp + 0x14]
xor eax, eax
test ebx, ebx
je 0x465b2d
mov dword [esp + 0x64], edi
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x60], ebp
mov dword [esp + 0xc], eax
movzx edx, byte [ebx + 1]
add ebx, 8
movzx ebp, byte [ebx - 8]
add dword [esp + 0xc], 1
sar edx, cl
mov edx, dword [esi + edx*4]
movzx edx, word [edx + ebp*2]
mov byte [ebx - 7], dl
mov ebp, edx
movzx edx, byte [ebx - 5]
shr bp, 8
mov eax, ebp
movzx ebp, byte [ebx - 6]
mov byte [ebx - 8], al
sar edx, cl
mov edx, dword [esi + edx*4]
movzx edx, word [edx + ebp*2]
mov byte [ebx - 5], dl
mov ebp, edx
movzx edx, byte [ebx - 3]
shr bp, 8
mov eax, ebp
movzx ebp, byte [ebx - 4]
mov byte [ebx - 6], al
sar edx, cl
mov edx, dword [esi + edx*4]
movzx edx, word [edx + ebp*2]
mov ebp, edx
shr bp, 8
mov eax, ebp
mov byte [ebx - 4], al
mov byte [ebx - 3], dl
cmp dword [esp + 0xc], edi
jne 0x4667d7
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov edx, dword [ebp + 0x80]
jmp 0x465b2d
movzx eax, byte [edi + 8]
and eax, 0xfffffffd
cmp al, 4
jne 0x465b3f
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x128]
mov dword [esp], edi
add eax, 1
mov dword [esp + 4], eax
call fcn.00460920
jmp 0x465b3f
cmp cl, 2
jne 0x465bd4
movzx ecx, byte [edi + 9]
cmp cl, 8
je 0x467227
cmp cl, 0x10
jne 0x465bd4
and ebx, 0x80
mov ebx, dword [esp + 0x10]
lea eax, [esi + esi]
lea ecx, [eax + esi]
lea ecx, [ebx + ecx*2]
je 0x4682af
add eax, ecx
cmp esi, 1
mov dword [esp + 0x10], eax
jbe 0x46692a
mov dword [esp + 0x60], ebp
mov ebx, 1
mov ebp, edx
movzx edx, byte [esp + 0xc]
sub ecx, 6
add ebx, 1
sub eax, 8
mov byte [eax + 7], dl
mov edx, ebp
mov byte [eax + 6], dl
movzx edx, byte [ecx + 5]
mov byte [eax + 5], dl
movzx edx, byte [ecx + 4]
mov byte [eax + 4], dl
movzx edx, byte [ecx + 3]
mov byte [eax + 3], dl
movzx edx, byte [ecx + 2]
mov byte [eax + 2], dl
movzx edx, byte [ecx + 1]
mov byte [eax + 1], dl
movzx edx, byte [ecx]
cmp ebx, esi
mov byte [eax], dl
jne 0x4668d4
mov ebx, dword [esp + 0x10]
mov eax, esi
mov ebp, dword [esp + 0x60]
neg eax
lea eax, [ebx + eax*8 + 8]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
movzx eax, byte [esp + 0x18]
mov byte [ebx - 1], al
movzx eax, byte [esp + 0x14]
mov byte [ebx - 2], al
lea eax, [esi*8]
mov byte [edi + 0xa], 4
mov byte [edi + 0xb], 0x40
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x80]
jmp 0x465bd4
cmp word [ebp + 0x154], 0
jne 0x465b2d
movzx ecx, byte [ebp + 0x15b]
test cl, 4
jne 0x465b2d
jmp 0x46671f
movzx edx, byte [ebp + 0x1b1]
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebp + 0x1b2]
mov dword [esp + 0x30], ecx
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebp + 0x1b3]
mov dword [esp + 0x34], ecx
mov ecx, esi
sub ecx, edx
mov edx, 3
mov dword [esp + 0x38], ecx
jmp 0x4661ad
movzx ebx, byte [edi + 8]
lea eax, [ecx + 1]
cmp bl, 2
je 0x467760
cmp bl, 6
je 0x467b53
cmp bl, 3
jne 0x465d92
test edx, edx
je 0x465d92
mov esi, dword [esp + 0xc]
test esi, esi
je 0x465d92
lea ebx, [ecx + esi + 1]
lea esi, [esi]
movzx ecx, byte [eax]
add eax, 1
movzx ecx, byte [edx + ecx]
mov byte [eax - 1], cl
cmp eax, ebx
jne 0x466a00
jmp 0x465d92
test al, al
jne case.0x466a2c.0
cmp byte [edi + 9], 0x10
ja case.0x466a2c.0
movzx eax, byte [edi + 9]
jmp dword [eax*4 + 0x53ff58]
mov dword [esp + eax*4 + 0x30], 0
jmp 0x4661e9
movzx eax, byte [edx + 6]
add esi, 4
add edx, 8
mov byte [esi - 2], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
jmp 0x4663b2
lea ecx, [ebp + 0x1bc]
add edx, 1
mov eax, edi
call fcn.004630a0
jmp 0x465ad6
cmp byte [edi + 9], 8
je 0x467ca0
add eax, dword [edi + 4]
test edx, edx
je 0x465b96
xor ecx, ecx
lea esi, [esi]
add ecx, 1
not byte [eax - 1]
not byte [eax - 2]
sub eax, 8
cmp ecx, edx
jne 0x466a90
jmp 0x466160
cmp byte [edi + 9], 8
je 0x467c67
add edx, dword [edi + 4]
test ecx, ecx
je 0x465bdf
xor eax, eax
mov esi, ecx
nop
movzx ecx, byte [edx - 1]
add eax, 1
sub edx, 8
movzx ebx, byte [edx + 6]
mov byte [esp + 0xc], cl
movzx ecx, byte [edx + 5]
mov byte [edx + 7], cl
movzx ecx, byte [edx + 4]
mov byte [edx + 6], cl
movzx ecx, byte [edx + 3]
mov byte [edx + 5], cl
movzx ecx, byte [edx + 2]
mov byte [edx + 4], cl
movzx ecx, byte [edx + 1]
mov byte [edx + 3], cl
movzx ecx, byte [edx]
mov byte [edx + 2], cl
movzx ecx, byte [esp + 0xc]
mov byte [edx + 1], cl
cmp eax, esi
mov byte [edx], bl
jne 0x466ac0
jmp 0x4666cd
movzx eax, word [ebp + 0x154]
mov ebx, dword [ebp + 0x148]
mov word [esp + 0x14], ax
mov eax, dword [ebp + 0x1b8]
mov dword [esp + 0x18], eax
lea eax, [edx + 1]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
movzx eax, byte [edi + 9]
cmp al, 7
jbe 0x466ef2
cmp al, 8
jne 0x465ad6
mov eax, dword [esp + 0xc]
sub eax, 1
mov dword [esp + 0x1c], eax
movzx esi, word [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add eax, edx
test esi, esi
je 0x468749
mov ecx, dword [esp + 0xc]
lea edx, [edx + ecx*4 - 2]
mov dword [esp + 0x10], edx
mov edx, eax
sub edx, ecx
test ecx, ecx
mov dword [esp + 0x14], edx
je 0x468321
mov dword [esp + 0x60], ebp
mov edx, dword [esp + 0x10]
mov dword [esp + 0x64], edi
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x466bde
mov byte [edx + 1], 0xff
movzx ecx, byte [eax]
sub eax, 1
sub edx, 4
lea ecx, [ecx + ecx*2]
movzx ecx, byte [ebx + ecx + 2]
mov byte [edx + 4], cl
movzx ecx, byte [eax + 1]
lea ecx, [ecx + ecx*2]
movzx ecx, byte [ebx + ecx + 1]
mov byte [edx + 3], cl
movzx ecx, byte [eax + 1]
lea ecx, [ecx + ecx*2]
movzx ecx, byte [ebx + ecx]
mov byte [edx + 2], cl
cmp eax, edi
je 0x468319
movzx ecx, byte [eax]
cmp esi, ecx
jle 0x466ba1
movzx ecx, byte [ebp + ecx]
mov byte [edx + 1], cl
jmp 0x466ba5
cmp byte [edi + 9], 8
je 0x467190
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x468340
mov ecx, dword [esp + 0xc]
test ecx, ecx
je case.0x466a2c.0
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x64], edi
jmp 0x466c93
movzx ecx, byte [esp + 0x10]
movzx edi, byte [esp + 0x14]
sar edx, cl
mov edx, dword [ebp + edx*4]
sar edi, cl
movzx eax, word [edx + eax*2]
mov edx, eax
shr dx, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, dword [ebp + edi*4]
movzx eax, word [eax + ebx*2]
mov byte [esi + 3], al
mov edx, eax
movzx eax, byte [esp + 0x20]
shr dx, 8
mov byte [esi + 2], dl
movzx edx, byte [esp + 0x1c]
sar eax, cl
mov eax, dword [ebp + eax*4]
movzx eax, word [eax + edx*2]
mov edx, eax
shr dx, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
add dword [esp + 0x18], 1
add esi, 6
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x18], eax
je 0x467510
movzx ecx, byte [esi + 3]
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
mov byte [esp + 0x14], cl
movzx ecx, byte [esi + 4]
mov edi, eax
shl edi, 8
mov byte [esp + 0x1c], cl
movzx ecx, byte [esi + 5]
mov byte [esp + 0x20], cl
movzx ecx, dl
add ecx, edi
mov edi, dword [esp + 0x60]
cmp cx, word [edi + 0x1be]
jne 0x466c28
movzx ecx, byte [esp + 0x14]
mov edi, ebx
shl edi, 8
add ecx, edi
mov edi, dword [esp + 0x60]
cmp cx, word [edi + 0x1c0]
jne 0x466c28
movzx edi, word [esp + 0x1c]
movzx ecx, byte [esp + 0x20]
shl edi, 8
add ecx, edi
mov edi, dword [esp + 0x60]
cmp cx, word [edi + 0x1c2]
jne 0x466c28
movzx eax, byte [edi + 0x16f]
mov byte [esi], al
movzx eax, word [edi + 0x16e]
mov byte [esi + 1], al
movzx eax, byte [edi + 0x171]
mov byte [esi + 2], al
movzx eax, word [edi + 0x170]
mov byte [esi + 3], al
movzx eax, byte [edi + 0x173]
mov byte [esi + 4], al
movzx eax, word [edi + 0x172]
mov byte [esi + 5], al
jmp 0x466c7d
cmp byte [edi + 9], 8
je 0x4670d5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x467ac0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x467ac0
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x467ac0
mov ecx, dword [esp + 0xc]
xor eax, eax
test ecx, ecx
je case.0x466a2c.0
mov dword [esp + 0x64], edi
jmp 0x466db5
movzx edx, byte [ebp + 0x175]
mov byte [esi], dl
movzx edx, word [ebp + 0x174]
mov byte [esi + 1], dl
add eax, 1
add esi, 4
cmp eax, dword [esp + 0xc]
je 0x467500
movzx edx, byte [esi + 2]
movzx edi, byte [esi + 3]
shl edx, 8
add edi, edx
cmp di, 0xffff
je 0x467520
test di, di
je 0x466d92
movzx ecx, word [ebp + 0x17e]
movzx edi, di
mov edx, 0xffff
sub edx, edi
movzx ebx, byte [esi + 1]
imul edx, ecx
movzx ecx, byte [esp + 0x10]
sar ebx, cl
movzx ecx, byte [esi]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x24]
movzx ecx, word [ebx + ecx*2]
mov ebx, dword [esp + 0x14]
imul ecx, edi
lea edx, [edx + ecx + 0x8000]
mov ecx, edx
shr ecx, 0x10
add edx, ecx
shr edx, 0x10
test ebx, ebx
mov ecx, edx
jne 0x466e3c
movzx ecx, byte [esp + 0x10]
movzx ebx, dl
mov edi, dword [esp + 0x20]
shr edx, 8
sar ebx, cl
mov ecx, dword [edi + ebx*4]
movzx ecx, word [ecx + edx*2]
mov edx, ecx
shr dx, 8
mov byte [esi], dl
mov byte [esi + 1], cl
jmp 0x466da5
mov edi, dword [esp + 0x64]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x60]
movzx ecx, byte [edi + 8]
movzx eax, byte [edi + 9]
movzx esi, byte [edi + 0xa]
and ecx, 0xfffffffd
mov byte [edi + 8], cl
lea edx, [esi - 2]
imul eax, edx
mov byte [edi + 0xa], dl
cmp al, 7
mov byte [edi + 0xb], al
jbe 0x466ed5
shr al, 3
movzx eax, al
imul eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
mov dword [edi + 4], eax
test ebx, ebx
je 0x468a28
mov eax, dword [ebp + 0x80]
mov byte [ebp + 0x264], 1
mov edx, eax
and edx, 0x600000
cmp edx, 0x400000
je 0x467ea1
cmp edx, 0x200000
jne 0x465b00
mov dword [esp + 4], str.png_do_rgb_to_gray_found_nongray_pixel
mov dword [esp], ebp
call fcn.00459ae0
movzx eax, al
imul eax, dword [esp + 0xc]
add eax, 7
shr eax, 3
jmp 0x466e89
test ecx, ecx
jne 0x466772
jmp 0x465b2d
cmp al, 2
je 0x4684c4
cmp al, 4
lea esi, [esi]
je 0x468469
cmp al, 1
je 0x4683f7
mov eax, dword [esp + 0xc]
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mov byte [edi + 9], 8
mov byte [edi + 0xb], 8
mov dword [edi + 4], eax
jmp 0x466b58
mov esi, dword [edi + 4]
add esi, eax
cmp eax, esi
mov ecx, esi
jae 0x465b9f
mov dword [esp + 0x60], ebp
xor ebx, ebx
mov esi, edx
mov ebp, ecx
lea esi, [esi]
movzx edx, byte [eax]
mov ecx, dword [esp + ebx*4 + 0x30]
add ebx, 1
sar edx, cl
cmp esi, ebx
mov ecx, 0
cmovle ebx, ecx
add eax, 1
cmp eax, ebp
mov byte [eax - 1], dl
jne 0x466f50
jmp 0x466277
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4680f6
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4680f6
test ebx, ebx
je 0x4680f6
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
je case.0x466a2c.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x10], eax
jmp 0x466fe4
movzx eax, word [ebp + 0x16e]
mov byte [esi], al
movzx eax, word [ebp + 0x170]
mov byte [esi + 1], al
movzx eax, word [ebp + 0x172]
mov byte [esi + 2], al
add dword [esp + 0x10], 1
add esi, 4
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], eax
je 0x467500
movzx edx, byte [esi + 3]
cmp dl, 0xff
je 0x467f03
test dl, dl
je 0x466fb1
movzx eax, byte [esi]
mov ecx, 0xff
mov edi, eax
movzx eax, dl
sub ecx, eax
mov eax, edx
mov ebx, ecx
imul bx, word [ebp + 0x178]
mov word [esp + 0x18], bx
mov ebx, dword [esp + 0x24]
mul byte [ebx + edi]
movzx edi, word [esp + 0x18]
lea ebx, [edi + eax + 0x80]
movzx eax, bx
movzx ebx, bh
add ebx, eax
mov eax, dword [esp + 0x14]
sar ebx, 8
test eax, eax
jne 0x467046
mov eax, dword [esp + 0x28]
movzx ebx, bl
movzx ebx, byte [eax + ebx]
mov byte [esi], bl
mov ebx, ecx
movzx eax, byte [esi + 1]
imul bx, word [ebp + 0x17a]
mov edi, eax
mov eax, edx
mov word [esp + 0x18], bx
mov ebx, dword [esp + 0x24]
mul byte [ebx + edi]
movzx edi, word [esp + 0x18]
lea ebx, [edi + eax + 0x80]
mov edi, dword [esp + 0x14]
movzx eax, bx
movzx ebx, bh
add ebx, eax
sar ebx, 8
test edi, edi
jne 0x467090
mov eax, dword [esp + 0x28]
movzx ebx, bl
movzx ebx, byte [eax + ebx]
mov byte [esi + 1], bl
mov edi, dword [esp + 0x24]
mov eax, edx
movzx ebx, byte [esi + 2]
imul cx, word [ebp + 0x17c]
mul byte [edi + ebx]
lea ecx, [ecx + eax + 0x80]
movzx eax, cx
movzx ecx, ch
add ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 8
test eax, eax
jne 0x4670cd
mov eax, dword [esp + 0x28]
movzx ecx, cl
movzx ecx, byte [eax + ecx]
mov byte [esi + 2], cl
jmp 0x466fce
mov edx, dword [esp + 0x24]
test edx, edx
je 0x468083
mov eax, dword [esp + 0x28]
test eax, eax
je 0x468083
test ebx, ebx
je 0x468083
mov eax, dword [esp + 0xc]
xor edx, edx
test eax, eax
je case.0x466a2c.0
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], edi
mov dword [esp + 0x10], ebx
jmp 0x46712e
mov eax, dword [esp + 0x60]
movzx eax, word [eax + 0x174]
mov byte [esi], al
add edx, 1
add esi, 2
cmp edx, dword [esp + 0xc]
je 0x467510
movzx ecx, byte [esi + 1]
movzx eax, cl
cmp ax, 0xff
je 0x467f30
test ax, ax
je 0x467111
movzx ebx, byte [esi]
mov ebp, dword [esp + 0x24]
mov edi, ebx
mov ebx, 0xff
sub ebx, eax
mov eax, dword [esp + 0x60]
imul bx, word [eax + 0x17e]
mov eax, ecx
mul byte [ebp + edi]
lea ebx, [ebx + eax + 0x80]
movzx eax, bx
movzx ebx, bh
add ebx, eax
mov eax, dword [esp + 0x14]
sar ebx, 8
test eax, eax
jne 0x46718b
mov eax, dword [esp + 0x28]
movzx ebx, bl
movzx ebx, byte [eax + ebx]
mov byte [esi], bl
jmp 0x46711e
test ebx, ebx
je 0x4687b7
mov eax, dword [esp + 0xc]
test eax, eax
je case.0x466a2c.0
lea eax, [eax + eax*2 + 1]
add eax, edx
mov dword [esp + 0x64], edi
mov dword [esp + 0xc], eax
jmp 0x4671d9
movzx edx, byte [esi + 2]
movzx eax, byte [ebx + eax]
mov byte [esi], al
movzx eax, byte [ebx + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + edx]
mov byte [esi + 2], al
add esi, 3
cmp esi, dword [esp + 0xc]
je 0x467500
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, al
cmp dx, word [ebp + 0x1be]
jne 0x4671b4
movzx edx, cl
cmp dx, word [ebp + 0x1c0]
movzx edx, byte [esi + 2]
jne 0x4671b8
movzx edi, dl
cmp di, word [ebp + 0x1c2]
jne 0x4671b8
movzx eax, word [ebp + 0x16e]
mov byte [esi], al
movzx eax, word [ebp + 0x170]
mov byte [esi + 1], al
movzx eax, word [ebp + 0x172]
mov byte [esi + 2], al
jmp 0x4671cc
and ebx, 0x80
mov ebx, dword [esp + 0x10]
lea eax, [esi + esi*2]
je 0x468269
add ebx, eax
cmp esi, 1
lea ecx, [ebx + esi]
mov dword [esp + 0x10], ecx
jbe 0x46728b
lea ecx, [ebx - 3]
sub ebx, eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0xc], dl
movzx edx, byte [esp + 0xc]
sub ecx, 3
sub eax, 4
mov byte [eax + 3], dl
movzx edx, byte [ecx + 5]
mov byte [eax + 2], dl
movzx edx, byte [ecx + 4]
mov byte [eax + 1], dl
movzx edx, byte [ecx + 3]
cmp ecx, ebx
mov byte [eax], dl
jne 0x467255
mov ebx, dword [esp + 0x10]
mov eax, esi
neg eax
lea eax, [ebx + eax*4 + 4]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
movzx eax, byte [esp + 0x14]
mov byte [ebx - 1], al
lea eax, [esi*4]
mov byte [edi + 0xa], 4
mov byte [edi + 0xb], 0x20
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x80]
jmp 0x465bd4
mov ecx, dword [esp + 0xc]
test ecx, ecx
je case.0x466a2c.0
xor ebx, ebx
mov eax, 7
mov dword [esp + 0x64], edi
jmp 0x4672e2
add esi, 1
mov al, 7
add ebx, 1
cmp ebx, dword [esp + 0xc]
je 0x467500
movzx edi, byte [esi]
mov ecx, eax
mov edx, edi
sar edx, cl
movzx ecx, word [ebp + 0x1c4]
and edx, 1
cmp edx, ecx
je 0x467945
test eax, eax
je 0x4672d0
sub eax, 1
jmp 0x4672d5
test ebx, ebx
je 0x46898d
mov ecx, dword [esp + 0xc]
test ecx, ecx
je case.0x466a2c.0
xor ecx, ecx
mov eax, 6
mov dword [esp + 0x10], ebx
mov ebx, eax
mov dword [esp + 0x64], edi
mov edi, ecx
mov dword [esp + 0x60], ebp
jmp 0x467345
add esi, 1
mov bl, 6
add edi, 1
cmp edi, dword [esp + 0xc]
je 0x467510
movzx edx, byte [esi]
mov ecx, ebx
mov eax, edx
sar eax, cl
mov ecx, dword [esp + 0x60]
and eax, 3
movzx ecx, word [ecx + 0x1c4]
cmp eax, ecx
mov ecx, 6
je 0x467bc0
sub ecx, ebx
mov ebp, 0x3f3f
sar ebp, cl
mov ecx, eax
and ebp, edx
shl ecx, 4
lea edx, [eax*4]
or edx, ecx
mov ecx, ebx
or edx, eax
shl eax, 6
or edx, eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + edx]
shr al, 6
movzx eax, al
shl eax, cl
or eax, ebp
mov byte [esi], al
test ebx, ebx
je 0x467333
sub ebx, 2
jmp 0x467338
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x468942
mov eax, dword [esp + 0xc]
test eax, eax
je case.0x466a2c.0
xor ebx, ebx
mov dword [esp + 0x64], edi
jmp 0x4673f5
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x1c]
sar edx, cl
mov edx, dword [edi + edx*4]
movzx eax, word [edx + eax*2]
mov edx, eax
shr dx, 8
mov byte [esi], dl
mov byte [esi + 1], al
add ebx, 1
add esi, 2
cmp ebx, dword [esp + 0xc]
je 0x467500
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
mov edi, eax
shl edi, 8
movzx ecx, dl
add ecx, edi
cmp cx, word [ebp + 0x1c4]
jne 0x4673c8
movzx eax, byte [ebp + 0x175]
mov byte [esi], al
movzx eax, word [ebp + 0x174]
mov byte [esi + 1], al
jmp 0x4673e5
test ebx, ebx
mov eax, dword [esp + 0xc]
je 0x468911
test eax, eax
je case.0x466a2c.0
lea ecx, [edx + eax + 1]
jmp 0x467451
movzx eax, byte [ebx + eax]
mov byte [esi], al
add esi, 1
cmp esi, ecx
je case.0x466a2c.0
movzx eax, byte [esi]
movzx edx, al
cmp dx, word [ebp + 0x1c4]
jne 0x467440
movzx eax, word [ebp + 0x174]
mov byte [esi], al
jmp 0x467446
test ebx, ebx
je 0x4688a6
mov eax, dword [esp + 0xc]
test eax, eax
je case.0x466a2c.0
xor ecx, ecx
mov eax, 4
mov dword [esp + 0x10], ebx
mov ebx, ecx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], edi
jmp 0x4674a4
add esi, 1
mov al, 4
add ebx, 1
cmp ebx, dword [esp + 0xc]
je 0x467510
movzx edi, byte [esi]
mov ecx, eax
mov edx, edi
sar edx, cl
mov ecx, dword [esp + 0x60]
and edx, 0xf
movzx ecx, word [ecx + 0x1c4]
cmp edx, ecx
mov ecx, 4
je 0x467be3
sub ecx, eax
mov ebp, 0xf0f
sar ebp, cl
mov ecx, edx
and ebp, edi
mov edi, dword [esp + 0x10]
shl ecx, 4
or ecx, edx
movzx edx, byte [edi + ecx]
mov ecx, eax
shr dl, 4
movzx edx, dl
shl edx, cl
or edx, ebp
mov byte [esi], dl
test eax, eax
je 0x467496
sub eax, 4
jmp 0x46749b
mov edi, dword [esp + 0x64]
jmp case.0x466a2c.0
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
jmp case.0x466a2c.0
movzx edx, byte [esi + 1]
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x1c]
sar edx, cl
movzx ecx, byte [esi]
mov edx, dword [edi + edx*4]
movzx edx, word [edx + ecx*2]
mov ecx, edx
shr cx, 8
mov byte [esi], cl
mov byte [esi + 1], dl
jmp 0x466da5
mov ebx, dword [esp + 0x10]
movzx eax, byte [esi + 1]
mov edi, dword [esp + 0x1c]
movzx edx, byte [esi]
mov ecx, ebx
sar eax, cl
mov eax, dword [edi + eax*4]
movzx eax, word [eax + edx*2]
mov byte [esi + 1], al
mov edx, eax
movzx eax, byte [esi + 3]
shr dx, 8
mov byte [esi], dl
movzx edx, byte [esi + 2]
sar eax, cl
mov eax, dword [edi + eax*4]
movzx eax, word [eax + edx*2]
mov byte [esi + 3], al
mov edx, eax
movzx eax, byte [esi + 5]
shr dx, 8
mov byte [esi + 2], dl
movzx edx, byte [esi + 4]
sar eax, cl
mov eax, dword [edi + eax*4]
movzx eax, word [eax + edx*2]
mov edx, eax
shr dx, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
jmp 0x465f3b
lea edx, [ebx - 1]
lea ecx, [ebx + 3]
mov esi, edx
not ecx
shr esi, 2
and ecx, 3
add esi, eax
add ecx, ecx
add eax, edx
test ebx, ebx
je 0x466623
mov edx, eax
sub edx, ebx
mov dword [esp + 0xc], ebx
mov ebx, edx
jmp 0x4675ea
add ecx, 2
sub eax, 1
cmp eax, ebx
je 0x467600
movzx edx, byte [esi]
sar edx, cl
and edx, 3
cmp ecx, 6
mov byte [eax], dl
jne 0x4675e0
sub esi, 1
xor cl, cl
jmp 0x4675e3
mov ebx, dword [esp + 0xc]
jmp 0x466623
lea edx, [ebx - 1]
mov esi, edx
shr esi, 3
add esi, eax
add eax, edx
lea ecx, [ebx + 7]
mov edx, eax
not ecx
sub edx, ebx
and ecx, 7
test ebx, ebx
je 0x466623
mov dword [esp + 0xc], ebx
mov ebx, edx
jmp 0x467642
add ecx, 1
sub eax, 1
cmp eax, ebx
je 0x467600
movzx edx, byte [esi]
sar edx, cl
and edx, 1
cmp ecx, 7
mov byte [eax], dl
jne 0x467638
sub esi, 1
xor cl, cl
jmp 0x46763b
lea edx, [ebx - 1]
mov esi, edx
shr esi, 1
add esi, eax
add eax, edx
lea edx, [ebx + 1]
and edx, 1
cmp edx, 1
sbb ecx, ecx
and ecx, 4
test ebx, ebx
je 0x466623
mov edx, eax
sub edx, ebx
mov dword [esp + 0xc], ebx
mov ebx, edx
jmp 0x467695
mov ecx, 4
sub eax, 1
cmp eax, ebx
je 0x467600
movzx edx, byte [esi]
sar edx, cl
and edx, 0xf
cmp ecx, 4
mov byte [eax], dl
jne 0x467685
sub esi, 1
xor cl, cl
jmp 0x46768a
and ebx, 0x80
mov ebx, dword [esp + 0x10]
je 0x467e70
add ebx, esi
cmp esi, 1
lea eax, [ebx + esi]
mov dword [esp + 0x10], eax
jbe 0x467707
mov eax, dword [esp + 0x10]
mov ecx, ebx
sub ecx, esi
lea ecx, [ecx + 1]
mov byte [esp + 0xc], dl
lea esi, [esi]
movzx edx, byte [esp + 0xc]
sub ebx, 1
sub eax, 2
mov byte [eax + 1], dl
movzx edx, byte [ebx]
cmp ebx, ecx
mov byte [eax], dl
jne 0x4676e0
mov ebx, dword [esp + 0x10]
mov eax, esi
neg eax
lea eax, [ebx + eax*2 + 2]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
movzx eax, byte [esp + 0x14]
mov byte [ebx - 1], al
lea eax, [esi + esi]
mov byte [edi + 0xa], 2
mov byte [edi + 0xb], 0x10
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x80]
jmp 0x465bd4
cmp byte [esp + 0x10], 2
jne 0x465b9f
mov ecx, dword [edi + 4]
add ecx, eax
cmp eax, ecx
jae 0x465b9f
movzx edx, byte [eax]
add eax, 1
shr dl, 1
and edx, 0x55
cmp eax, ecx
mov byte [eax - 1], dl
jne 0x467748
jmp 0x46627b
test esi, esi
je 0x465d92
mov ebx, dword [esp + 0xc]
test ebx, ebx
nop
je 0x467c46
lea ebx, [ecx + ebx + 1]
mov ecx, ebx
mov ebx, eax
mov dword [esp + 0x60], ebp
mov ebp, ecx
movzx ecx, byte [ebx]
add ebx, 3
add eax, 1
movzx edx, byte [ebx - 2]
sar ecx, 3
sar edx, 3
shl ecx, 0xa
shl edx, 5
or edx, ecx
movzx ecx, byte [ebx - 1]
sar ecx, 3
or edx, ecx
cmp eax, ebp
movzx edx, byte [esi + edx]
mov byte [eax - 1], dl
jne 0x467784
mov ebp, dword [esp + 0x60]
movzx eax, byte [edi + 9]
mov byte [edi + 8], 3
mov byte [edi + 0xa], 1
cmp al, 7
mov byte [edi + 0xb], al
ja 0x467c57
imul eax, dword [esp + 0xc]
add eax, 7
shr eax, 3
mov dword [edi + 4], eax
jmp 0x465d95
mov eax, dword [ebp + 0x19c]
test eax, eax
je 0x4681c3
mov ebx, dword [ebp + 0x1a0]
test ebx, ebx
je 0x4681c3
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
test edx, edx
je 0x468737
mov edx, esi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], edi
jmp 0x46783d
add esi, 3
mov edx, ecx
add dword [esp + 0x14], 1
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x14], eax
je 0x4678e0
movzx eax, byte [esi]
movzx ecx, byte [esi + 2]
movzx edi, byte [esi + 1]
cmp al, cl
jne 0x467852
mov ebx, edi
cmp al, bl
je 0x4678c6
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x1c], 1
mov ebp, dword [ebx + 0x1a0]
mov ebx, edi
movzx edi, bl
movzx ebx, cl
lea ecx, [edx + 1]
movzx eax, byte [ebp + eax]
movzx edi, byte [ebp + edi]
imul edi, dword [esp + 0x28]
imul eax, dword [esp + 0x24]
movzx ebx, byte [ebp + ebx]
imul ebx, dword [esp + 0x18]
lea eax, [eax + edi + 0x4000]
mov edi, dword [esp + 0x60]
add eax, ebx
shr eax, 0xf
mov ebx, dword [edi + 0x19c]
movzx eax, byte [ebx + eax]
mov byte [edx], al
mov edi, dword [esp + 0x10]
test edi, edi
je 0x467825
movzx eax, byte [esi + 3]
lea edx, [ecx + 1]
add esi, 4
mov byte [ecx], al
jmp 0x46782a
mov edi, dword [esp + 0x60]
mov ecx, dword [edi + 0x194]
test ecx, ecx
je 0x4678d8
movzx eax, byte [ecx + eax]
lea ecx, [edx + 1]
mov byte [edx], al
jmp 0x4678a9
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
movzx ecx, byte [edi + 8]
movzx eax, byte [edi + 9]
jmp 0x466e64
mov esi, dword [ebp + 0x19c]
test esi, esi
mov dword [esp + 0x10], esi
je 0x465c82
and edx, 2
mov ecx, dword [esp + 0xc]
cmp dl, 1
sbb esi, esi
and esi, 0xfffffffe
mov edx, esi
add edx, 4
test eax, eax
lea esi, [ecx + esi + 3]
je 0x465b51
mov ecx, dword [esp + 0x10]
nop
lea esi, [esi]
movzx ebx, byte [esi]
movzx ebx, byte [ecx + ebx]
mov byte [esi], bl
add esi, edx
sub eax, 1
jne 0x467930
jmp 0x465c92
mov ecx, 7
mov edx, 0x7f7f
sub ecx, eax
sar edx, cl
mov ecx, eax
and edx, edi
movzx edi, word [ebp + 0x174]
shl edi, cl
or edx, edi
mov byte [esi], dl
jmp 0x4672fd
mov eax, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
je case.0x466a2c.0
mov dword [esp + 0x64], edi
jmp 0x4679cf
movzx eax, byte [ebp + 0x16f]
mov byte [esi], al
movzx eax, word [ebp + 0x16e]
mov byte [esi + 1], al
movzx eax, byte [ebp + 0x171]
mov byte [esi + 2], al
movzx eax, word [ebp + 0x170]
mov byte [esi + 3], al
movzx eax, byte [ebp + 0x173]
mov byte [esi + 4], al
movzx eax, word [ebp + 0x172]
mov byte [esi + 5], al
add ecx, 1
add esi, 8
cmp ecx, dword [esp + 0xc]
je 0x467500
movzx eax, byte [esi + 6]
movzx edx, byte [esi + 7]
shl eax, 8
add ax, dx
je 0x467984
cmp ax, 0xffff
je 0x4679bf
movzx edx, byte [esi + 2]
movzx eax, ax
movzx ebx, byte [esi + 3]
shl edx, 8
lea edi, [edx + ebx]
movzx edx, byte [esi + 4]
movzx ebx, byte [esi + 5]
mov word [esp + 0x14], di
movzx edi, byte [esi + 1]
shl edx, 8
add ebx, edx
movzx edx, byte [esi]
mov word [esp + 0x18], bx
mov ebx, 0xffff
sub ebx, eax
mov dword [esp + 0x10], ebx
shl edx, 8
add edx, edi
movzx edi, word [ebp + 0x16e]
movzx edx, dx
imul edx, eax
imul edi, ebx
lea edx, [edx + edi + 0x8000]
mov edi, edx
shr edi, 0x10
add edx, edi
shr edx, 0x10
mov byte [esi + 1], dl
mov edi, edx
movzx edx, word [esp + 0x14]
shr di, 8
mov ebx, edi
mov byte [esi], bl
movzx edi, word [ebp + 0x170]
imul edx, eax
imul edi, dword [esp + 0x10]
lea edx, [edx + edi + 0x8000]
mov edi, edx
shr edi, 0x10
add edx, edi
shr edx, 0x10
mov edi, edx
mov byte [esi + 3], dl
movzx edx, word [esp + 0x18]
shr di, 8
mov ebx, edi
mov byte [esi + 2], bl
mov ebx, dword [esp + 0x10]
imul edx, eax
movzx eax, word [ebp + 0x172]
imul ebx, eax
lea eax, [edx + ebx + 0x8000]
mov edx, eax
shr edx, 0x10
add eax, edx
shr eax, 0x10
mov edx, eax
shr dx, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
jmp 0x4679bf
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
je case.0x466a2c.0
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x64], edi
jmp 0x467af9
movzx edx, byte [ebp + 0x175]
mov byte [esi], dl
movzx edx, word [ebp + 0x174]
mov byte [esi + 1], dl
add eax, 1
add esi, 4
cmp eax, ebx
je 0x467500
movzx edx, byte [esi + 2]
movzx ecx, byte [esi + 3]
shl edx, 8
add cx, dx
je 0x467ad8
cmp cx, 0xffff
je 0x467aeb
movzx edx, byte [esi]
movzx ecx, cx
movzx edi, byte [esi + 1]
shl edx, 8
add edi, edx
mov edx, 0xffff
movzx edi, di
sub edx, ecx
imul edi, ecx
movzx ecx, word [ebp + 0x174]
imul edx, ecx
lea edx, [edi + edx + 0x8000]
mov ecx, edx
shr ecx, 0x10
add edx, ecx
shr edx, 0x10
mov ecx, edx
shr cx, 8
mov byte [esi], cl
mov byte [esi + 1], dl
jmp 0x467aeb
test esi, esi
je 0x465d92
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x467c46
lea ebx, [ecx + ebx + 1]
mov ecx, ebx
mov ebx, eax
mov dword [esp + 0x60], ebp
mov ebp, ecx
mov dword [esp + 0x64], edi
lea esi, [esi]
movzx edx, byte [ebx]
add eax, 1
add ebx, 4
movzx ecx, byte [ebx - 3]
movzx edi, byte [ebx - 2]
sar edx, 3
sar ecx, 3
shl edx, 0xa
shl ecx, 5
or edx, ecx
sar edi, 3
or edx, edi
cmp eax, ebp
movzx edx, byte [esi + edx]
mov byte [eax - 1], dl
jne 0x467b80
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
jmp 0x4677b7
sub ecx, ebx
mov eax, 0x3f3f
sar eax, cl
mov ecx, dword [esp + 0x60]
and eax, edx
movzx edx, word [ecx + 0x174]
mov ecx, ebx
shl edx, cl
or eax, edx
mov byte [esi], al
jmp 0x46739f
sub ecx, eax
mov edx, 0xf0f
sar edx, cl
mov ecx, eax
and edx, edi
mov edi, dword [esp + 0x60]
movzx edi, word [edi + 0x174]
shl edi, cl
or edx, edi
mov byte [esi], dl
jmp 0x4674f0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], 0xf
mov esi, dword [edi + 4]
sar dword [esp + 0xc], cl
mov edx, dword [esp + 0xc]
add esi, eax
shl edx, 4
or edx, dword [esp + 0xc]
cmp eax, esi
jae 0x465b9f
nop
movzx ebx, byte [eax]
add eax, 1
sar ebx, cl
and ebx, edx
cmp eax, esi
mov byte [eax - 1], bl
jne 0x467c30
jmp 0x46627b
mov byte [edi + 8], 3
mov eax, 8
mov byte [edi + 0xa], 1
mov byte [edi + 0xb], 8
shr al, 3
movzx eax, al
imul eax, dword [esp + 0xc]
jmp 0x4677d9
add edx, dword [edi + 4]
test ecx, ecx
je 0x465bdf
xor ebx, ebx
mov esi, ecx
movzx eax, byte [edx - 2]
add ebx, 1
sub edx, 4
movzx ecx, byte [edx + 3]
mov byte [edx + 3], al
movzx eax, byte [edx + 1]
mov byte [edx + 2], al
movzx eax, byte [edx]
mov byte [edx + 1], al
cmp ebx, esi
mov byte [edx], cl
jne 0x467c76
jmp 0x4666cd
add eax, dword [edi + 4]
test edx, edx
je 0x465b96
xor ecx, ecx
lea esi, [esi]
add ecx, 1
not byte [eax - 1]
sub eax, 4
cmp ecx, edx
jne 0x467cb0
jmp 0x466160
add edx, dword [edi + 4]
test ecx, ecx
je 0x465bdf
xor ebx, ebx
mov esi, ecx
movzx eax, byte [edx - 2]
add ebx, 1
sub edx, 2
movzx ecx, byte [edx + 1]
mov byte [edx + 1], al
cmp ebx, esi
mov byte [edx], cl
jne 0x467cd1
jmp 0x4666cd
add eax, dword [edi + 4]
test edx, edx
je 0x465b96
xor ecx, ecx
lea esi, [esi]
add ecx, 1
not byte [eax - 1]
sub eax, 2
cmp ecx, edx
jne 0x467d00
jmp 0x466160
xor ebx, ebx
cmp dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
je 0x46830c
mov dword [esp + 0x60], ebp
mov ebp, ebx
mov dword [esp + 0x64], edi
jmp 0x467d46
add esi, 6
add edx, 2
add ebp, 1
cmp ebp, dword [esp + 0xc]
je 0x4678e0
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 3]
movzx edi, byte [esi + 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
shl ecx, 8
or ebx, ecx
movzx ecx, byte [esi + 5]
or ecx, edi
cmp ax, cx
jne 0x467d76
cmp ax, bx
je 0x467d7e
mov dword [esp + 0x1c], 1
movzx eax, ax
movzx ebx, bx
mov edi, dword [esp + 0x10]
imul eax, dword [esp + 0x24]
movzx ecx, cx
imul ebx, dword [esp + 0x28]
imul ecx, dword [esp + 0x18]
lea eax, [eax + ebx + 0x4000]
add ecx, eax
shr ecx, 0xf
mov eax, ecx
shr ax, 8
test edi, edi
mov byte [edx], al
mov byte [edx + 1], cl
je 0x467d33
movzx eax, byte [esi + 6]
add edx, 4
add esi, 8
mov byte [edx - 2], al
movzx eax, byte [esi - 1]
mov byte [edx - 1], al
jmp 0x467d39
mov esi, dword [ebp + 0x1a4]
mov ecx, dword [ebp + 0x18c]
test esi, esi
mov dword [esp + 0x14], ecx
je 0x465c82
and edx, 2
cmp dl, 1
sbb ecx, ecx
and ecx, 0xfffffffc
cmp dl, 1
sbb edx, edx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
and dword [esp + 0x10], 0xfffffffc
add dword [esp + 0x10], 8
test eax, eax
lea edx, [edx + ecx + 6]
je 0x465b51
mov dword [esp + 0x64], edi
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x60], ebp
lea esi, [esi]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
sar ebx, cl
mov ebx, dword [esi + ebx*4]
movzx ebx, word [ebx + ebp*2]
mov ebp, ebx
shr bp, 8
mov eax, ebp
mov byte [edx], al
mov byte [edx + 1], bl
add edx, edi
sub dword [esp + 0xc], 1
jne 0x467e30
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebx, dword [ebp + 0x80]
jmp 0x465b51
add ebx, esi
mov ecx, ebx
sub ecx, esi
test esi, esi
lea eax, [ebx + esi]
je 0x467713
mov byte [esp + 0xc], dl
sub ebx, 1
movzx edx, byte [ebx]
sub eax, 2
mov byte [eax + 1], dl
movzx edx, byte [esp + 0xc]
cmp ebx, ecx
mov byte [eax], dl
jne 0x467e85
jmp 0x467713
mov dword [esp + 4], str.png_do_rgb_to_gray_found_nongray_pixel
mov dword [esp], ebp
call fcn.00459730
mov eax, dword [ebp + 0x80]
mov edx, eax
and edx, 0x600000
jmp 0x466eb9
xor ebx, ebx
test esi, esi
je 0x4665ae
mov dword [esp + 0x60], ebp
mov ebp, edx
movzx edx, byte [ecx - 1]
sub ecx, 2
add ebx, 1
sub eax, 4
mov byte [eax + 3], dl
movzx edx, byte [ecx]
mov byte [eax + 2], dl
movzx edx, byte [esp + 0xc]
mov byte [eax + 1], dl
mov edx, ebp
cmp ebx, esi
mov byte [eax], dl
jne 0x467ed4
mov ebp, dword [esp + 0x60]
jmp 0x4665ae
mov ebx, dword [esp + 0x1c]
movzx eax, byte [esi]
movzx eax, byte [ebx + eax]
mov byte [esi], al
movzx eax, byte [esi + 1]
movzx eax, byte [ebx + eax]
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
movzx eax, byte [ebx + eax]
mov byte [esi + 2], al
jmp 0x466fce
movzx eax, byte [esi]
mov edi, dword [esp + 0x10]
movzx eax, byte [edi + eax]
mov byte [esi], al
jmp 0x46711e
test bl, bl
jne 0x465b2d
cmp byte [esp + 0x10], 2
je 0x46863f
movzx edx, byte [esp + 0x10]
cmp dl, 4
je 0x4685e3
cmp dl, 8
je 0x468873
cmp dl, 0x10
je 0x468820
mov eax, dword [ebp + 0x80]
mov edx, eax
jmp 0x465b2d
cmp byte [esp + 0x10], 8
je 0x46859f
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
je 0x465b2d
mov dword [esp + 0x64], edi
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x60], ebp
mov dword [esp + 0xc], eax
movzx edx, byte [ebx + 1]
add ebx, 6
movzx ebp, byte [ebx - 6]
add dword [esp + 0xc], 1
sar edx, cl
mov edx, dword [esi + edx*4]
movzx edx, word [edx + ebp*2]
mov byte [ebx - 5], dl
mov ebp, edx
movzx edx, byte [ebx - 3]
shr bp, 8
mov eax, ebp
movzx ebp, byte [ebx - 4]
mov byte [ebx - 6], al
sar edx, cl
mov edx, dword [esi + edx*4]
movzx edx, word [edx + ebp*2]
mov byte [ebx - 3], dl
mov ebp, edx
movzx edx, byte [ebx - 1]
shr bp, 8
mov eax, ebp
movzx ebp, byte [ebx - 2]
mov byte [ebx - 4], al
sar edx, cl
mov edx, dword [esi + edx*4]
movzx edx, word [edx + ebp*2]
mov ebp, edx
shr bp, 8
mov eax, ebp
mov byte [ebx - 2], al
mov byte [ebx - 1], dl
cmp dword [esp + 0xc], edi
jne 0x467fb3
jmp 0x466842
cmp byte [esp + 0x10], 8
je 0x46852a
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
je 0x465b2d
mov dword [esp + 0x64], edi
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x60], ebp
lea esi, [esi]
movzx edx, byte [ebx + 1]
add eax, 1
add ebx, 4
movzx ecx, byte [esp + 0xc]
movzx ebp, byte [ebx - 4]
sar edx, cl
mov edx, dword [esi + edx*4]
movzx edx, word [edx + ebp*2]
mov ebp, edx
shr bp, 8
mov ecx, ebp
mov byte [ebx - 4], cl
mov byte [ebx - 3], dl
cmp eax, edi
jne 0x468050
jmp 0x466842
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov ebx, 0xff
test eax, eax
je case.0x466a2c.0
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0xc]
jmp 0x4680b7
movzx eax, word [ebp + 0x174]
mov byte [esi], al
add ecx, 1
add esi, 2
cmp ecx, edi
je 0x467500
movzx edx, byte [esi + 1]
test dl, dl
je 0x4680a0
cmp dl, 0xff
je 0x4680a9
mov eax, edx
mul byte [esi]
mov word [esp + 0xc], ax
mov eax, ebx
sub eax, edx
mov edx, eax
movzx eax, word [esp + 0xc]
imul dx, word [ebp + 0x174]
lea eax, [eax + edx + 0x80]
movzx edx, ax
movzx eax, ah
add eax, edx
sar eax, 8
mov byte [esi], al
jmp 0x4680a9
mov eax, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
je case.0x466a2c.0
mov dword [esp + 0x64], edi
jmp 0x46813d
movzx eax, word [ebp + 0x16e]
mov byte [esi], al
movzx eax, word [ebp + 0x170]
mov byte [esi + 1], al
movzx eax, word [ebp + 0x172]
mov byte [esi + 2], al
add ecx, 1
add esi, 4
cmp ecx, dword [esp + 0xc]
je 0x467500
movzx edx, byte [esi + 3]
test dl, dl
je 0x468110
cmp dl, 0xff
je 0x46812d
movzx eax, dl
mov ebx, 0xff
sub ebx, eax
mov eax, edx
mov edi, ebx
mul byte [esi]
imul di, word [ebp + 0x16e]
lea eax, [eax + edi + 0x80]
movzx edi, ax
movzx eax, ah
add eax, edi
mov edi, ebx
sar eax, 8
mov byte [esi], al
mov eax, edx
imul di, word [ebp + 0x170]
mul byte [esi + 1]
lea eax, [eax + edi + 0x80]
movzx edi, ax
movzx eax, ah
add eax, edi
sar eax, 8
mov byte [esi + 1], al
mov eax, edx
imul bx, word [ebp + 0x172]
mul byte [esi + 2]
mov edx, ebx
lea edx, [eax + edx + 0x80]
movzx eax, dx
movzx edx, dh
add eax, edx
sar eax, 8
mov byte [esi + 2], al
jmp 0x46812d
mov ebx, dword [esp + 0xc]
xor eax, eax
mov edx, esi
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x468737
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], edi
jmp 0x468208
add edx, 3
mov esi, ebx
add dword [esp + 0x14], 1
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x14], eax
je 0x4678e0
movzx edi, byte [edx + 2]
movzx eax, byte [edx]
movzx ebp, byte [edx + 1]
mov ebx, edi
cmp al, bl
jne 0x46821f
mov ebx, ebp
cmp al, bl
je 0x468262
mov ecx, ebp
movzx ebp, cl
mov ecx, edi
imul ebp, dword [esp + 0x28]
movzx edi, cl
imul eax, dword [esp + 0x24]
imul edi, dword [esp + 0x18]
lea ebx, [esi + 1]
mov dword [esp + 0x1c], 1
add eax, ebp
add eax, edi
shr eax, 0xf
mov byte [esi], al
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4681f0
movzx eax, byte [edx + 3]
lea esi, [ebx + 1]
add edx, 4
mov byte [ebx], al
jmp 0x4681f5
lea ebx, [esi + 1]
mov byte [esi], al
jmp 0x46824c
add ebx, eax
lea ecx, [ebx + esi]
mov dword [esp + 0xc], ecx
mov ecx, ebx
sub ecx, eax
test esi, esi
mov eax, ecx
je 0x467297
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], eax
movzx eax, byte [ebx - 1]
sub ecx, 4
sub ebx, 3
mov byte [ecx + 3], al
movzx eax, byte [ebx + 1]
mov byte [ecx + 2], al
movzx eax, byte [ebx]
mov byte [ecx + 1], al
cmp ebx, dword [esp + 0xc]
mov byte [ecx], dl
jne 0x468288
jmp 0x467297
add eax, ecx
xor ebx, ebx
test esi, esi
je 0x46693e
mov dword [esp + 0x60], ebp
mov ebp, edx
movzx edx, byte [ecx - 1]
sub ecx, 6
add ebx, 1
sub eax, 8
mov byte [eax + 7], dl
movzx edx, byte [ecx + 4]
mov byte [eax + 6], dl
movzx edx, byte [ecx + 3]
mov byte [eax + 5], dl
movzx edx, byte [ecx + 2]
mov byte [eax + 4], dl
movzx edx, byte [ecx + 1]
mov byte [eax + 3], dl
movzx edx, byte [ecx]
mov byte [eax + 2], dl
movzx edx, byte [esp + 0xc]
mov byte [eax + 1], dl
mov edx, ebp
cmp ebx, esi
mov byte [eax], dl
jne 0x4682c1
mov ebp, dword [esp + 0x60]
jmp 0x46693e
mov esi, dword [esp + 0xc]
mov dword [esp + 0x1c], esi
jmp 0x466e64
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0xc]
mov byte [edi + 9], 8
mov byte [edi + 0xb], 0x20
mov byte [edi + 8], 6
shl eax, 2
mov dword [edi + 4], eax
mov byte [edi + 0xa], 4
jmp 0x465ad6
mov eax, dword [esp + 0xc]
xor ebx, ebx
test eax, eax
je case.0x466a2c.0
mov dword [esp + 0x64], edi
jmp 0x468364
add ebx, 1
add esi, 6
cmp ebx, dword [esp + 0xc]
je 0x467500
movzx eax, byte [esi + 4]
movzx edx, byte [esi + 1]
movzx edi, byte [esi + 2]
movzx ecx, byte [esi + 3]
mov byte [esp + 0x10], al
movzx eax, byte [esi + 5]
mov byte [esp + 0x14], al
movzx eax, byte [esi]
shl eax, 8
add eax, edx
cmp ax, word [ebp + 0x1be]
jne 0x468354
shl edi, 8
add ecx, edi
cmp cx, word [ebp + 0x1c0]
jne 0x468354
movzx eax, word [esp + 0x10]
movzx edx, byte [esp + 0x14]
shl eax, 8
add eax, edx
cmp ax, word [ebp + 0x1c2]
jne 0x468354
movzx eax, byte [ebp + 0x16f]
mov byte [esi], al
movzx eax, word [ebp + 0x16e]
mov byte [esi + 1], al
movzx eax, byte [ebp + 0x171]
mov byte [esi + 2], al
movzx eax, word [ebp + 0x170]
mov byte [esi + 3], al
movzx eax, byte [ebp + 0x173]
mov byte [esi + 4], al
movzx eax, word [ebp + 0x172]
mov byte [esi + 5], al
jmp 0x468354
mov edx, dword [esp + 0xc]
mov eax, edx
sub eax, 1
mov ecx, eax
mov esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
shr esi, 3
add esi, eax
add eax, ecx
mov ecx, edx
add ecx, 7
mov dword [esp + 0x20], esi
not ecx
mov esi, eax
and ecx, 7
sub esi, edx
test edx, edx
je 0x466f19
mov dword [esp + 0x24], ebx
mov ebx, esi
mov esi, dword [esp + 0x20]
jmp 0x46844a
add ecx, 1
sub eax, 1
cmp eax, ebx
je 0x468460
movzx edx, byte [esi]
sar edx, cl
and edx, 1
cmp ecx, 7
mov byte [eax], dl
jne 0x468440
sub esi, 1
xor cl, cl
jmp 0x468443
mov ebx, dword [esp + 0x24]
jmp 0x466f19
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea esi, [eax - 1]
mov ecx, esi
mov dword [esp + 0x1c], esi
shr esi, 1
add esi, edx
add edx, ecx
mov ecx, eax
and ecx, 1
shl ecx, 2
test eax, eax
mov dword [esp + 0x20], ecx
je 0x466f19
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x24], ebx
mov ebx, ecx
mov ecx, dword [esp + 0x20]
jmp 0x4684ae
add ecx, 4
sub edx, 1
cmp edx, ebx
je 0x468460
movzx eax, byte [esi]
sar eax, cl
and eax, 0xf
cmp ecx, 4
mov byte [edx], al
jne 0x4684a4
sub esi, 1
xor cl, cl
jmp 0x4684a7
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, ecx
sub eax, 1
mov esi, eax
shr esi, 2
add esi, edx
add edx, eax
mov dword [esp + 0x1c], eax
mov eax, ecx
lea ecx, [ecx + 3]
not ecx
and ecx, 3
add ecx, ecx
test eax, eax
mov dword [esp + 0x20], ecx
je 0x466f19
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x24], ebx
mov ebx, ecx
mov ecx, dword [esp + 0x20]
jmp 0x468514
add ecx, 2
sub edx, 1
cmp edx, ebx
je 0x468460
movzx eax, byte [esi]
sar eax, cl
and eax, 3
cmp ecx, 6
mov byte [edx], al
jne 0x468506
sub esi, 1
xor cl, cl
jmp 0x468509
mov esi, dword [esp + 0x14]
test esi, esi
je 0x465b2d
mov ebx, dword [esp + 0x18]
xor edx, edx
lea esi, [esi]
movzx eax, byte [ebx + edx*2 + 1]
movzx eax, byte [ecx + eax]
mov byte [ebx + edx*2 + 1], al
add edx, 1
cmp edx, esi
jne 0x468540
jmp 0x46684a
mov esi, dword [esp + 0x14]
test esi, esi
je 0x465b2d
mov ebx, dword [esp + 0x1c]
xor edx, edx
nop
lea esi, [esi]
movzx eax, byte [ebx]
add edx, 1
add ebx, 4
movzx eax, byte [ecx + eax]
mov byte [ebx - 4], al
movzx eax, byte [ebx - 3]
movzx eax, byte [ecx + eax]
mov byte [ebx - 3], al
movzx eax, byte [ebx - 2]
movzx eax, byte [ecx + eax]
mov byte [ebx - 2], al
cmp edx, esi
jne 0x468570
jmp 0x46684a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x465b2d
mov ebx, dword [esp + 0x1c]
lea edx, [eax + eax*2 + 1]
add edx, dword [esp + 0x18]
movzx eax, byte [ebx]
add ebx, 3
movzx eax, byte [ecx + eax]
mov byte [ebx - 3], al
movzx eax, byte [ebx - 2]
movzx eax, byte [ecx + eax]
mov byte [ebx - 2], al
movzx eax, byte [ebx - 1]
movzx eax, byte [ecx + eax]
mov byte [ebx - 1], al
cmp ebx, edx
jne 0x4685b7
jmp 0x46684a
mov edx, dword [esp + 0x14]
test edx, edx
je 0x467f7b
mov dword [esp + 0x60], ebp
mov ebx, dword [esp + 0x1c]
xor esi, esi
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x64], edi
movzx edx, byte [ebx]
add esi, 2
add ebx, 1
mov edi, edx
and edx, 0xf
mov eax, edx
and edi, 0xf0
shl eax, 4
or eax, edx
mov edx, edi
sar edx, 4
movzx eax, byte [ecx + eax]
or edx, edi
movzx edx, byte [ecx + edx]
shr al, 4
and edx, 0xfffffff0
or eax, edx
mov byte [ebx - 1], al
cmp ebp, esi
ja 0x468601
jmp 0x466842
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x465b2d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], edi
mov esi, dword [esp + 0x10]
movzx edx, byte [esi]
mov edi, edx
mov esi, edx
mov ebx, edx
and edx, 3
mov eax, edx
mov ebp, edx
shl ebp, 4
and edi, 0xc0
shl eax, 6
and esi, 0x30
or eax, ebp
mov ebp, edi
or eax, edx
and ebx, 0xc
shl edx, 2
or eax, edx
mov edx, edi
sar edx, 2
movzx eax, byte [ecx + eax]
sar ebp, 4
or edx, ebp
or edx, edi
sar edi, 6
or edx, edi
mov edi, esi
movzx edx, byte [ecx + edx]
shr al, 6
sar edi, 2
and edx, 0xffffffc0
or eax, edx
lea edx, [esi*4]
or edx, edi
or edx, esi
sar esi, 4
or edx, esi
movzx edx, byte [ecx + edx]
lea esi, [ebx*4]
shr dl, 2
and edx, 0x30
or eax, edx
mov edx, ebx
shl edx, 4
or edx, esi
mov esi, dword [esp + 0x10]
or edx, ebx
sar ebx, 2
or edx, ebx
movzx edx, byte [ecx + edx]
shr dl, 4
and edx, 0xc
or eax, edx
add dword [esp + 0x20], 4
add dword [esp + 0x10], 1
mov byte [esi], al
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], eax
ja 0x468667
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x60]
movzx edx, byte [edi + 9]
cmp dl, 4
jne 0x467f63
jmp 0x4685ef
mov esi, dword [esp + 0xc]
mov eax, 8
mov dword [esp + 0x1c], esi
jmp 0x466e64
mov esi, dword [esp + 0xc]
lea ecx, [esi + esi*2]
mov dword [esp + 0x10], ecx
lea edx, [edx + ecx - 1]
mov ecx, eax
sub ecx, esi
test esi, esi
je 0x46879b
mov dword [esp + 0xc], ecx
movzx esi, byte [eax]
sub edx, 3
sub eax, 1
lea esi, [esi + esi*2]
movzx ecx, byte [ebx + esi + 2]
mov byte [edx + 3], cl
movzx esi, byte [eax + 1]
lea esi, [esi + esi*2]
movzx ecx, byte [ebx + esi + 1]
mov byte [edx + 2], cl
movzx esi, byte [eax + 1]
cmp eax, dword [esp + 0xc]
lea esi, [esi + esi*2]
movzx ecx, byte [ebx + esi]
mov byte [edx + 1], cl
jne 0x468764
mov eax, dword [esp + 0x10]
mov byte [edi + 9], 8
mov byte [edi + 0xb], 0x18
mov byte [edi + 8], 2
mov dword [edi + 4], eax
mov byte [edi + 0xa], 3
jmp 0x465ad6
mov ebx, dword [esp + 0xc]
lea eax, [ebx + ebx*2 + 1]
add edx, eax
test ebx, ebx
jne 0x4687db
jmp case.0x466a2c.0
add esi, 3
cmp esi, edx
je case.0x466a2c.0
movzx eax, byte [esi]
cmp ax, word [ebp + 0x1be]
jne 0x4687d0
movzx eax, byte [esi + 1]
cmp ax, word [ebp + 0x1c0]
jne 0x4687d0
movzx eax, byte [esi + 2]
cmp ax, word [ebp + 0x1c2]
jne 0x4687d0
movzx eax, word [ebp + 0x16e]
mov byte [esi], al
movzx eax, word [ebp + 0x170]
mov byte [esi + 1], al
movzx eax, word [ebp + 0x172]
mov byte [esi + 2], al
jmp 0x4687d0
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x467f75
mov dword [esp + 0x64], edi
mov ebx, dword [esp + 0x1c]
xor edx, edx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x60], ebp
nop
movzx eax, byte [ebx + 1]
add edx, 1
add ebx, 2
movzx ecx, byte [esp + 0xc]
movzx ebp, byte [ebx - 2]
sar eax, cl
mov eax, dword [esi + eax*4]
movzx eax, word [eax + ebp*2]
mov ebp, eax
shr bp, 8
mov ecx, ebp
mov byte [ebx - 2], cl
mov byte [ebx - 1], al
cmp edx, edi
jne 0x468840
jmp 0x466842
mov esi, dword [esp + 0x14]
test esi, esi
je 0x467f75
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
lea edx, [eax + esi + 1]
nop
movzx eax, byte [ebx]
add ebx, 1
movzx eax, byte [ecx + eax]
mov byte [ebx - 1], al
cmp ebx, edx
jne 0x468890
jmp 0x46684a
mov edx, dword [esp + 0xc]
xor eax, eax
mov bl, 4
test edx, edx
je case.0x466a2c.0
mov edx, eax
mov dword [esp + 0x64], edi
jmp 0x4688d0
add esi, 1
mov bl, 4
add edx, 1
cmp edx, dword [esp + 0xc]
je 0x467500
movzx edi, byte [esi]
mov ecx, ebx
mov eax, edi
sar eax, cl
movzx ecx, word [ebp + 0x1c4]
and eax, 0xf
cmp eax, ecx
je 0x4688f0
test ebx, ebx
je 0x4688be
sub ebx, 4
jmp 0x4688c3
mov ecx, 4
mov eax, 0xf0f
sub ecx, ebx
sar eax, cl
mov ecx, ebx
and eax, edi
movzx edi, word [ebp + 0x174]
shl edi, cl
or eax, edi
mov byte [esi], al
jmp 0x4688e7
test eax, eax
lea edx, [edx + eax + 1]
jne 0x46892b
jmp case.0x466a2c.0
add esi, 1
cmp esi, edx
je case.0x466a2c.0
movzx eax, byte [esi]
cmp ax, word [ebp + 0x1c4]
jne 0x468920
movzx eax, word [ebp + 0x174]
mov byte [esi], al
jmp 0x468920
mov eax, dword [esp + 0xc]
xor edx, edx
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x468963
jmp case.0x466a2c.0
add edx, 1
add esi, 2
cmp edx, ecx
je case.0x466a2c.0
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
shl eax, 8
add eax, ebx
cmp ax, word [ebp + 0x1c4]
jne 0x468955
movzx eax, byte [ebp + 0x175]
mov byte [esi], al
movzx eax, word [ebp + 0x174]
mov byte [esi + 1], al
jmp 0x468955
mov edx, dword [esp + 0xc]
xor eax, eax
mov bl, 6
test edx, edx
je case.0x466a2c.0
mov edx, eax
mov dword [esp + 0x64], edi
jmp 0x4689b7
add esi, 1
mov bl, 6
add edx, 1
cmp edx, dword [esp + 0xc]
je 0x467500
movzx edi, byte [esi]
mov ecx, ebx
mov eax, edi
sar eax, cl
movzx ecx, word [ebp + 0x1c4]
and eax, 3
cmp eax, ecx
je 0x4689d7
test ebx, ebx
je 0x4689a5
sub ebx, 2
jmp 0x4689aa
mov ecx, 6
mov eax, 0x3f3f
sub ecx, ebx
sar eax, cl
mov ecx, ebx
and eax, edi
movzx edi, word [ebp + 0x174]
shl edi, cl
or eax, edi
mov byte [esi], al
jmp 0x4689ce
mov dword [esp + 4], str.Uninitialized_row
mov dword [esp], ebp
call fcn.00459ae0
mov dword [esp + 4], str.NULL_row_buffer
mov dword [esp], ebp
call fcn.00459ae0
mov dword [esp + 4], str.png_do_quantize_returned_rowbytes0
mov dword [esp], ebp
call fcn.00459ae0
mov eax, dword [ebp + 0x80]
jmp 0x465b00