Function at 0x4b0560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x68]
test al, 1
push edi
jne 0x4b0583
push str.Missing_IHDR_before_cHRM
push esi
call fcn.004aad60
jmp 0x4b05b5
test al, 4
je 0x4b05a6
push str.Invalid_cHRM_after_IDAT
push esi
call fcn.004aae00
mov eax, dword [ebp + 0x10]
push eax
push esi
call fcn.004afdd0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 2
je 0x4b05b8
push str.Missing_PLTE_before_cHRM
push esi
call fcn.004aae00
add esp, 8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b05ea
mov eax, dword [eax + 8]
test al, 4
je 0x4b05ea
test ah, 8
jne 0x4b05ea
push str.Duplicate_cHRM_chunk
push esi
call fcn.004aae00
mov ecx, dword [ebp + 0x10]
push ecx
push esi
call fcn.004afdd0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
cmp edi, 0x20
je 0x4b060e
push str.Incorrect_cHRM_chunk_length
push esi
call fcn.004aae00
push edi
push esi
call fcn.004afdd0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea edx, [esp + 0x10]
push edx
push esi
call fcn.004aa990
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004a2890
mov eax, dword [esp + 0x24]
movzx edi, al
movzx ecx, ah
mov ax, word [esp + 0x26]
shl edi, 8
add edi, ecx
movzx edx, al
shl edi, 8
add edi, edx
push 4
lea ecx, [esp + 0x28]
movzx eax, ah
push ecx
shl edi, 8
push esi
add edi, eax
call fcn.004aa990
push 4
lea edx, [esp + 0x34]
push edx
push esi
call fcn.004a2890
mov ecx, dword [esp + 0x3c]
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
mov cx, word [esp + 0x3e]
shl eax, 8
movzx edx, cl
add eax, edx
movzx ecx, ch
shl eax, 8
add esp, 0x30
add eax, ecx
cmp edi, 0x13880
ja 0x4b0a62
cmp eax, 0x13880
ja 0x4b0a62
lea edx, [eax + edi]
cmp edx, 0x186a0
ja 0x4b0a62
mov dword [esp + 0x20], eax
push 4
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x30], edi
call fcn.004aec80
lea ecx, [esp + 0x18]
push ecx
call fcn.004aec50
push 4
lea edx, [esp + 0x20]
push edx
push esi
mov edi, eax
call fcn.004aec80
lea eax, [esp + 0x28]
push eax
call fcn.004aec50
add esp, 0x20
cmp edi, 0x13880
ja 0x4b0a45
cmp eax, 0x13880
ja 0x4b0a45
lea ecx, [eax + edi]
cmp ecx, 0x186a0
ja 0x4b0a45
push 4
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
call fcn.004aec80
lea eax, [esp + 0x18]
push eax
call fcn.004aec50
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
mov edi, eax
call fcn.004aec80
lea edx, [esp + 0x28]
push edx
call fcn.004aec50
add esp, 0x20
cmp edi, 0x13880
ja 0x4b0a28
cmp eax, 0x13880
ja 0x4b0a28
lea ecx, [eax + edi]
cmp ecx, 0x186a0
ja 0x4b0a28
push 4
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
call fcn.004aec80
lea eax, [esp + 0x18]
push eax
call fcn.004aec50
push 4
lea ecx, [esp + 0x20]
push ecx
mov edi, eax
push esi
mov dword [esp + 0x48], edi
call fcn.004aec80
lea edx, [esp + 0x28]
push edx
call fcn.004aec50
add esp, 0x20
cmp edi, 0x13880
mov ebx, eax
mov dword [esp + 0x28], ebx
ja 0x4b0a0b
cmp ebx, 0x13880
ja 0x4b0a0b
lea eax, [ebx + edi]
cmp eax, 0x186a0
ja 0x4b0a0b
fild dword [esp + 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
test ch, 8
fmul dword [0x4eb548]
fstp dword [esp + 0x44]
fild dword [esp + 0x20]
fmul dword [0x4eb548]
fstp dword [esp + 0x40]
fild dword [esp + 0x1c]
fmul dword [0x4eb548]
fstp dword [esp + 0x3c]
fild dword [esp + 0x18]
fmul dword [0x4eb548]
fstp dword [esp + 0x38]
fild dword [esp + 0x14]
fmul dword [0x4eb548]
fstp dword [esp + 0x34]
fild dword [esp + 0x10]
fmul dword [0x4eb548]
fstp dword [esp + 0x30]
fild dword [esp + 0x2c]
fmul dword [0x4eb548]
fstp dword [esp + 0x2c]
fild dword [esp + 0x28]
fmul dword [0x4eb548]
fstp dword [esp + 0x28]
je 0x4b097a
mov eax, dword [esp + 0x24]
cmp eax, 0x763e
jl 0x4b08ef
cmp eax, 0x7e0e
jg 0x4b08ef
mov eax, dword [esp + 0x20]
cmp eax, 0x7c9c
jl 0x4b08ef
cmp eax, 0x846c
jg 0x4b08ef
mov eax, dword [esp + 0x1c]
cmp eax, 0xf618
jl 0x4b08ef
cmp eax, 0xfde8
jg 0x4b08ef
mov eax, dword [esp + 0x18]
cmp eax, 0x7d00
jl 0x4b08ef
cmp eax, 0x84d0
jg 0x4b08ef
mov eax, dword [esp + 0x14]
cmp eax, 0x7148
jl 0x4b08ef
cmp eax, 0x7918
jg 0x4b08ef
mov eax, dword [esp + 0x10]
cmp eax, 0xe678
jl 0x4b08ef
cmp eax, 0xee48
jg 0x4b08ef
cmp edi, 0x36b0
jl 0x4b08ef
cmp edi, 0x3e80
jg 0x4b08ef
cmp ebx, 0x1388
jl 0x4b08ef
cmp ebx, 0x1b58
jle 0x4b0968
push str.Ignoring_incorrect_cHRM_value_when_sRGB_is_also_present
push esi
call fcn.004aae00
fld dword [esp + 0x40]
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
fstp qword [esp]
fld dword [esp + 0x44]
mov edi, dword [sym.imp.MSVCR71.dll_fprintf]
sub esp, 0x18
fstp qword [esp + 0x10]
add ecx, 0x40
fld dword [esp + 0x60]
fstp qword [esp + 8]
fld dword [esp + 0x64]
fstp qword [esp]
push str.wx_f__wy_f__rx_f__ry_f_n
push ecx
call edi
fld dword [esp + 0x50]
mov edx, dword [sym.imp.MSVCR71.dll__iob]
fstp qword [esp + 0x20]
fld dword [esp + 0x54]
add esp, 8
fstp qword [esp + 0x10]
add edx, 0x40
fld dword [esp + 0x50]
fstp qword [esp + 8]
fld dword [esp + 0x54]
fstp qword [esp]
push str.gx_f__gy_f__bx_f__by_f_n
push edx
call edi
add esp, 0x28
push 0
push esi
call fcn.004afdd0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esp + 0x28]
sub esp, 0x40
fstp qword [esp + 0x38]
fld dword [esp + 0x6c]
fstp qword [esp + 0x30]
fld dword [esp + 0x70]
fstp qword [esp + 0x28]
fld dword [esp + 0x74]
fstp qword [esp + 0x20]
fld dword [esp + 0x78]
fstp qword [esp + 0x18]
fld dword [esp + 0x7c]
fstp qword [esp + 0x10]
fld dword [esp + 0x80]
fstp qword [esp + 8]
fld dword [esp + 0x84]
fstp qword [esp]
push eax
push esi
call fcn.004a4240
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
push ebx
push edi
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push esi
call fcn.004a4500
add esp, 0x70
push 0
push esi
call fcn.004afdd0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_cHRM_blue_point
push esi
call fcn.004aae00
push 0
push esi
call fcn.004afdd0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_cHRM_green_point
push esi
call fcn.004aae00
push 8
push esi
call fcn.004afdd0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_cHRM_red_point
push esi
call fcn.004aae00
push 0x10
push esi
call fcn.004afdd0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_cHRM_white_point
push esi
call fcn.004aae00
push 0x18
push esi
call fcn.004afdd0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret