Function at 0x4101a0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x461f0b
call fcn.004571ec
sub esp, 0x564
push ebx
push esi
push edi
lea eax, [ebp - 0x56c]
mov esi, ecx
xor ebx, ebx
push 0x485ac0
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x570], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0x148
push str._Data_
push esi
mov dword [ebp - 4], ebx
call fcn.00415426
pop ecx
test al, al
pop ecx
je 0x41031c
push str.SELECT_Feature__Attributes_FROM_Feature_WHERE__Feature_Parent___
lea eax, [ebp - 0x570]
push dword [ebp + 0xc]
push eax
call fcn.0040157a
add esp, 0xc
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], ebx
je 0x41021e
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp - 0x570]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, ebx
jne 0x410307
push 2
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordReadStream
cmp eax, 0x80000000
je 0x410211
test al, 0x10
je 0x410211
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x800
push eax
lea eax, [ebp - 0x16c]
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.004053c0
lea eax, [ebp - 0x16c]
push eax
call fcn.00457370
pop ecx
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405cf7
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.00411342
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004053c0
mov eax, dword [edi + 4]
cmp dword [ebp - 0x18], eax
je 0x410211
lea eax, [ebp + 0xb]
push 1
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004048f0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x418]
call fcn.00410f49
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.004060f2
jmp 0x410211
and byte [ebp - 4], 0
cmp dword [ebp - 0x10], ebx
je 0x410455
push dword [ebp - 0x10]
jmp 0x410450
mov ecx, esi
call fcn.004054cd
push eax
push str.SELECT__FROM_ISRequiredFeature_WHERE_RequiringFeature___s
push dword [ebp + 0xc]
lea eax, [ebp - 0x570]
push eax
call fcn.0040157a
add esp, 0x10
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x10], ebx
je 0x410352
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp - 0x570]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, ebx
jne 0x410444
lea eax, [ebp + 0xb]
mov esi, 0x800
push 1
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x20], esi
call fcn.0040487b
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.004049f7
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 6
call fcn.004054cd
lea ecx, [ebp - 0x20]
mov dword [esi + 8], eax
push ecx
push eax
push 2
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetInteger
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00404a35
lea ecx, [ebp - 0x6c]
call fcn.004054cd
mov esi, eax
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
call fcn.004053c0
push esi
call fcn.00457370
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00405cf7
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 7
call fcn.00411342
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004053c0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x410433
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x14]
add ecx, 0x418
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x18]
mov eax, dword [ecx + 4]
push edx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004113f7
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.004060f2
jmp 0x410345
and byte [ebp - 4], 0
cmp dword [ebp - 0x10], ebx
je 0x410455
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x434]
mov esi, dword [eax]
cmp esi, eax
je 0x410485
push dword [ebp + 0xc]
mov ecx, dword [esi + 8]
push edi
call fcn.004101a0
mov ebx, eax
test ebx, ebx
jl 0x4104ab
mov eax, dword [ebp - 0x14]
mov esi, dword [esi]
cmp esi, dword [eax + 0x434]
jne 0x410464
xor ebx, ebx
cmp dword [ebp - 0x570], ebx
je 0x410498
push dword [ebp - 0x570]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
cmp dword [ebp - 0x570], 0
je 0x4104bf
push dword [ebp - 0x570]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, ebx
jmp 0x41049a