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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x41caa230]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [esp + 0x214], eax
mov eax, dword [esi]
push edi
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41c906c6
mov ebx, dword [ebp + 0xc]
inc eax
cmp ebx, eax
jb 0x41c906c6
mov eax, dword [esi + 0x100]
test eax, eax
je 0x41c90373
push str.___Indexed
push ebx
push ecx
call fcn.41c4e690
mov eax, str.___Indexed
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c90262
movzx ecx, word [esi + 0x6c]
sub eax, edx
dec ecx
mov dword [esp + 0xc], eax
je 0x41c90286
sub ecx, 2
jne 0x41c9065a
mov edi, str._DeviceCMYK
jmp 0x41c9028b
mov edi, 0x41c9f7e8
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, eax
push edi
push ecx
add eax, edx
push eax
call fcn.41c4e690
add esp, 0xc
test edi, edi
jne 0x41c902a7
xor eax, eax
jmp 0x41c902b9
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c902b0
sub eax, edx
movzx edx, word [esi + 0x104]
mov ecx, dword [esp + 0xc]
push edx
push 0x41c9efc8
lea edi, [eax + ecx]
lea eax, [esp + 0x18]
push 0x100
push eax
call fcn.41c4f400
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x20]
push ecx
mov edx, ebx
sub edx, edi
push edx
lea ecx, [edi + eax]
push ecx
call fcn.41c4e690
lea eax, [esp + 0x2c]
add esp, 0x1c
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41c90300
mov edx, dword [ebp + 0x10]
sub eax, ecx
mov ecx, dword [ebp + 8]
add edi, eax
push edx
mov eax, ebx
sub eax, edi
lea edx, [edi + ecx]
mov ecx, dword [esi + 0x100]
push eax
push edx
call fcn.41c852d0
test eax, eax
je 0x41c906cc
add edi, eax
mov eax, dword [ebp + 8]
push 0x41c9f890
sub ebx, edi
lea ecx, [edi + eax]
push ebx
push ecx
call fcn.41c4e690
push 0x41c9f890
call fcn.41c57810
mov edx, dword [ebp + 0x10]
add esp, 0x10
add edi, eax
mov dword [edx], 0
mov eax, edi
mov ecx, dword [esp + 0x214]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ax, word [esi + 0x6c]
cmp ax, 2
je 0x41c9067d
cmp ax, 1
je 0x41c90677
cmp ax, 3
je 0x41c90677
cmp ax, 5
jne 0x41c903a2
mov edi, str.___n_CalRGB
jmp 0x41c903b1
cmp ax, 4
jne 0x41c9065a
mov edi, str.___n_CalGray
mov eax, dword [ebp + 8]
push edi
push ebx
push eax
call fcn.41c4e690
push edi
call fcn.41c57810
mov edx, dword [ebp + 8]
mov edi, eax
mov ecx, ebx
push 0x41c9f83c
sub ecx, edi
push ecx
lea eax, [edi + edx]
push eax
call fcn.41c4e690
push 0x41c9f83c
call fcn.41c57810
fld qword [esi + 0x80]
add esp, 8
fstp qword [esp + 0x10]
lea ecx, [esp + 0x128]
fld qword [esi + 0x78]
add edi, eax
fstp qword [esp + 8]
fld qword [esi + 0x70]
fstp qword [esp]
push 3
push 0x100
push ecx
call fcn.41c8c320
lea edx, [esp + 0x134]
push edx
push str._n_WhitePoint___s_
lea eax, [esp + 0x3c]
push 0x100
push eax
call fcn.41c4f400
lea ecx, [esp + 0x44]
push ecx
call fcn.41c57810
fld qword [esi + 0x98]
add esp, 0x20
fstp qword [esp + 0x10]
lea edx, [esp + 0x128]
fld qword [esi + 0x90]
add edi, eax
fstp qword [esp + 8]
fld qword [esi + 0x88]
fstp qword [esp]
push 3
push 0x100
push edx
call fcn.41c8c320
lea eax, [esp + 0x134]
push eax
push str._n_BlackPoint___s_
lea ecx, [esp + 0x3c]
push 0x100
push ecx
call fcn.41c4f400
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x44]
push edx
mov eax, ebx
sub eax, edi
push eax
lea edx, [edi + ecx]
push edx
call fcn.41c4e690
lea eax, [esp + 0x50]
add esp, 0x40
push eax
call fcn.41c57810
fld qword [esi + 0xb0]
add esp, 4
add edi, eax
cmp word [esi + 0x6c], 5
lea ecx, [esp + 0x110]
jne 0x41c90510
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [esi + 0xa8]
fstp qword [esp + 8]
fld qword [esi + 0xa0]
fstp qword [esp]
push 3
push 0x100
push ecx
call fcn.41c8c320
lea edx, [esp + 0x134]
push edx
push str._n_Gamma___s_
lea eax, [esp + 0x3c]
push 0x100
push eax
call fcn.41c4f400
add esp, 0x34
jmp 0x41c90554
fadd qword [esi + 0xa8]
sub esp, 8
fadd qword [esi + 0xa0]
fmul qword [0x41c9d750]
fstp qword [esp]
push 1
push 0x100
push ecx
call fcn.41c8c320
lea edx, [esp + 0x124]
push edx
push str._n_Gamma__s
lea eax, [esp + 0x2c]
push 0x100
push eax
call fcn.41c4f400
add esp, 0x24
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
mov edx, ebx
sub edx, edi
push edx
lea ecx, [edi + eax]
push ecx
call fcn.41c4e690
lea edx, [esp + 0x1c]
push edx
call fcn.41c57810
add esp, 0x10
add edi, eax
cmp word [esi + 0x6c], 5
jne 0x41c90622
fld qword [esi + 0xf8]
sub esp, 0x48
fstp qword [esp + 0x40]
lea eax, [esp + 0x158]
fld qword [esi + 0xf0]
fstp qword [esp + 0x38]
fld qword [esi + 0xe8]
fstp qword [esp + 0x30]
fld qword [esi + 0xe0]
fstp qword [esp + 0x28]
fld qword [esi + 0xd8]
fstp qword [esp + 0x20]
fld qword [esi + 0xd0]
fstp qword [esp + 0x18]
fld qword [esi + 0xc8]
fstp qword [esp + 0x10]
fld qword [esi + 0xc0]
fstp qword [esp + 8]
fld qword [esi + 0xb8]
fstp qword [esp]
push 9
push 0x100
push eax
call fcn.41c8c320
lea ecx, [esp + 0x164]
push ecx
push str._n_BlackPoint___s_
lea edx, [esp + 0x6c]
push 0x100
push edx
call fcn.41c4f400
lea eax, [esp + 0x74]
add esp, 0x64
push eax
call fcn.41c57810
add esp, 4
add edi, eax
mov ecx, dword [ebp + 8]
push str._n____n_
sub ebx, edi
lea edx, [edi + ecx]
push ebx
push edx
call fcn.41c4e690
push str._n____n_
call fcn.41c57810
add esp, 0x10
add eax, edi
mov ecx, dword [esp + 0x214]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi], 1
xor eax, eax
mov ecx, dword [esp + 0x214]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ax, 2
jne 0x41c90684
mov esi, str._DeviceGray
jmp 0x41c90694
cmp ax, 1
mov esi, 0x41c9f7e8
je 0x41c90694
mov esi, str._DeviceCMYK
push esi
push ebx
push ecx
call fcn.41c4e690
add esp, 0xc
test esi, esi
je 0x41c906cc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c906a8
sub eax, edx
mov ecx, dword [esp + 0x214]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi], 5
mov ecx, dword [esp + 0x214]
xor eax, eax
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc