Function at 0x4225ea
Capabilities:
Reference sql statements

Disassembly:
push 0x10
mov eax, 0x46f896
call fcn.004529c4
push str.InitUpdateFromProductUpdatesExTable...
lea ecx, [ebp - 0x1c]
call fcn.004012e2
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.004117b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push str.SELECT__FROM__ProductUpdatesEx__WHERE__ProductCode_
lea ecx, [ebp - 0x18]
call fcn.004012e2
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00401103
push 0x497b90
lea eax, [ebp - 0x18]
push eax
call fcn.00407117
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [eax + 4]
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push eax
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
cmp esi, ebx
je 0x4226d0
push 0x497b94
lea ecx, [ebp + 0x10]
call fcn.004012e2
push esi
lea eax, [ebp + 0x10]
push eax
push 2
mov byte [ebp - 4], 4
call fcn.004117b0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], ebx
je 0x4226ae
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], ebx
je 0x4226bb
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
call fcn.00452a9c
ret 0xc
push ebx
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
mov esi, eax
cmp esi, ebx
je 0x422733
push 0x497ba0
lea ecx, [ebp + 0x10]
call fcn.004012e2
push esi
lea eax, [ebp + 0x10]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.004117b0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], ebx
je 0x422717
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], ebx
je 0x422724
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, ebx
jmp 0x4226c8
cmp dword [ebp - 0x10], ebx
je 0x422740
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x42270a
call fcn.0043eec2
push eax
lea ecx, [ebp + 0xc]
call fcn.004013a1
mov byte [ebp - 4], 6
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013a1
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 7
push 2
push dword [ebp - 0x10]
call main
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 3
push dword [ebp - 0x10]
call main
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push esi
call fcn.004074b3
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x422800
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004074b3
test eax, eax
je 0x422800
cmp dword [esi - 0xc], ebx
je 0x4227d0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call main
pop ecx
pop ecx
test eax, eax
je 0x4227e7
cmp dword [edi - 0xc], ebx
je 0x422800
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call main
pop ecx
pop ecx
test eax, eax
jne 0x422800
lea ecx, [edi - 0x10]
call fcn.004017df
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.004017df
jmp 0x422733
push dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push dword [ebp + 8]
mov dword [ebp + 0x10], 4
call fcn.0042284a
lea ecx, [edi - 0x10]
mov dword [ebp + 0x10], eax
call fcn.004017df
lea ecx, [esi - 0x10]
call fcn.004017df
cmp dword [ebp - 0x10], ebx
je 0x422835
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], ebx
je 0x422842
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ebx, dword [ebp + 0x10]
jmp 0x422724