Function at 0x47aa98
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x50d400]
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.00474c6b
pop ecx
test eax, eax
je 0x47b2cf
cmp dword [ebp + 0xc], 1
je 0x47b117
push esi
call fcn.00476baa
mov ebx, eax
pop ecx
cmp edx, 0x43674249
je 0x47b0e3
cmp edx, 0x49444154
je 0x47b03a
cmp edx, 0x49454e44
je 0x47b17c
cmp edx, 0x49484452
je 0x47ae1d
cmp edx, 0x504c5445
je 0x47acdf
cmp edx, 0x74524e53
je 0x47abb8
cmp dword [ebp - 0x418], 0
jne 0x47b134
test edx, 0x20000000
jne 0x47b0ed
mov eax, edx
mov byte [0x50d373], dl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, edx
shr eax, 0x10
mov byte [0x50d371], al
mov eax, edx
shr eax, 8
mov byte [0x50d372], al
push str.XXXX_PNG_chunk_not_known
jmp 0x47b171
cmp dword [ebp - 0x418], 0
jne 0x47b134
cmp dword [edi + 4], 0
jne 0x47b126
cmp byte [ebp - 0x40d], 0
je 0x47ac69
cmp dword [ebp + 0xc], 2
je 0x47b110
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x47b109
cmp ebx, eax
ja 0x47b102
xor edx, edx
mov byte [ebp - 0x40d], 4
mov dword [ebp - 0x414], edx
test ebx, ebx
je 0x47b0f6
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x47ac2c
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47ac52
cmp dword [esi + 0x20], 0
je 0x47ac50
push esi
call fcn.0047d661
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x414]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47ac52
xor cl, cl
mov byte [ebp + edx*4 - 0x409], cl
inc edx
mov dword [ebp - 0x414], edx
cmp edx, ebx
jb 0x47ac13
jmp 0x47b0f6
mov ecx, dword [esi + 8]
test cl, 1
je 0x47b11f
lea eax, [ecx + ecx]
cmp ebx, eax
jne 0x47b102
xor ebx, ebx
mov byte [ebp - 0x40e], 1
cmp dword [edi + 0x10], 0x10
jne 0x47acae
test ecx, ecx
jle 0x47b0f6
push esi
call fcn.00476a76
mov word [ebp + ebx*2 - 0xc], ax
inc ebx
pop ecx
cmp ebx, dword [esi + 8]
jl 0x47ac97
jmp 0x47b0f6
test ecx, ecx
jle 0x47b0f6
push esi
call fcn.00476a76
pop ecx
mov ecx, dword [edi + 0x10]
movzx eax, al
movzx ecx, byte [ecx + 0x4ed158]
imul eax, ecx
mov byte [ebp + ebx - 0x428], al
inc ebx
cmp ebx, dword [esi + 8]
jl 0x47acb6
jmp 0x47b0f6
cmp dword [ebp - 0x418], 0
jne 0x47b134
cmp ebx, 0x300
ja 0x47b12d
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 0x47b12d
and dword [ebp - 0x414], 0
test eax, eax
je 0x47b0f6
lea edi, [ebp - 0x40c]
lea ebx, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x47ad43
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47ad5c
lea ebx, [esi + 0x20]
cmp dword [ebx], 0
je 0x47ad5a
push esi
call fcn.0047d661
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x47ad38
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 0x47ad83
mov cl, byte [eax]
lea ebx, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47adaa
cmp dword [edx], 0
mov ebx, edx
je 0x47ada8
push esi
call fcn.0047d661
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x438]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47adaa
xor cl, cl
mov edi, dword [ebp - 0x414]
mov byte [ebp + edi*4 - 0x40b], cl
cmp eax, dword [esi + 0xac]
jae 0x47adca
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47ade0
cmp dword [edx], 0
je 0x47adde
push esi
call fcn.0047d661
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x47adbf
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 0x47ad2a
mov edi, dword [ebp - 0x43c]
jmp 0x47b0f6
cmp dword [ebp - 0x418], 0
je 0x47b16c
and dword [ebp - 0x418], 0
cmp ebx, 0xd
jne 0x47b165
push esi
call fcn.00476b6a
mov ebx, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, ebx
ja 0x47b030
push esi
call fcn.00476b6a
mov dword [esi + 4], eax
pop ecx
cmp eax, ebx
ja 0x47b030
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x47ae7b
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47ae92
cmp dword [esi + 0x20], 0
je 0x47ae90
push esi
call fcn.0047d661
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x47ae70
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 0x47aec0
cmp eax, 2
je 0x47aec0
cmp eax, 4
je 0x47aec0
cmp eax, 8
je 0x47aec0
cmp eax, 0x10
jne 0x47b13b
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x47aed9
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47aef0
cmp dword [edx + ebx], 0
je 0x47aeee
push esi
call fcn.0047d661
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x47aece
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x42c], ecx
cmp ecx, 6
ja 0x47b15e
push 3
pop edx
cmp ecx, edx
jne 0x47af1b
cmp dword [edi + 0x10], 0x10
je 0x47b15e
mov byte [ebp - 0x40d], dl
jmp 0x47af24
test cl, 1
jne 0x47b15e
cmp eax, dword [esi + 0xac]
jb 0x47af45
mov ecx, dword [ebp - 0x414]
cmp dword [ecx + ebx], 0
je 0x47af5c
push esi
call fcn.0047d661
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x47b142
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jb 0x47af77
cmp dword [ecx + ebx], 0
je 0x47af8e
push esi
call fcn.0047d661
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x47b149
mov ecx, dword [ebp - 0x414]
cmp eax, dword [esi + 0xac]
jae 0x47afa1
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47afb8
cmp dword [ecx + ebx], 0
je 0x47afb6
push esi
call fcn.0047d661
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x47af96
xor cl, cl
movzx eax, cl
xor ecx, ecx
inc ecx
mov dword [ebp - 0x434], eax
cmp eax, ecx
ja 0x47b157
cmp dword [esi], 0
je 0x47b150
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x47b150
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x40d], 0
jne 0x47b022
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 0x47b030
cmp dword [ebp + 0xc], 2
je 0x47b117
jmp 0x47b0f6
shr eax, 2
mov dword [esi + 8], ecx
cmp eax, ebx
jae 0x47b0f6
push str.too_large
jmp 0x47b171
cmp dword [ebp - 0x418], 0
jne 0x47b134
mov al, byte [ebp - 0x40d]
test al, al
je 0x47b05e
cmp dword [ebp - 0x424], 0
je 0x47b300
cmp dword [ebp + 0xc], 2
je 0x47b31e
mov ecx, dword [ebp - 0x420]
lea eax, [ebx + ecx]
cmp eax, ecx
jl 0x47b2cf
mov ecx, dword [ebp - 0x41c]
cmp eax, ecx
jbe 0x47b0bf
test ecx, ecx
jne 0x47b099
mov edx, 0x1000
cmp ebx, edx
mov ecx, edx
cmova ecx, ebx
mov dword [ebp - 0x41c], ecx
cmp eax, ecx
jbe 0x47b0a9
add ecx, ecx
cmp eax, ecx
ja 0x47b09d
mov dword [ebp - 0x41c], ecx
push ecx
push dword [edi + 4]
call fcn.004bc17c
pop ecx
pop ecx
test eax, eax
je 0x47b30a
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x420]
push ebx
push eax
push esi
call fcn.00476c54
add esp, 0xc
test eax, eax
je 0x47b314
add dword [ebp - 0x420], ebx
jmp 0x47b0f6
mov dword [ebp - 0x430], 1
push ebx
push esi
call fcn.0047da93
pop ecx
pop ecx
push esi
call fcn.00476b6a
pop ecx
jmp 0x47ab24
push str.bad_tRNS_len
jmp 0x47b171
push str.tRNS_before_PLTE
jmp 0x47b171
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x47b2d1
push str.tRNS_with_alpha
jmp 0x47b171
push str.tRNS_after_IDAT
jmp 0x47b171
push str.invalid_PLTE
jmp 0x47b171
push str.first_not_IHDR
jmp 0x47b171
push str.1_2_4_8_16_bit_only
jmp 0x47b171
push str.bad_comp_method
jmp 0x47b171
push str.bad_filter_method
jmp 0x47b171
push str.0_pixel_image
jmp 0x47b171
push str.bad_interlace_method
jmp 0x47b171
push str.bad_ctype
jmp 0x47b171
push str.bad_IHDR_len
jmp 0x47b171
push str.multiple_IHDR
call fcn.004768ff
pop ecx
jmp 0x47b2d1
cmp dword [ebp - 0x418], 0
jne 0x47b134
cmp dword [ebp + 0xc], 0
jne 0x47b117
cmp dword [edi + 4], 0
jne 0x47b198
push str.no_IDAT
jmp 0x47b171
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.0047e863
add esp, 0x14
mov dword [edi + 8], eax
test eax, eax
je 0x47b2cf
push dword [edi + 4]
call fcn.004af704
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 0x47b20c
cmp edx, 3
je 0x47b20c
test bl, bl
je 0x47b25f
mov bh, byte [ebp - 0x40e]
test bh, bh
jne 0x47b218
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.00475765
add esp, 0x1c
test eax, eax
je 0x47b2cf
test bh, bh
je 0x47b27b
cmp dword [edi + 0x10], 0x10
push dword [esi + 0xc]
jne 0x47b267
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00474f75
jmp 0x47b274
mov bh, byte [ebp - 0x40e]
jmp 0x47b218
lea eax, [ebp - 0x428]
push eax
push edi
call fcn.00474fe9
add esp, 0xc
test eax, eax
je 0x47b2cf
cmp dword [ebp - 0x430], 0
je 0x47b29a
cmp dword [0x50fe30], 0
je 0x47b29a
cmp dword [esi + 0xc], 2
jle 0x47b29a
push edi
call fcn.004764f6
pop ecx
test bl, bl
je 0x47b2e0
mov ecx, dword [ebp + 0x10]
movzx eax, bl
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp ecx, 3
jl 0x47b2b4
mov dword [esi + 0xc], ecx
mov eax, ecx
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x40c]
push eax
push edi
call fcn.0047691e
add esp, 0x10
test eax, eax
jne 0x47b2e7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8986
leave
ret
test bh, bh
je 0x47b2e7
inc dword [esi + 8]
push dword [edi + 8]
call fcn.004af704
and dword [edi + 8], 0
push esi
call fcn.00476b6a
pop ecx
pop ecx
jmp 0x47b117
push str.no_PLTE
jmp 0x47b171
push str.outofmem
jmp 0x47b171
push str.outofdata
jmp 0x47b171
movzx eax, al
mov dword [esi + 8], eax
jmp 0x47b117