Function at 0x1001d1c0
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 + 0x24], eax
mov eax, dword [ebp + 0x30]
mov esi, eax
and esi, 0x200
jne 0x1001d380
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx]
mov dword [esp + 0x1c], edi
test ah, 0x10
je 0x1001d20c
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x1001d3b0
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
call sym.__cmsFormatterIsFloat
test eax, eax
je 0x1001d368
or dword [ebp + 0x30], 0x40
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1001d2f0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x1001d2f0
mov dword [esp], eax
call sym._cmsGetColorSpace
mov dword [esp + 0x2c], eax
mov edi, eax
jmp 0x1001d2af
cmp edi, 0x58595a20
mov dword [esp], ebx
setne dl
cmp edi, 0x4c616220
setne cl
test dl, cl
jne 0x1001d320
cmp eax, 0x6c696e6b
je 0x1001d320
call sym._cmsGetPCS
mov dword [esp], ebx
mov dword [esp + 0x28], eax
call sym._cmsGetColorSpace
mov edx, dword [esp + 0x28]
mov edi, eax
lea eax, [esi + 1]
mov ecx, eax
test esi, esi
je 0x1001d344
mov edx, dword [esp + 0x2c]
cmp ecx, dword [ebp + 0xc]
jae 0x1001d760
mov dword [esp + 0x2c], edx
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x1001d2f0
mov dword [esp], ebx
call sym._cmsGetDeviceClass
cmp eax, 0x6e6d636c
jne 0x1001d250
cmp dword [ebp + 0xc], 1
mov dword [esp], ebx
je 0x1001d350
call sym._cmsGetPCS
mov edi, eax
lea eax, [esi + 1]
mov ecx, eax
test esi, esi
jne 0x1001d29c
mov edx, 0x31434c52
jmp 0x1001d2a9
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], ebx
mov dword [esp + 0x28], eax
call sym._cmsGetPCS
mov edx, dword [esp + 0x28]
mov edi, eax
lea eax, [esi + 1]
mov ecx, eax
test esi, esi
jne 0x1001d29c
mov ecx, 1
jmp 0x1001d2a0
call sym._cmsGetColorSpace
mov edi, eax
test esi, esi
je 0x1001d3c0
lea eax, [esi + 1]
mov ecx, eax
jmp 0x1001d29c
mov eax, dword [ebp + 0x2c]
mov dword [esp], eax
call sym.__cmsFormatterIsFloat
test eax, eax
jne 0x1001d21f
jmp 0x1001d223
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 0x1001d20c
mov ebx, 0x31434c52
mov edx, dword [ebp + 0x28]
mov eax, ebx
call sym._IsProperColorSpace
test eax, eax
je 0x1001d660
mov edx, dword [ebp + 0x2c]
mov eax, edi
call sym._IsProperColorSpace
test eax, eax
je 0x1001d690
mov eax, dword [ebp + 0x30]
cmp ebx, 0x52474220
je 0x1001d5f0
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 0x1001d738
mov dword [esp], ebx
call sym._cmsChannelsOfColorSpace
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call sym._cmsPipelineInputChannels
cmp dword [esp + 0x2c], eax
jne 0x1001d5c0
mov dword [esp], edi
call sym._cmsChannelsOfColorSpace
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call sym._cmsPipelineOutputChannels
cmp dword [esp + 0x2c], eax
jne 0x1001d5c0
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 0x1001d30d
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], edi
mov eax, dword [esp + 0x24]
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 0x1001d504
test byte [ebp + 0x31], 0x10
jne 0x1001d770
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 0x1001d710
mov eax, dword [ebx]
mov dword [esp], eax
call sym._cmsGetDeviceClass
cmp eax, 0x6c696e6b
je 0x1001d6a0
mov dword [esp + 4], 0x636c7274
mov eax, dword [ebx]
mov dword [esp], eax
call sym._cmsIsTag
test eax, eax
jne 0x1001d7b0
mov eax, dword [ebp + 0x30]
test al, 0x80
jne 0x1001d6e0
mov dword [esi + 0xa8], 0
test al, 0x40
jne 0x1001d30d
lea ebx, [esi + 0x1c]
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], 0
xor edi, edi
and ecx, 0xfffffffc
mov edx, ebx
mov dword [ebx + 0x1c], 0
xor eax, eax
sub edx, ecx
add edx, 0x20
and edx, 0xfffffffc
mov dword [ecx + eax], edi
add eax, 4
cmp eax, edx
jb 0x1001d592
mov eax, dword [esi + 0x60]
lea ecx, [esi + 0x3c]
test eax, eax
je 0x1001d7bd
mov edx, ebx
mov eax, esi
call sym._TransformOnePixelWithGamutCheck
jmp 0x1001d30d
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 edx, dword [ebp + 0x28]
and edx, 7
cmp edx, 2
jne 0x1001d3f8
test ah, 1
jne 0x1001d3f8
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 + 0x2c]
movsd xmm0, qword [esp + 0x2c]
comisd xmm0, xmmword [0x10046f50]
jbe 0x1001d3f8
movsd xmm1, qword [0x10046f58]
comisd xmm1, xmm0
jbe 0x1001d3f8
or ah, 1
mov dword [ebp + 0x30], eax
jmp 0x1001d3f8
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 0x1001d668
mov dword [esp + 4], 0x636c6f74
mov eax, dword [ebx]
mov dword [esp], eax
call sym._cmsIsTag
test eax, eax
je 0x1001d550
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 0x1001d550
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 0x1001d565
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 0x1001d521
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 0x1001d30d
mov ebx, edx
jmp 0x1001d3c5
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 0x1001d504
mov dword [esp + 4], 0x636c7274
jmp 0x1001d6c2
mov eax, dword [esi + 0x5c]
mov edx, dword [eax + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [esp + 8], edx
call dword [eax + 0x10]
jmp 0x1001d30d