Function at 0x40e4d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], ebx
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.SELECT__CreateFolder_._Directory_____Component_._Component____Component_._ComponentId____FeatureComponents_._Feature_____Component_._Attributes__FROM__Feature____FeatureComponents____Component____CreateFolder__WHERE__Feature_._Action_1_AND__Component_._Action_1_AND__Feature_._Feature__FeatureComponents_._Feature___AND__Component_._Component__CreateFolder_._Component___AND__Component_._Component__FeatureComponents_._Component___ORDER_BY__Component_._Directory__
push dword [ebp + 8]
movq qword [ebx], xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x18], xmm0
mov dword [ebx + 8], 0
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov dword [0x45771c], eax
test eax, eax
jne 0x40e882
push 0x4920
push eax
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx], eax
test eax, eax
je 0x40e7f2
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.msi.dll_MsiViewModify]
mov esi, dword [ebx]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
mov dword [ebx + 4], 0x104
mov dword [ebp - 0x20], esi
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov edi, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
jne 0x40e76f
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jne 0x40e5b3
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 0x40e7f2
mov eax, dword [ebx + 8]
mov dword [ebx], edx
lea ecx, [eax + eax*8]
lea esi, [edx + ecx*8]
mov dword [ebp - 0x20], 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, 0x24
nop dword [eax]
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 0x40e61d
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 - 0x20], eax
test eax, eax
je 0x40e7f2
push esi
push eax
push edi
push dword [ebp - 0x24]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
jmp 0x40e634
test ecx, ecx
jne 0x40e634
push 2
push 8
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi - 0x20], eax
inc edi
add esi, 4
cmp edi, 5
jb 0x40e5d0
push 5
push dword [ebp - 0x24]
call dword [sym.imp.msi.dll_MsiRecordReadStream]
mov esi, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
push ecx
mov ecx, dword [esi + 0xc]
mov word [esi + 0x44], ax
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 [esi + 0x14], edx
test edx, edx
je 0x40e7f2
lea esi, [ebp - 0x18]
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 0x40e683
mov edi, dword [ebp - 0x20]
xor eax, eax
push 0x2a
push eax
push dword [0x45764c]
mov word [edx], ax
mov dword [edi + 0x34], 0x20
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x18], eax
test eax, eax
je 0x40e7f2
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0040c7d0
mov eax, dword [edi + 4]
lea esi, [edi + 0x3c]
push esi
lea ecx, [ebp - 0x30]
mov dword [edi + 0x38], 0x14
push ecx
push eax
push dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [esi], edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.msi.dll_MsiInstallMissingComponentW]
mov dword [0x45771c], eax
cmp eax, 0xea
jne 0x40e748
inc dword [esi]
mov eax, dword [esi]
lea eax, [eax*2 + 0x10]
push eax
push edi
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40e748
push esi
push edi
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call dword [sym.imp.msi.dll_MsiInstallMissingComponentW]
mov dword [0x45771c], eax
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
mov dword [esi + 0x1c], edi
add esi, 0x48
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov edi, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x40e578
push dword [ebp - 0x1c]
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
push dword [ebp - 0x1c]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
test eax, eax
jne 0x40e7c3
push ecx
push eax
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xorps xmm0, xmm0
xor al, al
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [0x45771c], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428cd6
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 0x40e7df
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428cd6
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 - 0x20], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40e848
nop word [eax + eax]
mov esi, ecx
mov edi, 8
nop word [eax + eax]
push dword [esi]
push 0
push dword [0x45764c]
call ebx
lea esi, [esi + 4]
sub edi, 1
jne 0x40e820
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
dec eax
add ecx, 0x48
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
test eax, eax
jne 0x40e810
push dword [ebp - 0x2c]
push 0
push dword [0x45764c]
call ebx
mov eax, dword [ebp - 0x34]
xorps xmm0, xmm0
push dword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [0x45771c], 8
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
push dword [ebp - 0x1c]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428cd6
mov esp, ebp
pop ebp
ret