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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x30]
mov edi, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 8]
mov eax, dword [0x1043db14]
xor eax, ebp
mov dword [esp + 0x20], eax
bt esi, 9
jb 0x101568f6
mov ecx, dword [ebp + 0x18]
cmp dword [ebp + 0x20], 0
jne 0x10156767
mov eax, esi
and eax, 0x1000
je 0x10156767
and esi, 0xffffefff
mov dword [ebp + 0x30], esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
push edx
call fcn.101471fb
add esp, 4
test eax, eax
mov dword [esp + 0x14], edi
jne 0x10156798
push edi
call fcn.101471fb
add esp, 4
test eax, eax
je 0x1015693b
or esi, 0x40
mov dword [esp + 8], esi
mov dword [ebp + 0x30], esi
cmp dword [ebp + 0xc], 0
je 0x10156912
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x10156912
xor esi, esi
push eax
call fcn.1013e874
add esp, 4
mov ebx, eax
mov edi, dword [ebp + 0x10]
mov dword [esp], ebx
mov edi, dword [edi + esi*4]
cmp eax, 0x58595a20
setne bl
cmp eax, 0x4c616220
setne bh
test edi, edi
je 0x10156912
push edi
call fcn.1013e88d
add esp, 4
cmp eax, 0x6e6d636c
jne 0x10156804
mov ebx, 0x31434c52
cmp dword [ebp + 0xc], 2
jae 0x1015681f
jmp 0x10156832
and bl, bh
cmp eax, 0x6c696e6b
sete al
or al, bl
cmp al, 1
jne 0x10156827
push edi
call fcn.1013e874
add esp, 4
mov ebx, eax
push edi
call fcn.1013e85b
jmp 0x10156838
push edi
call fcn.1013e85b
add esp, 4
mov ebx, eax
push edi
call fcn.1013e874
add esp, 4
mov edi, dword [ebp + 0x10]
test esi, esi
mov ecx, dword [esp]
cmove ecx, ebx
mov ebx, ecx
inc esi
cmp dword [ebp + 0xc], esi
jne 0x101567c9
mov dword [esp + 4], eax
mov ecx, ebx
mov edx, dword [esp + 0xc]
call fcn.10156e85
test eax, eax
je 0x10156944
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x14]
call fcn.10156e85
test eax, eax
mov esi, dword [ebp + 8]
je 0x1015694d
mov dword [esp], ebx
cmp ebx, 0x52474220
jne 0x10156959
mov eax, dword [esp + 0xc]
and eax, 7
cmp eax, 2
mov ebx, dword [esp + 8]
jne 0x1015695d
mov eax, ebx
and eax, 0x100
jne 0x1015695d
push 0x3fb99999
push 0x9999999a
push dword [edi]
call fcn.10138658
add esp, 0xc
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x1015695d
movsd xmm1, qword [0x103183b0]
ucomisd xmm1, xmm0
jbe 0x1015695d
or ebx, 0x100
mov dword [ebp + 0x30], ebx
jmp 0x1015695d
lea eax, [ebp + 0x30]
lea esi, [ebp + 0x2c]
lea edi, [ebp + 0x28]
xor edx, edx
push eax
push esi
push edi
push 0
call fcn.10156b93
add esp, 0x10
mov ebx, eax
jmp 0x10156926
push str.NULL_input_profiles_on_transform
push 4
push dword [ebp + 8]
call fcn.10135d59
add esp, 0xc
xor ebx, ebx
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.102377e8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 8], esi
jmp 0x101567a2
push str.Wrong_input_color_space_on_transform
push 9
jmp 0x10156919
push str.Wrong_output_color_space_on_transform
push 9
jmp 0x10156adc
mov ebx, dword [esp + 8]
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push edi
mov eax, dword [ebp + 0x18]
push eax
push dword [ebp + 0xc]
push esi
call fcn.101343ab
add esp, 0x1c
test eax, eax
je 0x10156ad5
mov ebx, eax
push dword [esp]
call fcn.1014bbd0
add esp, 4
mov esi, eax
push ebx
call fcn.10142080
add esp, 4
cmp esi, eax
jne 0x10156ac0
push dword [esp + 4]
call fcn.1014bbd0
add esp, 4
mov esi, eax
push ebx
call fcn.1010321b
add esp, 4
cmp esi, eax
jne 0x10156ac0
lea eax, [ebp + 0x30]
lea esi, [ebp + 0x2c]
lea edi, [ebp + 0x28]
mov ecx, dword [ebp + 8]
mov edx, ebx
push eax
push esi
push edi
push dword [esp + 0x1c]
call fcn.10156b93
add esp, 0x10
test eax, eax
je 0x10156924
mov ebx, eax
mov eax, dword [esp]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0x70], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + edi*4 - 4]
mov dword [ebx + 0xb8], eax
mov esi, 0x77747074
push esi
mov edi, dword [ebp + 0x10]
push dword [edi]
call fcn.1013f0fb
add esp, 8
lea ecx, [ebx + 0x78]
mov edx, eax
call fcn.10156ebf
push esi
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 - 4]
call fcn.1013f0fb
add esp, 8
lea ecx, [ebx + 0x90]
mov edx, eax
call fcn.10156ebf
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10156a63
test byte [ebp + 0x31], 0x10
je 0x10156a63
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call fcn.10137f54
add esp, 0x1c
mov dword [ebx + 0x60], eax
push 0x636c7274
push dword [edi]
call fcn.1013e0df
add esp, 8
test eax, eax
je 0x10156a91
push 0x636c7274
push dword [edi]
call fcn.1013f0fb
add esp, 8
push eax
call fcn.101436b6
add esp, 4
mov dword [ebx + 0x64], eax
mov esi, dword [ebp + 0xc]
push dword [edi + esi*4 - 4]
call fcn.1013e88d
add esp, 4
mov ecx, dword [edi + esi*4 - 4]
cmp eax, 0x6c696e6b
jne 0x10156ae2
push 0x636c6f74
push ecx
call fcn.1013e0df
add esp, 8
mov ecx, 0x636c6f74
jmp 0x10156af5
push ebx
call fcn.1014246e
add esp, 4
push str.Channel_count_doesnt_match._Profile_is_corrupted
push 0xd
jmp 0x10156919
push str.Couldnt_link_the_profiles
push 0xd
push esi
jmp 0x1015691c
push 0x636c7274
push ecx
call fcn.1013e0df
add esp, 8
mov ecx, 0x636c7274
test eax, eax
je 0x10156b15
push ecx
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 - 4]
call fcn.1013f0fb
add esp, 8
push eax
call fcn.101436b6
add esp, 4
mov dword [ebx + 0x68], eax
mov ecx, dword [ebp + 0x30]
xor eax, eax
test cl, cl
jns 0x10156b30
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.101407e8
add esp, 0xc
mov ecx, dword [ebp + 0x30]
mov dword [ebx + 0xa8], eax
test cl, 0x40
jne 0x10156926
lea esi, [ebx + 0x1c]
xorpd xmm0, xmm0
movupd xmmword [ebx + 0x2c], xmm0
movupd xmmword [ebx + 0x1c], xmm0
cmp dword [ebx + 0x60], 0
je 0x10156b6d
mov eax, ebx
add eax, 0x3c
mov ecx, ebx
mov edx, esi
push eax
call fcn.10156f51
add esp, 4
jmp 0x10156926
mov eax, dword [ebx + 0x5c]
mov ecx, dword [eax + 0xc]
mov dword [esp], ecx
mov ecx, dword [eax + 0x10]
mov edi, ebx
add edi, 0x3c
call dword [section..00cfg]
push dword [esp]
push edi
push esi
call ecx
add esp, 0xc
jmp 0x10156926