Function at 0x40e2fe
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x4748ba
call fcn.004680bc
mov eax, 0x1cd4
call fcn.00468240
push ebx
push edi
xor edi, edi
mov ebx, ecx
cmp dword [ebp + 0xc], edi
jne 0x40e386
mov eax, dword [ebx + 0x10]
push edi
mov eax, dword [eax + 4]
push dword [eax + ebx + 0x10]
lea eax, [ebp + 0x10]
push eax
call fcn.0040a365
mov eax, dword [ebp + 0x10]
lea edx, [ebx + 0x3c]
push edx
push 0x495288
mov ecx, dword [eax]
push eax
call dword [ecx]
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x78]
push dword [ebp + 0x14]
call fcn.0040572c
push dword [0x47e4c4]
lea eax, [ebp - 0x78]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x74]
and eax, ecx
push edi
push eax
lea ecx, [ebx + 0x158]
mov dword [ebp - 4], edi
call fcn.00407aa4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00407421
jmp 0x40ecc1
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov esi, 0x800
jne 0x40e3c1
lea ecx, [ebx + 0x154]
push str._Data_
call fcn.004057de
push 2
mov dword [ebx + 0x404], edi
pop eax
mov byte [ebx + 0x60], 1
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
jmp 0x40eb1c
lea eax, [ebp - 0x24]
push esi
lea ecx, [ebx + 0x154]
push eax
mov dword [ebp - 0x14], esi
call fcn.0040581b
mov edi, eax
mov ecx, dword [edi]
mov dword [ebp - 4], 1
call fcn.0040653c
lea ecx, [ebp - 0x14]
mov dword [edi + 8], eax
mov edi, dword [ebp + 0x10]
push ecx
push eax
push 1
push edi
call sub.msi.dll_MsiRecordSetInteger
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x360]
mov dword [ebp - 0x14], esi
call fcn.0040581b
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 2
call fcn.0040653c
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push 1
push edi
call sub.msi.dll_MsiRecordSetInteger
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x388]
mov dword [ebp - 0x14], esi
call fcn.0040581b
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 3
call fcn.0040653c
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push 2
push edi
call sub.msi.dll_MsiRecordSetInteger
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0xb4]
mov dword [ebp - 0x14], esi
call fcn.0040581b
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 4
call fcn.0040653c
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push 3
push edi
call sub.msi.dll_MsiRecordSetInteger
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x64]
mov dword [ebp - 0x14], esi
call fcn.0040581b
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 5
call fcn.0040653c
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push 4
push edi
call sub.msi.dll_MsiRecordSetInteger
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00405861
push 5
push edi
call sub.msi.dll_MsiRecordReadStream
push 6
push edi
mov dword [ebx + 0x400], eax
call sub.msi.dll_MsiRecordReadStream
lea ecx, [ebx + 0x404]
mov edx, SysReAllocStringLen
cmp eax, edx
mov dword [ecx], eax
jne 0x40e536
and dword [ecx], 0
mov eax, dword [ebx + 0x400]
test eax, eax
je 0x40e549
cmp eax, edx
je 0x40e549
push 1
pop eax
jmp 0x40e54b
xor eax, eax
mov byte [ebx + 0x2e4], al
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x408]
mov dword [ebp - 0x14], esi
call fcn.0040581b
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 6
call fcn.0040653c
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push 7
push edi
call sub.msi.dll_MsiRecordSetInteger
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00405861
push 8
push edi
call sub.msi.dll_MsiRecordReadStream
mov dword [ebx + 0x430], eax
lea eax, [ebp - 0x4d4]
xor edi, edi
push 0x49f938
push eax
mov dword [ebp - 0x4d8], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 7
mov dword [ebp - 0x10], edi
lea ecx, [ebx + 0x154]
mov byte [ebp - 4], 8
call fcn.0040653c
push eax
push str.SELECT__FROM_ISFeatureExtended_WHERE_Feature____s
push dword [ebp + 0xc]
lea eax, [ebp - 0x4d8]
push eax
call fcn.00404bb5
add esp, 0x10
test eax, eax
jne 0x40e7d0
cmp dword [ebp - 0x10], edi
je 0x40e602
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push dword [ebp - 0x4d8]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x40e7d0
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x1f4]
mov dword [ebp + 0x10], esi
call fcn.0040581b
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 9
call fcn.0040653c
lea ecx, [ebp + 0x10]
mov dword [edi + 8], eax
push ecx
push eax
push 2
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x21c]
mov dword [ebp + 0x10], esi
call fcn.0040581b
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xa
call fcn.0040653c
lea ecx, [ebp + 0x10]
mov dword [edi + 8], eax
push ecx
push eax
push 3
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x1a4]
mov dword [ebp + 0x10], esi
call fcn.0040581b
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xb
call fcn.0040653c
lea ecx, [ebp + 0x10]
mov dword [edi + 8], eax
push ecx
push eax
push 4
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x1cc]
mov dword [ebp + 0x10], esi
call fcn.0040581b
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xc
call fcn.0040653c
lea ecx, [ebp + 0x10]
mov dword [edi + 8], eax
push ecx
push eax
push 5
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x104]
mov dword [ebp + 0x10], esi
call fcn.0040581b
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xd
call fcn.0040653c
lea ecx, [ebp + 0x10]
mov dword [edi + 8], eax
push ecx
push eax
push 6
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0xdc]
mov dword [ebp + 0x10], esi
call fcn.0040581b
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xe
call fcn.0040653c
lea ecx, [ebp + 0x10]
mov dword [edi + 8], eax
push ecx
push eax
push 7
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00405861
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x12c]
mov dword [ebp + 0x10], esi
call fcn.0040581b
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xf
call fcn.0040653c
lea ecx, [ebp + 0x10]
mov dword [edi + 8], eax
push ecx
push eax
push 8
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00405861
xor edi, edi
lea ecx, [ebx + 0x154]
call fcn.0040653c
push eax
push str.SELECT_Component__FROM_FeatureComponents_WHERE_Feature____s
push dword [ebp + 0xc]
lea eax, [ebp - 0x4d8]
push eax
call fcn.00404bb5
add esp, 0x10
test eax, eax
jne 0x40e98a
jmp 0x40e7ff
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x40e80c
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push dword [ebp - 0x4d8]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x40e98a
and byte [ebp - 0x14e0], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x14df]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
lea eax, [ebp - 0x14e0]
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
lea eax, [ebp - 0xcdc]
xor edi, edi
push 0x49f938
push eax
mov dword [ebp - 0xce0], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp + 0x10], edi
lea eax, [ebp - 0x14e0]
mov byte [ebp - 4], 0x11
push eax
push str.SELECT_Directory__FROM_Component_WHERE_Component___s
push dword [ebp + 0xc]
lea eax, [ebp - 0xce0]
push eax
call fcn.00404bb5
add esp, 0x10
test eax, eax
jne 0x40e8d5
cmp dword [ebp + 0x10], edi
je 0x40e8a7
push dword [ebp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push dword [ebp - 0xce0]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x40e8d5
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
lea eax, [ebp - 0x1ce0]
push eax
push 1
push dword [ebp + 0x10]
call sub.msi.dll_MsiRecordSetInteger
mov al, byte [ebp + 0xf]
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.0040642f
lea eax, [ebp - 0x14e0]
push eax
call fcn.00468340
pop ecx
push eax
lea eax, [ebp - 0x14e0]
push eax
lea ecx, [ebp - 0x28]
call fcn.004077fd
lea eax, [ebp - 0x28]
mov ecx, 0x49f9a8
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0x12
call fcn.004139f7
mov edi, dword [ebp - 0x34]
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.0040642f
lea eax, [ebp - 0x1ce0]
push eax
call fcn.00468340
pop ecx
push eax
lea eax, [ebp - 0x1ce0]
push eax
lea ecx, [edi + 0x5c]
call fcn.004077fd
mov eax, dword [ebx + 0x350]
lea ecx, [ebx + 0x348]
add edi, 0x28
push edi
push eax
call 0x406cfb
cmp dword [ebp + 0x10], 0
je 0x40e969
push dword [ebp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0xce0], 0
mov byte [ebp - 4], 8
je 0x40e7fd
push dword [ebp - 0xce0]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x40e7fd
lea eax, [ebp + 0x13]
push edi
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x78], 0x47e4b8
mov dword [ebp - 0x58], 0x47e4b0
call fcn.004058e5
mov eax, 0x104
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x50], eax
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x13
push eax
call fcn.0041f411
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0x14
call fcn.00406608
lea ecx, [ebp - 0x50]
mov dword [edi + 8], eax
push ecx
push eax
push str.INSTALLDIR
push dword [0x4b3d24]
call sub.msi.dll_MsiInstallMissingComponentA
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x13
call fcn.00405d65
lea eax, [ebp - 0x2c]
push eax
call fcn.00416567
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
lea eax, [ebp - 0xd4]
lea ecx, [ebp - 0x78]
push eax
call fcn.00406ff2
push 0x495d74
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x15
push eax
call fcn.0040a3b8
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.00406608
push eax
call fcn.00449dd8
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4b3d24]
pop ecx
and dword [edi + 0x34], 0
mov dword [edi + 0x30], eax
push dword [0x47e51c]
lea eax, [ebp - 0x78]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x74]
and eax, ecx
push 0
push eax
lea ecx, [edi + 0x3c]
call fcn.00406732
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0xa0]
mov dword [edi + 0x60], eax
mov byte [ebp - 4], 0x15
call fcn.00407421
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x13
call fcn.00407421
push dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x154]
push eax
lea eax, [ebx + 0x4a0]
push eax
push dword [ebp + 0xc]
call fcn.004126b7
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x2f8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x2fc], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x358], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x35c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 8
call fcn.00407421
cmp dword [ebp - 0x10], 0
je 0x40eb04
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4d8], 0
je 0x40eb1c
push dword [ebp - 0x4d8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x40eb7d
lea eax, [ebx + 0x154]
push eax
lea eax, [edi + 0x294]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004170cd
add esp, 0xc
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov dword [ebp - 4], 0x17
neg ecx
sbb ecx, ecx
push 0
and ecx, eax
push ecx
lea ecx, [ebx + 0x298]
call fcn.00406732
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00407421
mov dword [ebx + 0x49c], edi
jmp 0x40eb98
mov eax, dword [ebx + 0x15c]
test eax, eax
jne 0x40eb8c
mov eax, 0x47e4c8
lea ecx, [ebx + 0x294]
push eax
call fcn.00405c0c
mov eax, dword [ebx + 0x10]
xor edi, edi
push edi
mov eax, dword [eax + 4]
push dword [eax + ebx + 0x10]
lea eax, [ebp - 0x38]
push eax
call fcn.0040a365
mov eax, dword [ebp - 0x38]
lea edx, [ebx + 0x3c]
push edx
push 0x495288
mov ecx, dword [eax]
push eax
call dword [ecx]
lea eax, [ebp - 0x8d8]
push 0x49f938
push eax
mov dword [ebp - 0x8dc], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x8dc]
mov dword [ebp - 4], 0x18
push 0x495d30
push dword [ebp + 0xc]
push eax
call fcn.00404bb5
add esp, 0x10
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0x19
cmp dword [ebp - 0x18], edi
je 0x40ec0c
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push dword [ebp - 0x8dc]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x40ec72
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], esi
push eax
lea eax, [ebp - 0x1ce0]
push eax
push 1
push dword [ebp - 0x18]
call sub.msi.dll_MsiRecordSetInteger
push ebx
lea eax, [ebp - 0x1ce0]
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x38]
push eax
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a27a
lea ecx, [ebx + 0x488]
mov dword [ebp + 0x10], eax
lea edx, [ebp + 0x10]
mov eax, dword [ecx + 4]
push edx
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00406ef8
jmp 0x40ebff
lea eax, [ebp - 0x3c]
push eax
call fcn.0041618b
mov eax, dword [ebp - 0x3c]
add ebx, 0x4c
push ebx
push 0x495d20
mov ecx, dword [eax]
push eax
call dword [ecx]
push dword [ebp - 0x3c]
mov eax, 0x40ecd1
push eax
push dword [ebp - 0x38]
call fcn.0041714b
add esp, 0xc
cmp dword [ebp - 0x18], edi
pop esi
je 0x40ecae
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x8dc], edi
je 0x40ecc1
push dword [ebp - 0x8dc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18