Function at 0x46db28
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x4f6400]
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.00467cfb
pop ecx
test eax, eax
je 0x46e35f
cmp dword [ebp + 0xc], 1
je 0x46e1a7
push esi
call fcn.00469c3a
mov ebx, eax
pop ecx
cmp edx, 0x43674249
je 0x46e173
cmp edx, 0x49444154
je 0x46e0ca
cmp edx, 0x49454e44
je 0x46e20c
cmp edx, 0x49484452
je 0x46dead
cmp edx, 0x504c5445
je 0x46dd6f
cmp edx, 0x74524e53
je 0x46dc48
cmp dword [ebp - 0x418], 0
jne 0x46e1c4
test edx, 0x20000000
jne 0x46e17d
mov eax, edx
mov byte [0x4f636b], dl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, edx
shr eax, 0x10
mov byte [0x4f6369], al
mov eax, edx
shr eax, 8
mov byte [0x4f636a], al
push str.XXXX_PNG_chunk_not_known
jmp 0x46e201
cmp dword [ebp - 0x418], 0
jne 0x46e1c4
cmp dword [edi + 4], 0
jne 0x46e1b6
cmp byte [ebp - 0x40d], 0
je 0x46dcf9
cmp dword [ebp + 0xc], 2
je 0x46e1a0
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x46e199
cmp ebx, eax
ja 0x46e192
xor edx, edx
mov byte [ebp - 0x40d], 4
mov dword [ebp - 0x414], edx
test ebx, ebx
je 0x46e186
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x46dcbc
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46dce2
cmp dword [esi + 0x20], 0
je 0x46dce0
push esi
call fcn.004706f1
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x414]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46dce2
xor cl, cl
mov byte [ebp + edx*4 - 0x409], cl
inc edx
mov dword [ebp - 0x414], edx
cmp edx, ebx
jb 0x46dca3
jmp 0x46e186
mov ecx, dword [esi + 8]
test cl, 1
je 0x46e1af
lea eax, [ecx + ecx]
cmp ebx, eax
jne 0x46e192
xor ebx, ebx
mov byte [ebp - 0x40e], 1
cmp dword [edi + 0x10], 0x10
jne 0x46dd3e
test ecx, ecx
jle 0x46e186
push esi
call fcn.00469b06
mov word [ebp + ebx*2 - 0xc], ax
inc ebx
pop ecx
cmp ebx, dword [esi + 8]
jl 0x46dd27
jmp 0x46e186
test ecx, ecx
jle 0x46e186
push esi
call fcn.00469b06
pop ecx
mov ecx, dword [edi + 0x10]
movzx eax, al
movzx ecx, byte [ecx + 0x4d8e98]
imul eax, ecx
mov byte [ebp + ebx - 0x428], al
inc ebx
cmp ebx, dword [esi + 8]
jl 0x46dd46
jmp 0x46e186
cmp dword [ebp - 0x418], 0
jne 0x46e1c4
cmp ebx, 0x300
ja 0x46e1bd
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 0x46e1bd
and dword [ebp - 0x414], 0
test eax, eax
je 0x46e186
lea edi, [ebp - 0x40c]
lea ebx, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x46ddd3
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46ddec
lea ebx, [esi + 0x20]
cmp dword [ebx], 0
je 0x46ddea
push esi
call fcn.004706f1
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46ddc8
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 0x46de13
mov cl, byte [eax]
lea ebx, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46de3a
cmp dword [edx], 0
mov ebx, edx
je 0x46de38
push esi
call fcn.004706f1
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x438]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46de3a
xor cl, cl
mov edi, dword [ebp - 0x414]
mov byte [ebp + edi*4 - 0x40b], cl
cmp eax, dword [esi + 0xac]
jae 0x46de5a
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46de70
cmp dword [edx], 0
je 0x46de6e
push esi
call fcn.004706f1
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46de4f
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 0x46ddba
mov edi, dword [ebp - 0x43c]
jmp 0x46e186
cmp dword [ebp - 0x418], 0
je 0x46e1fc
and dword [ebp - 0x418], 0
cmp ebx, 0xd
jne 0x46e1f5
push esi
call fcn.00469bfa
mov ebx, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, ebx
ja 0x46e0c0
push esi
call fcn.00469bfa
mov dword [esi + 4], eax
pop ecx
cmp eax, ebx
ja 0x46e0c0
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x46df0b
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46df22
cmp dword [esi + 0x20], 0
je 0x46df20
push esi
call fcn.004706f1
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46df00
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 0x46df50
cmp eax, 2
je 0x46df50
cmp eax, 4
je 0x46df50
cmp eax, 8
je 0x46df50
cmp eax, 0x10
jne 0x46e1cb
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x46df69
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46df80
cmp dword [edx + ebx], 0
je 0x46df7e
push esi
call fcn.004706f1
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46df5e
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x42c], ecx
cmp ecx, 6
ja 0x46e1ee
push 3
pop edx
cmp ecx, edx
jne 0x46dfab
cmp dword [edi + 0x10], 0x10
je 0x46e1ee
mov byte [ebp - 0x40d], dl
jmp 0x46dfb4
test cl, 1
jne 0x46e1ee
cmp eax, dword [esi + 0xac]
jb 0x46dfd5
mov ecx, dword [ebp - 0x414]
cmp dword [ecx + ebx], 0
je 0x46dfec
push esi
call fcn.004706f1
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x46e1d2
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jb 0x46e007
cmp dword [ecx + ebx], 0
je 0x46e01e
push esi
call fcn.004706f1
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x46e1d9
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jae 0x46e031
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46e048
cmp dword [ecx + ebx], 0
je 0x46e046
push esi
call fcn.004706f1
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46e026
xor cl, cl
movzx eax, cl
xor ecx, ecx
inc ecx
mov dword [ebp - 0x434], eax
cmp eax, ecx
ja 0x46e1e7
cmp dword [esi], 0
je 0x46e1e0
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x46e1e0
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x40d], 0
jne 0x46e0b2
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 0x46e0c0
cmp dword [ebp + 0xc], 2
je 0x46e1a7
jmp 0x46e186
shr eax, 2
mov dword [esi + 8], ecx
cmp eax, ebx
jae 0x46e186
push str.too_large
jmp 0x46e201
cmp dword [ebp - 0x418], 0
jne 0x46e1c4
mov al, byte [ebp - 0x40d]
test al, al
je 0x46e0ee
cmp dword [ebp - 0x424], 0
je 0x46e390
cmp dword [ebp + 0xc], 2
je 0x46e3ae
mov ecx, dword [ebp - 0x420]
lea eax, [ebx + ecx]
cmp eax, ecx
jl 0x46e35f
mov ecx, dword [ebp - 0x41c]
cmp eax, ecx
jbe 0x46e14f
test ecx, ecx
jne 0x46e129
mov edx, 0x1000
cmp ebx, edx
mov ecx, edx
cmova ecx, ebx
mov dword [ebp - 0x41c], ecx
cmp eax, ecx
jbe 0x46e139
add ecx, ecx
cmp eax, ecx
ja 0x46e12d
mov dword [ebp - 0x41c], ecx
push ecx
push dword [edi + 4]
call fcn.004adf50
pop ecx
pop ecx
test eax, eax
je 0x46e39a
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x420]
push ebx
push eax
push esi
call fcn.00469ce4
add esp, 0xc
test eax, eax
je 0x46e3a4
add dword [ebp - 0x420], ebx
jmp 0x46e186
mov dword [ebp - 0x430], 1
push ebx
push esi
call fcn.00470b23
pop ecx
pop ecx
push esi
call fcn.00469bfa
pop ecx
jmp 0x46dbb4
push str.bad_tRNS_len
jmp 0x46e201
push str.tRNS_before_PLTE
jmp 0x46e201
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x46e361
push str.tRNS_with_alpha
jmp 0x46e201
push str.tRNS_after_IDAT
jmp 0x46e201
push str.invalid_PLTE
jmp 0x46e201
push str.first_not_IHDR
jmp 0x46e201
push str.1_2_4_8_16_bit_only
jmp 0x46e201
push str.bad_comp_method
jmp 0x46e201
push str.bad_filter_method
jmp 0x46e201
push str.0_pixel_image
jmp 0x46e201
push str.bad_interlace_method
jmp 0x46e201
push str.bad_ctype
jmp 0x46e201
push str.bad_IHDR_len
jmp 0x46e201
push str.multiple_IHDR
call fcn.0046998f
pop ecx
jmp 0x46e361
cmp dword [ebp - 0x418], 0
jne 0x46e1c4
cmp dword [ebp + 0xc], 0
jne 0x46e1a7
cmp dword [edi + 4], 0
jne 0x46e228
push str.no_IDAT
jmp 0x46e201
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.004718f3
add esp, 0x14
mov dword [edi + 8], eax
test eax, eax
je 0x46e35f
push dword [edi + 4]
call fcn.004a1ba4
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 0x46e29c
cmp edx, 3
je 0x46e29c
test bl, bl
je 0x46e2ef
mov bh, byte [ebp - 0x40e]
test bh, bh
jne 0x46e2a8
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.004687f5
add esp, 0x1c
test eax, eax
je 0x46e35f
test bh, bh
je 0x46e30b
cmp dword [edi + 0x10], 0x10
push dword [esi + 0xc]
jne 0x46e2f7
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00468005
jmp 0x46e304
mov bh, byte [ebp - 0x40e]
jmp 0x46e2a8
lea eax, [ebp - 0x428]
push eax
push edi
call fcn.00468079
add esp, 0xc
test eax, eax
je 0x46e35f
cmp dword [ebp - 0x430], 0
je 0x46e32a
cmp dword [0x4f8a60], 0
je 0x46e32a
cmp dword [esi + 0xc], 2
jle 0x46e32a
push edi
call fcn.00469586
pop ecx
test bl, bl
je 0x46e370
mov ecx, dword [ebp + 0x10]
movzx eax, bl
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp ecx, 3
jl 0x46e344
mov dword [esi + 0xc], ecx
mov eax, ecx
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x40c]
push eax
push edi
call fcn.004699ae
add esp, 0x10
test eax, eax
jne 0x46e377
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b9c6
leave
ret
test bh, bh
je 0x46e377
inc dword [esi + 8]
push dword [edi + 8]
call fcn.004a1ba4
and dword [edi + 8], 0
push esi
call fcn.00469bfa
pop ecx
pop ecx
jmp 0x46e1a7
push str.no_PLTE
jmp 0x46e201
push str.outofmem
jmp 0x46e201
push str.outofdata
jmp 0x46e201
movzx eax, al
mov dword [esi + 8], eax
jmp 0x46e1a7