Function at 0x1003b43b
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x41c], 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 - 0x40d], al
mov byte [ebp - 0x40e], al
mov word [ebp - 0x428], ax
mov byte [ebp - 0x426], al
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x434], eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
call fcn.10035576
pop ecx
test eax, eax
je 0x1003bc53
cmp dword [ebp + 0xc], 1
je 0x1003ba9b
push esi
call fcn.100374ce
mov edi, eax
pop ecx
cmp edx, 0x43674249
je 0x1003ba4c
cmp edx, 0x49444154
je 0x1003b98e
cmp edx, 0x49454e44
je 0x1003bb00
cmp edx, 0x49484452
je 0x1003b771
cmp edx, 0x504c5445
je 0x1003b63e
cmp edx, 0x74524e53
je 0x1003b53b
cmp dword [ebp - 0x41c], 0
jne 0x1003bab8
test edx, 0x20000000
je 0x1003ba5b
push edi
push esi
call fcn.1003e460
pop ecx
pop ecx
jmp 0x1003b5ca
cmp dword [ebp - 0x41c], 0
jne 0x1003bab8
cmp dword [ebx + 4], 0
jne 0x1003baaa
cmp byte [ebp - 0x40d], 0
je 0x1003b5d6
cmp dword [ebp + 0xc], 2
je 0x1003ba94
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x1003ba8d
cmp edi, eax
ja 0x1003ba86
xor ebx, ebx
mov byte [ebp - 0x40d], 4
test edi, edi
je 0x1003b5c4
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x1003b5a1
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b5b8
cmp dword [esi + 0x20], 0
je 0x1003b5b6
push esi
call fcn.1003e031
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x1003b596
xor cl, cl
mov byte [ebp + ebx*4 - 0x409], cl
inc ebx
cmp ebx, edi
jb 0x1003b588
mov ebx, dword [ebp - 0x418]
push esi
call fcn.1003748e
pop ecx
jmp 0x1003b4c7
mov ecx, dword [esi + 8]
test cl, 1
je 0x1003baa3
lea eax, [ecx + ecx]
cmp edi, eax
jne 0x1003ba86
xor edi, edi
mov byte [ebp - 0x40e], 1
cmp dword [ebx + 0x10], 0x10
jne 0x1003b614
test ecx, ecx
jle 0x1003b5ca
push esi
call fcn.1003739a
mov word [ebp + edi*2 - 0xc], ax
inc edi
pop ecx
cmp edi, dword [esi + 8]
jl 0x1003b600
jmp 0x1003b5ca
test ecx, ecx
jle 0x1003b5ca
push esi
call fcn.1003739a
pop ecx
mov ecx, dword [ebx + 0x10]
movzx eax, al
movzx ecx, byte [ecx + 0x1009a1b8]
imul eax, ecx
mov byte [ebp + edi - 0x428], al
inc edi
cmp edi, dword [esi + 8]
jl 0x1003b618
jmp 0x1003b5ca
cmp dword [ebp - 0x41c], 0
jne 0x1003bab8
cmp edi, 0x300
ja 0x1003bab1
push 3
xor edx, edx
mov eax, edi
pop ecx
div ecx
imul ecx, eax, 3
mov dword [ebp - 0x424], eax
cmp ecx, edi
jne 0x1003bab1
xor edx, edx
mov dword [ebp - 0x414], edx
test eax, eax
je 0x1003b5ca
lea edi, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x1003b69d
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b6c5
lea edi, [esi + 0x20]
cmp dword [edi], 0
je 0x1003b6c3
push esi
call fcn.1003e031
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x414]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b6c5
xor cl, cl
mov ebx, edi
mov byte [ebp + edx*4 - 0x40c], cl
cmp eax, dword [esi + 0xac]
jae 0x1003b6e4
mov cl, byte [eax]
lea edi, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b70b
cmp dword [ebx], 0
mov edi, ebx
je 0x1003b709
push esi
call fcn.1003e031
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x414]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b70b
xor cl, cl
mov byte [ebp + edx*4 - 0x40b], cl
cmp eax, dword [esi + 0xac]
jae 0x1003b725
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b74a
cmp dword [ebx], 0
je 0x1003b748
push esi
call fcn.1003e031
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x414]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b74a
xor cl, cl
mov byte [ebp + edx*4 - 0x40a], cl
mov byte [ebp + edx*4 - 0x409], 0xff
inc edx
mov dword [ebp - 0x414], edx
cmp edx, dword [ebp - 0x424]
jb 0x1003b684
jmp 0x1003b5c4
cmp dword [ebp - 0x41c], 0
je 0x1003baf0
and dword [ebp - 0x41c], 0
cmp edi, 0xd
jne 0x1003bae9
push esi
call fcn.1003748e
mov edi, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, edi
ja 0x1003b984
push esi
call fcn.1003748e
mov dword [esi + 4], eax
pop ecx
cmp eax, edi
ja 0x1003b984
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x1003b7cf
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b7e6
cmp dword [esi + 0x20], 0
je 0x1003b7e4
push esi
call fcn.1003e031
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x1003b7c4
xor cl, cl
push 0x20
movzx eax, cl
mov edi, esi
mov dword [ebx + 0x10], eax
pop edx
mov dword [ebp - 0x414], edx
cmp eax, 1
je 0x1003b814
cmp eax, 2
je 0x1003b814
cmp eax, 4
je 0x1003b814
cmp eax, 8
je 0x1003b814
cmp eax, 0x10
jne 0x1003babf
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x1003b82d
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b844
cmp dword [edi + edx], 0
je 0x1003b842
push esi
call fcn.1003e031
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x1003b822
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x430], ecx
cmp ecx, 6
ja 0x1003bae2
push 3
pop edx
cmp ecx, edx
jne 0x1003b86f
cmp dword [ebx + 0x10], 0x10
je 0x1003bae2
mov byte [ebp - 0x40d], dl
jmp 0x1003b878
test cl, 1
jne 0x1003bae2
cmp eax, dword [esi + 0xac]
jb 0x1003b899
mov ecx, dword [ebp - 0x414]
cmp dword [edi + ecx], 0
je 0x1003b8b0
push esi
call fcn.1003e031
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x1003bac6
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jb 0x1003b8cb
cmp dword [edi + ecx], 0
je 0x1003b8e2
push esi
call fcn.1003e031
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x1003bacd
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jae 0x1003b8f5
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x1003b90c
cmp dword [edi + ecx], 0
je 0x1003b90a
push esi
call fcn.1003e031
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x1003b8ea
xor cl, cl
movzx eax, cl
xor ecx, ecx
inc ecx
mov dword [ebp - 0x438], eax
cmp eax, ecx
ja 0x1003badb
cmp dword [esi], 0
je 0x1003bad4
mov edi, dword [esi + 4]
test edi, edi
je 0x1003bad4
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x40d], 0
jne 0x1003b976
mov ecx, dword [ebp - 0x430]
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 0x1003b984
cmp dword [ebp + 0xc], 2
je 0x1003ba9b
jmp 0x1003b5ca
shr eax, 2
mov dword [esi + 8], ecx
cmp eax, edi
jae 0x1003b5ca
push str.too_large
jmp 0x1003baf5
cmp dword [ebp - 0x41c], 0
jne 0x1003bab8
mov al, byte [ebp - 0x40d]
test al, al
je 0x1003b9b2
cmp dword [ebp - 0x424], 0
je 0x1003bc89
cmp dword [ebp + 0xc], 2
je 0x1003bca7
mov eax, dword [ebp - 0x42c]
lea ebx, [edi + eax]
cmp ebx, eax
jl 0x1003bc53
mov eax, dword [ebp - 0x420]
cmp ebx, eax
jbe 0x1003ba1f
test eax, eax
jne 0x1003b9ed
mov ecx, 0x1000
cmp edi, ecx
mov eax, ecx
cmova eax, edi
mov dword [ebp - 0x420], eax
cmp ebx, eax
jbe 0x1003b9fd
add eax, eax
cmp ebx, eax
ja 0x1003b9f1
mov dword [ebp - 0x420], eax
push eax
mov eax, dword [ebp - 0x418]
push dword [eax + 4]
call fcn.1007b16b
pop ecx
pop ecx
test eax, eax
je 0x1003bc93
mov ecx, dword [ebp - 0x418]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x418]
push edi
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x42c]
push eax
push esi
call fcn.10037578
add esp, 0xc
test eax, eax
je 0x1003bc9d
mov dword [ebp - 0x42c], ebx
jmp 0x1003b5c4
mov dword [ebp - 0x434], 1
jmp 0x1003b52d
mov eax, edx
mov byte [0x100bc043], dl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, edx
shr eax, 0x10
mov byte [0x100bc041], al
mov eax, edx
shr eax, 8
mov byte [0x100bc042], al
push str.XXXX_PNG_chunk_not_known
jmp 0x1003baf5
push str.bad_tRNS_len
jmp 0x1003baf5
push str.tRNS_before_PLTE
jmp 0x1003baf5
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x1003bc55
push str.tRNS_with_alpha
jmp 0x1003baf5
push str.tRNS_after_IDAT
jmp 0x1003baf5
push str.invalid_PLTE
jmp 0x1003baf5
push str.first_not_IHDR
jmp 0x1003baf5
push str.1_2_4_8_16_bit_only
jmp 0x1003baf5
push str.bad_comp_method
jmp 0x1003baf5
push str.bad_filter_method
jmp 0x1003baf5
push str.0_pixel_image
jmp 0x1003baf5
push str.bad_interlace_method
jmp 0x1003baf5
push str.bad_ctype
jmp 0x1003baf5
push str.bad_IHDR_len
jmp 0x1003baf5
push str.multiple_IHDR
call fcn.10037223
pop ecx
jmp 0x1003bc55
cmp dword [ebp - 0x41c], 0
jne 0x1003bab8
cmp dword [ebp + 0xc], 0
jne 0x1003ba9b
cmp dword [ebx + 4], 0
jne 0x1003bb1c
push str.no_IDAT
jmp 0x1003baf5
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 - 0x434], eax
sete al
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], ecx
push eax
push ecx
push dword [ebp - 0x42c]
push dword [ebx + 4]
call fcn.1003f23b
add esp, 0x14
mov dword [ebx + 8], eax
test eax, eax
je 0x1003bc53
push dword [ebx + 4]
call fcn.10074153
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 0x1003bb8f
cmp edi, 3
je 0x1003bb8f
cmp byte [ebp - 0x40d], 0
je 0x1003bb9a
cmp byte [ebp - 0x40e], 0
jne 0x1003bb9a
mov eax, ecx
mov ecx, dword [ebp - 0x438]
push ecx
push dword [ebp - 0x430]
mov dword [esi + 0xc], eax
push dword [ebx + 0x10]
push eax
push dword [ebp - 0x420]
push dword [ebx + 8]
push ebx
call fcn.10036089
add esp, 0x1c
test eax, eax
je 0x1003bc53
cmp byte [ebp - 0x40e], 0
je 0x1003bbfa
cmp dword [ebx + 0x10], 0x10
push dword [esi + 0xc]
jne 0x1003bbe6
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.10035899
jmp 0x1003bbf3
lea eax, [ebp - 0x428]
push eax
push ebx
call fcn.1003590d
add esp, 0xc
test eax, eax
je 0x1003bc53
cmp dword [ebp - 0x434], 0
je 0x1003bc19
cmp dword [0x100be9ec], 0
je 0x1003bc19
cmp dword [esi + 0xc], 2
jle 0x1003bc19
push ebx
call fcn.10036e1a
pop ecx
mov al, byte [ebp - 0x40d]
test al, al
je 0x1003bc64
push 3
movzx eax, al
pop ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp edi, ecx
jl 0x1003bc38
mov dword [esi + 0xc], edi
mov eax, edi
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x40c]
push eax
push ebx
call fcn.10037242
add esp, 0x10
test eax, eax
jne 0x1003bc70
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067e5d
leave
ret
cmp byte [ebp - 0x40e], 0
je 0x1003bc70
inc dword [esi + 8]
push dword [ebx + 8]
call fcn.10074153
and dword [ebx + 8], 0
push esi
call fcn.1003748e
pop ecx
pop ecx
jmp 0x1003ba9b
push str.no_PLTE
jmp 0x1003baf5
push str.outofmem
jmp 0x1003baf5
push str.outofdata
jmp 0x1003baf5
movzx eax, al
mov dword [esi + 8], eax
jmp 0x1003ba9b