Function at 0x489bf2
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x51b400]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x418], 1
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x43c], edi
mov byte [ebp - 0x40d], dl
mov byte [ebp - 0x40e], dl
mov esi, dword [edi]
push esi
mov word [ebp - 0x428], dx
mov byte [ebp - 0x426], dl
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x430], edx
mov dword [edi + 8], edx
mov dword [edi + 4], edx
mov dword [edi + 0xc], edx
call fcn.00483dc5
pop ecx
test eax, eax
je 0x48a429
cmp dword [ebp + 0xc], 1
je 0x48a271
push esi
call fcn.00485d04
mov ebx, eax
pop ecx
cmp edx, 0x43674249
je 0x48a23d
cmp edx, 0x49444154
je 0x48a194
cmp edx, 0x49454e44
je 0x48a2d6
cmp edx, 0x49484452
je 0x489f77
cmp edx, 0x504c5445
je 0x489e39
cmp edx, 0x74524e53
je 0x489d12
cmp dword [ebp - 0x418], 0
jne 0x48a28e
test edx, 0x20000000
jne 0x48a247
mov eax, edx
mov byte [0x51b373], dl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, edx
shr eax, 0x10
mov byte [0x51b371], al
mov eax, edx
shr eax, 8
mov byte [0x51b372], al
push str.XXXX_PNG_chunk_not_known
jmp 0x48a2cb
cmp dword [ebp - 0x418], 0
jne 0x48a28e
cmp dword [edi + 4], 0
jne 0x48a280
cmp byte [ebp - 0x40d], 0
je 0x489dc3
cmp dword [ebp + 0xc], 2
je 0x48a26a
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x48a263
cmp ebx, eax
ja 0x48a25c
xor edx, edx
mov byte [ebp - 0x40d], 4
mov dword [ebp - 0x414], edx
test ebx, ebx
je 0x48a250
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x489d86
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x489dac
cmp dword [esi + 0x20], 0
je 0x489daa
push esi
call fcn.0048c7bb
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x414]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x489dac
xor cl, cl
mov byte [ebp + edx*4 - 0x409], cl
inc edx
mov dword [ebp - 0x414], edx
cmp edx, ebx
jb 0x489d6d
jmp 0x48a250
mov ecx, dword [esi + 8]
test cl, 1
je 0x48a279
lea eax, [ecx + ecx]
cmp ebx, eax
jne 0x48a25c
xor ebx, ebx
mov byte [ebp - 0x40e], 1
cmp dword [edi + 0x10], 0x10
jne 0x489e08
test ecx, ecx
jle 0x48a250
push esi
call fcn.00485bd0
mov word [ebp + ebx*2 - 0xc], ax
inc ebx
pop ecx
cmp ebx, dword [esi + 8]
jl 0x489df1
jmp 0x48a250
test ecx, ecx
jle 0x48a250
push esi
call fcn.00485bd0
pop ecx
mov ecx, dword [edi + 0x10]
movzx eax, al
movzx ecx, byte [ecx + 0x4fc1e0]
imul eax, ecx
mov byte [ebp + ebx - 0x428], al
inc ebx
cmp ebx, dword [esi + 8]
jl 0x489e10
jmp 0x48a250
cmp dword [ebp - 0x418], 0
jne 0x48a28e
cmp ebx, 0x300
ja 0x48a287
push 3
xor edx, edx
mov eax, ebx
pop ecx
div ecx
imul ecx, eax, 3
mov dword [ebp - 0x424], eax
cmp ecx, ebx
jne 0x48a287
and dword [ebp - 0x414], 0
test eax, eax
je 0x48a250
lea edi, [ebp - 0x40c]
lea ebx, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x489e9d
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x489eb6
lea ebx, [esi + 0x20]
cmp dword [ebx], 0
je 0x489eb4
push esi
call fcn.0048c7bb
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x489e92
xor cl, cl
mov edx, ebx
mov ebx, dword [ebp - 0x414]
mov dword [ebp - 0x438], edx
mov byte [edi + ebx*4], cl
cmp eax, dword [esi + 0xac]
jae 0x489edd
mov cl, byte [eax]
lea ebx, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x489f04
cmp dword [edx], 0
mov ebx, edx
je 0x489f02
push esi
call fcn.0048c7bb
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x438]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x489f04
xor cl, cl
mov edi, dword [ebp - 0x414]
mov byte [ebp + edi*4 - 0x40b], cl
cmp eax, dword [esi + 0xac]
jae 0x489f24
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x489f3a
cmp dword [edx], 0
je 0x489f38
push esi
call fcn.0048c7bb
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x489f19
xor cl, cl
mov edx, dword [ebp - 0x414]
lea eax, [ebp - 0x40a]
lea edi, [ebp - 0x40c]
mov byte [eax + edx*4], cl
lea eax, [ebp - 0x409]
mov byte [eax + edx*4], 0xff
inc edx
mov dword [ebp - 0x414], edx
cmp edx, dword [ebp - 0x424]
jb 0x489e84
mov edi, dword [ebp - 0x43c]
jmp 0x48a250
cmp dword [ebp - 0x418], 0
je 0x48a2c6
and dword [ebp - 0x418], 0
cmp ebx, 0xd
jne 0x48a2bf
push esi
call fcn.00485cc4
mov ebx, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, ebx
ja 0x48a18a
push esi
call fcn.00485cc4
mov dword [esi + 4], eax
pop ecx
cmp eax, ebx
ja 0x48a18a
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x489fd5
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x489fec
cmp dword [esi + 0x20], 0
je 0x489fea
push esi
call fcn.0048c7bb
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x489fca
xor cl, cl
push 0x20
movzx eax, cl
mov ebx, esi
mov dword [edi + 0x10], eax
pop edx
mov dword [ebp - 0x414], edx
cmp eax, 1
je 0x48a01a
cmp eax, 2
je 0x48a01a
cmp eax, 4
je 0x48a01a
cmp eax, 8
je 0x48a01a
cmp eax, 0x10
jne 0x48a295
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x48a033
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x48a04a
cmp dword [edx + ebx], 0
je 0x48a048
push esi
call fcn.0048c7bb
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x48a028
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x42c], ecx
cmp ecx, 6
ja 0x48a2b8
push 3
pop edx
cmp ecx, edx
jne 0x48a075
cmp dword [edi + 0x10], 0x10
je 0x48a2b8
mov byte [ebp - 0x40d], dl
jmp 0x48a07e
test cl, 1
jne 0x48a2b8
cmp eax, dword [esi + 0xac]
jb 0x48a09f
mov ecx, dword [ebp - 0x414]
cmp dword [ecx + ebx], 0
je 0x48a0b6
push esi
call fcn.0048c7bb
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x48a29c
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jb 0x48a0d1
cmp dword [ecx + ebx], 0
je 0x48a0e8
push esi
call fcn.0048c7bb
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x48a2a3
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jae 0x48a0fb
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x48a112
cmp dword [ecx + ebx], 0
je 0x48a110
push esi
call fcn.0048c7bb
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x48a0f0
xor cl, cl
movzx eax, cl
xor ecx, ecx
inc ecx
mov dword [ebp - 0x434], eax
cmp eax, ecx
ja 0x48a2b1
cmp dword [esi], 0
je 0x48a2aa
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x48a2aa
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x40d], 0
jne 0x48a17c
mov ecx, dword [ebp - 0x42c]
mov edx, ecx
shr edx, 2
and ecx, 2
and edx, 1
or ecx, 1
add ecx, edx
xor edx, edx
div ecx
mov dword [esi + 8], ecx
cmp eax, ebx
jb 0x48a18a
cmp dword [ebp + 0xc], 2
je 0x48a271
jmp 0x48a250
shr eax, 2
mov dword [esi + 8], ecx
cmp eax, ebx
jae 0x48a250
push str.too_large
jmp 0x48a2cb
cmp dword [ebp - 0x418], 0
jne 0x48a28e
mov al, byte [ebp - 0x40d]
test al, al
je 0x48a1b8
cmp dword [ebp - 0x424], 0
je 0x48a45a
cmp dword [ebp + 0xc], 2
je 0x48a478
mov ecx, dword [ebp - 0x420]
lea eax, [ebx + ecx]
cmp eax, ecx
jl 0x48a429
mov ecx, dword [ebp - 0x41c]
cmp eax, ecx
jbe 0x48a219
test ecx, ecx
jne 0x48a1f3
mov edx, 0x1000
cmp ebx, edx
mov ecx, edx
cmova ecx, ebx
mov dword [ebp - 0x41c], ecx
cmp eax, ecx
jbe 0x48a203
add ecx, ecx
cmp eax, ecx
ja 0x48a1f7
mov dword [ebp - 0x41c], ecx
push ecx
push dword [edi + 4]
call fcn.004ca1cc
pop ecx
pop ecx
test eax, eax
je 0x48a464
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x420]
push ebx
push eax
push esi
call fcn.00485dae
add esp, 0xc
test eax, eax
je 0x48a46e
add dword [ebp - 0x420], ebx
jmp 0x48a250
mov dword [ebp - 0x430], 1
push ebx
push esi
call fcn.0048cbed
pop ecx
pop ecx
push esi
call fcn.00485cc4
pop ecx
jmp 0x489c7e
push str.bad_tRNS_len
jmp 0x48a2cb
push str.tRNS_before_PLTE
jmp 0x48a2cb
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x48a42b
push str.tRNS_with_alpha
jmp 0x48a2cb
push str.tRNS_after_IDAT
jmp 0x48a2cb
push str.invalid_PLTE
jmp 0x48a2cb
push str.first_not_IHDR
jmp 0x48a2cb
push str.1_2_4_8_16_bit_only
jmp 0x48a2cb
push str.bad_comp_method
jmp 0x48a2cb
push str.bad_filter_method
jmp 0x48a2cb
push str.0_pixel_image
jmp 0x48a2cb
push str.bad_interlace_method
jmp 0x48a2cb
push str.bad_ctype
jmp 0x48a2cb
push str.bad_IHDR_len
jmp 0x48a2cb
push str.multiple_IHDR
call fcn.00485a59
pop ecx
jmp 0x48a42b
cmp dword [ebp - 0x418], 0
jne 0x48a28e
cmp dword [ebp + 0xc], 0
jne 0x48a271
cmp dword [edi + 4], 0
jne 0x48a2f2
push str.no_IDAT
jmp 0x48a2cb
mov ecx, dword [esi]
xor eax, eax
imul ecx, dword [edi + 0x10]
add ecx, 7
shr ecx, 3
imul ecx, dword [esi + 8]
inc ecx
imul ecx, dword [esi + 4]
cmp dword [ebp - 0x430], eax
sete al
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], ecx
push eax
push ecx
push dword [ebp - 0x420]
push dword [edi + 4]
call fcn.0048d9bd
add esp, 0x14
mov dword [edi + 8], eax
test eax, eax
je 0x48a429
push dword [edi + 4]
call fcn.004bd754
and dword [edi + 4], 0
mov edx, dword [ebp + 0x10]
mov bl, byte [ebp - 0x40d]
pop ecx
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
cmp edx, eax
jne 0x48a366
cmp edx, 3
je 0x48a366
test bl, bl
je 0x48a3b9
mov bh, byte [ebp - 0x40e]
test bh, bh
jne 0x48a372
mov eax, ecx
mov ecx, dword [ebp - 0x434]
push ecx
push dword [ebp - 0x42c]
mov dword [esi + 0xc], eax
push dword [edi + 0x10]
push eax
push dword [ebp - 0x41c]
push dword [edi + 8]
push edi
call fcn.004848bf
add esp, 0x1c
test eax, eax
je 0x48a429
test bh, bh
je 0x48a3d5
cmp dword [edi + 0x10], 0x10
push dword [esi + 0xc]
jne 0x48a3c1
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004840cf
jmp 0x48a3ce
mov bh, byte [ebp - 0x40e]
jmp 0x48a372
lea eax, [ebp - 0x428]
push eax
push edi
call fcn.00484143
add esp, 0xc
test eax, eax
je 0x48a429
cmp dword [ebp - 0x430], 0
je 0x48a3f4
cmp dword [0x51de10], 0
je 0x48a3f4
cmp dword [esi + 0xc], 2
jle 0x48a3f4
push edi
call fcn.00485650
pop ecx
test bl, bl
je 0x48a43a
mov ecx, dword [ebp + 0x10]
movzx eax, bl
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp ecx, 3
jl 0x48a40e
mov dword [esi + 0xc], ecx
mov eax, ecx
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x40c]
push eax
push edi
call fcn.00485a78
add esp, 0x10
test eax, eax
jne 0x48a441
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b6ba6
leave
ret
test bh, bh
je 0x48a441
inc dword [esi + 8]
push dword [edi + 8]
call fcn.004bd754
and dword [edi + 8], 0
push esi
call fcn.00485cc4
pop ecx
pop ecx
jmp 0x48a271
push str.no_PLTE
jmp 0x48a2cb
push str.outofmem
jmp 0x48a2cb
push str.outofdata
jmp 0x48a2cb
movzx eax, al
mov dword [esi + 8], eax
jmp 0x48a271