Function at 0x46b226
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x574700]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x410], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x40c], ebx
mov esi, dword [ebx]
push esi
mov byte [ebp - 0x405], al
mov byte [ebp - 0x406], al
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x42c], eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
call fcn.00463e73
pop ecx
test eax, eax
je 0x46ba27
cmp dword [ebp + 0xc], 1
je 0x46b83c
push esi
call fcn.004660b7
mov edi, eax
pop ecx
cmp edx, 0x43674249
je 0x46b7ed
cmp edx, 0x49444154
je 0x46b72f
cmp edx, 0x49454e44
je 0x46b8a3
cmp edx, 0x49484452
je 0x46b53a
cmp edx, 0x504c5445
je 0x46b407
cmp edx, 0x74524e53
je 0x46b31f
cmp dword [ebp - 0x410], 0
jne 0x46b859
test edx, 0x20000000
je 0x46b7fc
push edi
push esi
call fcn.0046ea01
pop ecx
pop ecx
jmp 0x46b3ae
cmp dword [ebp - 0x410], 0
jne 0x46b859
cmp dword [ebx + 4], 0
jne 0x46b84b
cmp byte [ebp - 0x405], 0
je 0x46b3ba
cmp dword [ebp + 0xc], 2
je 0x46b835
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x46b82e
cmp edi, eax
ja 0x46b827
xor ebx, ebx
mov byte [ebp - 0x405], 4
test edi, edi
je 0x46b3a8
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x46b385
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b39c
cmp dword [esi + 0x20], 0
je 0x46b39a
push esi
call fcn.0046e4cc
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46b37a
xor cl, cl
mov byte [ebp + ebx*4 - 0x401], cl
inc ebx
cmp ebx, edi
jb 0x46b36c
mov ebx, dword [ebp - 0x40c]
push esi
call fcn.00466067
pop ecx
jmp 0x46b2ab
mov ecx, dword [esi + 8]
test cl, 1
je 0x46b844
lea eax, [ecx + ecx]
cmp edi, eax
jne 0x46b827
xor edi, edi
mov byte [ebp - 0x406], 1
test ecx, ecx
jle 0x46b3ae
mov ebx, dword [ebp - 0x414]
push esi
call fcn.00465f37
pop ecx
movzx ecx, byte [ebx + 0x57435c]
movzx eax, al
imul eax, ecx
mov byte [ebp + edi - 0x434], al
inc edi
cmp edi, dword [esi + 8]
jl 0x46b3e4
jmp 0x46b3a8
cmp dword [ebp - 0x410], 0
jne 0x46b859
cmp edi, 0x300
ja 0x46b852
push 3
xor edx, edx
mov eax, edi
pop ecx
div ecx
imul ecx, eax, 3
mov dword [ebp - 0x418], eax
cmp ecx, edi
jne 0x46b852
xor edx, edx
mov dword [ebp - 0x41c], edx
test eax, eax
je 0x46b3ae
lea edi, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x46b466
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b48e
lea edi, [esi + 0x20]
cmp dword [edi], 0
je 0x46b48c
push esi
call fcn.0046e4cc
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x41c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b48e
xor cl, cl
mov ebx, edi
mov byte [ebp + edx*4 - 0x404], cl
cmp eax, dword [esi + 0xac]
jae 0x46b4ad
mov cl, byte [eax]
lea edi, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b4d4
cmp dword [ebx], 0
mov edi, ebx
je 0x46b4d2
push esi
call fcn.0046e4cc
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x41c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b4d4
xor cl, cl
mov byte [ebp + edx*4 - 0x403], cl
cmp eax, dword [esi + 0xac]
jae 0x46b4ee
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b513
cmp dword [ebx], 0
je 0x46b511
push esi
call fcn.0046e4cc
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x41c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b513
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 - 0x418]
jb 0x46b44d
jmp 0x46b3a8
cmp dword [ebp - 0x410], 0
je 0x46b891
and dword [ebp - 0x410], 0
cmp edi, 0xd
jne 0x46b88a
push esi
call fcn.00466067
mov ebx, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, ebx
ja 0x46b725
push esi
call fcn.00466067
mov dword [esi + 4], eax
pop ecx
cmp eax, ebx
ja 0x46b725
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x46b598
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b5af
cmp dword [esi + 0x20], 0
je 0x46b5ad
push esi
call fcn.0046e4cc
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46b58d
xor cl, cl
movzx ecx, cl
mov edi, esi
mov dword [ebp - 0x414], ecx
push 0x20
pop ebx
cmp ecx, 1
je 0x46b5d5
cmp ecx, 2
je 0x46b5d5
cmp ecx, 4
je 0x46b5d5
cmp ecx, 8
jne 0x46b860
cmp eax, dword [esi + 0xac]
jae 0x46b5e8
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b5ff
cmp dword [ebx + edi], 0
je 0x46b5fd
push esi
call fcn.0046e4cc
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46b5dd
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x428], ecx
cmp ecx, 6
ja 0x46b883
push 3
pop edx
cmp ecx, edx
jne 0x46b620
mov byte [ebp - 0x405], dl
jmp 0x46b629
test cl, 1
jne 0x46b883
cmp eax, dword [esi + 0xac]
jb 0x46b644
cmp dword [ebx + edi], 0
je 0x46b655
push esi
call fcn.0046e4cc
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x46b867
cmp eax, dword [esi + 0xac]
jb 0x46b670
cmp dword [ebx + edi], 0
je 0x46b681
push esi
call fcn.0046e4cc
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x46b86e
cmp eax, dword [esi + 0xac]
jae 0x46b694
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46b6ab
cmp dword [ebx + edi], 0
je 0x46b6a9
push esi
call fcn.0046e4cc
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46b689
xor cl, cl
movzx eax, cl
mov dword [ebp - 0x430], eax
cmp eax, 1
ja 0x46b87c
cmp dword [esi], 0
je 0x46b875
mov edi, dword [esi + 4]
test edi, edi
je 0x46b875
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x405], 0
jne 0x46b713
mov ecx, dword [ebp - 0x428]
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 0x46b725
cmp dword [ebp + 0xc], 2
je 0x46b83c
jmp 0x46b3a8
shr eax, 2
mov dword [esi + 8], 1
cmp eax, edi
jae 0x46b3a8
push str.too_large
jmp 0x46b896
cmp dword [ebp - 0x410], 0
jne 0x46b859
mov al, byte [ebp - 0x405]
test al, al
je 0x46b753
cmp dword [ebp - 0x418], 0
je 0x46b9fe
cmp dword [ebp + 0xc], 2
je 0x46ba1c
mov eax, dword [ebp - 0x420]
lea ebx, [edi + eax]
cmp ebx, eax
jl 0x46ba27
mov eax, dword [ebp - 0x424]
cmp ebx, eax
jbe 0x46b7c0
test eax, eax
jne 0x46b78e
mov ecx, 0x1000
cmp edi, ecx
mov eax, ecx
cmova eax, edi
mov dword [ebp - 0x424], eax
cmp ebx, eax
jbe 0x46b79e
add eax, eax
cmp ebx, eax
ja 0x46b792
mov dword [ebp - 0x424], eax
push eax
mov eax, dword [ebp - 0x40c]
push dword [eax + 4]
call fcn.004047b4
pop ecx
pop ecx
test eax, eax
je 0x46ba08
mov ecx, dword [ebp - 0x40c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x40c]
push edi
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x420]
push eax
push esi
call fcn.0046618a
add esp, 0xc
test eax, eax
je 0x46ba12
mov dword [ebp - 0x420], ebx
jmp 0x46b3a8
mov dword [ebp - 0x42c], 1
jmp 0x46b311
mov eax, edx
mov byte [0x5746bb], dl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, edx
shr eax, 0x10
mov byte [0x5746b9], al
mov eax, edx
shr eax, 8
mov byte [0x5746ba], al
push str.XXXX_PNG_chunk_not_known
jmp 0x46b896
push str.bad_tRNS_len
jmp 0x46b896
push str.tRNS_before_PLTE
jmp 0x46b896
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x46ba29
push str.tRNS_with_alpha
jmp 0x46b896
push str.tRNS_after_IDAT
jmp 0x46b896
push str.invalid_PLTE
jmp 0x46b896
push str.first_not_IHDR
jmp 0x46b896
push str.1_2_4_8_bit_only
jmp 0x46b896
push str.bad_comp_method
jmp 0x46b896
push str.bad_filter_method
jmp 0x46b896
push str.0_pixel_image
jmp 0x46b896
push str.bad_interlace_method
jmp 0x46b896
push str.bad_ctype
jmp 0x46b896
push str.bad_IHDR_len
jmp 0x46b896
push str.multiple_IHDR
call fcn.00465c3d
add esp, 4
jmp 0x46ba29
cmp dword [ebp - 0x410], 0
jne 0x46b859
cmp dword [ebp + 0xc], 0
jne 0x46b83c
cmp dword [ebx + 4], 0
jne 0x46b8bf
push str.no_IDAT
jmp 0x46b896
mov ecx, dword [esi]
xor eax, eax
mov edi, dword [ebp - 0x414]
imul ecx, edi
add ecx, 7
shr ecx, 3
imul ecx, dword [esi + 8]
inc ecx
imul ecx, dword [esi + 4]
cmp dword [ebp - 0x42c], eax
sete al
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], ecx
push eax
push ecx
push dword [ebp - 0x420]
push dword [ebx + 4]
call fcn.00401708
add esp, 0x14
mov dword [ebx + 8], eax
test eax, eax
je 0x46ba27
push dword [ebx + 4]
call fcn.00405727
and dword [ebx + 4], 0
mov edx, dword [ebp + 0x10]
pop ecx
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
cmp edx, eax
jne 0x46b937
cmp edx, 3
je 0x46b937
cmp byte [ebp - 0x405], 0
je 0x46b942
cmp byte [ebp - 0x406], 0
jne 0x46b942
mov eax, ecx
mov ecx, dword [ebp - 0x430]
push ecx
push dword [ebp - 0x428]
mov dword [esi + 0xc], eax
push edi
push eax
push dword [ebp - 0x414]
push dword [ebx + 8]
push ebx
call fcn.00464767
add esp, 0x1c
test eax, eax
je 0x46ba27
cmp byte [ebp - 0x406], 0
je 0x46b992
push dword [esi + 0xc]
lea eax, [ebp - 0x434]
push eax
push ebx
call fcn.004642a2
add esp, 0xc
test eax, eax
je 0x46ba27
cmp dword [ebp - 0x42c], 0
je 0x46b9b1
cmp dword [0x579024], 0
je 0x46b9b1
cmp dword [esi + 0xc], 2
jle 0x46b9b1
push ebx
call fcn.004657ab
pop ecx
mov al, byte [ebp - 0x405]
test al, al
je 0x46b9ec
mov ecx, dword [ebp + 0x10]
movzx eax, al
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp ecx, 3
jl 0x46b9d1
mov dword [esi + 0xc], ecx
mov eax, ecx
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.00465c4f
add esp, 0x10
test eax, eax
je 0x46ba27
push dword [ebx + 8]
call fcn.00405727
and dword [ebx + 8], 0
pop ecx
jmp 0x46b83c
push str.no_PLTE
jmp 0x46b896
push str.outofmem
jmp 0x46b896
push str.outofdata
jmp 0x46b896
movzx eax, al
mov dword [esi + 8], eax
jmp 0x46b83c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e90
leave
ret