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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x668851
push eax
mov dword fs:[0], esp
sub esp, 0x4bc
push ebx
push ebp
mov ebp, dword [esp + 0x4d4]
mov eax, dword [ebp + 0x5b0]
push esi
mov esi, dword [eax + 0x1c]
push edi
push 0x200
call sub.MFC71.DLL_operator_new
add esp, 4
test eax, eax
je 0x4092c2
mov ecx, eax
mov edx, 0x10
mov byte [ecx], 0
add ecx, 0x20
dec edx
jne 0x4092b7
jmp 0x4092c4
xor eax, eax
xor ebx, ebx
test esi, esi
mov dword [0x691818], eax
mov dword [esp + 0x28], ebx
je 0x409310
xor edi, edi
cmp edi, 0x2000
jae 0x40930c
mov al, byte [esi + 0x18]
test al, al
jne 0x409305
mov ecx, dword [esi]
mov edx, dword [0x691818]
mov dword [esp + ebx*4 + 0xcc], ecx
mov ecx, dword [esi]
add edx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4092f7
inc ebx
add edi, 0x20
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4092d5
mov dword [esp + 0x28], ebx
mov al, byte [ebp + 0x5c8]
test al, al
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_char_const__]
je 0x409419
lea esi, [ebp + 0xb54]
test esi, esi
jne 0x409332
xor eax, eax
jmp 0x409334
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x34]
call edi
lea eax, [esp + 0x30]
xor ebx, ebx
push eax
mov ecx, 0x691834
mov dword [esp + 0x4d8], ebx
call dword [sym.imp.CC_def.dll_public:_int___thiscall_CCannonProfileSupport::Init_class_AFilePath_const__]
test eax, eax
je 0x409404
push str.TempCannonICC
push str.Temp
call dword [sym.imp.MSVCR71.dll__tempnam]
add esp, 8
push eax
lea ecx, [esp + 0x1c]
call edi
push eax
mov ecx, 0x691820
mov byte [esp + 0x4d8], 1
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AFilePath_const__]
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4d4], bl
call edi
push 0x691820
mov ecx, 0x691834
call dword [sym.imp.CC_def.dll_public:_int___thiscall_CCannonProfileSupport::ConvertToStandardICC_class_AFilePath_const__]
test eax, eax
jne 0x4093d4
push str.Unsupported_cannon_profile__r_n
call fcn.004167d0
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x4d4], 0xffffffff
call edi
jmp 0x409bc3
mov ecx, dword [0x691820]
mov eax, dword [esi]
cmp ecx, eax
mov edi, ecx
je 0x4093f8
cmp eax, ebx
je 0x4093f0
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
push edi
mov ecx, esi
call fcn.004032e0
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_char_const__]
mov dword [ebp + 0x5cc], ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x4d4], 0xffffffff
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
mov esi, dword [ebp + 0x5c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x58], edx
mov edx, dword [ebp + 0x70]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x78], eax
mov dword [esp + 0x54], esi
mov esi, dword [ebp + 0x6c]
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0x74]
mov dword [esp + 0x40], edx
lea eax, [esp + 0x6c]
lea edx, [esp + 0x3c]
mov ebx, 4
mov dword [esp + 0x80], eax
mov dword [esp + 0x3c], esi
mov esi, dword [ebp + 0x7c]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x84]
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 0x80]
lea eax, [ebp + 0xb4c]
test eax, eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
je 0x4094ae
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x28]
call edi
lea eax, [ebp + 0xb48]
test eax, eax
mov dword [esp + 0x4d4], 2
je 0x4094cc
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x20]
call edi
lea eax, [ebp + 0xb50]
test eax, eax
mov byte [esp + 0x4d4], 3
je 0x4094e7
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x24]
call edi
lea eax, [ebp + 0xb58]
test eax, eax
mov byte [esp + 0x4d4], 4
je 0x409502
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
call edi
mov esi, dword [ebp + 0xb70]
test esi, esi
je 0x409544
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409518
sub eax, edx
inc eax
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x409534
mov edx, dword [esp + 0x10]
jmp 0x40954a
xor edx, edx
mov dword [esp + 0x10], edx
mov bl, 6
mov eax, edx
mov byte [esp + 0x4d4], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409558
sub eax, esi
lea eax, [eax + edx - 1]
cmp eax, edx
jb 0x409581
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x409581
cmp cl, 0x2f
je 0x409581
dec eax
cmp eax, edx
jae 0x409570
lea esi, [eax + 1]
push 0x2e
push esi
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
test eax, eax
je 0x409598
sub eax, esi
jmp 0x4095a9
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4095a0
sub eax, edx
cmp eax, 0x1c
jle 0x4095b3
mov eax, 0x1c
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dl, byte [0x66bed4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [str..icc]
lea eax, [esp + eax + 0x84]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x14]
call fcn.00403190
mov al, byte [ebp + 0x5c9]
test al, al
je 0x4096ae
mov ecx, dword [esp + 0x4e0]
test ecx, ecx
je 0x4096ae
mov edx, dword [ecx]
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
call dword [edx + 0x30]
test eax, eax
je 0x4096ae
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.ICCommon.dll_class_CProfileClass___cdecl_GetProfileClass_char_const___int_]
add esp, 0xc
mov esi, dword [sym.imp.ICCommon.dll_public:_int___thiscall_CProfileClass::ValidateProfileUsingColorSpace_int_]
push 0x10001
lea ecx, [esp + 0x88]
mov byte [esp + 0x4d8], 7
call esi
test eax, eax
mov edi, dword [reloc.FSUTIL.dll___4AFilePath__QAEAAV0_PBD_Z]
je 0x40966d
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call edi
push 0x10002
lea ecx, [esp + 0x88]
call esi
test eax, eax
je 0x40968a
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
call edi
push 0x1000b
lea ecx, [esp + 0x88]
call esi
test eax, eax
je 0x4096a7
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
call edi
mov byte [esp + 0x4d4], bl
call dword [sym.imp.SACMSMgr.dll_public:_static_class_CSACMSMgr____cdecl_CSACMSMgr::GetInstance_void_]
test eax, eax
mov dword [0x69180c], eax
je 0x409b63
mov ecx, eax
call dword [sym.imp.SACMSMgr.dll_public:_int___thiscall_CSACMSMgr::GetNumCMS_void_const]
test eax, eax
jle 0x409b63
lea esi, [ebp + 0xb54]
test esi, esi
jne 0x4096df
xor eax, eax
jmp 0x4096e1
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_char_const__]
mov eax, dword [esi]
test eax, eax
mov byte [esp + 0x4d4], 8
je 0x40975a
cmp byte [eax], 0
je 0x40975a
lea ecx, [esp + 0x14]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AFilePath::exists_void_const]
test eax, eax
je 0x40975a
lea ecx, [esp + 0x14]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AFilePath::isDirectory_void_const]
test eax, eax
jne 0x40975a
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.FSUTIL.dll_public:_class_AString___thiscall_AFilePath::GetFullPath_void_]
mov ebx, dword [eax]
mov edi, dword [0x69180c]
mov byte [esp + 0x4d4], 9
call fcn.00408800
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [esp + 0x18]
mov dword [0x691810], eax
mov byte [esp + 0x4d4], 8
call edi
jmp 0x40977c
lea ecx, [esp + 0x14]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetExecutableDir_void_]
mov edi, dword [0x69180c]
xor ebx, ebx
call fcn.00408800
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov dword [0x691810], eax
mov eax, dword [0x691810]
test eax, eax
jne 0x4097f2
push str.Cant_find_the_specified_CMS__r_n
call fcn.004167d0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d4], 6
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4097b2
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d4], 4
call edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d4], 3
call edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4d4], 2
call edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x4d4], 0xffffffff
call edi
jmp 0x409bc3
lea ecx, [esp + 0xa8]
call dword [sym.imp.CC_def.dll_public:_void___thiscall_CombinationData::constructor_void_]
lea ecx, [esp + 0xa8]
push ecx
push ebp
mov byte [esp + 0x4dc], 0xa
call fcn.0040df00
add esp, 8
lea ecx, [esp + 0x34]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea edx, [esp + 0x18]
push ebp
push edx
mov byte [esp + 0x4dc], 0xb
call fcn.0040d3c0
add esp, 8
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x4d8], 0xc
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AFilePath_const__]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4d4], 0xb
call edi
mov eax, dword [ebp + 0xe6c]
xor esi, esi
test eax, eax
jne 0x409883
mov eax, dword [ebp + 0xe74]
test eax, eax
jne 0x409883
mov eax, dword [ebp + 0xe70]
test eax, eax
jne 0x409883
mov eax, dword [ebp + 0xe68]
test eax, eax
je 0x4098e3
push 0x2e
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x4d4], 0xd
je 0x4098a7
mov ecx, eax
call dword [sym.imp.CC_def.dll_public:_void___thiscall_ColorUItype::constructor_void_]
jmp 0x4098a9
xor eax, eax
test eax, eax
mov byte [esp + 0x4d4], 0xb
mov esi, eax
je 0x4098e3
mov cx, word [ebp + 0xe68]
mov word [eax + 0x24], cx
mov dx, word [ebp + 0xe74]
mov word [eax + 0x2c], dx
mov cx, word [ebp + 0xe70]
mov word [eax + 0x2a], cx
mov dx, word [ebp + 0xe6c]
mov word [eax + 0x26], dx
xor edx, edx
mov dl, byte [ebp + 0xe4d]
push esi
lea ebx, [ebp + 0xbfc]
mov ecx, dword [0x691810]
mov eax, dword [ecx]
push edx
xor edx, edx
mov dl, byte [ebp + 0xc3c]
push edx
push ebx
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0xbc]
push edx
mov edx, dword [0x691818]
push edx
mov edx, dword [ebp + 0x5cc]
push edx
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x78]
push edx
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x98]
push edx
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x60]
push edx
mov dl, byte [ebp + 0x5c8]
test dl, dl
sete dl
push edx
mov edx, dword [esp + 0x70]
push edx
lea edx, [esp + 0x118]
push edx
call dword [eax + 0x14]
test esi, esi
mov dword [0x691814], eax
je 0x40997e
push esi
call sub.MFC71.DLL_operator_delete
add esp, 4
mov eax, dword [0x691814]
test eax, eax
jne 0x409a1b
push str.Init_CCModule_Error__r_n
call fcn.004167d0
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x4d4], 0xa
call edi
lea ecx, [esp + 0xa8]
mov byte [esp + 0x4d4], 8
call dword [sym.imp.CC_def.dll_public:_void___thiscall_CombinationData::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d4], 6
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4099db
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d4], 4
call edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d4], 3
call edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4d4], 2
call edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x4d4], 0xffffffff
call edi
jmp 0x409bc3
lea eax, [ebp + 0xb94]
test eax, eax
je 0x409a27
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_char_const__]
mov ecx, dword [0x691818]
mov edx, dword [ebp + 0x5c0]
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, dword [0x691814]
push edx
push ebx
mov byte [esp + 0x4e4], 0xe
call dword [sym.imp.CC_def.dll_public:_void___thiscall_CColorLink::InitInkLimitsAndDensityCurve_float_const___int__class_CInkOrder_const___class_AFilePath__]
lea ecx, [esp + 0x14]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AFilePath::exists_void_const]
test eax, eax
je 0x409ab2
mov al, byte [ebp + 0x5c8]
test al, al
je 0x409ab2
add ebp, 0xb68
push ebp
lea ecx, [esp + 0x1c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_class_AString_const__]
mov ecx, dword [0x691814]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0xd4]
push eax
mov byte [esp + 0x4e0], 0xf
call dword [edx + 0x34]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4d4], 0xe
call edi
mov eax, dword [esp + 0x28]
mov ecx, dword [0x691814]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0xd0]
push eax
call dword [edx + 0x4c]
push eax
call fcn.00408970
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0x4d4], 0xb
call edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x4d4], 0xa
call edi
lea ecx, [esp + 0xa8]
mov byte [esp + 0x4d4], 8
call dword [sym.imp.CC_def.dll_public:_void___thiscall_CombinationData::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d4], 6
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409b24
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d4], 4
call edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d4], 3
call edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4d4], 2
call edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x4d4], 0xffffffff
call edi
mov al, 1
jmp 0x409bc5
push 0x66be80
call fcn.004167d0
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x409b82
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov esi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d4], 4
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d4], 3
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4d4], 2
call esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x4d4], 0xffffffff
call esi
xor al, al
mov ecx, dword [esp + 0x4cc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c8
ret