Function at 0x10028030
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 0x10028078
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 0x100281d0
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 0x1002812f
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 0x10028458
mov eax, dword [edi + 0x30]
test eax, eax
je 0x10028210
cmp eax, 0x6e6d636c
je 0x10028210
jbe 0x100281f8
cmp eax, 0x73636e72
je 0x10028210
cmp eax, 0x73706163
je 0x10028210
cmp eax, 0x70727472
je 0x10028210
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 0x1002806a
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 0x10028210
cmp eax, 0x6d6e7472
je 0x10028210
cmp eax, 0x61627374
jne 0x100281a3
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 0x1002806a
mov eax, dword [esp + 0x28]
cmp eax, 0x64
ja 0x10028410
mov dword [edi + 0x6c], 0
test eax, eax
je 0x100284b0
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 0x100282ca
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x28], eax
jbe 0x10028488
lea eax, [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.__cmsReadUInt32Number
test eax, eax
je 0x1002806a
lea eax, [esp + 0x30]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.__cmsReadUInt32Number
test eax, eax
je 0x1002806a
lea eax, [esp + 0x34]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.__cmsReadUInt32Number
test eax, eax
je 0x1002806a
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x100282b8
mov edx, dword [esp + 0x30]
test edx, edx
je 0x100282b8
mov eax, ecx
add eax, edx
jb 0x100282b8
cmp dword [esp + 0x1c], eax
jb 0x100282b8
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 0x10028448
mov dword [esp + 0x20], edi
xor ebx, ebx
jmp 0x10028370
mov eax, dword [esi + 0x6c]
inc ebx
cmp ebx, eax
jae 0x10028440
mov edx, dword [esp + 0x30]
cmp dword [esi + ebx*4 + 0x520], edx
jne 0x10028360
mov eax, dword [esp + 0x34]
cmp dword [esi + ebx*4 + 0x390], eax
jne 0x10028360
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 0x10028360
test edi, edi
je 0x10028360
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x18], edx
cmp edx, dword [edi + 4]
jne 0x10028363
mov edx, dword [edi]
cmp dword [ecx], edx
jne 0x10028363
mov edx, dword [esp + 0x18]
test edx, edx
je 0x10028471
mov dword [esp + 0x10], eax
xor edx, edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
jmp 0x100283f5
inc edx
cmp eax, edx
je 0x10028469
mov ebx, dword [edi + edx*4 + 8]
cmp dword [ecx + edx*4 + 8], ebx
je 0x100283f0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jmp 0x10028363
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 0x1002806c
mov edi, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esi + 0x6c], eax
jmp 0x100282b8
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Unsupported_profile_version_0x_x
jmp 0x100281af
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + ebx*4 + 0x70]
mov dword [esi + eax*4 + 0x200], edx
jmp 0x10028363
mov ecx, dword [esi + 0x6c]
mov edi, esi
test ecx, ecx
je 0x100284b0
xor edx, edx
xor eax, eax
lea esi, [esi]
cmp eax, edx
je 0x100284a6
mov ebx, dword [edi + eax*4 + 0x70]
cmp dword [edi + edx*4 + 0x70], ebx
je 0x100284c0
inc eax
cmp eax, ecx
jne 0x10028498
inc edx
cmp edx, ecx
jne 0x10028493
mov eax, 1
jmp 0x1002806c
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 0x1002806c