Function at 0x100015f0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x100134dd
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x1001dfd0]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001dfd0]
xor eax, esp
push eax
lea eax, [esp + 0x63c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x64c]
mov ebp, dword [esp + 0x650]
mov eax, dword [esp + 0x654]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], eax
test edi, edi
je 0x100019e5
test ebp, ebp
je 0x100019e5
test eax, eax
je 0x100019e5
push ebp
call dword [sym.imp.hpqddcmn.dll_GetDeviceInfoProductClass]
add esp, 4
test eax, eax
jne 0x100016a8
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push ebx
mov dword [esp + 0x648], 0
call esi
test eax, eax
jne 0x100016c3
push str.Failed_to_get_product_class_name_from_device.
push 8
call dword [sym.imp.hpqddcmn.dll_LogMessage]
add esp, 8
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x100019f5
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x10001674
push 0x8007000e
call fcn.100010b0
push ebp
call dword [sym.imp.hpqddcmn.dll_GetDeviceInfoContextID]
add esp, 4
push eax
lea ecx, [esp + 0x18]
call fcn.100013e0
mov eax, dword [esp + 0x14]
push eax
mov byte [esp + 0x648], 1
call esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
jne 0x10001807
mov dword [esp + 0x18], 0
mov ecx, dword [edi]
mov eax, dword [ecx + 0x1c]
lea edx, [esp + 0x18]
push edx
push edi
mov byte [esp + 0x64c], 2
call eax
test eax, eax
jge 0x1000173c
push eax
push str.Failed_to_get_manufacturer_name_from_context_manager__0x_X_.
push 8
call dword [sym.imp.hpqddcmn.dll_LogMessage]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
push ebx
call esi
jmp 0x100019f5
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x442]
push ecx
mov word [esp + 0x444], ax
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.MSVCR90.dll__time64]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push 0x10015728
lea edx, [esp + 0x454]
push 0x100
push edx
call dword [sym.imp.MSVCR90.dll_swprintf_s]
add esp, 0x24
lea eax, [esp + 0x438]
push eax
lea ecx, [esp + 0x28]
call fcn.100013e0
mov eax, dword [eax]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x38]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
mov byte [esp + 0x658], 3
call ecx
mov edx, dword [esp + 0x24]
push edx
mov ebp, eax
mov byte [esp + 0x648], 2
call esi
test ebp, ebp
jge 0x100017f4
push ebp
push str.Failed_to_build_context_id__0x_X_.
push 8
call dword [sym.imp.hpqddcmn.dll_LogMessage]
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
push ebx
call esi
jmp 0x100019f5
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x648], 1
call esi
mov ebp, dword [esp + 0x20]
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x242]
push ecx
mov word [esp + 0x244], ax
call sub.MSVCR90.dll_memset
push ebp
call dword [sym.imp.hpqddcmn.dll_GetDeviceInfoDatFile]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x240]
push edx
push 0x10015488
push str.CtxInfoPlugin
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x42]
push ecx
mov word [esp + 0x44], ax
call sub.MSVCR90.dll_memset
push 0x100
lea edx, [esp + 0x48]
push edx
push ebp
call fcn.10001270
add esp, 0x18
test eax, eax
jne 0x1000189a
push str.Failed_to_get_baseline_file.
push 8
call dword [sym.imp.hpqddcmn.dll_LogMessage]
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
call esi
push ebx
call esi
jmp 0x100019f5
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100018ce
lea edx, [esp + 0x38]
push edx
push str.Baseline_file___s__does_not_exist.
push 8
call dword [sym.imp.hpqddcmn.dll_LogMessage]
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
push ebx
call esi
jmp 0x100019f5
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x23c]
push edx
push eax
push str.Create_context_using_CtxID__s___CtxInfoPluginGuid__s___BaselineFile__s_.
push 1
call dword [sym.imp.hpqddcmn.dll_LogMessage]
add esp, 0x14
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x648], 4
call fcn.100013e0
mov ebp, eax
lea edx, [esp + 0x238]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x648], 5
call fcn.100013e0
mov ebp, dword [ebp]
mov eax, dword [eax]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x3c]
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
mov eax, dword [esp + 0x20]
push eax
push edi
mov byte [esp + 0x658], 6
call ecx
mov edx, dword [esp + 0x20]
push edx
mov edi, eax
call esi
mov eax, dword [esp + 0x24]
push eax
mov byte [esp + 0x648], 4
call esi
test edi, edi
jge 0x1000199b
push edi
push str.BeginNewContext_failed__0x_X_.
push 8
call dword [sym.imp.hpqddcmn.dll_LogMessage]
mov eax, dword [esp + 0x28]
add esp, 0xc
mov byte [esp + 0x644], 1
test eax, eax
je 0x1000198f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
push eax
call esi
push ebx
call esi
jmp 0x100019f5
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push 0x10017698
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x100019bc
push eax
push str.Failed_to_get_context_descriptor_interface__0x_X_.
jmp 0x1000196c
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x644], 1
test eax, eax
je 0x100019d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
push eax
call esi
push ebx
call esi
mov eax, 1
jmp 0x100019f7
push str.CreateContext_failed_due_to_invalid_parameters.
push 8
call dword [sym.imp.hpqddcmn.dll_LogMessage]
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x63c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.10012a16
add esp, 0x634
ret