Function at 0x47916c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [eax]
push esi
lea ecx, [ebp - 8]
push ecx
push 1
xor esi, esi
push eax
mov dword [ebp - 8], esi
call sub.msi.dll_MsiOpenProductW
test eax, eax
je 0x47919e
cmp dword [ebp - 8], esi
je 0x479197
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor al, al
jmp 0x47932f
lea eax, [ebp - 0x10]
push eax
call fcn.00447480
push dword [edi]
lea eax, [ebp - 0x10]
push str.SELECT__Value__FROM__Property__WHERE_Property_s
push eax
call fcn.0044c153
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
push dword [ebp - 8]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x4791e7
cmp dword [ebp - 4], esi
je 0x4791dd
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x10]
call fcn.004029ae
jmp 0x47918a
push esi
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x4791d0
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, 0x103
setne bl
mov esi, str.UPDATE__Property__SET__Property_._Value___WHERE_Property_
test bl, bl
jne 0x47921a
mov esi, str.INSERT_INTO__Property____Property____Value___VALUES_______
cmp dword [ebp - 4], 0
je 0x479228
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x479244
xor esi, esi
jmp 0x4792ca
push 2
call sub.msi.dll_MsiDatabaseExportA
cmp dword [ebp - 0xc], 0
mov esi, eax
je 0x47925b
push dword [ebp - 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x47927d
cmp dword [ebp - 4], esi
je 0x47926f
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x10]
call fcn.004029ae
cmp dword [ebp - 8], 0
jmp 0x4792ef
mov eax, dword [ebp + 8]
test bl, bl
jne 0x479286
mov eax, edi
push dword [eax]
push 1
push esi
call sub.msi.dll_MsiReinstallFeatureW
test eax, eax
jne 0x47923d
mov eax, edi
test bl, bl
jne 0x47929d
mov eax, dword [ebp + 8]
push dword [eax]
push 2
push dword [ebp - 0xc]
call sub.msi.dll_MsiReinstallFeatureW
test eax, eax
jne 0x47923d
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x47923d
push dword [ebp - 8]
call sub.msi.dll_MsiDatabaseGenerateTransformW
xor esi, esi
test eax, eax
je 0x4792fd
cmp dword [ebp - 0xc], esi
je 0x4792d7
push dword [ebp - 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], esi
je 0x4792e4
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x10]
call fcn.004029ae
cmp dword [ebp - 8], esi
je 0x4792f9
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor al, al
jmp 0x47932e
cmp dword [ebp - 0xc], esi
je 0x47930a
push dword [ebp - 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], esi
je 0x479317
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x10]
call fcn.004029ae
cmp dword [ebp - 8], esi
je 0x47932c
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov al, 1
pop ebx
pop esi
leave
ret 4