Function at 0x40e8a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push str.SELECT__Feature____Feature_Parent____Title____Description____Directory_____Display____Level____Attributes____RuntimeLevel____RuntimeAttributes____Select____Action____ActionRequested____Installed____Handle____RuntimeFlags____DefaultSelect__FROM__Feature__WHERE__Action_1
movq qword [ebx], xmm0
push edx
mov dword [ebx + 8], 0
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov dword [0x45771c], eax
test eax, eax
je 0x40e8e8
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x4920
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx], eax
test eax, eax
je 0x40eab9
push 0
push dword [ebp - 4]
call dword [sym.imp.msi.dll_MsiViewModify]
mov esi, dword [ebx]
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebx + 4], 0x104
mov dword [ebp - 0xc], esi
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov edi, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
jne 0x40ea4a
nop dword [eax]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jne 0x40e97b
lea eax, [ecx + ecx]
mov dword [ebx + 4], eax
lea eax, [eax + eax*8]
shl eax, 3
push eax
push dword [ebx]
push 0
push dword [0x45764c]
call edi
mov edx, eax
test edx, edx
je 0x40eab9
mov eax, dword [ebx + 8]
mov dword [ebx], edx
lea ecx, [eax + eax*8]
lea esi, [edx + ecx*8]
mov dword [ebp - 0xc], esi
push 0x48
inc eax
push 0
push esi
mov dword [ebx + 8], eax
call fcn.0042a4e0
add esp, 0xc
mov edi, 1
add esi, 0x1c
push esi
push 0x457498
push edi
push dword [ebp - 8]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov dword [0x45771c], eax
mov ecx, dword [esi]
cmp eax, 0xea
jne 0x40e9e1
lea eax, [ecx + 1]
mov dword [esi], eax
add eax, eax
push eax
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi - 0x18], eax
test eax, eax
je 0x40eab9
push esi
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
jmp 0x40e9f8
test ecx, ecx
jne 0x40e9f8
push 2
push 8
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi - 0x18], eax
inc edi
add esi, 4
cmp edi, 6
jb 0x40e994
mov edi, dword [ebp - 0xc]
mov esi, 6
add edi, 0x30
nop dword [eax]
push esi
push dword [ebp - 8]
call dword [sym.imp.msi.dll_MsiRecordReadStream]
inc esi
mov word [edi], ax
lea edi, [edi + 2]
cmp esi, 0x12
jb 0x40ea10
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
add esi, 0x48
mov dword [ebp - 0xc], esi
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov edi, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x40e940
push dword [ebp - 4]
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
push dword [ebp - 4]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
test eax, eax
jne 0x40ea94
push ecx
push eax
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xorps xmm0, xmm0
xor al, al
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
pop esi
mov dword [0x45771c], 2
pop ebx
mov esp, ebp
pop ebp
ret
inc eax
mov dword [ebx + 4], eax
lea eax, [eax + eax*8]
shl eax, 3
push eax
push ecx
push 0
push dword [0x45764c]
call edi
test eax, eax
je 0x40eab0
mov dword [ebx], eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40eb08
mov esi, ecx
mov edi, 6
nop dword [eax + eax]
push dword [esi]
push 0
push dword [0x45764c]
call ebx
lea esi, [esi + 4]
sub edi, 1
jne 0x40eae0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
dec eax
add ecx, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x40ead1
push dword [ebp - 0x14]
push 0
push dword [0x45764c]
call ebx
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
push dword [ebp - 4]
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [0x45771c], 8
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
push dword [ebp - 4]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret