Function at 0x4c1efd
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x5d061c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x418], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x414], ebx
mov esi, dword [ebx]
push esi
mov byte [ebp - 0x40d], al
mov byte [ebp - 0x40e], al
mov word [ebp - 0x42c], ax
mov byte [ebp - 0x42a], al
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x438], eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
call fcn.004bb123
pop ecx
test eax, eax
je 0x4c246e
cmp dword [ebp + 0xc], 1
je 0x4c25eb
push esi
call fcn.004bd2c6
push esi
mov edi, eax
call fcn.004bd2c6
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x420], ecx
cmp ecx, 0x43674249
je 0x4c2539
cmp ecx, 0x49444154
je 0x4c247f
cmp ecx, 0x49454e44
je 0x4c273d
cmp ecx, 0x49484452
je 0x4c2242
cmp ecx, 0x504c5445
je 0x4c210f
cmp ecx, 0x74524e53
je 0x4c200c
cmp dword [ebp - 0x418], 0
jne 0x4c258a
test ecx, 0x20000000
je 0x4c2548
push edi
push esi
call fcn.004c5891
pop ecx
pop ecx
jmp 0x4c209b
cmp dword [ebp - 0x418], 0
jne 0x4c258a
cmp dword [ebx + 4], 0
jne 0x4c2611
cmp byte [ebp - 0x40d], 0
je 0x4c20a7
cmp dword [ebp + 0xc], 2
je 0x4c25e4
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4c25c6
cmp edi, eax
ja 0x4c25a8
xor ebx, ebx
mov byte [ebp - 0x40d], 4
test edi, edi
je 0x4c2095
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x4c2072
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c2089
cmp dword [esi + 0x20], 0
je 0x4c2087
push esi
call fcn.004c544f
mov eax, dword [esi + 0xac]
pop ecx
jmp 0x4c2067
xor cl, cl
mov byte [ebp + ebx*4 - 0x409], cl
inc ebx
cmp ebx, edi
jb 0x4c2059
mov ebx, dword [ebp - 0x414]
push esi
call fcn.004bd2c6
pop ecx
jmp 0x4c1f89
mov ecx, dword [esi + 8]
test cl, 1
je 0x4c25f3
lea eax, [ecx + ecx]
cmp edi, eax
jne 0x4c25a8
xor edi, edi
mov byte [ebp - 0x40e], 1
cmp dword [ebx + 0x10], 0x10
jne 0x4c20e5
test ecx, ecx
jle 0x4c209b
push esi
call fcn.004bd1d2
mov word [ebp + edi*2 - 0xc], ax
inc edi
pop ecx
cmp edi, dword [esi + 8]
jl 0x4c20d1
jmp 0x4c209b
test ecx, ecx
jle 0x4c209b
push esi
call fcn.004bd1d2
pop ecx
mov ecx, dword [ebx + 0x10]
movzx eax, al
movzx ecx, byte [ecx + 0x58f7ac]
imul eax, ecx
mov byte [ebp + edi - 0x42c], al
inc edi
cmp edi, dword [esi + 8]
jl 0x4c20e9
jmp 0x4c209b
cmp dword [ebp - 0x418], 0
jne 0x4c258a
cmp edi, 0x300
ja 0x4c262f
push 3
xor edx, edx
mov eax, edi
pop ecx
div ecx
imul ecx, eax, 3
mov dword [ebp - 0x428], eax
cmp ecx, edi
jne 0x4c262f
xor edx, edx
mov dword [ebp - 0x420], edx
test eax, eax
je 0x4c209b
lea edi, [esi + 0x20]
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x4c216e
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c2196
lea edi, [esi + 0x20]
cmp dword [edi], 0
je 0x4c2194
push esi
call fcn.004c544f
mov eax, dword [esi + 0xac]
mov edx, dword [ebp - 0x420]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c2196
xor cl, cl
mov ebx, edi
mov byte [ebp + edx*4 - 0x40c], cl
cmp eax, dword [esi + 0xb0]
jae 0x4c21b5
mov cl, byte [eax]
lea edi, [esi + 0x20]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c21dc
cmp dword [ebx], 0
mov edi, ebx
je 0x4c21da
push esi
call fcn.004c544f
mov eax, dword [esi + 0xac]
mov edx, dword [ebp - 0x420]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c21dc
xor cl, cl
mov byte [ebp + edx*4 - 0x40b], cl
cmp eax, dword [esi + 0xb0]
jae 0x4c21f6
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c221b
cmp dword [ebx], 0
je 0x4c2219
push esi
call fcn.004c544f
mov eax, dword [esi + 0xac]
mov edx, dword [ebp - 0x420]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c221b
xor cl, cl
mov byte [ebp + edx*4 - 0x40a], cl
mov byte [ebp + edx*4 - 0x409], 0xff
inc edx
mov dword [ebp - 0x420], edx
cmp edx, dword [ebp - 0x428]
jb 0x4c2155
jmp 0x4c2095
cmp dword [ebp - 0x418], 0
je 0x4c271f
and dword [ebp - 0x418], 0
cmp edi, 0xd
jne 0x4c2701
push esi
call fcn.004bd2c6
push esi
mov dword [esi], eax
call fcn.004bd2c6
pop ecx
pop ecx
mov ecx, 0x1000000
mov dword [esi + 4], eax
cmp eax, ecx
ja 0x4c2455
cmp dword [esi], ecx
ja 0x4c2455
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x4c22a0
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c22b7
cmp dword [esi + 0x20], 0
je 0x4c22b5
push esi
call fcn.004c544f
mov eax, dword [esi + 0xac]
pop ecx
jmp 0x4c2295
xor cl, cl
push 0x20
movzx eax, cl
mov edi, esi
mov dword [ebx + 0x10], eax
pop edx
mov dword [ebp - 0x420], edx
cmp eax, 1
je 0x4c22e5
cmp eax, 2
je 0x4c22e5
cmp eax, 4
je 0x4c22e5
cmp eax, 8
je 0x4c22e5
cmp eax, 0x10
jne 0x4c264d
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x4c22fe
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c2315
cmp dword [edx + edi], 0
je 0x4c2313
push esi
call fcn.004c544f
mov eax, dword [esi + 0xac]
pop ecx
jmp 0x4c22f3
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x434], ecx
cmp ecx, 6
ja 0x4c266b
push 3
pop edx
cmp ecx, edx
jne 0x4c2340
cmp dword [ebx + 0x10], 0x10
je 0x4c266b
mov byte [ebp - 0x40d], dl
jmp 0x4c2349
test cl, 1
jne 0x4c266b
cmp eax, dword [esi + 0xb0]
jb 0x4c236a
mov ecx, dword [ebp - 0x420]
cmp dword [ecx + edi], 0
je 0x4c2381
push esi
call fcn.004c544f
mov eax, dword [esi + 0xac]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
test cl, cl
jne 0x4c2689
mov ecx, dword [ebp - 0x420]
cmp eax, dword [esi + 0xb0]
jb 0x4c239c
cmp dword [ecx + edi], 0
je 0x4c23b3
push esi
call fcn.004c544f
mov eax, dword [esi + 0xac]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
test cl, cl
jne 0x4c26a7
mov ecx, dword [ebp - 0x420]
cmp eax, dword [esi + 0xb0]
jae 0x4c23c6
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x4c23dd
cmp dword [ecx + edi], 0
je 0x4c23db
push esi
call fcn.004c544f
mov eax, dword [esi + 0xac]
pop ecx
jmp 0x4c23bb
xor cl, cl
movzx eax, cl
xor ecx, ecx
inc ecx
mov dword [ebp - 0x43c], eax
cmp eax, ecx
ja 0x4c26e3
cmp dword [esi], 0
je 0x4c26c5
mov edi, dword [esi + 4]
test edi, edi
je 0x4c26c5
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x40d], 0
jne 0x4c2447
mov ecx, dword [ebp - 0x434]
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, edi
jb 0x4c2455
cmp dword [ebp + 0xc], 2
je 0x4c25eb
jmp 0x4c209b
shr eax, 2
mov dword [esi + 8], ecx
cmp eax, edi
jae 0x4c209b
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.too_large
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cc144
leave
ret
cmp dword [ebp - 0x418], 0
jne 0x4c258a
mov al, byte [ebp - 0x40d]
test al, al
je 0x4c24a3
cmp dword [ebp - 0x428], 0
je 0x4c28fe
cmp dword [ebp + 0xc], 2
je 0x4c2958
mov eax, dword [ebp - 0x430]
lea ebx, [edi + eax]
cmp ebx, eax
jl 0x4c246e
mov eax, dword [ebp - 0x41c]
cmp ebx, eax
jbe 0x4c250c
test eax, eax
jne 0x4c24da
mov ecx, 0x1000
cmp edi, ecx
mov eax, ecx
cmova eax, edi
mov dword [ebp - 0x41c], eax
cmp ebx, eax
jbe 0x4c24ea
add eax, eax
cmp ebx, eax
ja 0x4c24de
mov dword [ebp - 0x41c], eax
push eax
mov eax, dword [ebp - 0x414]
push dword [eax + 4]
call fcn.004fa528
pop ecx
pop ecx
test eax, eax
je 0x4c291c
mov ecx, dword [ebp - 0x414]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x414]
push edi
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x430]
push eax
push esi
call fcn.004bd391
add esp, 0xc
test eax, eax
je 0x4c293a
mov dword [ebp - 0x430], ebx
jmp 0x4c2095
mov dword [ebp - 0x438], 1
jmp 0x4c1ffe
mov eax, ecx
mov byte [0x5d05b3], cl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, ecx
shr eax, 0x10
mov byte [0x5d05b1], al
mov eax, ecx
mov ecx, dword [0x5da1ac]
shr eax, 8
mov byte [0x5d05b2], al
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.XXXX_PNG_chunk_not_known
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.first_not_IHDR
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.bad_tRNS_len
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.tRNS_before_PLTE
jmp 0x4c246e
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x4c2470
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.tRNS_with_alpha
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.tRNS_after_IDAT
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.invalid_PLTE
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.1_2_4_8_16_bit_only
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.bad_ctype
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.bad_comp_method
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.bad_filter_method
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.0_pixel_image
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.bad_interlace_method
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.bad_IHDR_len
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.multiple_IHDR
jmp 0x4c246e
cmp dword [ebp - 0x418], 0
jne 0x4c258a
cmp dword [ebp + 0xc], 0
jne 0x4c25eb
cmp dword [ebx + 4], 0
jne 0x4c2778
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.no_IDAT
jmp 0x4c246e
mov ecx, dword [esi]
xor eax, eax
imul ecx, dword [ebx + 0x10]
add ecx, 7
shr ecx, 3
imul ecx, dword [esi + 8]
inc ecx
imul ecx, dword [esi + 4]
cmp dword [ebp - 0x438], eax
sete al
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], ecx
push eax
push ecx
push dword [ebp - 0x430]
push dword [ebx + 4]
call fcn.004c74ab
add esp, 0x14
mov dword [ebx + 8], eax
test eax, eax
je 0x4c246e
push dword [ebx + 4]
call fcn.004f5b30
and dword [ebx + 4], 0
mov edi, dword [ebp + 0x10]
pop ecx
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
cmp edi, eax
jne 0x4c27eb
cmp edi, 3
je 0x4c27eb
cmp byte [ebp - 0x40d], 0
je 0x4c27f6
cmp byte [ebp - 0x40e], 0
jne 0x4c27f6
mov eax, ecx
mov ecx, dword [ebp - 0x43c]
push ecx
push dword [ebp - 0x434]
mov dword [esi + 0xc], eax
push dword [ebx + 0x10]
push eax
push dword [ebp - 0x41c]
push dword [ebx + 8]
push ebx
call fcn.004bbd04
add esp, 0x1c
test eax, eax
je 0x4c246e
cmp byte [ebp - 0x40e], 0
je 0x4c285a
cmp dword [ebx + 0x10], 0x10
push dword [esi + 0xc]
jne 0x4c2842
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.004bb47a
jmp 0x4c284f
lea eax, [ebp - 0x42c]
push eax
push ebx
call fcn.004bb4ee
add esp, 0xc
test eax, eax
je 0x4c246e
cmp dword [ebp - 0x438], 0
je 0x4c2899
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x10], 0
je 0x4c2883
mov eax, dword [eax + 0x14]
jmp 0x4c2888
mov eax, dword [0x5d9e38]
test eax, eax
je 0x4c2899
cmp dword [esi + 0xc], 2
jle 0x4c2899
push ebx
call fcn.004bcb39
pop ecx
mov al, byte [ebp - 0x40d]
test al, al
je 0x4c28d9
push 3
movzx eax, al
pop ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp edi, ecx
jl 0x4c28b8
mov dword [esi + 0xc], edi
mov eax, edi
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x40c]
push eax
push ebx
call fcn.004bcfe1
add esp, 0x10
test eax, eax
je 0x4c246e
jmp 0x4c28e5
cmp byte [ebp - 0x40e], 0
je 0x4c28e5
inc dword [esi + 8]
push dword [ebx + 8]
call fcn.004f5b30
and dword [ebx + 8], 0
push esi
call fcn.004bd2c6
pop ecx
pop ecx
jmp 0x4c25eb
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.no_PLTE
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.outofmem
jmp 0x4c246e
mov ecx, dword [0x5da1ac]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.outofdata
jmp 0x4c246e
movzx eax, al
mov dword [esi + 8], eax
jmp 0x4c25eb