Function at 0x42ec42
Capabilities:
Reference sql statements

Disassembly:
push 0x34
mov eax, 0x4aea02
call fcn.00468fa8
mov dword [ebp - 0x40], ecx
xor ebx, ebx
lea ecx, [ebp - 0x28]
push str.InitUpgrade...
mov dword [ebp - 0x34], ebx
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x28]
mov dword [ebp - 4], ebx
pop ecx
call fcn.004137d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [0x514e04]
mov ecx, 0x5152ac
call fcn.00403251
mov edi, eax
call fcn.0040d12d
mov dword [ebp - 0x38], eax
test esi, esi
je 0x42eca4
test edi, edi
je 0x42ecb5
test edi, edi
je 0x42ecac
test eax, eax
je 0x42ecb5
cmp dword [0x514e34], 0
je 0x42ecee
push str.Upgrade_disabled__returning:
lea ecx, [ebp - 0x28]
call fcn.00402829
push 0x3d32
push 2
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 1
pop ecx
call fcn.00413882
pop ecx
mov ecx, dword [ebp - 0x28]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, esi
jmp 0x42f0c2
push 0xd
pop ecx
test eax, eax
mov ebx, 0x3d32
push str.Upgrade_data_not_available
cmovne ebx, ecx
lea ecx, [ebp - 0x1c]
call fcn.00402829
push 2
pop esi
mov dword [ebp - 4], esi
call fcn.0044f181
push eax
lea ecx, [ebp - 0x30]
call fcn.00402899
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 3
push eax
mov edx, dword [edx]
call fcn.00445ab6
mov edi, dword [ebp - 0x30]
pop ecx
cmp dword [edi - 0xc], 0
jne 0x42ed6e
push str.:_Upgrade_ID
lea ecx, [ebp - 0x28]
call fcn.00402829
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push 0
push eax
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.004130a0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x42f0ad
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push str.SELECT__FROM__UpgradeEx__WHERE__Upgrade_
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00402829
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
push dword [edi - 0xc]
push edi
call fcn.004025c6
push 0x4ebf58
lea ecx, [ebp - 0x24]
call fcn.00411e9f
cmp dword [ebp - 0x18], 0
je 0x42edb3
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
and dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x24]
push dword [esi + 4]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x42f076
push eax
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x42f076
cmp dword [ebp - 0x14], eax
je 0x42edf2
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x42f076
call fcn.0044f181
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402899
mov byte [ebp - 4], 8
call fcn.0044f181
push eax
lea ecx, [ebp - 0x28]
call fcn.00402899
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x14]
push eax
push 2
pop edx
call fcn.00445ab6
pop ecx
test eax, eax
je 0x42ee56
push str.:_URL
lea ecx, [ebp - 0x20]
call fcn.00402829
mov byte [ebp - 4], 0xa
jmp 0x42ee7b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
push 3
pop edx
call fcn.00445ab6
pop ecx
test eax, eax
je 0x42ee9e
push str.:_Upgrade_Match
lea ecx, [ebp - 0x20]
call fcn.00402829
mov byte [ebp - 4], 0xb
push 0
lea eax, [ebp - 0x20]
push eax
push 2
lea edx, [ebp - 0x1c]
pop ecx
call fcn.004130a0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x42f05e
lea eax, [ebp - 0x28]
mov ecx, 0x514e5c
push eax
call fcn.0043df32
push str.NoLongerSupported
lea ecx, [ebp - 0x20]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 0xc
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x20]
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0044591e
pop ecx
test eax, eax
jne 0x42eeef
push str.1324
lea ecx, [ebp - 0x1c]
call fcn.0040969f
mov byte [ebp - 0xd], 1
test eax, eax
je 0x42eef3
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp byte [ebp - 0xd], 0
je 0x42ef43
push str.NoLongerSupported_is_set_in_Manifest
lea ecx, [ebp - 0x20]
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
pop ecx
call fcn.004137d1
pop ecx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov dword [0x514f24], 1
cmp dword [ebp - 0x38], 0
jne 0x42f01b
call fcn.0044f181
push eax
lea ecx, [ebp - 0x20]
call fcn.00402899
push str.UpgradeName
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xe
call fcn.00402829
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x20]
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x38]
push eax
mov dword [ebp - 0x34], 2
call fcn.0044591e
mov esi, dword [ebp - 0x20]
pop ecx
test eax, eax
jne 0x42ef98
cmp dword [esi - 0xc], 0
mov byte [ebp - 0xd], 1
jne 0x42ef9c
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xe
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp byte [ebp - 0xd], 0
je 0x42eff8
push str.UpgradeName_from_product_manifest:
lea ecx, [ebp - 0x38]
call fcn.00402829
push 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x10
push eax
push 2
lea edx, [ebp - 0x38]
pop ecx
call fcn.004130a0
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x20]
mov ecx, 0x514f38
push eax
call fcn.00402e14
mov esi, dword [ebp - 0x20]
call fcn.00442e73
test eax, eax
je 0x42f03c
lea eax, [ebp - 0x2c]
mov ecx, 0x514fec
push eax
call fcn.00421ced
test eax, eax
je 0x42f03c
lea ecx, [esi - 0x10]
call fcn.00402e64
and dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], vtable.CManifest.0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x11
call fcn.0042f0ca
test eax, eax
je 0x42f044
and dword [ebp - 0x40], 0
jmp 0x42f04e
lea ecx, [esi - 0x10]
jmp 0x42ee94
mov dword [0x514ee0], 1
lea ecx, [ebp - 0x3c]
call fcn.0042b322
cmp dword [ebp - 0x40], 0
je 0x42f05e
xor ebx, ebx
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x42f084
push 0
push 2
lea edx, [ebp - 0x1c]
pop ecx
call fcn.004137d1
pop ecx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [ebp - 0x14], 0
je 0x42f09e
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], 0
je 0x42f0ad
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea ecx, [edi - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, ebx
call fcn.00468f71
ret 8