Function at 0x41a0a7
Capabilities:
Reference sql statements

Disassembly:
push 0x1c
mov eax, 0x44f6f5
call fcn.00436706
push str.InitUpgrade...
lea ecx, [ebp - 0x1c]
call fcn.00402148
xor edi, edi
push edi
lea eax, [ebp - 0x1c]
push eax
push 2
mov dword [ebp - 4], edi
call fcn.0040e1e3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
mov ebx, dword [0x4804e4]
mov esi, 0x480a88
mov eax, esi
call fcn.004051de
mov dword [ebp - 0x1c], eax
mov eax, esi
call fcn.0040520f
cmp ebx, edi
je 0x41a108
cmp dword [ebp - 0x1c], edi
je 0x41a111
cmp dword [ebp - 0x1c], edi
je 0x41a14c
cmp eax, edi
jne 0x41a14c
push str.Upgrade_disabled_in_manual_mode
lea ecx, [ebp + 0xc]
call fcn.00402148
push edi
lea eax, [ebp + 0xc]
push eax
push 2
mov dword [ebp - 4], 1
call fcn.0040e1e3
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
mov eax, 0x3d32
call fcn.004367de
ret 8
neg eax
sbb eax, eax
and eax, 0xffffc2db
add eax, 0x3d32
mov esi, eax
call fcn.004234c0
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040f910
push 2
pop ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
push 4
push dword [ebp + 0xc]
call fcn.004222be
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [eax - 0xc], edi
jne 0x41a1c4
push str.Upgrade_ID_is_not_available
lea ecx, [ebp + 0xc]
call fcn.00402148
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
mov byte [ebp - 4], 3
call fcn.0040e1e3
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
mov edi, esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025ca
mov eax, edi
jmp 0x41a144
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push str.SELECT__FROM__UpgradeEx__WHERE__Upgrade_
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00402148
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
call fcn.00401f7d
push 0x46bad8
lea eax, [ebp - 0x18]
push eax
call fcn.0040cc41
cmp dword [ebp - 0x14], edi
je 0x41a209
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 - 0x18]
mov dword [ebp - 0x14], edi
push eax
call sub.msi.dll_MsiEnumClientsA
cmp eax, edi
je 0x41a27b
push str.MDOV
lea ecx, [ebp + 0xc]
call fcn.00402148
lea eax, [ebp + 0xc]
push esi
push eax
mov byte [ebp - 4], 7
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025ca
cmp dword [ebp - 0x10], edi
je 0x41a265
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], edi
je 0x41a1b3
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x41a1b3
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
cmp eax, edi
je 0x41a2ac
push 0x46bd30
lea ecx, [ebp + 8]
call fcn.00402148
lea eax, [ebp + 8]
push esi
push eax
mov byte [ebp - 4], 8
call fcn.0041820b
pop ecx
pop ecx
mov esi, eax
mov ecx, dword [ebp + 8]
jmp 0x41a245
cmp dword [ebp - 0x10], edi
je 0x41a2b9
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
je 0x41a2f1
push 0x46bfc4
lea ecx, [ebp - 0x20]
call fcn.00402148
lea eax, [ebp - 0x20]
push esi
push eax
mov byte [ebp - 4], 9
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
jmp 0x41a243
call fcn.004234c0
push eax
lea ecx, [ebp + 8]
call fcn.0040f910
mov byte [ebp - 4], 0xa
call fcn.004234c0
push eax
lea ecx, [ebp + 0xc]
call fcn.0040f910
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 0xb
push ebx
push dword [ebp - 0x10]
call fcn.004222be
add esp, 0xc
cmp eax, edi
je 0x41a363
push str.MGRS_UpgURL_
lea ecx, [ebp - 0x24]
call fcn.00402148
lea eax, [ebp - 0x24]
push esi
push eax
mov byte [ebp - 4], 0xc
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004025ca
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025ca
jmp 0x41a2a7
lea eax, [ebp + 0xc]
push eax
push 3
push dword [ebp - 0x10]
call fcn.004222be
add esp, 0xc
cmp eax, edi
je 0x41a39a
push str.MGRS_UpgMatch_
lea ecx, [ebp - 0x28]
call fcn.00402148
lea eax, [ebp - 0x28]
push esi
push eax
mov byte [ebp - 4], 0xd
call fcn.0041820b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28]
jmp 0x41a349
lea ebx, [ebp + 0xc]
mov ecx, 0x4808dc
call fcn.0041e3c3
lea eax, [ebp + 8]
push eax
call fcn.00406e2a
test eax, eax
je 0x41a353
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025ca
cmp dword [ebp - 0x10], edi
je 0x41a3e2
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], edi
je 0x41a1b5
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x41a1b5