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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 0x68]
test al, 1
jne 0x4d8d0d
push esi
mov ecx, str.Missing_IHDR_before_cHRM
call fcn.004d7770
test al, 4
je 0x4d8d2e
mov edx, str.Invalid_cHRM_after_IDAT
call fcn.004d7820
push edi
mov ecx, esi
call fcn.004d8030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
test al, 2
je 0x4d8d3c
mov edx, str.Missing_PLTE_before_cHRM
call fcn.004d7820
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4d8d6f
mov eax, dword [eax + 8]
test al, 4
je 0x4d8d6f
test eax, 0x800
jne 0x4d8d6f
mov edx, str.Duplicate_cHRM_chunk
call fcn.004d7820
push edi
mov ecx, esi
call fcn.004d8030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
cmp edi, 0x20
je 0x4d8d91
mov edx, str.Incorrect_cHRM_chunk_length
call fcn.004d7820
push edi
mov ecx, esi
call fcn.004d8030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edi, 4
lea ebx, [esp + 0x10]
call fcn.004d7fd0
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x12]
movzx edx, byte [esp + 0x13]
movzx ebp, al
shl ebp, 8
movzx eax, ah
add ebp, eax
shl ebp, 8
add ebp, ecx
shl ebp, 8
add ebp, edx
call fcn.004d7fd0
mov ecx, dword [esp + 0x10]
movzx edx, byte [esp + 0x12]
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [esp + 0x13]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
cmp ebp, 0x13880
ja 0x4d9116
cmp eax, 0x13880
ja 0x4d9116
lea edx, [eax + ebp]
cmp edx, 0x186a0
ja 0x4d9116
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
call fcn.004d7fd0
mov ecx, ebx
call fcn.004d7fb0
mov ebp, eax
call fcn.004d7fd0
mov ecx, ebx
call fcn.004d7fb0
lea ecx, [eax + ebp]
cmp ecx, 0x186a0
jbe 0x4d8e5b
mov edx, str.Invalid_cHRM_red_point
call fcn.004d7820
push 0x10
mov ecx, esi
call fcn.004d8030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
lea ebx, [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
call fcn.004d7fd0
mov ecx, ebx
call fcn.004d7fb0
mov ebp, eax
call fcn.004d7fd0
mov ecx, ebx
call fcn.004d7fb0
lea edx, [eax + ebp]
cmp edx, 0x186a0
jbe 0x4d8eaa
mov edx, str.Invalid_cHRM_green_point
call fcn.004d7820
push 8
mov ecx, esi
call fcn.004d8030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
lea ebx, [esp + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], eax
call fcn.004d7fd0
mov ecx, ebx
call fcn.004d7fb0
mov ebp, eax
mov dword [esp + 0x30], ebp
call fcn.004d7fd0
mov ecx, ebx
call fcn.004d7fb0
mov ebx, eax
lea eax, [ebx + ebp]
mov dword [esp + 0x2c], ebx
cmp eax, 0x186a0
jbe 0x4d8f02
mov edx, str.Invalid_cHRM_blue_point
call fcn.004d7820
push 0
mov ecx, esi
call fcn.004d8030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
fild dword [esp + 0x28]
mov edi, dword [esp + 0x50]
fld qword [0x58e188]
fdiv st(1), st(0)
fxch st(1)
fstp dword [esp + 0x48]
fild dword [esp + 0x24]
fdiv st(1)
fstp dword [esp + 0x44]
fild dword [esp + 0x20]
fdiv st(1)
fstp dword [esp + 0x40]
fild dword [esp + 0x1c]
fdiv st(1)
fstp dword [esp + 0x3c]
fild dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x38]
fild dword [esp + 0x14]
fdiv st(1)
fstp dword [esp + 0x34]
fild dword [esp + 0x30]
fdiv st(1)
fstp dword [esp + 0x30]
fidivr dword [esp + 0x2c]
fstp dword [esp + 0x2c]
test edi, edi
je 0x4d9084
test dword [edi + 8], 0x800
je 0x4d9084
mov ecx, dword [esp + 0x28]
add ecx, 0xffff89c2
cmp ecx, 0x7d0
ja 0x4d8ff9
mov edx, dword [esp + 0x24]
add edx, 0xffff8364
cmp edx, 0x7d0
ja 0x4d8ff9
mov eax, dword [esp + 0x20]
add eax, 0xffff09e8
cmp eax, 0x7d0
ja 0x4d8ff9
mov ecx, dword [esp + 0x1c]
add ecx, 0xffff8300
cmp ecx, 0x7d0
ja 0x4d8ff9
mov edx, dword [esp + 0x18]
add edx, 0xffff8eb8
cmp edx, 0x7d0
ja 0x4d8ff9
mov eax, dword [esp + 0x14]
add eax, 0xffff1988
cmp eax, 0x7d0
ja 0x4d8ff9
cmp ebp, 0x36b0
jl 0x4d8ff9
cmp ebp, 0x3e80
jg 0x4d8ff9
cmp ebx, 0x1388
jl 0x4d8ff9
cmp ebx, 0x1b58
jle 0x4d9070
mov edx, str.Ignoring_incorrect_cHRM_value_when_sRGB_is_also_present
call fcn.004d7820
fld dword [esp + 0x3c]
sub esp, 0x20
fstp qword [esp + 0x18]
fld dword [esp + 0x60]
fstp qword [esp + 0x10]
fld dword [esp + 0x64]
fstp qword [esp + 8]
fld dword [esp + 0x68]
fstp qword [esp]
push str.wx_f__wy_f__rx_f__ry_f_n
call fcn.005168f2
add eax, 0x40
push eax
call fcn.00511ed3
fld dword [esp + 0x54]
fstp qword [esp + 0x20]
add esp, 8
fld dword [esp + 0x50]
fstp qword [esp + 0x10]
fld dword [esp + 0x54]
fstp qword [esp + 8]
fld dword [esp + 0x58]
fstp qword [esp]
push str.gx_f__gy_f__bx_f__by_f_n
call fcn.005168f2
add eax, 0x40
push eax
call fcn.00511ed3
add esp, 0x28
push 0
mov ecx, esi
call fcn.004d8030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
fld dword [esp + 0x2c]
sub esp, 0x40
fstp qword [esp + 0x38]
mov eax, esi
fld dword [esp + 0x70]
fstp qword [esp + 0x30]
fld dword [esp + 0x74]
fstp qword [esp + 0x28]
fld dword [esp + 0x78]
fstp qword [esp + 0x20]
fld dword [esp + 0x7c]
fstp qword [esp + 0x18]
fld dword [esp + 0x80]
fstp qword [esp + 0x10]
fld dword [esp + 0x84]
fstp qword [esp + 8]
fld dword [esp + 0x88]
fstp qword [esp]
call fcn.004db940
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
mov ecx, edi
mov eax, esi
call fcn.004dbc50
add esp, 0x60
push 0
mov ecx, esi
call fcn.004d8030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edx, str.Invalid_cHRM_white_point
call fcn.004d7820
push 0x18
mov ecx, esi
call fcn.004d8030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret