Function at 0x10010a60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test byte [0x100407a0], 8
jne 0x10010ad0
test ebx, ebx
je 0x10010ac0
mov edx, dword [ebx + 4]
test edx, edx
je 0x10010ac0
mov eax, dword [ebx]
cmp eax, 2
je 0x10010e70
movzx ecx, byte [0x100407a0]
cmp eax, 1
jne 0x10010dc8
and ecx, 8
jne 0x10010ec8
mov eax, dword [ebp + 0xc]
and eax, 2
test byte [ebp + 0xc], 1
jne 0x10010b10
test eax, eax
jne 0x10010e00
lea esi, [esi]
nop
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.___p___lx___lx___lx___n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x100407a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10010a78
cmp eax, 1
sbb esi, esi
and esi, 0xc0000000
sub esi, 0x40000000
test edi, edi
mov eax, 1
cmovne eax, edi
mov dword [ebp - 0x18], eax
mov edi, eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathIsRelativeW]
sub esp, 4
test eax, eax
jne 0x10010c90
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10010f00
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x10010f48
mov dword [esp], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x18]
test eax, eax
mov esi, eax
mov edi, eax
je 0x10011012
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x10010e48
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
jne 0x10010e48
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._cmsOpenProfileFromMem
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10010e55
mov dword [esp + 4], 0x20
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov esi, eax
test eax, eax
je 0x10011007
mov dword [eax + 8], sym._close_profile
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov dword [esp], esi
call sym._alloc_handle
test eax, eax
jne 0x10010ac2
mov dword [esp], esi
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._cmsCloseProfile
mov dword [esp], edi
call esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x10010ac0
lea edi, [ebp - 0x14]
test byte [0x100407a0], 8
jne 0x10010e10
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._GetColorDirectoryW_12.part.0
sub esp, 0xc
test eax, eax
jne 0x10010ac0
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
jne 0x10010ac0
mov edx, dword [ebx + 4]
cmp word [edx], 0
je 0x10010ff0
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10010ce8
sub eax, edx
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx + 4]
mov dword [ebp - 0x14], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, eax
test eax, eax
je 0x10010ac0
test byte [0x100407a0], 8
jne 0x10010fb0
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], 0
mov dword [ebp - 0x1c], edx
call sym._GetColorDirectoryW_12.part.0
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp], edx
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebx + 4]
sub esp, 4
cmp word [edx], 0
mov ecx, edx
je 0x10010d61
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x10010d58
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [edi + eax]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x10010d68
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x18], 0
mov dword [ebp - 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edx, dword [ebp - 0x18]
sub esp, 0x1c
mov ebx, eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10010b7f
and ecx, 2
je 0x10010ac0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Invalid_profile_type__lu_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x100407a0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
xor eax, eax
jmp 0x10010ac2
mov esi, 0xc0000000
jmp 0x10010b21
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.___p___p___n
mov dword [esp + 8], str.GetColorDirectoryW
mov dword [esp + 4], 0x100407a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10010ca0
test byte [0x100407a0], 2
jne 0x10010f80
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10010ac0
mov esi, dword [ebx + 8]
mov dword [ebp - 0x18], edx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x10010ac0
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._cmsOpenProfileFromMem
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10010ff7
mov eax, dword [ebx + 8]
mov ebx, 0xffffffff
mov dword [ebp - 0x14], eax
jmp 0x10010c11
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.profile_file:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x100407a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10010aa7
test byte [0x100407a0], 4
je 0x10010ac0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Unable_to_open_color_profile__lu_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100407a0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10010ac0
test byte [0x100407a0], 2
je 0x10010c7a
mov dword [esp + 0xc], str.Unable_to_retrieve_size_of_color_profile_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x100407a0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
jmp 0x10010c7a
mov dword [esp + 0xc], str.Unable_to_read_color_profile_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x100407a0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
jmp 0x10010e55
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.___p___p___n
mov dword [esp + 8], str.GetColorDirectoryW
mov dword [esp + 4], 0x100407a0
mov dword [esp], 3
mov dword [ebp - 0x1c], eax
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x1c]
jmp 0x10010d1d
xor eax, eax
jmp 0x10010cf3
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
xor eax, eax
jmp 0x10010ac2
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x10010c6a
test byte [0x100407a0], 2
je 0x10010c7a
mov dword [esp + 0xc], str.Unable_to_allocate_memory_for_color_profile_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x100407a0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
jmp 0x10010c7a