Function at 0x40dd30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.SELECT__Registry_._Key____Registry_._Name____Registry_._Value____Registry_._Registry____Component_._Component____Component_._ComponentId____FeatureComponents_._Feature_____Registry_._Root____Component_._Attributes__FROM__Feature___FeatureComponents____Component____Registry__WHERE__Feature_._Action_1_AND__Component_._Action_1_AND__Feature_._Feature__FeatureComponents_._Feature___AND__Component_._Component__Registry_._Component___AND__Component_._Component__FeatureComponents_._Component___ORDER_BY__Registry_._Root_
push dword [ebp + 8]
movups xmmword [ebx], xmm0
mov dword [ebp - 0x24], 0
mov esi, 0xffff
movups xmmword [ebp - 0x14], xmm0
mov dword [ebx + 0x10], 0
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov dword [0x45771c], eax
test eax, eax
jne 0x40e4b1
push 0x6180
push eax
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx], eax
test eax, eax
je 0x40e41f
push 0
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiViewModify]
lea eax, [ebp - 0x24]
mov dword [ebx + 4], 0x104
mov ebx, dword [ebx]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov edi, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
jne 0x40dffd
nop dword [eax]
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x40de1d
lea eax, [ecx + ecx]
mov dword [esi + 4], eax
lea eax, [eax + eax*2]
shl eax, 5
push eax
push dword [esi]
push 0
push dword [0x45764c]
call edi
mov ebx, eax
test ebx, ebx
je 0x40e421
mov eax, dword [esi + 8]
mov dword [esi], ebx
lea ecx, [eax + eax*2]
shl ecx, 5
add ebx, ecx
push 0x60
inc eax
push 0
push ebx
mov dword [esi + 8], eax
call fcn.0042a4e0
add esp, 0xc
lea esi, [ebx + 0x2c]
mov edi, 1
cmp edi, 4
jae 0x40de54
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
lea eax, [esi - 0x28]
mov ecx, dword [ebp - 0x28]
push esi
push eax
push edi
call fcn.0040c990
add esp, 0x10
jmp 0x40deb8
push esi
push 0x457498
push edi
push dword [ebp - 0x24]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov dword [0x45771c], eax
mov ecx, dword [esi]
cmp eax, 0xea
jne 0x40dea1
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 - 0x28], eax
test eax, eax
je 0x40e41a
push esi
push eax
push edi
push dword [ebp - 0x24]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
jmp 0x40deb8
test ecx, ecx
jne 0x40deb8
push 2
push 8
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi - 0x28], eax
inc edi
add esi, 4
cmp edi, 8
jb 0x40de36
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.msi.dll_MsiRecordReadStream]
push 8
lea eax, [eax*2 + 0x1c]
mov dword [ebx + 0x54], eax
add dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x2c]
add dword [ebx + 0x54], 0x96
push dword [ebp - 0x24]
lea eax, [eax*2 + 0x1c]
add dword [ecx + 0x10], eax
call esi
movzx eax, ax
mov ecx, 0xffff
mov word [ebx + 0x58], ax
cmp ax, cx
jne 0x40df19
mov eax, 2
mov word [ebx + 0x58], ax
push 9
push dword [ebp - 0x24]
call esi
movzx ecx, ax
mov ax, word [ebx + 0x58]
inc ax
mov word [ebx + 0x5a], cx
add ax, ax
mov word [ebx + 0x5c], ax
test ecx, 0x100
je 0x40df41
inc eax
mov word [ebx + 0x5c], ax
push ecx
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x14]
call fcn.0040c670
add esp, 4
push 0x42
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebx + 0x20], edx
test edx, edx
je 0x40e41a
lea esi, [ebp - 0x14]
mov edi, 0x10
movzx ecx, byte [esi]
lea edx, [edx + 4]
mov eax, ecx
lea esi, [esi + 1]
and eax, 0xf
shr ecx, 4
movzx eax, word [eax*2 + 0x44e568]
mov word [edx - 4], ax
movzx eax, word [ecx*2 + 0x44e568]
mov word [edx - 2], ax
sub edi, 1
jne 0x40df75
xor eax, eax
push 0x2a
push eax
push dword [0x45764c]
mov word [edx], ax
mov dword [ebx + 0x48], 0x20
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 0x24], eax
test eax, eax
je 0x40e41a
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.0040c7d0
lea eax, [ebp - 0x24]
mov dword [ebx + 0x4c], 0x14
push eax
push dword [ebp - 0x20]
add ebx, 0x60
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov edi, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x40dde0
mov esi, 0xffff
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
test eax, eax
jne 0x40e053
push ecx
push eax
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xorps xmm0, xmm0
xor al, al
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [0x45771c], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
inc eax
mov dword [ebx + 4], eax
lea eax, [eax + eax*2]
shl eax, 5
push eax
push ecx
push 0
push dword [0x45764c]
call edi
test eax, eax
je 0x40e06f
mov dword [ebx], eax
mov eax, dword [ebx + 8]
cmp eax, 1
je 0x40e407
mov ecx, dword [ebx]
dec eax
push eax
xor edx, edx
call fcn.0040d1c0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov ebx, dword [ebx]
add esp, 4
mov dword [ebp - 0x38], edx
mov ecx, dword [ecx + 8]
lea eax, [ecx - 1]
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x40e26f
lea eax, [ebx + 0x5c]
mov dword [ebp - 0x30], edx
mov ebx, dword [ebp - 0x1c]
xor edi, edi
mov dword [ebp - 0x18], eax
movzx eax, word [eax]
mov ecx, eax
cmp si, ax
mov eax, dword [ebp - 0x38]
jne 0x40e0c8
cmp eax, dword [ebp - 0x28]
jne 0x40e24e
sub eax, edx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x28]
lea esi, [eax + 1]
cmovne esi, eax
mov eax, ecx
cmp esi, 1
jbe 0x40e23b
mov ecx, dword [ebx]
lea eax, [esi - 1]
push eax
add ecx, edi
xor edx, edx
call fcn.0040d2e0
mov edx, dword [ebx]
add esp, 4
add edx, edi
mov dword [ebp - 0x2c], edx
nop word [eax + eax]
mov ebx, 1
sub esi, ebx
mov dword [ebp - 0x34], esi
je 0x40e18b
lea edi, [edx + 0x64]
nop
mov esi, dword [edx + 0x2c]
cmp esi, dword [edi + 0x28]
jne 0x40e16f
mov ecx, dword [edi]
add esi, esi
mov eax, dword [edx + 4]
cmp esi, 0xfffe
mov dword [0x45641c], eax
mov dword [0x456414], ecx
mov ecx, 0xfffe
movzx eax, si
cmova eax, ecx
movzx eax, ax
mov word [0x456410], ax
mov word [0x456418], ax
cmp ax, cx
jae 0x40e1c0
push 1
push 0x456410
push 0x456418
call dword [0x457674]
movzx eax, al
test eax, eax
jne 0x40e220
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
cmp ebx, 1
jbe 0x40e18b
mov ecx, dword [ebp - 0x2c]
lea eax, [ebx - 1]
push eax
xor edx, edx
call fcn.0040d490
mov edx, dword [ebp - 0x2c]
add esp, 4
lea eax, [ebx + ebx*2]
shl eax, 5
add edx, eax
mov dword [ebp - 0x2c], edx
test esi, esi
jne 0x40e100
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x1c]
movzx eax, word [ecx]
movzx esi, ax
mov eax, dword [ebp - 0x38]
mov edx, eax
jmp 0x40e251
push 1
push 0x456410
push 0x456418
call dword [0x457674]
test al, al
je 0x40e16c
movzx edx, word [0x456418]
mov eax, dword [0x45641c]
mov ecx, edx
shr ecx, 1
sub esi, edx
lea eax, [eax + ecx*2]
movzx ecx, word [0x456410]
mov dword [0x45641c], eax
mov eax, dword [0x456414]
shr ecx, 1
lea eax, [eax + ecx*2]
mov dword [0x456414], eax
cmp esi, 0xfffe
jae 0x40e21c
mov word [0x456410], si
mov word [0x456418], si
test esi, esi
jne 0x40e1c0
mov esi, dword [ebp - 0x34]
inc ebx
mov edx, dword [ebp - 0x2c]
add edi, 0x60
sub esi, 1
mov dword [ebp - 0x34], esi
jne 0x40e110
jmp 0x40e172
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x1c]
movzx esi, ax
mov eax, dword [ebp - 0x38]
mov edx, eax
jmp 0x40e251
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x30], 0x60
add ecx, 0x60
inc eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebx + 8]
cmp eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
jb 0x40e0b2
mov ebx, dword [ebx]
add ebx, 0x60
add ecx, 0xffffffff
mov dword [ebp - 0x18], ecx
je 0x40e407
lea edi, [ebx - 8]
cmp dword [edi - 0x28], 0
jne 0x40e3f5
mov ax, word [edi]
cmp ax, word [edi + 0x60]
jne 0x40e3f5
cmp dword [edi + 0x3c], 0
jne 0x40e3f5
cmp dword [edi + 0x38], 1
jne 0x40e3f5
mov eax, dword [edi + 0x10]
movzx eax, word [eax]
cmp eax, 0x2b
je 0x40e2c5
cmp eax, 0x2a
je 0x40e2c5
cmp eax, 0x2d
jne 0x40e3f5
mov esi, dword [edi - 0x2c]
cmp esi, dword [edi + 0x34]
jne 0x40e3f5
mov ecx, dword [edi + 0xc]
add esi, esi
mov eax, dword [edi - 0x54]
cmp esi, 0xfffe
mov dword [0x45641c], eax
mov dword [0x456414], ecx
mov ecx, 0xfffe
movzx eax, si
cmova eax, ecx
movzx eax, ax
mov word [0x456410], ax
mov word [0x456418], ax
cmp ax, cx
jae 0x40e330
push 1
push 0x456410
push 0x456418
call dword [0x457674]
movzx eax, al
test eax, eax
je 0x40e3f2
jmp 0x40e394
push 1
push 0x456410
push 0x456418
call dword [0x457674]
test al, al
je 0x40e3f2
movzx edx, word [0x456418]
mov eax, dword [0x45641c]
mov ecx, edx
shr ecx, 1
sub esi, edx
lea eax, [eax + ecx*2]
movzx ecx, word [0x456410]
mov dword [0x45641c], eax
mov eax, dword [0x456414]
shr ecx, 1
lea eax, [eax + ecx*2]
mov dword [0x456414], eax
cmp esi, 0xfffe
jae 0x40e390
mov word [0x456410], si
mov word [0x456418], si
test esi, esi
jne 0x40e330
movups xmm0, xmmword [ebx]
movups xmm1, xmmword [edi - 0x58]
movups xmm2, xmmword [edi - 0x48]
movups xmm3, xmmword [edi - 0x38]
movups xmm4, xmmword [edi - 0x28]
movups xmm5, xmmword [edi - 0x18]
movups xmm6, xmmword [edi - 8]
movups xmmword [edi - 0x58], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [edi - 0x48], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [edi - 0x38], xmm0
movups xmm0, xmmword [ebx + 0x30]
movups xmmword [edi - 0x28], xmm0
movups xmm0, xmmword [ebx + 0x40]
movups xmmword [edi - 0x18], xmm0
movups xmm0, xmmword [ebx + 0x50]
movups xmmword [edi - 8], xmm0
movups xmmword [ebx], xmm1
movups xmmword [ebx + 0x10], xmm2
movups xmmword [ebx + 0x20], xmm3
movups xmmword [ebx + 0x30], xmm4
movups xmmword [ebx + 0x40], xmm5
movups xmmword [ebx + 0x50], xmm6
mov ecx, dword [ebp - 0x18]
dec ecx
add ebx, 0x60
add edi, 0x60
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x40e281
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
jmp 0x40e421
mov esi, ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40e47b
nop dword [eax]
mov esi, ecx
mov edi, 0xa
nop word [eax + eax]
push dword [esi]
push 0
push dword [0x45764c]
call ebx
lea esi, [esi + 4]
sub edi, 1
jne 0x40e450
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
dec eax
add ecx, 0x60
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ecx
test eax, eax
jne 0x40e440
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0
push dword [0x45764c]
call ebx
push dword [ebp - 0x20]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [0x45771c], 8
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428cd6
mov esp, ebp
pop ebp
ret