Function at 0x100041e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10013872
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x1001dfd0]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001dfd0]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov eax, dword [esp + 0x274]
mov ecx, dword [esp + 0x284]
mov edi, dword [esp + 0x278]
mov ebp, dword [esp + 0x27c]
mov esi, dword [esp + 0x288]
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.hpqddcmn.dll_GetDeviceInfoDatFile]
add esp, 4
mov ebx, eax
mov dword [esp + 0x40], ebx
test esi, esi
je 0x10004516
cmp word [ebp], 0
je 0x10004332
xor edx, edx
mov eax, ebp
mov word [esp + 0x20], dx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004291
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x24]
call fcn.100022a0
mov eax, dword [esi + 0x14]
mov edi, dword [eax]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x278], 0
call fcn.100030c0
push 1
mov ecx, esi
mov ebx, eax
call fcn.10001bb0
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x26c], 0xffffffff
cmp eax, 8
jb 0x10004304
mov edx, dword [esp + 0x20]
inc eax
push eax
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004310
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 2], cx
lea ebp, [ebp + eax*2 + 2]
jne 0x10004275
mov edi, dword [esp + 0x3c]
mov ebp, 7
push ebp
xor eax, eax
push str.Library
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.100022a0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x270], 1
call fcn.10003370
mov eax, dword [esp + 0x34]
or ebx, 0xffffffff
mov dword [esp + 0x26c], ebx
cmp eax, 8
jb 0x10004394
mov edx, dword [esp + 0x20]
inc eax
push eax
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
push 5
xor eax, eax
push str.Guard
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.100022a0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x270], 2
call fcn.10003370
mov eax, dword [esp + 0x34]
mov dword [esp + 0x26c], ebx
cmp eax, 8
jb 0x100043ef
mov edx, dword [esp + 0x20]
inc eax
push eax
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
push ebp
xor eax, eax
push str.Install
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.100022a0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x270], 3
call fcn.10003370
mov eax, dword [esp + 0x34]
mov dword [esp + 0x26c], ebx
cmp eax, 8
jb 0x10004449
mov edx, dword [esp + 0x20]
inc eax
push eax
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
push 9
xor eax, eax
push str.Uninstall
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.100022a0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x270], 4
call fcn.10003370
mov eax, dword [esp + 0x34]
mov dword [esp + 0x26c], ebx
cmp eax, 8
jb 0x100044a4
mov edx, dword [esp + 0x20]
inc eax
push eax
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
push 6
xor eax, eax
push str.Modify
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
call fcn.100022a0
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov dword [esp + 0x270], 5
call fcn.10003370
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x26c], ebx
cmp eax, 8
jb 0x100044ff
mov edx, dword [esp + 0x48]
inc eax
push eax
push edx
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
mov ebx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
test byte [esp + 0x280], 1
je 0x1000453c
mov ecx, dword [esp + 0x18]
push ebx
push 0x100
push ecx
push 0x10015488
push str.Library
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test byte [esp + 0x280], 2
mov esi, dword [sym.imp.hpqddcmn.dll_GetPrivateProfileMultiString]
je 0x10004591
push str.___t_n
push ebx
push 0x100
lea edx, [esp + 0x6c]
push edx
push 0x10015488
push str.Guard
push edi
call esi
mov ebp, dword [esp + 0x54]
add esp, 0x1c
test eax, eax
je 0x10004595
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
push ecx
push edi
push ebp
call fcn.10002e50
add esp, 0x10
test eax, eax
jne 0x10004595
jmp 0x100047b6
mov ebp, dword [esp + 0x38]
test byte [esp + 0x280], 0x20
je 0x100045e1
push str.___t_n
push ebx
push 0x100
lea edx, [esp + 0x6c]
push edx
push 0x10015488
push str.PreCtx
push edi
call esi
add esp, 0x1c
test eax, eax
je 0x100045e1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
push ecx
push edi
push ebp
call fcn.10002e50
add esp, 0x10
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x14], eax
test byte [esp + 0x280], 0x40
je 0x1000463e
push str.___t_n
push ebx
push 0x100
lea edx, [esp + 0x6c]
push edx
push 0x10015488
push str.PostCtx
push edi
call esi
add esp, 0x1c
test eax, eax
je 0x1000463e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
push ecx
push edi
push ebp
call fcn.10002e50
add esp, 0x10
test eax, eax
je 0x10004636
cmp dword [esp + 0x14], 0
mov dword [esp + 0x14], 1
jne 0x1000463e
mov dword [esp + 0x14], 0
test byte [esp + 0x280], 0x80
je 0x1000469b
push str.___t_n
push ebx
push 0x100
lea edx, [esp + 0x6c]
push edx
push 0x10015488
push str.ErrorCtx
push edi
call esi
add esp, 0x1c
test eax, eax
je 0x1000469b
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
push ecx
push edi
push ebp
call fcn.10002e50
add esp, 0x10
test eax, eax
je 0x10004693
cmp dword [esp + 0x14], 0
mov dword [esp + 0x14], 1
jne 0x1000469b
mov dword [esp + 0x14], 0
test byte [esp + 0x280], 4
je 0x100046f8
push str.___t_n
push ebx
push 0x100
lea edx, [esp + 0x6c]
push edx
push 0x10015488
push str.Install
push edi
call esi
add esp, 0x1c
test eax, eax
je 0x100046f8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
push ecx
push edi
push ebp
call fcn.10002e50
add esp, 0x10
test eax, eax
je 0x100046f0
cmp dword [esp + 0x14], 0
mov dword [esp + 0x14], 1
jne 0x100046f8
mov dword [esp + 0x14], 0
test byte [esp + 0x280], 8
je 0x10004755
push str.___t_n
push ebx
push 0x100
lea edx, [esp + 0x6c]
push edx
push 0x10015488
push str.Modify
push edi
call esi
add esp, 0x1c
test eax, eax
je 0x10004755
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
push ecx
push edi
push ebp
call fcn.10002e50
add esp, 0x10
test eax, eax
je 0x1000474d
cmp dword [esp + 0x14], 0
mov dword [esp + 0x14], 1
jne 0x10004755
mov dword [esp + 0x14], 0
test byte [esp + 0x280], 0x10
je 0x100047b2
push str.___t_n
push ebx
push 0x100
lea edx, [esp + 0x6c]
push edx
push 0x10015488
push str.Uninstall
push edi
call esi
add esp, 0x1c
test eax, eax
je 0x100047b2
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
push ecx
push edi
push ebp
call fcn.10002e50
add esp, 0x10
test eax, eax
je 0x100047aa
cmp dword [esp + 0x14], 0
mov dword [esp + 0x14], 1
jne 0x100047b2
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.10012a16
add esp, 0x25c
ret