Function at 0x460131
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5293c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x414], 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 - 0x41c], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x428], eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
call fcn.0045b67c
pop ecx
test eax, eax
je 0x4609a9
cmp dword [ebp + 0xc], 1
je 0x46074a
push esi
call fcn.0045d04b
push esi
mov edi, eax
call fcn.0045d04b
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x42c], ecx
cmp ecx, 0x43674249
je 0x4606f2
cmp ecx, 0x49444154
je 0x460634
cmp ecx, 0x49454e44
je 0x460806
cmp ecx, 0x49484452
je 0x46043a
cmp dword [ebp - 0x414], 0
jne 0x46099f
cmp ecx, 0x504c5445
je 0x460314
cmp ecx, 0x74524e53
je 0x460239
test ecx, 0x20000000
je 0x460701
push edi
push esi
call fcn.00462b68
pop ecx
pop ecx
jmp 0x4602bb
cmp dword [ebx + 4], 0
jne 0x460770
cmp byte [ebp - 0x405], 0
je 0x4602c7
cmp dword [ebp + 0xc], 2
je 0x460743
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x460734
cmp edi, eax
ja 0x460752
xor ebx, ebx
mov byte [ebp - 0x405], 4
test edi, edi
je 0x4602b5
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x460292
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4602a9
cmp dword [esi + 0x20], 0
je 0x4602a7
push esi
call fcn.0046273a
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x460287
xor cl, cl
mov byte [ebp + ebx*4 - 0x401], cl
inc ebx
cmp ebx, edi
jb 0x460279
mov ebx, dword [ebp - 0x40c]
push esi
call fcn.0045d04b
pop ecx
jmp 0x4601b6
mov ecx, dword [esi + 8]
test cl, 1
je 0x460761
lea eax, [ecx + ecx]
cmp edi, eax
jne 0x460752
xor edi, edi
mov byte [ebp - 0x406], 1
test ecx, ecx
jle 0x4602bb
mov ebx, dword [ebp - 0x410]
push esi
call fcn.0045cf57
pop ecx
movzx ecx, byte [ebx + 0x529308]
movzx eax, al
imul eax, ecx
mov byte [ebp + edi - 0x438], al
inc edi
cmp edi, dword [esi + 8]
jl 0x4602f1
jmp 0x4602b5
cmp edi, 0x300
ja 0x46077f
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 0x46077f
xor edx, edx
mov dword [ebp - 0x42c], edx
test eax, eax
je 0x4602bb
lea edi, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x460366
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46038e
lea edi, [esi + 0x20]
cmp dword [edi], 0
je 0x46038c
push esi
call fcn.0046273a
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x42c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x46038e
xor cl, cl
mov ebx, edi
mov byte [ebp + edx*4 - 0x404], cl
cmp eax, dword [esi + 0xac]
jae 0x4603ad
mov cl, byte [eax]
lea edi, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4603d4
cmp dword [ebx], 0
mov edi, ebx
je 0x4603d2
push esi
call fcn.0046273a
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x42c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4603d4
xor cl, cl
mov byte [ebp + edx*4 - 0x403], cl
cmp eax, dword [esi + 0xac]
jae 0x4603ee
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x460413
cmp dword [ebx], 0
je 0x460411
push esi
call fcn.0046273a
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x42c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x460413
xor cl, cl
mov byte [ebp + edx*4 - 0x402], cl
mov byte [ebp + edx*4 - 0x401], 0xff
inc edx
mov dword [ebp - 0x42c], edx
cmp edx, dword [ebp - 0x418]
jb 0x46034d
jmp 0x4602b5
cmp dword [ebp - 0x414], 0
je 0x4607f7
and dword [ebp - 0x414], 0
cmp edi, 0xd
jne 0x4607e8
push esi
call fcn.0045d04b
mov ebx, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, ebx
ja 0x460625
push esi
call fcn.0045d04b
mov dword [esi + 4], eax
pop ecx
cmp eax, ebx
ja 0x460625
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x460498
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4604af
cmp dword [esi + 0x20], 0
je 0x4604ad
push esi
call fcn.0046273a
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x46048d
xor cl, cl
movzx ecx, cl
mov edi, esi
mov dword [ebp - 0x410], ecx
push 0x20
pop ebx
cmp ecx, 1
je 0x4604d5
cmp ecx, 2
je 0x4604d5
cmp ecx, 4
je 0x4604d5
cmp ecx, 8
jne 0x46078e
cmp eax, dword [esi + 0xac]
jae 0x4604e8
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4604ff
cmp dword [edi + ebx], 0
je 0x4604fd
push esi
call fcn.0046273a
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x4604dd
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x424], ecx
cmp ecx, 6
ja 0x4607d9
push 3
pop edx
cmp ecx, edx
jne 0x460520
mov byte [ebp - 0x405], dl
jmp 0x460529
test cl, 1
jne 0x4607d9
cmp eax, dword [esi + 0xac]
jb 0x460544
cmp dword [edi + ebx], 0
je 0x460555
push esi
call fcn.0046273a
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x46079d
cmp eax, dword [esi + 0xac]
jb 0x460570
cmp dword [edi + ebx], 0
je 0x460581
push esi
call fcn.0046273a
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x4607ac
cmp eax, dword [esi + 0xac]
jae 0x460594
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4605ab
cmp dword [edi + ebx], 0
je 0x4605a9
push esi
call fcn.0046273a
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x460589
xor cl, cl
movzx eax, cl
mov dword [ebp - 0x434], eax
cmp eax, 1
ja 0x4607ca
cmp dword [esi], 0
je 0x4607bb
mov edi, dword [esi + 4]
test edi, edi
je 0x4607bb
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x405], 0
jne 0x460613
mov ecx, dword [ebp - 0x424]
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 0x460625
cmp dword [ebp + 0xc], 2
je 0x46074a
jmp 0x4602b5
shr eax, 2
mov dword [esi + 8], 1
cmp eax, edi
jae 0x4602b5
mov dword [0x52b6b0], str.too_large
jmp 0x4609a9
cmp dword [ebp - 0x414], 0
jne 0x46099f
mov al, byte [ebp - 0x405]
test al, al
je 0x460658
cmp dword [ebp - 0x418], 0
je 0x460970
cmp dword [ebp + 0xc], 2
je 0x460994
mov eax, dword [ebp - 0x41c]
lea ebx, [edi + eax]
cmp ebx, eax
jl 0x4609a9
mov eax, dword [ebp - 0x420]
cmp ebx, eax
jbe 0x4606c5
test eax, eax
jne 0x460693
mov ecx, 0x1000
cmp edi, ecx
mov eax, ecx
cmova eax, edi
mov dword [ebp - 0x420], eax
cmp ebx, eax
jbe 0x4606a3
add eax, eax
cmp ebx, eax
ja 0x460697
mov dword [ebp - 0x420], eax
push eax
mov eax, dword [ebp - 0x40c]
push dword [eax + 4]
call fcn.004c38b5
pop ecx
pop ecx
test eax, eax
je 0x46097c
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 - 0x41c]
push eax
push esi
call fcn.0045d116
add esp, 0xc
test eax, eax
je 0x460988
mov dword [ebp - 0x41c], ebx
jmp 0x4602b5
mov dword [ebp - 0x428], 1
jmp 0x46022b
mov eax, ecx
mov byte [0x529317], cl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, ecx
shr eax, 0x10
mov byte [0x529315], al
mov eax, ecx
shr eax, 8
mov byte [0x529316], al
mov dword [0x52b6b0], 0x529314
jmp 0x4609a9
mov dword [0x52b6b0], str.tRNS_before_PLTE
jmp 0x4609a9
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x4609ab
mov dword [0x52b6b0], str.bad_tRNS_len
jmp 0x4609a9
mov dword [0x52b6b0], str.tRNS_with_alpha
jmp 0x4609a9
mov dword [0x52b6b0], str.tRNS_after_IDAT
jmp 0x4609a9
mov dword [0x52b6b0], str.invalid_PLTE
jmp 0x4609a9
mov dword [0x52b6b0], str.1_2_4_8_bit_only
jmp 0x4609a9
mov dword [0x52b6b0], str.bad_comp_method
jmp 0x4609a9
mov dword [0x52b6b0], str.bad_filter_method
jmp 0x4609a9
mov dword [0x52b6b0], str.0_pixel_image
jmp 0x4609a9
mov dword [0x52b6b0], str.bad_interlace_method
jmp 0x4609a9
mov dword [0x52b6b0], str.bad_ctype
jmp 0x4609a9
mov dword [0x52b6b0], str.bad_IHDR_len
jmp 0x4609a9
mov dword [0x52b6b0], str.multiple_IHDR
jmp 0x4609a9
cmp dword [ebp - 0x414], 0
jne 0x46099f
cmp dword [ebp + 0xc], 0
jne 0x46074a
xor eax, eax
cmp dword [ebx + 4], eax
jne 0x460833
mov dword [0x52b6b0], str.no_IDAT
jmp 0x4609ab
mov ecx, dword [esi]
mov edi, dword [ebp - 0x410]
imul ecx, edi
add ecx, 7
shr ecx, 3
imul ecx, dword [esi + 8]
inc ecx
imul ecx, dword [esi + 4]
cmp dword [ebp - 0x428], eax
sete al
push eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], ecx
push eax
push ecx
push dword [ebp - 0x41c]
push dword [ebx + 4]
call fcn.0046367c
add esp, 0x14
mov dword [ebx + 8], eax
test eax, eax
je 0x4609a9
push dword [ebx + 4]
call fcn.004be6b4
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 0x4608a9
cmp edx, 3
je 0x4608a9
cmp byte [ebp - 0x405], 0
je 0x4608b4
cmp byte [ebp - 0x406], 0
jne 0x4608b4
mov eax, ecx
mov ecx, dword [ebp - 0x434]
push ecx
push dword [ebp - 0x424]
mov dword [esi + 0xc], eax
push edi
push eax
push dword [ebp - 0x410]
push dword [ebx + 8]
push ebx
call fcn.0045bd4c
add esp, 0x1c
test eax, eax
je 0x4609a9
cmp byte [ebp - 0x406], 0
je 0x460904
push dword [esi + 0xc]
lea eax, [ebp - 0x438]
push eax
push ebx
call fcn.0045b9d3
add esp, 0xc
test eax, eax
je 0x4609a9
cmp dword [ebp - 0x428], 0
je 0x460923
cmp dword [0x52b7fc], 0
je 0x460923
cmp dword [esi + 0xc], 2
jle 0x460923
push ebx
call fcn.0045ca6b
pop ecx
mov al, byte [ebp - 0x405]
test al, al
je 0x46095e
mov ecx, dword [ebp + 0x10]
movzx eax, al
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp ecx, 3
jl 0x460943
mov dword [esi + 0xc], ecx
mov eax, ecx
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.0045ce0d
add esp, 0x10
test eax, eax
je 0x4609a9
push dword [ebx + 8]
call fcn.004be6b4
and dword [ebx + 8], 0
pop ecx
jmp 0x46074a
mov dword [0x52b6b0], str.no_PLTE
jmp 0x4609a9
mov dword [0x52b6b0], str.outofmem
jmp 0x4609a9
mov dword [0x52b6b0], str.outofdata
jmp 0x4609a9
movzx eax, al
mov dword [esi + 8], eax
jmp 0x46074a
mov dword [0x52b6b0], str.first_not_IHDR
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b5d2c
leave
ret