Function at 0x49147a
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x40c], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x418], ebx
mov esi, dword [ebx]
push esi
mov byte [ebp - 0x405], al
mov byte [ebp - 0x406], al
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
call fcn.0048d9b7
pop ecx
test eax, eax
je 0x491c6f
cmp dword [ebp + 0xc], 1
je 0x491a34
push esi
call fcn.0048eecc
push esi
mov edi, eax
call fcn.0048eecc
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x41c], ecx
cmp ecx, 0x43674249
je 0x4919dc
cmp ecx, 0x49444154
je 0x491939
cmp ecx, 0x49454e44
je 0x491af0
cmp ecx, 0x49484452
je 0x491760
cmp dword [ebp - 0x40c], 0
jne 0x491c65
cmp ecx, 0x504c5445
je 0x49163e
cmp ecx, 0x74524e53
je 0x491576
test ecx, 0x20000000
je 0x4919eb
push edi
push esi
call fcn.0049377a
pop ecx
pop ecx
jmp 0x4915f8
cmp dword [ebx + 4], 0
jne 0x491a5a
cmp byte [ebp - 0x405], 0
je 0x491604
cmp dword [ebp + 0xc], 2
je 0x491a2d
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x491a1e
cmp edi, eax
ja 0x491a3c
xor ebx, ebx
mov byte [ebp - 0x405], 4
test edi, edi
je 0x4915f2
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4915cf
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4915e6
cmp dword [esi + 0x20], 0
je 0x4915e4
push esi
call fcn.0049355b
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x4915c4
xor cl, cl
mov byte [ebp + ebx*4 - 0x401], cl
inc ebx
cmp ebx, edi
jb 0x4915b6
mov ebx, dword [ebp - 0x418]
push esi
call fcn.0048eecc
pop ecx
jmp 0x4914f3
mov ecx, dword [esi + 8]
test cl, 1
je 0x491a4b
lea eax, [ecx + ecx]
cmp edi, eax
jne 0x491a3c
xor edi, edi
mov byte [ebp - 0x406], 1
test ecx, ecx
jle 0x4915f8
push esi
call fcn.0048edd8
mov byte [ebp + edi - 0x430], al
inc edi
pop ecx
cmp edi, dword [esi + 8]
jl 0x491628
jmp 0x4915f8
cmp edi, 0x300
ja 0x491a69
push 3
xor edx, edx
mov eax, edi
pop ecx
div ecx
imul ecx, eax, 3
mov dword [ebp - 0x414], eax
cmp ecx, edi
jne 0x491a69
xor edx, edx
mov dword [ebp - 0x41c], edx
test eax, eax
je 0x4915f8
lea edi, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x49168c
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4916b4
lea edi, [esi + 0x20]
cmp dword [edi], 0
je 0x4916b2
push esi
call fcn.0049355b
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x41c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4916b4
xor cl, cl
mov ebx, edi
mov byte [ebp + edx*4 - 0x404], cl
cmp eax, dword [esi + 0xac]
jae 0x4916d3
mov cl, byte [eax]
lea edi, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4916fa
cmp dword [ebx], 0
mov edi, ebx
je 0x4916f8
push esi
call fcn.0049355b
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x41c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4916fa
xor cl, cl
mov byte [ebp + edx*4 - 0x403], cl
cmp eax, dword [esi + 0xac]
jae 0x491714
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x491739
cmp dword [ebx], 0
je 0x491737
push esi
call fcn.0049355b
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x41c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x491739
xor cl, cl
mov byte [ebp + edx*4 - 0x402], cl
mov byte [ebp + edx*4 - 0x401], 0xff
inc edx
mov dword [ebp - 0x41c], edx
cmp edx, dword [ebp - 0x414]
jb 0x491673
jmp 0x4915f2
cmp dword [ebp - 0x40c], 0
je 0x491ae1
and dword [ebp - 0x40c], 0
cmp edi, 0xd
jne 0x491ad2
push esi
call fcn.0048eecc
mov edi, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, edi
ja 0x49192a
push esi
call fcn.0048eecc
mov dword [esi + 4], eax
pop ecx
cmp eax, edi
ja 0x49192a
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jb 0x4917ca
cmp dword [esi + 0x20], 0
je 0x491ac3
push esi
call fcn.0049355b
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
cmp cl, 8
jne 0x491ac3
cmp eax, dword [esi + 0xac]
jae 0x4917ef
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x491806
cmp dword [esi + 0x20], 0
je 0x491804
push esi
call fcn.0049355b
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x4917e4
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x41c], ecx
cmp ecx, 6
ja 0x491ab4
push 3
pop edx
cmp ecx, edx
jne 0x491827
mov byte [ebp - 0x405], dl
jmp 0x491830
test cl, 1
jne 0x491ab4
cmp eax, dword [esi + 0xac]
jb 0x49184b
cmp dword [esi + 0x20], 0
je 0x49185c
push esi
call fcn.0049355b
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x491a78
cmp eax, dword [esi + 0xac]
jb 0x491877
cmp dword [esi + 0x20], 0
je 0x491888
push esi
call fcn.0049355b
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x491a87
cmp eax, dword [esi + 0xac]
jae 0x49189b
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4918b2
cmp dword [esi + 0x20], 0
je 0x4918b0
push esi
call fcn.0049355b
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x491890
xor cl, cl
movzx eax, cl
xor ecx, ecx
inc ecx
mov dword [ebp - 0x42c], eax
cmp eax, ecx
ja 0x491aa5
cmp dword [esi], 0
je 0x491a96
mov edi, dword [esi + 4]
test edi, edi
je 0x491a96
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x405], 0
jne 0x49191c
mov edx, dword [ebp - 0x41c]
mov ecx, edx
and edx, 2
shr ecx, 2
or edx, 1
and ecx, 1
add ecx, edx
xor edx, edx
div ecx
mov dword [esi + 8], ecx
cmp eax, edi
jb 0x49192a
cmp dword [ebp + 0xc], 2
je 0x491a34
jmp 0x4915f8
shr eax, 2
mov dword [esi + 8], ecx
cmp eax, edi
jae 0x4915f8
mov dword [0x76a2d0], 0x6af70c
jmp 0x491c6f
cmp dword [ebp - 0x40c], 0
jne 0x491c65
mov al, byte [ebp - 0x405]
test al, al
je 0x49195d
cmp dword [ebp - 0x414], 0
je 0x491c36
cmp dword [ebp + 0xc], 2
je 0x491c5a
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x424]
add eax, edi
cmp eax, ecx
jbe 0x4919b5
test ecx, ecx
jne 0x49198f
mov edx, 0x1000
cmp edi, edx
mov ecx, edx
cmova ecx, edi
mov dword [ebp - 0x424], ecx
cmp eax, ecx
jbe 0x49199f
add ecx, ecx
cmp eax, ecx
ja 0x491993
mov dword [ebp - 0x424], ecx
push ecx
push dword [ebx + 4]
call fcn.00549d96
pop ecx
pop ecx
test eax, eax
je 0x491c42
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
add eax, dword [ebp - 0x410]
push edi
push eax
push esi
call fcn.0048ef97
add esp, 0xc
test eax, eax
je 0x491c4e
add dword [ebp - 0x410], edi
jmp 0x4915f8
mov dword [ebp - 0x428], 1
jmp 0x491568
mov eax, ecx
mov byte [0x75d8e7], cl
shr eax, 0x18
mov byte [0x75d8e4], al
mov eax, ecx
shr eax, 0x10
mov byte [0x75d8e5], al
mov eax, ecx
shr eax, 8
mov byte [0x75d8e6], al
mov dword [0x76a2d0], 0x75d8e4
jmp 0x491c6f
mov dword [0x76a2d0], str.tRNS_before_PLTE
jmp 0x491c6f
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x491c71
mov dword [0x76a2d0], str.bad_tRNS_len
jmp 0x491c6f
mov dword [0x76a2d0], str.tRNS_with_alpha
jmp 0x491c6f
mov dword [0x76a2d0], str.tRNS_after_IDAT
jmp 0x491c6f
mov dword [0x76a2d0], str.invalid_PLTE
jmp 0x491c6f
mov dword [0x76a2d0], str.bad_comp_method
jmp 0x491c6f
mov dword [0x76a2d0], str.bad_filter_method
jmp 0x491c6f
mov dword [0x76a2d0], str.0_pixel_image
jmp 0x491c6f
mov dword [0x76a2d0], str.bad_interlace_method
jmp 0x491c6f
mov dword [0x76a2d0], str.bad_ctype
jmp 0x491c6f
mov dword [0x76a2d0], str.8bit_only
jmp 0x491c6f
mov dword [0x76a2d0], str.bad_IHDR_len
jmp 0x491c6f
mov dword [0x76a2d0], str.multiple_IHDR
jmp 0x491c6f
cmp dword [ebp - 0x40c], 0
jne 0x491c65
cmp dword [ebp + 0xc], 0
jne 0x491a34
xor eax, eax
cmp dword [ebx + 4], eax
jne 0x491b1d
mov dword [0x76a2d0], str.no_IDAT
jmp 0x491c71
cmp dword [ebp - 0x428], eax
sete al
push eax
lea eax, [ebp - 0x418]
push eax
push 0x4000
push dword [ebp - 0x410]
push dword [ebx + 4]
call fcn.0049442e
add esp, 0x14
mov dword [ebx + 8], eax
test eax, eax
je 0x491c6f
push dword [ebx + 4]
call fcn.005432f0
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 0x491b77
cmp edi, 3
je 0x491b77
cmp byte [ebp - 0x405], 0
je 0x491b82
cmp byte [ebp - 0x406], 0
jne 0x491b82
mov eax, ecx
mov ecx, dword [ebp - 0x42c]
push ecx
push eax
mov dword [esi + 0xc], eax
push dword [ebp - 0x418]
push dword [ebx + 8]
push ebx
call fcn.0048e0da
add esp, 0x14
test eax, eax
je 0x491c6f
cmp byte [ebp - 0x406], 0
je 0x491bcb
push dword [esi + 0xc]
lea eax, [ebp - 0x430]
push eax
push ebx
call fcn.0048dd63
add esp, 0xc
test eax, eax
je 0x491c6f
cmp dword [ebp - 0x428], 0
je 0x491bea
cmp dword [0x76a418], 0
je 0x491bea
cmp dword [esi + 0xc], 2
jle 0x491bea
push ebx
call fcn.0048eb0c
pop ecx
mov al, byte [ebp - 0x405]
test al, al
je 0x491c24
push 3
movzx eax, al
pop ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp edi, ecx
jl 0x491c09
mov dword [esi + 0xc], edi
mov eax, edi
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.0048ec8e
add esp, 0x10
test eax, eax
je 0x491c6f
push dword [ebx + 8]
call fcn.005432f0
and dword [ebx + 8], 0
pop ecx
jmp 0x491a34
mov dword [0x76a2d0], str.no_PLTE
jmp 0x491c6f
mov dword [0x76a2d0], str.outofmem
jmp 0x491c6f
mov dword [0x76a2d0], str.outofdata
jmp 0x491c6f
movzx eax, al
mov dword [esi + 8], eax
jmp 0x491a34
mov dword [0x76a2d0], str.first_not_IHDR
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048a267
leave
ret