Function at 0x40c52b
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x461976
call fcn.004571ec
mov eax, 0x1cd4
call fcn.004581e0
push ebx
push edi
xor edi, edi
mov ebx, ecx
cmp dword [ebp + 0xc], edi
jne 0x40c5b3
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.00408c13
mov eax, dword [ebp + 0x10]
lea edx, [ebx + 0x30]
push edx
push 0x47d290
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.004048f0
push dword [0x469488]
lea eax, [ebp - 0x78]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x74]
and eax, ecx
push edi
push eax
lea ecx, [ebx + 0x14c]
mov dword [ebp - 4], edi
call fcn.00405e76
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.004060f2
jmp 0x40ceee
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov esi, 0x800
jne 0x40c5ee
lea ecx, [ebx + 0x148]
push str._Data_
call fcn.004049a2
push 2
mov dword [ebx + 0x3b0], edi
pop eax
mov byte [ebx + 0x54], 1
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
jmp 0x40cd49
lea eax, [ebp - 0x24]
push esi
lea ecx, [ebx + 0x148]
push eax
mov dword [ebp - 0x14], esi
call fcn.004049f7
mov edi, eax
mov ecx, dword [edi]
mov dword [ebp - 4], 1
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x30c]
mov dword [ebp - 0x14], esi
call fcn.004049f7
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 2
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x334]
mov dword [ebp - 0x14], esi
call fcn.004049f7
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 3
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0xa8]
mov dword [ebp - 0x14], esi
call fcn.004049f7
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 4
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x58]
mov dword [ebp - 0x14], esi
call fcn.004049f7
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 5
call fcn.004054cd
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.00404a35
push 5
push edi
call sub.msi.dll_MsiRecordReadStream
push 6
push edi
mov dword [ebx + 0x3ac], eax
call sub.msi.dll_MsiRecordReadStream
lea ecx, [ebx + 0x3b0]
mov edx, 0x80000000
cmp eax, edx
mov dword [ecx], eax
jne 0x40c763
and dword [ecx], 0
mov eax, dword [ebx + 0x3ac]
test eax, eax
je 0x40c776
cmp eax, edx
je 0x40c776
push 1
pop eax
jmp 0x40c778
xor eax, eax
mov byte [ebx + 0x2d8], al
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x3b4]
mov dword [ebp - 0x14], esi
call fcn.004049f7
mov dword [ebp + 0x10], eax
mov ecx, dword [eax]
mov dword [ebp - 4], 6
call fcn.004054cd
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.00404a35
push 8
push edi
call sub.msi.dll_MsiRecordReadStream
mov dword [ebx + 0x3dc], eax
lea eax, [ebp - 0x4d4]
xor edi, edi
push 0x485ac0
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 + 0x148]
mov byte [ebp - 4], 8
call fcn.004054cd
push eax
push str.SELECT__FROM_ISFeatureExtended_WHERE_Feature____s
push dword [ebp + 0xc]
lea eax, [ebp - 0x4d8]
push eax
call fcn.0040157a
add esp, 0x10
test eax, eax
jne 0x40c9fd
cmp dword [ebp - 0x10], edi
je 0x40c82f
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 0x40c9fd
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x1e8]
mov dword [ebp + 0x10], esi
call fcn.004049f7
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 9
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x210]
mov dword [ebp + 0x10], esi
call fcn.004049f7
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xa
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x198]
mov dword [ebp + 0x10], esi
call fcn.004049f7
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xb
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x1c0]
mov dword [ebp + 0x10], esi
call fcn.004049f7
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xc
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0xf8]
mov dword [ebp + 0x10], esi
call fcn.004049f7
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xd
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0xd0]
mov dword [ebp + 0x10], esi
call fcn.004049f7
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xe
call fcn.004054cd
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.00404a35
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebx + 0x120]
mov dword [ebp + 0x10], esi
call fcn.004049f7
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xf
call fcn.004054cd
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.00404a35
xor edi, edi
lea ecx, [ebx + 0x148]
call fcn.004054cd
push eax
push str.SELECT_Component__FROM_FeatureComponents_WHERE_Feature____s
push dword [ebp + 0xc]
lea eax, [ebp - 0x4d8]
push eax
call fcn.0040157a
add esp, 0x10
test eax, eax
jne 0x40cbb7
jmp 0x40ca2c
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x40ca39
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 0x40cbb7
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 0x485ac0
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.0040157a
add esp, 0x10
test eax, eax
jne 0x40cb02
cmp dword [ebp + 0x10], edi
je 0x40cad4
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 0x40cb02
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.004053c0
lea eax, [ebp - 0x14e0]
push eax
call fcn.00457370
pop ecx
push eax
lea eax, [ebp - 0x14e0]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405cf7
lea eax, [ebp - 0x28]
mov ecx, 0x485b28
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0x12
call fcn.00411657
mov edi, dword [ebp - 0x34]
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.004053c0
lea eax, [ebp - 0x1ce0]
push eax
call fcn.00457370
pop ecx
push eax
lea eax, [ebp - 0x1ce0]
push eax
lea ecx, [edi + 0x5c]
call fcn.00405cf7
mov eax, dword [ebx + 0x2f0]
lea ecx, [ebx + 0x2e8]
add edi, 0x28
push edi
push eax
call fcn.004058f0
cmp dword [ebp + 0x10], 0
je 0x40cb96
push dword [ebp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0xce0], 0
mov byte [ebp - 4], 8
je 0x40ca2a
push dword [ebp - 0xce0]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x40ca2a
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], 0x469494
mov dword [ebp - 0x58], 0x46948c
call fcn.00404ab9
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.00405cca
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0x14
call fcn.00405599
lea ecx, [ebp - 0x50]
mov dword [edi + 8], eax
push ecx
push eax
push str.INSTALLDIR
push dword [0x499e8c]
call sub.msi.dll_MsiInstallMissingComponentA
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x13
call fcn.00404c0f
lea eax, [ebp - 0x2c]
push eax
call fcn.00414545
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.00411750
push 0x47d9f4
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x15
push eax
call fcn.00415060
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.00405599
push eax
call fcn.0043e9dc
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [0x499e8c]
pop ecx
and dword [edi + 0x34], 0
mov dword [edi + 0x30], eax
push dword [0x46950c]
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.00405665
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0xa0]
mov dword [edi + 0x60], eax
mov byte [ebp - 4], 0x15
call fcn.004060f2
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x13
call fcn.004060f2
push dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x148]
push eax
lea eax, [ebx + 0x448]
push eax
push dword [ebp + 0xc]
call fcn.00410542
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 + 0x300], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x304], 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.004060f2
cmp dword [ebp - 0x10], 0
je 0x40cd31
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4d8], 0
je 0x40cd49
push dword [ebp - 0x4d8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x40cdaa
lea eax, [ebx + 0x148]
push eax
lea eax, [edi + 0x288]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00415145
add esp, 0xc
push dword [0x46950c]
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 + 0x28c]
call fcn.00405665
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.004060f2
mov dword [ebx + 0x43c], edi
jmp 0x40cdc5
mov eax, dword [ebx + 0x150]
test eax, eax
jne 0x40cdb9
mov eax, 0x4694a0
lea ecx, [ebx + 0x288]
push eax
call fcn.00404bc1
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.00408c13
mov eax, dword [ebp - 0x38]
lea edx, [ebx + 0x30]
push edx
push 0x47d290
mov ecx, dword [eax]
push eax
call dword [ecx]
lea eax, [ebp - 0x8d8]
push 0x485ac0
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 str.SELECT__FROM_Feature_WHERE_Feature_Parent___s_ORDER_By_Display
push dword [ebp + 0xc]
push eax
call fcn.0040157a
add esp, 0x10
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0x19
cmp dword [ebp - 0x18], edi
je 0x40ce39
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 0x40ce9f
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.00408b28
lea ecx, [ebx + 0x430]
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.004113f7
jmp 0x40ce2c
lea eax, [ebp - 0x3c]
push eax
call fcn.0041418d
mov eax, dword [ebp - 0x3c]
add ebx, 0x40
push ebx
push 0x47d9a0
mov ecx, dword [eax]
push eax
call dword [ecx]
push dword [ebp - 0x3c]
mov eax, 0x40cefe
push eax
push dword [ebp - 0x38]
call fcn.004151c3
add esp, 0xc
cmp dword [ebp - 0x18], edi
pop esi
je 0x40cedb
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x8dc], edi
je 0x40ceee
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