Function at 0x4719a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
test al, 1
push edi
mov edi, edx
mov dword [esp + 8], edi
jne 0x4719cb
mov edi, str.Missing_IHDR_before_iCCP
mov eax, esi
jmp fcn.004665a0
test al, 4
je 0x4719f5
mov ecx, str.Invalid_iCCP_after_IDAT
call fcn.004665c0
mov eax, dword [esp + 0x68]
mov ecx, esi
call fcn.00470aa0
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0047f460
add esp, 0x5c
ret
test al, 2
je 0x471a03
mov ecx, str.Out_of_place_iCCP_chunk
call fcn.004665c0
test edi, edi
je 0x471a36
test dword [edi + 8], 0x1000
je 0x471a36
mov ecx, str.Duplicate_iCCP_chunk
call fcn.004665c0
mov eax, dword [esp + 0x68]
mov ecx, esi
call fcn.00470aa0
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0047f460
add esp, 0x5c
ret
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x471a5b
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x471a53
push esi
call eax
add esp, 8
jmp 0x471a5b
call fcn.0047fdbd
add esp, 4
push ebx
mov ebx, dword [esp + 0x6c]
lea ecx, [ebx + 1]
call fcn.0046f9e0
mov dword [esi + 0x2a8], eax
call fcn.00470a30
xor eax, eax
mov ecx, esi
call fcn.00470aa0
test eax, eax
je 0x471adb
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x471abf
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x471ab7
push esi
call eax
add esp, 8
pop ebx
pop edi
mov dword [esi + 0x2a8], 0
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0047f460
add esp, 0x5c
ret
call fcn.0047fdbd
add esp, 4
pop ebx
pop edi
mov dword [esi + 0x2a8], 0
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0047f460
add esp, 0x5c
ret
mov eax, dword [esi + 0x2a8]
mov byte [ebx + eax], 0
mov eax, dword [esi + 0x2a8]
push ebp
mov ebp, eax
cmp byte [ebp], 0
je 0x471afd
add ebp, 1
cmp byte [ebp], 0
jne 0x471af4
add ebp, 1
lea ecx, [eax + ebx - 1]
cmp ebp, ecx
jb 0x471b39
test eax, eax
je 0x471b2f
mov ecx, dword [esi + 0x240]
test ecx, ecx
push eax
je 0x471b27
push esi
call ecx
add esp, 8
mov ecx, str.Malformed_iCCP_chunk
jmp 0x471c42
call fcn.0047fdbd
add esp, 4
mov ecx, str.Malformed_iCCP_chunk
jmp 0x471c42
mov al, byte [ebp]
add ebp, 1
test al, al
je 0x471b4f
mov ecx, str.Ignoring_nonzero_compression_type_in_iCCP_chunk
call fcn.004665c0
xor al, al
sub ebp, dword [esi + 0x2a8]
mov edx, dword [esp + 0x70]
mov ebx, ebp
movzx edi, al
push ebx
push edx
push esi
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.00470d20
mov eax, dword [esp + 0x20]
mov ebp, eax
add esp, 0xc
sub ebp, ebx
cmp ebx, eax
ja 0x471c18
cmp ebp, 4
jb 0x471c18
mov edx, dword [esi + 0x2a8]
movzx ecx, byte [edx + ebx + 2]
lea eax, [edx + ebx]
xor ebx, ebx
mov bh, byte [eax]
mov bl, byte [eax + 1]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
cmp ebx, ebp
jbe 0x471bdc
mov ecx, esi
call fcn.0046fa20
push ebp
push ebx
push str.Ignoring_iCCP_chunk_with_declared_size___u_and_actual_length___u
lea edx, [esp + 0x24]
push 0x50
push edx
mov dword [esi + 0x2a8], 0
call fcn.00482d6f
add esp, 0x14
lea ecx, [esp + 0x18]
jmp 0x471c4c
push ebx
push eax
push edi
mov edi, dword [esp + 0x1c]
push edx
mov eax, esi
call fcn.00465ca0
mov edx, dword [esi + 0x2a8]
add esp, 0x10
mov ecx, esi
call fcn.0046fa20
pop ebp
pop ebx
pop edi
mov dword [esi + 0x2a8], 0
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0047f460
add esp, 0x5c
ret
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x471c3d
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x471c35
push esi
call eax
add esp, 8
jmp 0x471c3d
call fcn.0047fdbd
add esp, 4
mov ecx, str.Profile_size_field_missing_from_iCCP_chunk
mov dword [esi + 0x2a8], 0
call fcn.004665c0
mov ecx, dword [esp + 0x68]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0047f460
add esp, 0x5c
ret