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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [ebp + 0xc]
lea eax, [eax*4 - 4]
mov dword [esp + 0x20], eax
add eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
mov esi, eax
and esi, 0x200
jne 0x1002e6c0
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
mov dword [esp + 0x1c], edx
test ah, 0x10
je 0x1002e34c
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x1002e6f0
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
call sym.__cmsFormatterIsFloat
test eax, eax
je 0x1002e6a0
or dword [ebp + 0x30], 0x40
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1002e430
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x1002e430
mov dword [esp], eax
call sym._cmsGetColorSpace
mov dword [esp + 0x30], eax
mov ebx, eax
jmp 0x1002e3e4
cmp ebx, 0x58595a20
mov dword [esp], edi
setne cl
cmp ebx, 0x4c616220
setne dl
test cl, dl
jne 0x1002e460
cmp eax, 0x6c696e6b
je 0x1002e460
call sym._cmsGetPCS
mov dword [esp], edi
mov dword [esp + 0x24], eax
call sym._cmsGetColorSpace
mov ebx, eax
mov eax, dword [esp + 0x24]
test esi, esi
cmovne eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
inc esi
cmp dword [ebp + 0xc], esi
jbe 0x1002e497
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x1002e430
mov dword [esp], edi
call sym._cmsGetDeviceClass
cmp eax, 0x6e6d636c
jne 0x1002e390
cmp dword [ebp + 0xc], 1
mov dword [esp], edi
je 0x1002e480
call sym._cmsGetPCS
mov ebx, eax
test esi, esi
jne 0x1002e3da
mov eax, dword [ebp + 0x10]
mov esi, 1
mov dword [esp + 0x30], 0x31434c52
mov edi, dword [eax + esi*4]
test edi, edi
jne 0x1002e3ee
lea esi, [esi]
nop
mov eax, dword [ebp + 8]
mov dword [esp + 8], str.NULL_input_profiles_on_transform
xor esi, esi
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._cmsSignalError
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._cmsGetColorSpace
mov dword [esp], edi
mov dword [esp + 0x24], eax
call sym._cmsGetPCS
mov ebx, eax
jmp 0x1002e3cb
call sym._cmsGetColorSpace
test esi, esi
mov ebx, eax
mov eax, 0x31434c52
cmovne eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x30]
call sym._IsProperColorSpace
test eax, eax
je 0x1002e770
mov edx, dword [ebp + 0x2c]
mov eax, ebx
call sym._IsProperColorSpace
test eax, eax
je 0x1002e7a0
cmp dword [esp + 0x30], 0x52474220
mov eax, dword [ebp + 0x30]
je 0x1002e700
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__cmsLinkProfiles
mov esi, eax
test eax, eax
je 0x1002e840
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sym._cmsChannelsOfColorSpace
mov dword [esp], esi
mov edi, eax
call sym._cmsPipelineInputChannels
cmp edi, eax
jne 0x1002e670
mov dword [esp], ebx
call sym._cmsChannelsOfColorSpace
mov dword [esp], esi
mov edi, eax
call sym._cmsPipelineOutputChannels
cmp edi, eax
jne 0x1002e670
lea eax, [ebp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, esi
mov dword [esp + 8], eax
lea eax, [ebp + 0x2c]
mov dword [esp + 4], eax
lea eax, [ebp + 0x28]
mov dword [esp], eax
mov eax, dword [ebp + 8]
call sym._AllocEmptyTransform
mov esi, eax
test eax, eax
je 0x1002e44d
mov eax, dword [esp + 0x30]
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esi + 0xb8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x77747074
mov eax, dword [eax]
mov dword [esp], eax
call sym._cmsReadTag
mov edx, eax
lea eax, [esi + 0x78]
call sym._SetWhitePoint
mov ebx, dword [esp + 0x20]
add ebx, dword [ebp + 0x10]
mov dword [esp + 4], 0x77747074
mov eax, dword [ebx]
mov dword [esp], eax
call sym._cmsReadTag
mov edx, eax
lea eax, [esi + 0x90]
call sym._SetWhitePoint
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x1002e5da
test byte [ebp + 0x31], 0x10
jne 0x1002e860
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x636c7274
mov eax, dword [eax]
mov dword [esp], eax
call sym._cmsIsTag
test eax, eax
jne 0x1002e7f0
mov eax, dword [ebx]
mov dword [esp], eax
call sym._cmsGetDeviceClass
cmp eax, 0x6c696e6b
je 0x1002e7b0
mov dword [esp + 4], 0x636c7274
mov eax, dword [ebx]
mov dword [esp], eax
call sym._cmsIsTag
test eax, eax
jne 0x1002e89d
mov eax, dword [ebp + 0x30]
test al, 0x80
jne 0x1002e818
mov dword [esi + 0xa8], 0
and eax, 0x40
jne 0x1002e44d
lea edx, [esi + 0x1c]
mov ecx, 8
mov edi, edx
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x3c]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1002e8aa
mov eax, esi
call sym._TransformOnePixelWithGamutCheck
jmp 0x1002e44d
mov dword [esp], esi
xor esi, esi
call sym._cmsPipelineFree
mov eax, dword [ebp + 8]
mov dword [esp + 8], str.Channel_count_doesnt_match._Profile_is_corrupted
mov dword [esp + 4], 0xd
mov dword [esp], eax
call sym._cmsSignalError
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x2c]
mov dword [esp], eax
call sym.__cmsFormatterIsFloat
test eax, eax
jne 0x1002e35f
jmp 0x1002e363
lea eax, [ebp + 0x30]
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], eax
lea eax, [ebp + 0x2c]
mov dword [esp + 4], eax
lea eax, [ebp + 0x28]
mov dword [esp], eax
mov eax, dword [ebp + 8]
call sym._AllocEmptyTransform
lea esp, [ebp - 0xc]
mov esi, eax
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
and ah, 0xef
mov dword [ebp + 0x30], eax
jmp 0x1002e34c
mov edx, dword [ebp + 0x28]
and edx, 7
cmp edx, 2
jne 0x1002e4ce
test ah, 1
jne 0x1002e4ce
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x9999999a
mov dword [esp + 8], 0x3fb99999
mov eax, dword [eax]
mov dword [esp], eax
call sym._cmsDetectRGBProfileGamma
mov eax, dword [ebp + 0x30]
fstp qword [esp + 0x24]
movsd xmm0, qword [esp + 0x24]
comisd xmm0, xmmword [0x10043cc0]
jbe 0x1002e4ce
movsd xmm1, qword [0x10043cc8]
comisd xmm1, xmm0
jbe 0x1002e4ce
or ah, 1
mov dword [ebp + 0x30], eax
jmp 0x1002e4ce
mov dword [esp + 8], str.Wrong_input_color_space_on_transform
mov eax, dword [ebp + 8]
mov dword [esp + 4], 9
xor esi, esi
mov dword [esp], eax
call sym._cmsSignalError
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.Wrong_output_color_space_on_transform
jmp 0x1002e778
mov dword [esp + 4], 0x636c6f74
mov eax, dword [ebx]
mov dword [esp], eax
call sym._cmsIsTag
test eax, eax
je 0x1002e626
mov dword [esp + 4], 0x636c6f74
mov eax, dword [ebx]
mov dword [esp], eax
call sym._cmsReadTag
mov dword [esp], eax
call sym._cmsDupNamedColorList
mov dword [esi + 0x68], eax
jmp 0x1002e626
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x636c7274
mov eax, dword [eax]
mov dword [esp], eax
call sym._cmsReadTag
mov dword [esp], eax
call sym._cmsDupNamedColorList
mov dword [esi + 0x64], eax
jmp 0x1002e5f7
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__cmsCompileProfileSequence
mov dword [esi + 0xa8], eax
mov eax, dword [ebp + 0x30]
jmp 0x1002e63b
mov eax, dword [ebp + 8]
mov dword [esp + 8], str.Couldnt_link_the_profiles
mov dword [esp + 4], 0xd
mov dword [esp], eax
call sym._cmsSignalError
jmp 0x1002e44d
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__cmsCreateGamutCheckPipeline
mov dword [esi + 0x60], eax
jmp 0x1002e5da
mov dword [esp + 4], 0x636c7274
jmp 0x1002e7d2
mov eax, dword [esi + 0x5c]
mov ebx, dword [eax + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], ebx
call dword [eax + 0x10]
jmp 0x1002e44d