Function at 0x557740
Capabilities:
Terminate process

Disassembly:
sub esp, 0x5c
mov eax, dword [0x6687b8]
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 0x55776b
mov edi, str.Missing_IHDR_before_iCCP
mov eax, esi
jmp fcn.0054c480
test al, 4
je 0x557795
mov ecx, str.Invalid_iCCP_after_IDAT
call fcn.0054c4a0
mov eax, dword [esp + 0x68]
mov ecx, esi
call fcn.00556840
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005d28b3
add esp, 0x5c
ret
test al, 2
je 0x5577a3
mov ecx, str.Out_of_place_iCCP_chunk
call fcn.0054c4a0
test edi, edi
je 0x5577d6
test dword [edi + 8], 0x1000
je 0x5577d6
mov ecx, str.Duplicate_iCCP_chunk
call fcn.0054c4a0
mov eax, dword [esp + 0x68]
mov ecx, esi
call fcn.00556840
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005d28b3
add esp, 0x5c
ret
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x5577fb
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x5577f3
push esi
call eax
add esp, 8
jmp 0x5577fb
call fcn.005d27e0
add esp, 4
push ebx
mov ebx, dword [esp + 0x6c]
lea ecx, [ebx + 1]
call fcn.00560060
mov dword [esi + 0x2a8], eax
call fcn.005567d0
xor eax, eax
mov ecx, esi
call fcn.00556840
test eax, eax
je 0x55787b
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x55785f
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x557857
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.005d28b3
add esp, 0x5c
ret
call fcn.005d27e0
add esp, 4
pop ebx
pop edi
mov dword [esi + 0x2a8], 0
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005d28b3
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 0x55789d
add ebp, 1
cmp byte [ebp], 0
jne 0x557894
add ebp, 1
lea ecx, [eax + ebx - 1]
cmp ebp, ecx
jb 0x5578d9
test eax, eax
je 0x5578cf
mov ecx, dword [esi + 0x240]
test ecx, ecx
push eax
je 0x5578c7
push esi
call ecx
add esp, 8
mov ecx, str.Malformed_iCCP_chunk
jmp 0x5579e2
call fcn.005d27e0
add esp, 4
mov ecx, str.Malformed_iCCP_chunk
jmp 0x5579e2
mov al, byte [ebp]
add ebp, 1
test al, al
je 0x5578ef
mov ecx, str.Ignoring_nonzero_compression_type_in_iCCP_chunk
call fcn.0054c4a0
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.00556ac0
mov eax, dword [esp + 0x20]
mov ebp, eax
add esp, 0xc
sub ebp, ebx
cmp ebx, eax
ja 0x5579b8
cmp ebp, 4
jb 0x5579b8
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 0x55797c
mov ecx, esi
call fcn.005600a0
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.005d7813
add esp, 0x14
lea ecx, [esp + 0x18]
jmp 0x5579ec
push ebx
push eax
push edi
mov edi, dword [esp + 0x1c]
push edx
mov eax, esi
call fcn.0054d270
mov edx, dword [esi + 0x2a8]
add esp, 0x10
mov ecx, esi
call fcn.005600a0
pop ebp
pop ebx
pop edi
mov dword [esi + 0x2a8], 0
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005d28b3
add esp, 0x5c
ret
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x5579dd
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x5579d5
push esi
call eax
add esp, 8
jmp 0x5579dd
call fcn.005d27e0
add esp, 4
mov ecx, str.Profile_size_field_missing_from_iCCP_chunk
mov dword [esi + 0x2a8], 0
call fcn.0054c4a0
mov ecx, dword [esp + 0x68]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.005d28b3
add esp, 0x5c
ret