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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.___p__0x_08x__0x_08x__0x_08x___n
call 0x10000000
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x10001247
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
jne 0x1000124e
xor eax, eax
jmp 0x1000151d
mov edx, dword [ebp + 8]
cmp dword [edx], 2
jne 0x100012a4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000127c
xor eax, eax
jmp 0x1000151d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 4], edx
jmp 0x100014fe
mov eax, dword [ebp + 8]
cmp dword [eax], 1
jne 0x100014e7
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call 0x10000000
add esp, 4
push eax
push str.profile_file:__s_n
call 0x10000000
add esp, 8
mov eax, dword [ebp + 0xc]
and eax, 1
je 0x100012e3
mov dword [ebp - 0x14], SQLAllocEnv
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x100012f2
mov dword [ebp - 0x14], 0xc0000000
cmp dword [ebp - 0x14], 0
jne 0x100012ff
xor eax, eax
jmp 0x1000151d
cmp dword [ebp + 0x10], 0
jne 0x1000130c
mov dword [ebp + 0x10], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call 0x10000000
add esp, 4
test eax, eax
jne 0x10001346
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
jmp 0x10001405
lea eax, [ebp - 4]
push eax
push 0
push 0
call fcn.10001ad0
test eax, eax
jne 0x100013cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x100013cc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000139e
xor eax, eax
jmp 0x1000151d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
call fcn.10001ad0
mov eax, dword [ebp - 0x10]
push eax
call 0x10000000
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x100013d3
xor eax, eax
jmp 0x1000151d
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], 0xffffffff
jne 0x10001426
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_open_color_profile__u_n
call 0x10000000
add esp, 8
xor eax, eax
jmp 0x1000151d
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10001459
push str.Unable_to_retrieve_size_of_color_profile_n
call 0x10000000
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000151d
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10001493
push str.Unable_to_allocate_memory_for_color_profile_n
call 0x10000000
add esp, 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000151d
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100014b7
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 4]
je 0x100014e5
push str.Unable_to_read_color_profile_n
call 0x10000000
add esp, 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x1000151d
jmp 0x100014fe
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.Invalid_profile_type__u_n
call 0x10000000
add esp, 8
xor eax, eax
jmp 0x1000151d
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10