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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0xb8
mov edi, dword [ebp + 8]
lea eax, [esp + 0x38]
mov esi, dword [edi]
mov dword [esp + 0xc], 1
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [esi + 0x110]
cmp eax, 1
je 0x1000b808
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
cmp eax, 0x61637370
jne 0x1000b960
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov dword [edi + 0x58], eax
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [edi + 0x50]
mov dword [esp], eax
call sym.__cmsAdjustEndianess64
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
cmp dl, 9
jbe 0x1000b8bf
mov byte [esp + 0x2c], 9
movzx edx, dh
mov ecx, 0xffffff90
mov eax, edx
and edx, 0xf
and eax, 0xfffffff0
cmp al, 0x90
cmova eax, ecx
cmp dl, 9
mov ecx, 9
cmova edx, ecx
xor ebx, ebx
mov word [esp + 0x2e], bx
or eax, edx
mov byte [esp + 0x2d], al
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov dword [edi + 0x2c], eax
cmp eax, 0x5000000
ja 0x1000bbf0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x1000b9a0
cmp eax, 0x6e6d636c
je 0x1000b9a0
jbe 0x1000b988
cmp eax, 0x73636e72
je 0x1000b9a0
cmp eax, 0x73706163
je 0x1000b9a0
cmp eax, 0x70727472
je 0x1000b9a0
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Unsupported_device_class_0x_x
mov dword [esp + 4], 8
mov eax, dword [edi + 4]
mov dword [esp], eax
call sym._cmsSignalError
jmp 0x1000b7fa
mov dword [esp + 8], str.not_an_ICC_profile__invalid_signature
mov dword [esp + 4], 0xb
mov eax, dword [edi + 4]
mov dword [esp], eax
call sym._cmsSignalError
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x6c696e6b
je 0x1000b9a0
cmp eax, 0x6d6e7472
je 0x1000b9a0
cmp eax, 0x61627374
jne 0x1000b933
lea esi, [esi]
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sym.__cmsAdjustEndianess32
mov ebx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
lea eax, [edi + 8]
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call sym.__cmsDecodeDateTimeNumber
mov edx, dword [esp + 0x8c]
lea eax, [esp + 0x28]
mov dword [edi + 0x5c], edx
mov edx, dword [esp + 0x90]
mov dword [edi + 0x60], edx
mov edx, dword [esp + 0x94]
mov dword [edi + 0x64], edx
mov edx, dword [esp + 0x98]
mov dword [edi + 0x68], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.__cmsReadUInt32Number
test eax, eax
je 0x1000b7fa
mov eax, dword [esp + 0x28]
cmp eax, 0x64
ja 0x1000bba8
mov dword [edi + 0x6c], 0
test eax, eax
je 0x1000bc34
mov eax, dword [esp + 0x24]
mov dword [ebp + 8], edi
mov edi, esi
mov dword [esp + 0x24], 0
mov esi, dword [ebp + 8]
cmp eax, ebx
cmovbe ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x1000ba5b
add dword [esp + 0x24], 1
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x28], eax
jbe 0x1000bc08
lea eax, [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.__cmsReadUInt32Number
test eax, eax
je 0x1000b7fa
lea eax, [esp + 0x30]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.__cmsReadUInt32Number
test eax, eax
je 0x1000b7fa
lea eax, [esp + 0x34]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.__cmsReadUInt32Number
test eax, eax
je 0x1000b7fa
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1000ba48
mov edx, dword [esp + 0x30]
test edx, edx
je 0x1000ba48
mov eax, ecx
add eax, edx
jb 0x1000ba48
cmp eax, dword [esp + 0x1c]
ja 0x1000ba48
mov eax, dword [esi + 0x6c]
lea ebx, [esi + eax*4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x390], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x520], edx
test ecx, ecx
je 0x1000bbd8
mov dword [esp + 0x18], edi
xor ebx, ebx
jmp 0x1000bb02
mov eax, dword [esi + 0x6c]
add ebx, 1
cmp ebx, eax
jae 0x1000bbd0
mov edx, dword [esp + 0x30]
cmp dword [esi + ebx*4 + 0x520], edx
jne 0x1000baf0
mov eax, dword [esp + 0x34]
cmp dword [esi + ebx*4 + 0x390], eax
jne 0x1000baf0
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym.__cmsGetTagDescriptor
mov edi, eax
mov eax, dword [esi + ebx*4 + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym.__cmsGetTagDescriptor
mov ecx, eax
test eax, eax
je 0x1000baf0
test edi, edi
je 0x1000baf0
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x20], edx
cmp edx, dword [edi + 4]
jne 0x1000baf3
mov edx, dword [edi]
cmp dword [ecx], edx
jne 0x1000baf3
mov edx, dword [esp + 0x20]
test edx, edx
je 0x1000bc6a
mov dword [esp + 0x14], eax
xor edx, edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
jmp 0x1000bb8b
add edx, 1
cmp eax, edx
je 0x1000bc62
mov ebx, dword [edi + edx*4 + 8]
cmp dword [ecx + edx*4 + 8], ebx
je 0x1000bb80
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x1000baf3
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Too_many_tags___d_
mov dword [esp + 4], 2
mov eax, dword [edi + 4]
mov dword [esp], eax
call sym._cmsSignalError
xor eax, eax
jmp 0x1000b7fc
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add eax, 1
mov dword [esi + 0x6c], eax
jmp 0x1000ba48
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Unsupported_profile_version_0x_x
jmp 0x1000b93f
mov ecx, dword [esi + 0x6c]
mov edi, esi
test ecx, ecx
je 0x1000bc34
xor edx, edx
xor eax, eax
lea esi, [esi]
cmp eax, edx
je 0x1000bc26
mov ebx, dword [edi + eax*4 + 0x70]
cmp dword [edi + edx*4 + 0x70], ebx
je 0x1000bc40
add eax, 1
cmp eax, ecx
jne 0x1000bc18
add edx, 1
cmp edx, ecx
jne 0x1000bc13
mov eax, 1
jmp 0x1000b7fc
mov dword [esp + 8], str.Duplicate_tag_found
mov dword [esp + 4], 2
mov eax, dword [edi + 4]
mov dword [esp], eax
call sym._cmsSignalError
xor eax, eax
jmp 0x1000b7fc
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + ebx*4 + 0x70]
mov dword [esi + eax*4 + 0x200], edx
jmp 0x1000baf3