Function at 0x453a8d
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5383c4]
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.0044efdb
pop ecx
test eax, eax
je 0x454305
cmp dword [ebp + 0xc], 1
je 0x4540a6
push esi
call fcn.004509aa
push esi
mov edi, eax
call fcn.004509aa
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x42c], ecx
cmp ecx, 0x43674249
je 0x45404e
cmp ecx, 0x49444154
je 0x453f90
cmp ecx, 0x49454e44
je 0x454162
cmp ecx, 0x49484452
je 0x453d96
cmp dword [ebp - 0x414], 0
jne 0x4542fb
cmp ecx, 0x504c5445
je 0x453c70
cmp ecx, 0x74524e53
je 0x453b95
test ecx, 0x20000000
je 0x45405d
push edi
push esi
call fcn.004564c4
pop ecx
pop ecx
jmp 0x453c17
cmp dword [ebx + 4], 0
jne 0x4540cc
cmp byte [ebp - 0x405], 0
je 0x453c23
cmp dword [ebp + 0xc], 2
je 0x45409f
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x454090
cmp edi, eax
ja 0x4540ae
xor ebx, ebx
mov byte [ebp - 0x405], 4
test edi, edi
je 0x453c11
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x453bee
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453c05
cmp dword [esi + 0x20], 0
je 0x453c03
push esi
call fcn.00456096
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x453be3
xor cl, cl
mov byte [ebp + ebx*4 - 0x401], cl
inc ebx
cmp ebx, edi
jb 0x453bd5
mov ebx, dword [ebp - 0x40c]
push esi
call fcn.004509aa
pop ecx
jmp 0x453b12
mov ecx, dword [esi + 8]
test cl, 1
je 0x4540bd
lea eax, [ecx + ecx]
cmp edi, eax
jne 0x4540ae
xor edi, edi
mov byte [ebp - 0x406], 1
test ecx, ecx
jle 0x453c17
mov ebx, dword [ebp - 0x410]
push esi
call fcn.004508b6
pop ecx
movzx ecx, byte [ebx + 0x538358]
movzx eax, al
imul eax, ecx
mov byte [ebp + edi - 0x438], al
inc edi
cmp edi, dword [esi + 8]
jl 0x453c4d
jmp 0x453c11
cmp edi, 0x300
ja 0x4540db
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 0x4540db
xor edx, edx
mov dword [ebp - 0x42c], edx
test eax, eax
je 0x453c17
lea edi, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x453cc2
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453cea
lea edi, [esi + 0x20]
cmp dword [edi], 0
je 0x453ce8
push esi
call fcn.00456096
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x42c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453cea
xor cl, cl
mov ebx, edi
mov byte [ebp + edx*4 - 0x404], cl
cmp eax, dword [esi + 0xac]
jae 0x453d09
mov cl, byte [eax]
lea edi, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453d30
cmp dword [ebx], 0
mov edi, ebx
je 0x453d2e
push esi
call fcn.00456096
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x42c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453d30
xor cl, cl
mov byte [ebp + edx*4 - 0x403], cl
cmp eax, dword [esi + 0xac]
jae 0x453d4a
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453d6f
cmp dword [ebx], 0
je 0x453d6d
push esi
call fcn.00456096
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x42c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453d6f
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 0x453ca9
jmp 0x453c11
cmp dword [ebp - 0x414], 0
je 0x454153
and dword [ebp - 0x414], 0
cmp edi, 0xd
jne 0x454144
push esi
call fcn.004509aa
mov ebx, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, ebx
ja 0x453f81
push esi
call fcn.004509aa
mov dword [esi + 4], eax
pop ecx
cmp eax, ebx
ja 0x453f81
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x453df4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453e0b
cmp dword [esi + 0x20], 0
je 0x453e09
push esi
call fcn.00456096
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x453de9
xor cl, cl
movzx ecx, cl
mov edi, esi
mov dword [ebp - 0x410], ecx
push 0x20
pop ebx
cmp ecx, 1
je 0x453e31
cmp ecx, 2
je 0x453e31
cmp ecx, 4
je 0x453e31
cmp ecx, 8
jne 0x4540ea
cmp eax, dword [esi + 0xac]
jae 0x453e44
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453e5b
cmp dword [edi + ebx], 0
je 0x453e59
push esi
call fcn.00456096
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x453e39
xor cl, cl
movzx ecx, cl
mov dword [ebp - 0x424], ecx
cmp ecx, 6
ja 0x454135
push 3
pop edx
cmp ecx, edx
jne 0x453e7c
mov byte [ebp - 0x405], dl
jmp 0x453e85
test cl, 1
jne 0x454135
cmp eax, dword [esi + 0xac]
jb 0x453ea0
cmp dword [edi + ebx], 0
je 0x453eb1
push esi
call fcn.00456096
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x4540f9
cmp eax, dword [esi + 0xac]
jb 0x453ecc
cmp dword [edi + ebx], 0
je 0x453edd
push esi
call fcn.00456096
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x454108
cmp eax, dword [esi + 0xac]
jae 0x453ef0
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x453f07
cmp dword [edi + ebx], 0
je 0x453f05
push esi
call fcn.00456096
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x453ee5
xor cl, cl
movzx eax, cl
mov dword [ebp - 0x434], eax
cmp eax, 1
ja 0x454126
cmp dword [esi], 0
je 0x454117
mov edi, dword [esi + 4]
test edi, edi
je 0x454117
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x405], 0
jne 0x453f6f
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 0x453f81
cmp dword [ebp + 0xc], 2
je 0x4540a6
jmp 0x453c11
shr eax, 2
mov dword [esi + 8], 1
cmp eax, edi
jae 0x453c11
mov dword [0x53c998], str.too_large
jmp 0x454305
cmp dword [ebp - 0x414], 0
jne 0x4542fb
mov al, byte [ebp - 0x405]
test al, al
je 0x453fb4
cmp dword [ebp - 0x418], 0
je 0x4542cc
cmp dword [ebp + 0xc], 2
je 0x4542f0
mov eax, dword [ebp - 0x41c]
lea ebx, [edi + eax]
cmp ebx, eax
jl 0x454305
mov eax, dword [ebp - 0x420]
cmp ebx, eax
jbe 0x454021
test eax, eax
jne 0x453fef
mov ecx, 0x1000
cmp edi, ecx
mov eax, ecx
cmova eax, edi
mov dword [ebp - 0x420], eax
cmp ebx, eax
jbe 0x453fff
add eax, eax
cmp ebx, eax
ja 0x453ff3
mov dword [ebp - 0x420], eax
push eax
mov eax, dword [ebp - 0x40c]
push dword [eax + 4]
call fcn.004cbead
pop ecx
pop ecx
test eax, eax
je 0x4542d8
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.00450a75
add esp, 0xc
test eax, eax
je 0x4542e4
mov dword [ebp - 0x41c], ebx
jmp 0x453c11
mov dword [ebp - 0x428], 1
jmp 0x453b87
mov eax, ecx
mov byte [0x538367], cl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, ecx
shr eax, 0x10
mov byte [0x538365], al
mov eax, ecx
shr eax, 8
mov byte [0x538366], al
mov dword [0x53c998], 0x538364
jmp 0x454305
mov dword [0x53c998], str.tRNS_before_PLTE
jmp 0x454305
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x454307
mov dword [0x53c998], str.bad_tRNS_len
jmp 0x454305
mov dword [0x53c998], str.tRNS_with_alpha
jmp 0x454305
mov dword [0x53c998], str.tRNS_after_IDAT
jmp 0x454305
mov dword [0x53c998], str.invalid_PLTE
jmp 0x454305
mov dword [0x53c998], str.1_2_4_8_bit_only
jmp 0x454305
mov dword [0x53c998], str.bad_comp_method
jmp 0x454305
mov dword [0x53c998], str.bad_filter_method
jmp 0x454305
mov dword [0x53c998], str.0_pixel_image
jmp 0x454305
mov dword [0x53c998], str.bad_interlace_method
jmp 0x454305
mov dword [0x53c998], str.bad_ctype
jmp 0x454305
mov dword [0x53c998], str.bad_IHDR_len
jmp 0x454305
mov dword [0x53c998], str.multiple_IHDR
jmp 0x454305
cmp dword [ebp - 0x414], 0
jne 0x4542fb
cmp dword [ebp + 0xc], 0
jne 0x4540a6
xor eax, eax
cmp dword [ebx + 4], eax
jne 0x45418f
mov dword [0x53c998], str.no_IDAT
jmp 0x454307
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.00456fdd
add esp, 0x14
mov dword [ebx + 8], eax
test eax, eax
je 0x454305
push dword [ebx + 4]
call fcn.004c4643
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 0x454205
cmp edx, 3
je 0x454205
cmp byte [ebp - 0x405], 0
je 0x454210
cmp byte [ebp - 0x406], 0
jne 0x454210
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.0044f6ab
add esp, 0x1c
test eax, eax
je 0x454305
cmp byte [ebp - 0x406], 0
je 0x454260
push dword [esi + 0xc]
lea eax, [ebp - 0x438]
push eax
push ebx
call fcn.0044f332
add esp, 0xc
test eax, eax
je 0x454305
cmp dword [ebp - 0x428], 0
je 0x45427f
cmp dword [0x53cae4], 0
je 0x45427f
cmp dword [esi + 0xc], 2
jle 0x45427f
push ebx
call fcn.004503ca
pop ecx
mov al, byte [ebp - 0x405]
test al, al
je 0x4542ba
mov ecx, dword [ebp + 0x10]
movzx eax, al
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp ecx, 3
jl 0x45429f
mov dword [esi + 0xc], ecx
mov eax, ecx
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.0045076c
add esp, 0x10
test eax, eax
je 0x454305
push dword [ebx + 8]
call fcn.004c4643
and dword [ebx + 8], 0
pop ecx
jmp 0x4540a6
mov dword [0x53c998], str.no_PLTE
jmp 0x454305
mov dword [0x53c998], str.outofmem
jmp 0x454305
mov dword [0x53c998], str.outofdata
jmp 0x454305
movzx eax, al
mov dword [esi + 8], eax
jmp 0x4540a6
mov dword [0x53c998], str.first_not_IHDR
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bebdd
leave
ret