Function at 0x4122eb
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x474eab
call fcn.004680bc
sub esp, 0x564
push ebx
push esi
push edi
lea eax, [ebp - 0x56c]
mov ebx, ecx
xor edi, edi
push 0x49f938
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x570], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [ebx + 0x154]
lea eax, [ebx + 0x158]
mov ecx, esi
push str._Data_
neg ecx
sbb ecx, ecx
mov dword [ebp - 4], edi
and ecx, eax
call fcn.004176d8
test eax, eax
jne 0x412472
push str.SELECT_Feature__Attributes_FROM_Feature_WHERE__Feature_Parent___
lea eax, [ebp - 0x570]
push dword [ebp + 0xc]
push eax
call fcn.00404bb5
add esp, 0xc
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 1
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x412376
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push dword [ebp - 0x570]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, esi
jne 0x41245d
push 2
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordReadStream
cmp eax, 0x80000000
je 0x412367
test al, 0x10
je 0x412367
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 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.0040642f
lea eax, [ebp - 0x16c]
push eax
call fcn.00468340
pop ecx
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004077fd
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00413662
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040642f
mov eax, dword [edi + 4]
cmp dword [ebp - 0x14], eax
je 0x412367
lea eax, [ebp + 0xb]
push 1
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040572c
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 0x470]
mov byte [ebp - 4], 3
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004131b6
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00407421
jmp 0x412367
and byte [ebp - 4], 0
cmp dword [ebp - 0x10], esi
je 0x4125ab
push dword [ebp - 0x10]
jmp 0x4125a6
mov ecx, esi
call fcn.0040653c
push eax
push str.SELECT__FROM_ISRequiredFeature_WHERE_RequiringFeature___s
push dword [ebp + 0xc]
lea eax, [ebp - 0x570]
push eax
call fcn.00404bb5
add esp, 0x10
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 4
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x4124aa
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push dword [ebp - 0x570]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, esi
jne 0x41259a
lea eax, [ebp + 0xb]
mov esi, 0x800
push 1
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x18], esi
call fcn.0040561b
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.0040581b
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 6
call fcn.0040653c
lea ecx, [ebp - 0x18]
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.00405861
lea ecx, [ebp - 0x6c]
call fcn.0040653c
mov esi, eax
mov al, byte [ebp + 0xf]
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
call fcn.0040642f
push esi
call fcn.00468340
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004077fd
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 7
call fcn.00413662
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0040642f
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x412589
mov eax, dword [ecx + 0x1c]
lea ecx, [ebx + 0x470]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov eax, dword [ecx + 4]
push edx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00406ef8
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.00407421
jmp 0x41249b
and byte [ebp - 4], 0
cmp dword [ebp - 0x10], esi
je 0x4125ab
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebx + 0x48c]
mov esi, dword [eax]
cmp esi, eax
je 0x4125d6
push dword [ebp + 0xc]
mov ecx, dword [esi + 8]
push edi
call fcn.004122eb
mov ebx, eax
test ebx, ebx
jl 0x4125fd
mov eax, dword [ebp - 0x20]
mov esi, dword [esi]
cmp esi, dword [eax + 0x48c]
jne 0x4125b7
cmp dword [ebp - 0x570], 0
je 0x4125ea
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 0x412611
push dword [ebp - 0x570]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, ebx
jmp 0x4125ec