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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x41caa230]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x218], eax
mov eax, dword [esi + 0x100]
test eax, eax
push edi
je 0x41c8ff2e
mov eax, str.___Indexed
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c8fe43
sub eax, edx
mov dword [esp + 0x10], eax
movzx eax, word [esi + 0x6c]
dec eax
je 0x41c8fe8b
dec eax
je 0x41c8fe84
dec eax
je 0x41c8fe7d
mov eax, dword [ebp + 8]
mov dword [eax], 1
xor eax, eax
mov ecx, dword [esp + 0x21c]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, str._DeviceCMYK
jmp 0x41c8fe90
mov eax, str._DeviceGray
jmp 0x41c8fe90
mov eax, 0x41c9f7e8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c8fe93
movzx ecx, word [esi + 0x104]
push ecx
sub eax, edx
push 0x41c9efc8
lea edx, [esp + 0x120]
push 0x100
push edx
mov dword [esp + 0x24], eax
call fcn.41c4f400
lea eax, [esp + 0x128]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c8fed0
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x100]
sub eax, edx
push ebx
mov edi, eax
call fcn.41c85280
test eax, eax
je 0x41c901a1
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add ecx, edi
add ecx, esi
add ecx, eax
mov eax, 0x41c9f890
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41c8ff08
sub eax, esi
mov dword [ebx], 0
add eax, ecx
mov ecx, dword [esp + 0x21c]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ax, word [esi + 0x6c]
cmp ax, 2
je 0x41c901be
cmp ax, 1
je 0x41c901b8
cmp ax, 3
je 0x41c901b8
cmp ax, 5
je 0x41c8ff60
cmp ax, 4
jne 0x41c90198
push 0x41c9f83c
call fcn.41c57810
fld qword [esi + 0x80]
sub esp, 0x14
fstp qword [esp + 0x10]
lea edx, [esp + 0x30]
fld qword [esi + 0x78]
mov edi, eax
fstp qword [esp + 8]
fld qword [esi + 0x70]
fstp qword [esp]
push 3
push 0x100
push edx
call fcn.41c8c320
lea eax, [esp + 0x3c]
push eax
push str._n_WhitePoint___s_
lea ecx, [esp + 0x144]
push 0x100
push ecx
call fcn.41c4f400
lea edx, [esp + 0x14c]
push edx
call fcn.41c57810
fld qword [esi + 0x98]
add esp, 0x20
fstp qword [esp + 0x10]
add edi, eax
fld qword [esi + 0x90]
lea eax, [esp + 0x30]
fstp qword [esp + 8]
fld qword [esi + 0x88]
fstp qword [esp]
push 3
push 0x100
push eax
call fcn.41c8c320
lea ecx, [esp + 0x3c]
push ecx
push str._n_BlackPoint___s_
lea edx, [esp + 0x144]
push 0x100
push edx
call fcn.41c4f400
lea eax, [esp + 0x14c]
push eax
call fcn.41c57810
fld qword [esi + 0xb0]
add esp, 0x38
add edi, eax
cmp word [esi + 0x6c], 5
lea ecx, [esp + 0x18]
jne 0x41c9007b
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 + 0x3c]
push edx
mov ebx, str._n_Gamma___s_
push ebx
lea eax, [esp + 0x144]
push 0x100
push eax
call fcn.41c4f400
add esp, 0x34
jmp 0x41c900c0
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 + 0x2c]
push edx
mov ebx, str._n_Gamma__s
push ebx
lea eax, [esp + 0x134]
push 0x100
push eax
call fcn.41c4f400
add esp, 0x24
push ebx
call fcn.41c57810
add esp, 4
add edi, eax
cmp word [esi + 0x6c], 5
jne 0x41c90174
fld qword [esi + 0xf8]
sub esp, 0x48
fstp qword [esp + 0x40]
lea ecx, [esp + 0x60]
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 ecx
call fcn.41c8c320
lea edx, [esp + 0x6c]
push edx
push str._n_BlackPoint___s_
lea eax, [esp + 0x174]
push 0x100
push eax
call fcn.41c4f400
lea ecx, [esp + 0x17c]
add esp, 0x64
push ecx
call fcn.41c57810
add esp, 4
mov edi, eax
push str._n____n_
call fcn.41c57810
add esp, 4
add eax, edi
mov ecx, dword [esp + 0x21c]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov dword [edx], 1
xor eax, eax
mov ecx, dword [esp + 0x21c]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ax, 2
jne 0x41c901c5
mov eax, str._DeviceGray
jmp 0x41c901d5
cmp ax, 1
mov eax, 0x41c9f7e8
je 0x41c901d5
mov eax, str._DeviceCMYK
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c901d8
mov ecx, dword [esp + 0x21c]
sub eax, edx
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4