Function at 0x4bf984
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x556400]
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.004b9b57
pop ecx
test eax, eax
je 0x4c01bb
cmp dword [ebp + 0xc], 1
je 0x4c0003
push esi
call fcn.004bba96
mov ebx, eax
pop ecx
cmp edx, 0x43674249
je 0x4bffcf
cmp edx, 0x49444154
je 0x4bff26
cmp edx, 0x49454e44
je 0x4c0068
cmp edx, 0x49484452
je 0x4bfd09
cmp edx, 0x504c5445
je 0x4bfbcb
cmp edx, 0x74524e53
je 0x4bfaa4
cmp dword [ebp - 0x418], 0
jne 0x4c0020
test edx, 0x20000000
jne 0x4bffd9
mov eax, edx
mov byte [0x55635b], dl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, edx
shr eax, 0x10
mov byte [0x556359], al
mov eax, edx
shr eax, 8
mov byte [0x55635a], al
push str.XXXX_PNG_chunk_not_known
jmp 0x4c005d
cmp dword [ebp - 0x418], 0
jne 0x4c0020
cmp dword [edi + 4], 0
jne 0x4c0012
cmp byte [ebp - 0x40d], 0
je 0x4bfb55
cmp dword [ebp + 0xc], 2
je 0x4bfffc
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x4bfff5
cmp ebx, eax
ja 0x4bffee
xor edx, edx
mov byte [ebp - 0x40d], 4
mov dword [ebp - 0x414], edx
test ebx, ebx
je 0x4bffe2
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4bfb18
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4bfb3e
cmp dword [esi + 0x20], 0
je 0x4bfb3c
push esi
call fcn.004c254d
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x414]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4bfb3e
xor cl, cl
mov byte [ebp + edx*4 - 0x409], cl
inc edx
mov dword [ebp - 0x414], edx
cmp edx, ebx
jb 0x4bfaff
jmp 0x4bffe2
mov ecx, dword [esi + 8]
test cl, 1
je 0x4c000b
lea eax, [ecx + ecx]
cmp ebx, eax
jne 0x4bffee
xor ebx, ebx
mov byte [ebp - 0x40e], 1
cmp dword [edi + 0x10], 0x10
jne 0x4bfb9a
test ecx, ecx
jle 0x4bffe2
push esi
call fcn.004bb962
mov word [ebp + ebx*2 - 0xc], ax
inc ebx
pop ecx
cmp ebx, dword [esi + 8]
jl 0x4bfb83
jmp 0x4bffe2
test ecx, ecx
jle 0x4bffe2
push esi
call fcn.004bb962
pop ecx
mov ecx, dword [edi + 0x10]
movzx eax, al
movzx ecx, byte [ecx + 0x530448]
imul eax, ecx
mov byte [ebp + ebx - 0x428], al
inc ebx
cmp ebx, dword [esi + 8]
jl 0x4bfba2
jmp 0x4bffe2
cmp dword [ebp - 0x418], 0
jne 0x4c0020
cmp ebx, 0x300
ja 0x4c0019
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 0x4c0019
and dword [ebp - 0x414], 0
test eax, eax
je 0x4bffe2
lea edi, [ebp - 0x40c]
lea ebx, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4bfc2f
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4bfc48
lea ebx, [esi + 0x20]
cmp dword [ebx], 0
je 0x4bfc46
push esi
call fcn.004c254d
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x4bfc24
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 0x4bfc6f
mov cl, byte [eax]
lea ebx, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4bfc96
cmp dword [edx], 0
mov ebx, edx
je 0x4bfc94
push esi
call fcn.004c254d
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x438]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4bfc96
xor cl, cl
mov edi, dword [ebp - 0x414]
mov byte [ebp + edi*4 - 0x40b], cl
cmp eax, dword [esi + 0xac]
jae 0x4bfcb6
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4bfccc
cmp dword [edx], 0
je 0x4bfcca
push esi
call fcn.004c254d
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x4bfcab
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 0x4bfc16
mov edi, dword [ebp - 0x43c]
jmp 0x4bffe2
cmp dword [ebp - 0x418], 0
je 0x4c0058
and dword [ebp - 0x418], 0
cmp ebx, 0xd
jne 0x4c0051
push esi
call fcn.004bba56
mov ebx, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, ebx
ja 0x4bff1c
push esi
call fcn.004bba56
mov dword [esi + 4], eax
pop ecx
cmp eax, ebx
ja 0x4bff1c
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4bfd67
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4bfd7e
cmp dword [esi + 0x20], 0
je 0x4bfd7c
push esi
call fcn.004c254d
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x4bfd5c
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 0x4bfdac
cmp eax, 2
je 0x4bfdac
cmp eax, 4
je 0x4bfdac
cmp eax, 8
je 0x4bfdac
cmp eax, 0x10
jne 0x4c0027
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4bfdc5
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4bfddc
cmp dword [edx + ebx], 0
je 0x4bfdda
push esi
call fcn.004c254d
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x4bfdba
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x42c], ecx
cmp ecx, 6
ja 0x4c004a
push 3
pop edx
cmp ecx, edx
jne 0x4bfe07
cmp dword [edi + 0x10], 0x10
je 0x4c004a
mov byte [ebp - 0x40d], dl
jmp 0x4bfe10
test cl, 1
jne 0x4c004a
cmp eax, dword [esi + 0xac]
jb 0x4bfe31
mov ecx, dword [ebp - 0x414]
cmp dword [ecx + ebx], 0
je 0x4bfe48
push esi
call fcn.004c254d
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x4c002e
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jb 0x4bfe63
cmp dword [ecx + ebx], 0
je 0x4bfe7a
push esi
call fcn.004c254d
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x4c0035
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jae 0x4bfe8d
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4bfea4
cmp dword [ecx + ebx], 0
je 0x4bfea2
push esi
call fcn.004c254d
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x4bfe82
xor cl, cl
movzx eax, cl
xor ecx, ecx
inc ecx
mov dword [ebp - 0x434], eax
cmp eax, ecx
ja 0x4c0043
cmp dword [esi], 0
je 0x4c003c
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4c003c
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x40d], 0
jne 0x4bff0e
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 0x4bff1c
cmp dword [ebp + 0xc], 2
je 0x4c0003
jmp 0x4bffe2
shr eax, 2
mov dword [esi + 8], ecx
cmp eax, ebx
jae 0x4bffe2
push str.too_large
jmp 0x4c005d
cmp dword [ebp - 0x418], 0
jne 0x4c0020
mov al, byte [ebp - 0x40d]
test al, al
je 0x4bff4a
cmp dword [ebp - 0x424], 0
je 0x4c01ec
cmp dword [ebp + 0xc], 2
je 0x4c020a
mov ecx, dword [ebp - 0x420]
lea eax, [ebx + ecx]
cmp eax, ecx
jl 0x4c01bb
mov ecx, dword [ebp - 0x41c]
cmp eax, ecx
jbe 0x4bffab
test ecx, ecx
jne 0x4bff85
mov edx, 0x1000
cmp ebx, edx
mov ecx, edx
cmova ecx, ebx
mov dword [ebp - 0x41c], ecx
cmp eax, ecx
jbe 0x4bff95
add ecx, ecx
cmp eax, ecx
ja 0x4bff89
mov dword [ebp - 0x41c], ecx
push ecx
push dword [edi + 4]
call fcn.005017b1
pop ecx
pop ecx
test eax, eax
je 0x4c01f6
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x420]
push ebx
push eax
push esi
call fcn.004bbb40
add esp, 0xc
test eax, eax
je 0x4c0200
add dword [ebp - 0x420], ebx
jmp 0x4bffe2
mov dword [ebp - 0x430], 1
push ebx
push esi
call fcn.004c297f
pop ecx
pop ecx
push esi
call fcn.004bba56
pop ecx
jmp 0x4bfa10
push str.bad_tRNS_len
jmp 0x4c005d
push str.tRNS_before_PLTE
jmp 0x4c005d
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x4c01bd
push str.tRNS_with_alpha
jmp 0x4c005d
push str.tRNS_after_IDAT
jmp 0x4c005d
push str.invalid_PLTE
jmp 0x4c005d
push str.first_not_IHDR
jmp 0x4c005d
push str.1_2_4_8_16_bit_only
jmp 0x4c005d
push str.bad_comp_method
jmp 0x4c005d
push str.bad_filter_method
jmp 0x4c005d
push str.0_pixel_image
jmp 0x4c005d
push str.bad_interlace_method
jmp 0x4c005d
push str.bad_ctype
jmp 0x4c005d
push str.bad_IHDR_len
jmp 0x4c005d
push str.multiple_IHDR
call fcn.004bb7eb
pop ecx
jmp 0x4c01bd
cmp dword [ebp - 0x418], 0
jne 0x4c0020
cmp dword [ebp + 0xc], 0
jne 0x4c0003
cmp dword [edi + 4], 0
jne 0x4c0084
push str.no_IDAT
jmp 0x4c005d
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.004c374f
add esp, 0x14
mov dword [edi + 8], eax
test eax, eax
je 0x4c01bb
push dword [edi + 4]
call fcn.004f8afd
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 0x4c00f8
cmp edx, 3
je 0x4c00f8
test bl, bl
je 0x4c014b
mov bh, byte [ebp - 0x40e]
test bh, bh
jne 0x4c0104
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.004ba651
add esp, 0x1c
test eax, eax
je 0x4c01bb
test bh, bh
je 0x4c0167
cmp dword [edi + 0x10], 0x10
push dword [esi + 0xc]
jne 0x4c0153
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004b9e61
jmp 0x4c0160
mov bh, byte [ebp - 0x40e]
jmp 0x4c0104
lea eax, [ebp - 0x428]
push eax
push edi
call fcn.004b9ed5
add esp, 0xc
test eax, eax
je 0x4c01bb
cmp dword [ebp - 0x430], 0
je 0x4c0186
cmp dword [0x558d68], 0
je 0x4c0186
cmp dword [esi + 0xc], 2
jle 0x4c0186
push edi
call fcn.004bb3e2
pop ecx
test bl, bl
je 0x4c01cc
mov ecx, dword [ebp + 0x10]
movzx eax, bl
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp ecx, 3
jl 0x4c01a0
mov dword [esi + 0xc], ecx
mov eax, ecx
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x40c]
push eax
push edi
call fcn.004bb80a
add esp, 0x10
test eax, eax
jne 0x4c01d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ec82b
leave
ret
test bh, bh
je 0x4c01d3
inc dword [esi + 8]
push dword [edi + 8]
call fcn.004f8afd
and dword [edi + 8], 0
push esi
call fcn.004bba56
pop ecx
pop ecx
jmp 0x4c0003
push str.no_PLTE
jmp 0x4c005d
push str.outofmem
jmp 0x4c005d
push str.outofdata
jmp 0x4c005d
movzx eax, al
mov dword [esi + 8], eax
jmp 0x4c0003