Function at 0x10001711
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.msi.dll_MsiGetFeatureCostA
mov esi, eax
xor ebx, ebx
mov dword [esp + 0x94], esi
cmp esi, ebx
jne 0x10001745
mov eax, 0x643
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x10]
push eax
push str.SELECT__Name___Event___ResetPeriod___RebootMessage___Command___Actions___DelayActions___Component___FROM__AI_ServiceConfigFailureActions_
push esi
mov dword [esp + 0x1c], ebx
call sub.msi.dll_MsiEnumClientsA
cmp eax, ebx
je 0x100017a9
cmp eax, 0x64f
jne 0x10001793
push str.AI_ServiceConfigFailureActions
push esi
call sub.msi.dll_MsiEnableLogW
cmp eax, 2
jne 0x10001793
cmp dword [esp + 0x10], ebx
je 0x10001783
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push dword [esp + 0x94]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, ebx
jmp 0x1000173c
cmp dword [esp + 0x10], ebx
je 0x100017a2
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ebx, 0x643
jmp 0x10001783
push ebx
push dword [esp + 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x10001793
mov dword [esp + 0xc], ebx
cmp dword [esp + 0xc], ebx
je 0x100017ca
push dword [esp + 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x14], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, ebx
jne 0x1000218d
push 1
push dword [esp + 0x10]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.1000418f
pop ecx
pop ecx
test al, al
je 0x10001e31
push 2
push dword [esp + 0x10]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.1000418f
pop ecx
pop ecx
test al, al
je 0x10001e53
push 8
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.1000418f
pop ecx
pop ecx
test al, al
je 0x10001e68
mov esi, dword [esp + 0x28]
call fcn.10003001
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.10002c82
mov ecx, str.___s___1_
mov edx, eax
call fcn.10002c82
add edx, eax
mov edi, 0x400
lea esi, [esp + 0x2c]
mov dword [esp + 0x90], edx
call fcn.100021c4
push dword [esp + 0x18]
mov eax, dword [esp + 0x34]
push str.___s___1_
push dword [esp + 0x98]
call fcn.10002313
add esp, 0xc
push dword [esp + 0x30]
push dword [ebp + 8]
call sub.msi.dll_MsiGetComponentStateW
cmp eax, 1
jne 0x10001904
push dword [esp + 0x30]
call fcn.10002adf
push dword [esp + 0x1c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call fcn.10002adf
push dword [esp + 0x30]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call fcn.10002adf
push dword [esp + 0x2c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call fcn.10002adf
add esp, 0x10
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
jmp 0x100017bb
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.10002c82
mov ecx, str.___s__3_
mov edi, eax
call fcn.10002c82
add edi, eax
lea esi, [esp + 0x3c]
call fcn.100021c4
push dword [esp + 0x18]
mov eax, dword [esp + 0x44]
push str.___s__3_
push edi
call fcn.10002313
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.10002c82
mov ecx, str.____s__2__AND____s__3__
mov edx, eax
call fcn.10002c82
lea edi, [eax + edx*2]
lea esi, [esp + 0x44]
call fcn.100021c4
push dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
push dword [esp + 0x1c]
push str.____s__2__AND____s__3__
push edi
call fcn.10002313
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.10002c82
mov ecx, str.___s____s_
mov edx, eax
call fcn.10002c82
lea edi, [eax + edx*2]
lea esi, [esp + 0x34]
call fcn.100021c4
push dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
push dword [esp + 0x1c]
push str.___s____s_
push edi
call fcn.10002313
add esp, 0x10
push dword [esp + 0x40]
push dword [ebp + 8]
call sub.msi.dll_MsiGetComponentStateW
cmp eax, 1
jne 0x100019e2
test byte [esp + 0x84], al
jmp 0x10001a1a
push dword [esp + 0x48]
push dword [ebp + 8]
call sub.msi.dll_MsiGetComponentStateW
cmp eax, 1
jne 0x100019fd
test byte [esp + 0x84], 2
jmp 0x10001a1a
push dword [esp + 0x38]
push dword [ebp + 8]
call sub.msi.dll_MsiGetComponentStateW
cmp eax, 1
jne 0x10001a93
test byte [esp + 0x84], 4
jne 0x10001a93
push dword [esp + 0x38]
call fcn.10002adf
push dword [esp + 0x4c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call fcn.10002adf
push dword [esp + 0x48]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
call fcn.10002adf
push dword [esp + 0x3c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
call fcn.10002adf
push dword [esp + 0x28]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
call fcn.10002adf
push dword [esp + 0x3c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call fcn.10002adf
push dword [esp + 0x38]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
call fcn.10002adf
add esp, 0x1c
jmp 0x100018f7
mov edi, dword [esp + 0x20]
push ebx
push edi
push dword [ebp + 8]
call fcn.10003b94
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x10001e88
push 3
push dword [esp + 0x10]
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.1000418f
pop ecx
pop ecx
test al, al
je 0x10001eec
push 4
push dword [esp + 0x10]
lea eax, [esp + 0x54]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.1000418f
pop ecx
pop ecx
push dword [esp + 0x50]
test al, al
je 0x10001f39
push dword [ebp + 8]
lea eax, [esp + 0x64]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.10003a81
pop ecx
pop ecx
test al, al
jne 0x10001b30
mov ecx, dword [esp + 0x50]
call fcn.10002c82
mov edi, eax
lea esi, [esp + 0x5c]
call fcn.100021c4
push dword [esp + 0x50]
mov eax, dword [esp + 0x64]
call fcn.10002c93
pop ecx
push 5
push dword [esp + 0x10]
lea eax, [esp + 0x74]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.1000418f
pop ecx
pop ecx
push dword [esp + 0x70]
test al, al
je 0x10001f8b
push dword [ebp + 8]
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.10003a81
pop ecx
pop ecx
test al, al
jne 0x10001b91
mov ecx, dword [esp + 0x70]
call fcn.10002c82
mov edi, eax
lea esi, [esp + 0x64]
call fcn.100021c4
push dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
call fcn.10002c93
pop ecx
push 6
push dword [esp + 0x10]
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call fcn.1000418f
pop ecx
pop ecx
test al, al
je 0x10001ff2
push 7
push dword [esp + 0x10]
lea eax, [esp + 0x84]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.1000418f
pop ecx
pop ecx
test al, al
je 0x1000206f
mov ecx, 0x1000e708
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.10002c82
mov ecx, dword [esp + 0x80]
mov edi, eax
imul edi, edi, 6
call fcn.10002c82
mov ecx, dword [esp + 0x78]
add edi, eax
call fcn.10002c82
mov ecx, dword [esp + 0x68]
add edi, eax
call fcn.10002c82
mov ecx, dword [esp + 0x60]
add edi, eax
call fcn.10002c82
mov ecx, dword [esp + 0x58]
add edi, eax
call fcn.10002c82
mov ecx, dword [esp + 0x20]
add edi, eax
call fcn.10002c82
add edi, eax
lea esi, [esp + 0x88]
call fcn.100021c4
mov esi, dword [esp + 0x8c]
push dword [esp + 0x20]
mov eax, esi
call fcn.10002c93
mov edi, 0x1000e708
push edi
mov eax, esi
call fcn.10002c93
push dword [esp + 0x60]
mov eax, esi
call fcn.10002c93
push edi
mov eax, esi
call fcn.10002c93
push dword [esp + 0x88]
mov eax, esi
call fcn.10002c93
push edi
mov eax, esi
call fcn.10002c93
push dword [esp + 0x98]
mov eax, esi
call fcn.10002c93
push edi
mov eax, esi
call fcn.10002c93
push dword [esp + 0x80]
mov eax, esi
call fcn.10002c93
push edi
mov eax, esi
call fcn.10002c93
push dword [esp + 0x90]
mov eax, esi
call fcn.10002c93
add esp, 0x2c
push esi
push str.AI_ConfigFailActions
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
test eax, eax
jne 0x100020f8
mov edi, str.AI_ConfigFailActions
push edi
push dword [ebp + 8]
call sub.msi.dll_MsiEnumComponentQualifiersA
test eax, eax
jne 0x100020f8
push 0x1000e704
push edi
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
test eax, eax
jne 0x100020f8
push esi
call fcn.10002adf
push dword [esp + 0x84]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebx
call fcn.10002adf
push dword [esp + 0x80]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
call fcn.10002adf
push dword [esp + 0x74]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
call fcn.10002adf
push dword [esp + 0x80]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
call fcn.10002adf
push dword [esp + 0x74]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
call fcn.10002adf
push dword [esp + 0x68]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
call fcn.10002adf
push dword [esp + 0x74]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
call fcn.10002adf
push dword [esp + 0x58]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
call fcn.10002adf
push dword [esp + 0x6c]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
call fcn.10002adf
push dword [esp + 0x68]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
call fcn.10002adf
push dword [esp + 0x5c]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
call fcn.10002adf
push dword [esp + 0x48]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
call fcn.10002adf
push dword [esp + 0x5c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
call fcn.10002adf
push dword [esp + 0x58]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
call fcn.10002adf
add esp, 0x3c
jmp 0x100018f7
push dword [esp + 0x20]
call fcn.10002adf
pop ecx
cmp dword [esp + 0xc], ebx
je 0x10001793
push dword [esp + 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x10001793
push dword [esp + 0x28]
call fcn.10002adf
push dword [esp + 0x24]
call fcn.10002adf
pop ecx
jmp 0x10001e3a
push dword [esp + 0x18]
call fcn.10002adf
push dword [esp + 0x2c]
call fcn.10002adf
push dword [esp + 0x28]
call fcn.10002adf
add esp, 0xc
jmp 0x10001e3b
push dword [esp + 0x38]
call fcn.10002adf
push dword [esp + 0x4c]
call fcn.10002adf
push dword [esp + 0x48]
call fcn.10002adf
push dword [esp + 0x3c]
call fcn.10002adf
push dword [esp + 0x28]
call fcn.10002adf
push dword [esp + 0x3c]
call fcn.10002adf
push edi
call fcn.10002adf
add esp, 0x1c
cmp dword [esp + 0xc], ebx
je 0x10001ed6
push dword [esp + 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0x10], ebx
je 0x10001ee5
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ebx, esi
jmp 0x10001783
push dword [esp + 0x58]
call fcn.10002adf
push dword [esp + 0x3c]
call fcn.10002adf
push dword [esp + 0x50]
call fcn.10002adf
push dword [esp + 0x4c]
call fcn.10002adf
push dword [esp + 0x40]
call fcn.10002adf
push dword [esp + 0x2c]
call fcn.10002adf
push dword [esp + 0x40]
call fcn.10002adf
push edi
call fcn.10002adf
add esp, 0x20
jmp 0x10001e3b
call fcn.10002adf
push dword [esp + 0x5c]
call fcn.10002adf
push dword [esp + 0x40]
call fcn.10002adf
push dword [esp + 0x54]
call fcn.10002adf
push dword [esp + 0x50]
call fcn.10002adf
push dword [esp + 0x44]
call fcn.10002adf
push dword [esp + 0x30]
call fcn.10002adf
push dword [esp + 0x44]
call fcn.10002adf
push edi
call fcn.10002adf
add esp, 0x24
jmp 0x10001e3b
call fcn.10002adf
push dword [esp + 0x64]
call fcn.10002adf
push dword [esp + 0x58]
call fcn.10002adf
push dword [esp + 0x64]
call fcn.10002adf
push dword [esp + 0x48]
call fcn.10002adf
push dword [esp + 0x5c]
call fcn.10002adf
push dword [esp + 0x58]
call fcn.10002adf
push dword [esp + 0x4c]
call fcn.10002adf
push dword [esp + 0x38]
call fcn.10002adf
push dword [esp + 0x4c]
call fcn.10002adf
push dword [esp + 0x48]
call fcn.10002adf
add esp, 0x2c
jmp 0x10001e3b
push dword [esp + 0x78]
call fcn.10002adf
push dword [esp + 0x6c]
call fcn.10002adf
push dword [esp + 0x78]
call fcn.10002adf
push dword [esp + 0x6c]
call fcn.10002adf
push dword [esp + 0x60]
call fcn.10002adf
push dword [esp + 0x6c]
call fcn.10002adf
push dword [esp + 0x50]
call fcn.10002adf
push dword [esp + 0x64]
call fcn.10002adf
push dword [esp + 0x60]
call fcn.10002adf
push dword [esp + 0x54]
call fcn.10002adf
push dword [esp + 0x40]
call fcn.10002adf
push dword [esp + 0x54]
call fcn.10002adf
push dword [esp + 0x50]
call fcn.10002adf
add esp, 0x34
jmp 0x10001e3b
push dword [esp + 0x80]
call fcn.10002adf
push dword [esp + 0x7c]
call fcn.10002adf
push dword [esp + 0x70]
call fcn.10002adf
push dword [esp + 0x7c]
call fcn.10002adf
push dword [esp + 0x70]
call fcn.10002adf
push dword [esp + 0x64]
call fcn.10002adf
push dword [esp + 0x70]
call fcn.10002adf
push dword [esp + 0x54]
call fcn.10002adf
push dword [esp + 0x68]
call fcn.10002adf
push dword [esp + 0x64]
call fcn.10002adf
push dword [esp + 0x58]
call fcn.10002adf
push dword [esp + 0x44]
call fcn.10002adf
push dword [esp + 0x58]
call fcn.10002adf
push dword [esp + 0x54]
call fcn.10002adf
add esp, 0x38
jmp 0x10001e3b
push esi
call fcn.10002adf
push dword [esp + 0x84]
call fcn.10002adf
push dword [esp + 0x80]
call fcn.10002adf
push dword [esp + 0x74]
call fcn.10002adf
push dword [esp + 0x80]
call fcn.10002adf
push dword [esp + 0x74]
call fcn.10002adf
push dword [esp + 0x68]
call fcn.10002adf
push dword [esp + 0x74]
call fcn.10002adf
push dword [esp + 0x58]
call fcn.10002adf
push dword [esp + 0x6c]
call fcn.10002adf
push dword [esp + 0x68]
call fcn.10002adf
push dword [esp + 0x5c]
call fcn.10002adf
push dword [esp + 0x48]
call fcn.10002adf
push dword [esp + 0x5c]
call fcn.10002adf
push dword [esp + 0x58]
call fcn.10002adf
add esp, 0x3c
jmp 0x10001e3b
sub eax, 0x103
neg eax
sbb eax, eax
and eax, 0x643
mov esi, eax
jmp 0x10001ec7