Function at 0x4310a0
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 0x4310ec
push str.Missing_IHDR_before_cHRM
push esi
call fcn.004266f0
add esp, 8
mov edi, dword [ebp + 0x10]
cmp edi, 0x20
je 0x431152
push str.Incorrect_cHRM_chunk_length
push esi
call fcn.00426730
push edi
push esi
call fcn.00430870
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 4
je 0x43110f
push str.Invalid_cHRM_after_IDAT
push esi
call fcn.00426730
mov eax, dword [ebp + 0x10]
push eax
push esi
call fcn.00430870
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 2
je 0x431120
push str.Missing_PLTE_before_cHRM
push esi
call fcn.00426730
jmp 0x4310c1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4310c4
mov eax, dword [eax + 8]
test al, 4
je 0x4310c4
test ah, 8
jne 0x4310c4
push str.Duplicate_cHRM_chunk
push esi
call fcn.00426730
mov ecx, dword [ebp + 0x10]
push ecx
push esi
call fcn.00430870
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.0042ef30
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004269a0
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
movzx eax, ah
push 4
lea ecx, [esp + 0x28]
shl edi, 8
push ecx
add edi, eax
push esi
mov dword [esp + 0x64], edi
call fcn.0042ef30
push 4
lea edx, [esp + 0x34]
push edx
push esi
call fcn.004269a0
mov eax, dword [esp + 0x3c]
movzx ebx, al
shl ebx, 8
movzx eax, ah
add ebx, eax
mov ax, word [esp + 0x3e]
shl ebx, 8
movzx ecx, al
add ebx, ecx
movzx edx, ah
shl ebx, 8
add ebx, edx
add esp, 0x30
cmp edi, 0x13880
mov dword [esp + 0x3c], ebx
jg 0x4315ae
cmp ebx, 0x13880
jg 0x4315ae
lea eax, [ebx + edi]
cmp eax, 0x186a0
jg 0x4315ae
push 4
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.0042f8d0
lea edx, [esp + 0x18]
push edx
call fcn.0042f850
mov dword [esp + 0x28], eax
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0042f8d0
lea ecx, [esp + 0x28]
push ecx
call fcn.0042f850
mov ecx, dword [esp + 0x38]
add esp, 0x20
cmp ecx, 0x13880
mov dword [esp + 0x20], eax
jg 0x431591
cmp eax, 0x13880
jg 0x431591
add eax, ecx
cmp eax, 0x186a0
jg 0x431591
push 4
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0042f8d0
lea eax, [esp + 0x18]
push eax
call fcn.0042f850
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x30], eax
call fcn.0042f8d0
lea edx, [esp + 0x28]
push edx
call fcn.0042f850
mov ecx, dword [esp + 0x34]
add esp, 0x20
cmp ecx, 0x13880
mov dword [esp + 0x1c], eax
jg 0x431574
cmp eax, 0x13880
jg 0x431574
add eax, ecx
cmp eax, 0x186a0
jg 0x431574
push 4
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0042f8d0
lea ecx, [esp + 0x18]
push ecx
call fcn.0042f850
push 4
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x2c], eax
call fcn.0042f8d0
lea eax, [esp + 0x28]
push eax
call fcn.0042f850
mov ecx, eax
mov eax, dword [esp + 0x30]
add esp, 0x20
cmp eax, 0x13880
mov dword [esp + 0x44], ecx
jg 0x431557
cmp ecx, 0x13880
jg 0x431557
lea edx, [ecx + eax]
cmp edx, 0x186a0
jg 0x431557
fild dword [esp + 0x40]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
test dh, 8
fmul dword [0x457e24]
fstp dword [esp + 0x40]
fild dword [esp + 0x3c]
fmul dword [0x457e24]
fstp dword [esp + 0x3c]
fild dword [esp + 0x18]
fmul dword [0x457e24]
fstp dword [esp + 0x38]
fild dword [esp + 0x20]
fmul dword [0x457e24]
fstp dword [esp + 0x34]
fild dword [esp + 0x14]
fmul dword [0x457e24]
fstp dword [esp + 0x30]
fild dword [esp + 0x1c]
fmul dword [0x457e24]
fstp dword [esp + 0x2c]
fild dword [esp + 0x10]
fmul dword [0x457e24]
fstp dword [esp + 0x28]
fild dword [esp + 0x44]
fmul dword [0x457e24]
fstp dword [esp + 0x24]
je 0x4314c9
lea eax, [edi - 0x7a26]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jg 0x431448
lea eax, [ebx - 0x8084]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jg 0x431448
mov eax, dword [esp + 0x18]
add eax, 0xffff0600
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jg 0x431448
mov eax, dword [esp + 0x20]
add eax, 0xffff7f18
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jg 0x431448
mov eax, dword [esp + 0x14]
add eax, 0xffff8ad0
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jg 0x431448
mov eax, dword [esp + 0x1c]
add eax, 0xffff15a0
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jg 0x431448
mov eax, dword [esp + 0x10]
add eax, 0xffffc568
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jg 0x431448
lea eax, [ecx - 0x1770]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jle 0x4314b7
push str.Ignoring_incorrect_cHRM_value_when_sRGB_is_also_present
push esi
call fcn.00426730
fld dword [esp + 0x3c]
fstp qword [esp]
sub esp, 0x18
fld dword [esp + 0x58]
fstp qword [esp + 0x10]
fld dword [esp + 0x5c]
fstp qword [esp + 8]
fld dword [esp + 0x60]
fstp qword [esp]
push str.wx_f__wy_f__rx_f__ry_f_n
push 0x4679f0
call fcn.004413c0
fld dword [esp + 0x4c]
fstp qword [esp + 0x20]
add esp, 8
fld dword [esp + 0x48]
fstp qword [esp + 0x10]
fld dword [esp + 0x4c]
fstp qword [esp + 8]
fld dword [esp + 0x50]
fstp qword [esp]
push str.gx_f__gy_f__bx_f__by_f_n
push 0x4679f0
call fcn.004413c0
add esp, 0x28
push 0
push esi
call fcn.00430870
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esp + 0x24]
sub esp, 0x40
fstp qword [esp + 0x38]
fld dword [esp + 0x68]
fstp qword [esp + 0x30]
fld dword [esp + 0x6c]
fstp qword [esp + 0x28]
fld dword [esp + 0x70]
fstp qword [esp + 0x20]
fld dword [esp + 0x74]
fstp qword [esp + 0x18]
fld dword [esp + 0x78]
fstp qword [esp + 0x10]
fld dword [esp + 0x7c]
fstp qword [esp + 8]
fld dword [esp + 0x80]
fstp qword [esp]
push eax
push esi
call fcn.0042da60
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push ebx
push edi
push eax
push esi
call fcn.0042dbb0
add esp, 0x70
push 0
push esi
call fcn.00430870
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.00426730
push 0
push esi
call fcn.00430870
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.00426730
push 8
push esi
call fcn.00430870
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.00426730
push 0x10
push esi
call fcn.00430870
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.00426730
push 0x18
push esi
call fcn.00430870
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret