Function at 0x42cafc
Capabilities:
Reference sql statements

Disassembly:
push 0x888
mov eax, 0x494f9f
call fcn.00459b85
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x884], ebx
mov dword [ebp - 0x880], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x880], ebx
je 0x42cb35
push dword [ebp - 0x880]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [esi + 4]
mov dword [ebp - 0x880], ebx
cmp dword [eax + 0x14], 8
jb 0x42cb46
mov eax, dword [eax]
lea ecx, [ebp - 0x880]
push ecx
push ebx
push eax
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x42cd45
mov dword [ebp - 0x878], ebx
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
and dword [ebp - 0x874], eax
lea eax, [ebp - 0x870]
push 0x4b65d4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x879]
push 0
mov esi, 0x4b6750
mov dword [ebp - 0x40], 0x4b6748
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], esi
call fcn.004060a0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x879]
push 0
push eax
push str.SELECT__FROM__Property__WHERE__Property_ProductVersion
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4b6748
mov dword [ebp - 0x48], esi
call fcn.0041070a
mov byte [ebp - 4], 6
lea esi, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
cmovae esi, dword [ebp - 0x6c]
cmp dword [ebp - 0x878], 0
je 0x42cbeb
push dword [ebp - 0x878]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
and dword [ebp - 0x878], 0
lea eax, [ebp - 0x878]
push esi
push eax
push dword [ebp - 0x880]
lea eax, [ebp - 0x874]
push eax
call fcn.0042f6a5
mov ecx, 0x400
add esp, 0x10
mov dword [ebp - 0x888], ecx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
mov dword [ebp - 0x894], eax
xor eax, eax
mov byte [ebp - 0x890], al
mov dword [ebp - 0x88c], eax
cmp dword [ebp - 0x2c], ecx
jae 0x42cc44
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0041496d
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x884], ebx
mov byte [ebp - 0x890], bl
call fcn.004140be
lea ecx, [ebp - 0x888]
push ecx
push dword [eax]
push 2
push dword [ebp - 0x878]
call sub.msi.dll_MsiRecordSetStreamA
mov ecx, ebx
mov esi, eax
mov dword [ebp - 0x884], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x884], ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x894]
call fcn.0041132b
test esi, esi
jne 0x42ccf3
lea ecx, [edi + 4]
cmp dword [ecx + 0x14], 8
jb 0x42cc9f
mov ecx, dword [ecx]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push ecx
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.00458a94
pop ecx
pop ecx
test eax, eax
jne 0x42ccf3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00404cc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00404cc0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x874], 0
je 0x42cce6
push dword [ebp - 0x874]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 0
cmp dword [ebp - 0x878], 0
jmp 0x42cd38
push dword [ebp - 0x874]
call sub.msi.dll_MsiViewGetErrorW
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00404cc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00404cc0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x874], 0
je 0x42cd2d
push dword [ebp - 0x874]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor ebx, ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x878], ebx
je 0x42cd45
push dword [ebp - 0x878]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x880], 0
je 0x42cd5d
push dword [ebp - 0x880]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, ebx
call fcn.00459b34
ret 8