Function at 0x10004e40
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10013947
mov eax, dword fs:[0]
push eax
mov eax, 0x20854
call fcn.10012a80
mov eax, dword [0x1001dfd0]
xor eax, esp
mov dword [esp + 0x20850], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001dfd0]
xor eax, esp
push eax
lea eax, [esp + 0x20868]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20878]
mov eax, dword [esp + 0x20880]
push ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], 1
call dword [sym.imp.hpqddcmn.dll_GetDeviceInfoProductClass]
mov esi, eax
push ebp
mov dword [esp + 0x38], esi
call dword [sym.imp.hpqddcmn.dll_GetDeviceInfoDatFile]
mov edi, eax
mov al, byte [esp + 0x20884]
add esp, 8
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], 0x10015488
test al, 4
je 0x10004ed7
mov dword [esp + 0x1c], 0x10015fd8
jmp 0x10004ef1
test al, 8
je 0x10004ee5
mov dword [esp + 0x1c], str.Update
jmp 0x10004ef1
test al, 0x10
je 0x10004ef1
mov dword [esp + 0x1c], str.Remove
push 0xfffe
xor ebx, ebx
lea edx, [esp + 0x86a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x870], cx
call sub.MSVCR90.dll_memset
push str.___t_n
push edi
push 0x8000
lea eax, [esp + 0x87c]
push eax
push 0x10015488
push str.Functions
push esi
call dword [sym.imp.hpqddcmn.dll_GetPrivateProfileMultiString]
add esp, 0x28
lea edi, [esp + 0x864]
mov dword [esp + 0x18], edi
cmp word [esp + 0x864], bx
je 0x100053c0
mov eax, dword [esp + 0x2087c]
and eax, 2
mov dword [esp + 0x38], eax
jmp 0x10004f64
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.hpqddcmn.dll_LogMessage]
push edi
push ecx
push str._s___s__function.
push 1
call esi
push 0x1fe
lea eax, [esp + 0x27a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x280], dx
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x4c]
push edi
push ecx
push str._s._s
lea edx, [esp + 0x28c]
push 0x100
push edx
call dword [sym.imp.MSVCR90.dll_swprintf_s]
add esp, 0x30
cmp dword [esp + 0x38], ebx
je 0x10004fef
push ebx
lea eax, [esp + 0x68]
push eax
push 2
push ebx
lea ecx, [esp + 0x274]
push ecx
push ebp
call fcn.100041e0
add esp, 0x18
cmp eax, ebx
jne 0x10004fef
push str.Skip_section_because_guard_failed.
push 0x400
call esi
add esp, 8
jmp 0x1000539b
test byte [esp + 0x2087c], 0xc
je 0x10005370
cmp dword [esp + 0x2c], ebx
jne 0x10005018
push str.Invalid_context_descriptor.
push 8
call esi
add esp, 8
mov dword [esp + 0x14], ebx
jmp 0x10005370
push 0xfffe
lea eax, [esp + 0x1086a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x10870], dx
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x48]
add esp, 0xc
push ecx
push 0x8000
lea edx, [esp + 0x1086c]
push edx
push 0x10015488
push ebx
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x40]
call fcn.10002700
lea ecx, [esp + 0x40]
push ecx
push ebx
push ebx
lea edx, [esp + 0x10870]
push edx
lea eax, [esp + 0x274]
push eax
push ebp
mov dword [esp + 0x20888], ebx
call fcn.100041e0
mov ecx, dword [esp + 0x6c]
mov ebp, dword [ecx]
mov ebx, dword [esp + 0x58]
add esp, 0x18
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x54]
test ebx, ebx
je 0x100050ae
cmp ebx, dword [esp + 0x40]
je 0x100050b4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, esi
je 0x1000532c
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x46e]
push eax
mov word [esp + 0x470], dx
call sub.MSVCR90.dll_memset
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x67a]
push edx
mov word [esp + 0x67c], cx
call sub.MSVCR90.dll_memset
add esp, 0x18
test ebx, ebx
jne 0x1000511b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x10005110
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x20], 8
jb 0x1000511f
mov eax, dword [ebp + 0xc]
jmp 0x10005122
mov eax, dword [ebx]
jmp 0x10005105
lea eax, [ebp + 0xc]
mov edx, dword [esp + 0x20]
push 0x100
lea ecx, [esp + 0x468]
push ecx
push eax
push edx
sub esp, 0x200
mov ecx, 0x80
lea esi, [esp + 0x274]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10003240
add esp, 0x210
test eax, eax
jne 0x100051a1
test ebx, ebx
jne 0x1000517c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x10005171
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x20], 8
jb 0x10005180
mov eax, dword [ebp + 0xc]
jmp 0x10005183
mov eax, dword [ebx]
jmp 0x10005166
lea eax, [ebp + 0xc]
push eax
push str.Failed_to_get_value_name_for___s_.
push 8
call dword [sym.imp.hpqddcmn.dll_LogMessage]
add esp, 0xc
mov dword [esp + 0x14], 0
jmp 0x100052ff
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test ebx, ebx
jne 0x100051c5
call esi
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x100051b6
call esi
mov edi, 8
cmp dword [ebp + 0x20], edi
jb 0x100051c9
mov eax, dword [ebp + 0xc]
jmp 0x100051cc
mov eax, dword [ebx]
jmp 0x100051af
lea eax, [ebp + 0xc]
mov edx, dword [esp + 0x20]
push 0x100
lea ecx, [esp + 0x668]
push ecx
push eax
push edx
lea eax, [esp + 0x274]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.100032e0
add esp, 0x18
test eax, eax
jne 0x1000522e
test ebx, ebx
jne 0x1000521b
call esi
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x10005207
call esi
cmp dword [ebp + 0x20], edi
jb 0x1000521f
mov eax, dword [ebp + 0xc]
push eax
push str.Failed_to_get_value_data_for___s_.
push edi
jmp 0x1000518b
mov eax, dword [ebx]
jmp 0x10005200
lea eax, [ebp + 0xc]
push eax
push str.Failed_to_get_value_data_for___s_.
push edi
jmp 0x1000518b
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [esp + 0x664]
push edx
call esi
mov ebp, eax
mov dword [esp + 0x5c], ebp
test ebp, ebp
je 0x100053ec
lea eax, [esp + 0x464]
push eax
mov byte [esp + 0x20874], 1
call esi
mov edi, eax
mov dword [esp + 0x60], edi
test edi, edi
je 0x100053ec
mov eax, dword [esp + 0x18]
mov byte [esp + 0x20870], 2
test eax, eax
jne 0x10005284
xor esi, esi
mov dword [esp + 0x34], esi
jmp 0x10005295
push eax
call esi
mov esi, eax
mov dword [esp + 0x34], esi
test esi, esi
je 0x100053ec
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa0]
push ebp
push edi
push esi
push eax
mov byte [esp + 0x20880], 3
call edx
test eax, eax
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
setl bl
call esi
push edi
call esi
push ebp
mov byte [esp + 0x20874], 0
call esi
test bl, bl
je 0x100052f7
lea eax, [esp + 0x664]
push eax
lea ecx, [esp + 0x468]
push ecx
push str.Failed_to_save_value___s___s__to_the_registry.
push 8
call dword [sym.imp.hpqddcmn.dll_LogMessage]
add esp, 0x10
mov dword [esp + 0x14], 0
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x10005328
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x10005316
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov ebp, edx
jmp 0x100050a0
mov eax, dword [ebx]
jmp 0x1000530b
lea ecx, [esp + 0x40]
mov dword [esp + 0x20870], 4
call fcn.10003050
mov eax, dword [esp + 0x54]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x44]
push ecx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x20878], 0xffffffff
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ebp, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
mov eax, dword [esp + 0x2087c]
push ebx
lea edx, [esp + 0x68]
push edx
and eax, 0xfffffffd
push eax
push ebx
lea ecx, [esp + 0x274]
push ecx
push ebp
call fcn.100041e0
add esp, 0x18
test eax, eax
jne 0x1000539b
mov dword [esp + 0x14], ebx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100053a0
sub eax, edx
sar eax, 1
lea eax, [edi + eax*2 + 2]
mov dword [esp + 0x18], eax
cmp word [eax], bx
jne 0x10004f60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20868]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20850]
xor ecx, esp
call fcn.10012a16
add esp, 0x20860
ret
push 0x8007000e
call fcn.100010b0
int3