Function at 0x4219f4
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x4645ee
call fcn.00449ec2
xor esi, esi
push str.InitUpgrade...
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], esi
call fcn.0040130b
push esi
lea eax, [ebp - 0x24]
push eax
push 2
pop edi
push edi
mov dword [ebp - 4], esi
call fcn.0040fcf3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ebx, dword [0x4a66b4]
mov eax, 0x4a6ae0
call fcn.00401c44
mov dword [ebp - 0x24], eax
call fcn.0041e6d0
mov dword [ebp - 0x30], eax
cmp ebx, esi
je 0x421a59
cmp dword [ebp - 0x24], esi
je 0x421a62
cmp dword [ebp - 0x24], esi
je 0x421a99
cmp eax, esi
jne 0x421a99
push str.Upgrade_disabled_in_manual_mode
lea ecx, [ebp + 8]
call fcn.0040130b
push esi
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], 1
call fcn.0040fcf3
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, 0x3d32
jmp 0x421f1d
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xffffc2db
add ebx, 0x3d32
push str.Upgrade_data_not_available
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call fcn.0040130b
mov dword [ebp - 4], edi
call fcn.004366fe
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411d53
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp + 0xc]
call fcn.00433e0c
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [eax - 0xc], esi
jne 0x421b1f
push str.:_Upgrade_ID
lea ecx, [ebp + 8]
call fcn.0040130b
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
mov byte [ebp - 4], 4
call fcn.0040f821
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x421f05
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
push str.SELECT__FROM__UpgradeEx__WHERE__Upgrade_
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0040130b
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00401175
push 0x4899d8
lea eax, [ebp - 0x20]
push eax
call fcn.00405f34
cmp dword [ebp - 0x14], esi
je 0x421b64
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
push eax
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x421ed2
push esi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x421ed2
cmp dword [ebp - 0x10], esi
je 0x421ba0
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x421ed2
call fcn.004366fe
push eax
lea ecx, [ebp + 0xc]
call fcn.00411d53
mov byte [ebp - 4], 8
call fcn.004366fe
push eax
lea ecx, [ebp + 0x10]
call fcn.00411d53
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 9
push edi
push dword [ebp - 0x10]
call fcn.00433e0c
add esp, 0xc
test eax, eax
je 0x421c38
push str.:_URL
lea ecx, [ebp + 8]
call fcn.0040130b
mov byte [ebp - 4], 0xa
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040f821
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x421ee0
lea eax, [ebp + 0x10]
push eax
push 3
push dword [ebp - 0x10]
call fcn.00433e0c
add esp, 0xc
test eax, eax
je 0x421c60
push str.:_Upgrade_Match
lea ecx, [ebp + 8]
call fcn.0040130b
mov byte [ebp - 4], 0xb
jmp 0x421c00
lea ebx, [ebp + 0x10]
mov ecx, 0x4a6708
call fcn.0042cec7
push str.NoLongerSupported
lea ecx, [ebp - 0x28]
call fcn.0040130b
mov byte [ebp - 4], 0xc
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
xor ebx, ebx
push ecx
inc ebx
push eax
mov dword [ebp - 0x2c], ebx
call fcn.00433c79
add esp, 0xc
test eax, eax
jne 0x421cb3
push 0x46bd84
lea ecx, [ebp - 0x18]
call fcn.00406240
mov byte [ebp + 0xb], bl
test eax, eax
je 0x421cb7
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
cmp byte [ebp + 0xb], 0
je 0x421d04
push str.NoLongerSupported_is_set_in_Manifest
lea ecx, [ebp + 8]
call fcn.0040130b
push 0
lea eax, [ebp + 8]
push eax
push edi
mov byte [ebp - 4], 0xd
call fcn.0040fcf3
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov dword [0x4a67cc], ebx
cmp dword [ebp - 0x30], 0
jne 0x421e3b
call fcn.004366fe
push eax
lea ecx, [ebp + 8]
call fcn.00411d53
push str.UpgradeName
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xe
call fcn.0040130b
lea ecx, [ebp + 8]
push ecx
mov byte [ebp - 4], 0xf
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [ebp - 0x2c], edi
call fcn.00433c79
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x421d55
cmp dword [esi - 0xc], 0
jne 0x421d57
xor bl, bl
mov dword [ebp - 4], 0xe
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
test bl, bl
je 0x421db1
push str.UpgradeName_from_product_manifest:
lea ecx, [ebp - 0x28]
call fcn.0040130b
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
mov byte [ebp - 4], 0x10
call fcn.0040f821
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [ebp + 8]
push eax
mov ecx, 0x4a67d4
call fcn.004063a1
jmp 0x421db3
xor ebx, ebx
call fcn.00432000
test eax, eax
jne 0x421e1d
lea ecx, [esi - 0x10]
call fcn.004017c4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], ebx
je 0x421df2
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], ebx
je 0x421dff
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [ebp - 0x24]
jmp 0x421f1d
lea eax, [ebp + 0xc]
push eax
mov ecx, 0x4a6834
call fcn.00417a81
lea ecx, [esi - 0x10]
test eax, eax
je 0x421dbf
mov byte [ebp - 4], 9
call fcn.004017c4
push 0x4a6708
call fcn.0042b065
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
test eax, eax
jne 0x421e81
call fcn.004017c4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], 0
je 0x421e78
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
jmp 0x421df5
call fcn.004017c4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], 0
je 0x421eaa
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x421eb8
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
jmp 0x421f1d
push esi
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040fcf3
add esp, 0xc
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], esi
je 0x421ef8
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x421f05
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, ebx
call fcn.00449f9a
ret 0xc