Function at 0x40d860
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], edi
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.SELECT__File_._File____File_._FileName____File_._Version____File_._Language____Component_._Component____Component_._ComponentId____FeatureComponents_._Feature_____Component_._Directory_____Component_._Attributes____File_._Attributes____File_._FileSize____File_._Sequence__FROM__Feature____FeatureComponents____Component____File__WHERE__Feature_._Action_1_AND__Component_._Action_1_AND__Feature_._Feature__FeatureComponents_._Feature___AND__Component_._Component__File_._Component___AND__Component_._Component__FeatureComponents_._Component___ORDER_BY__Component_._Directory__
push dword [ebp + 8]
movq qword [edi], xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x14], xmm0
mov dword [edi + 8], 0
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov dword [0x45771c], eax
test eax, eax
jne 0x40dd15
push 0x8610
push eax
push dword [0x45764c]
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
call eax
mov dword [edi], eax
test eax, eax
je 0x40dc8a
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.msi.dll_MsiViewModify]
mov esi, dword [edi]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov eax, dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov dword [edi + 4], 0x104
mov dword [ebp - 0x48], eax
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x34], ebx
test eax, eax
jne 0x40dbee
mov eax, dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov dword [ebp - 0x38], eax
mov eax, dword [sym.imp.msi.dll_MsiRecordReadStream]
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.msi.dll_MsiGetTargetPathW]
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.msi.dll_MsiInstallMissingComponentW]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x40d969
add eax, eax
mov dword [edi + 4], eax
imul eax, eax, 0x84
push eax
push dword [edi]
push 0
push dword [0x45764c]
call ebx
mov esi, eax
test esi, esi
je 0x40dc8a
mov ecx, dword [edi + 8]
imul eax, ecx, 0x84
mov dword [edi], esi
add esi, eax
push 0x84
lea eax, [ecx + 1]
push 0
push esi
mov dword [edi + 8], eax
call fcn.0042a4e0
add esp, 0xc
mov edi, 1
lea ebx, [edi + 0xe]
lea ebx, [esi + ebx*4]
cmp edi, 2
jne 0x40d9c1
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
lea eax, [esi + 8]
mov ecx, dword [ebp - 0x28]
push ebx
push eax
push edi
call fcn.0040c990
add esp, 0x10
mov ebx, dword [ebp - 0x20]
inc edi
cmp edi, 9
jb 0x40d984
mov edi, dword [esi + 8]
mov ecx, edi
mov eax, ecx
sub ecx, 2
test eax, eax
jne 0x40da23
xor edx, edx
jmp 0x40da3c
push ebx
push 0x457498
push edi
push dword [ebp - 0x18]
call dword [ebp - 0x38]
mov dword [0x45771c], eax
mov ecx, dword [ebx]
cmp eax, 0xea
jne 0x40da0b
lea eax, [ecx + 1]
lea ebx, [edi + 0xe]
lea ebx, [esi + ebx*4]
mov dword [ebx], eax
add eax, eax
push eax
push 0
push dword [0x45764c]
call dword [ebp - 0x20]
mov dword [esi + edi*4], eax
test eax, eax
je 0x40dc87
push ebx
push eax
push edi
push dword [ebp - 0x18]
call dword [ebp - 0x38]
jmp 0x40d9a6
test ecx, ecx
jne 0x40d9a6
mov ebx, dword [ebp - 0x20]
push 2
push 8
push dword [0x45764c]
call ebx
mov dword [esi + edi*4], eax
jmp 0x40d9a9
movzx eax, word [ecx + 2]
add ecx, 2
cmp eax, 0x7c
je 0x40da34
test ax, ax
jne 0x40da23
xor edx, edx
test ax, ax
cmovne edx, ecx
mov dword [esi + 0x34], edx
test edx, edx
jne 0x40da4d
mov eax, dword [esi + 0x40]
xor ecx, ecx
mov dword [esi + 0x34], edi
jmp 0x40da67
xor eax, eax
mov word [edx], ax
mov ecx, dword [esi + 0x40]
add dword [esi + 0x34], 2
lea eax, [ecx + ecx]
sub eax, dword [esi + 0x34]
add eax, dword [esi + 8]
sar eax, 1
sub ecx, eax
dec ecx
mov edi, dword [ebp - 0x3c]
mov dword [esi + 0x6c], eax
push 9
mov dword [esi + 0x40], ecx
push dword [ebp - 0x18]
call edi
push 0xa
mov word [esi + 0x78], ax
push dword [ebp - 0x18]
call edi
push 0xb
mov word [esi + 0x7a], ax
push dword [ebp - 0x18]
call edi
push 0xc
mov dword [esi + 0x74], eax
push dword [ebp - 0x18]
call edi
push ecx
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x14]
mov dword [esi + 0x7c], eax
call fcn.0040c670
add esp, 4
push 0x42
push 0
push dword [0x45764c]
call ebx
mov edx, eax
mov dword [esi + 0x24], edx
test edx, edx
je 0x40dc87
lea edi, [ebp - 0x14]
mov ebx, 0x10
nop word [eax + eax]
movzx ecx, byte [edi]
lea edx, [edx + 4]
mov eax, ecx
lea edi, [edi + 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 ebx, 1
jne 0x40dad0
mov ebx, dword [ebp - 0x20]
xor eax, eax
push 0x2a
push eax
push dword [0x45764c]
mov word [edx], ax
mov dword [esi + 0x5c], 0x20
call ebx
mov dword [esi + 0x28], eax
test eax, eax
je 0x40dc87
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.0040c7d0
lea edi, [esi + 0x64]
mov dword [esi + 0x60], 0x14
push edi
push 0x457498
push dword [esi + 0x20]
push dword [ebp - 0x28]
call dword [ebp - 0x2c]
mov dword [0x45771c], eax
cmp eax, 0xea
jne 0x40db79
inc dword [edi]
mov eax, dword [edi]
add eax, eax
push eax
push 0
push dword [0x45764c]
call ebx
mov dword [esi + 0x2c], eax
test eax, eax
je 0x40dc87
push edi
push eax
push dword [esi + 0x20]
push dword [ebp - 0x28]
call dword [ebp - 0x2c]
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x68]
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], eax
push ecx
push eax
push dword [ebp - 0x28]
xor ebx, ebx
mov dword [edi], ebx
mov dword [ebp - 0x40], ebx
call dword [ebp - 0x30]
mov dword [0x45771c], eax
cmp eax, 0xea
jne 0x40dbcd
inc dword [edi]
mov eax, dword [edi]
lea eax, [eax*2 + 0x10]
push eax
push ebx
push dword [0x45764c]
call dword [ebp - 0x20]
mov ebx, eax
test ebx, ebx
je 0x40dbcd
push edi
push ebx
push dword [ebp - 0x44]
push dword [ebp - 0x28]
call dword [ebp - 0x30]
mov dword [0x45771c], eax
lea eax, [ebp - 0x18]
mov dword [esi + 0x30], ebx
push eax
push dword [ebp - 0x1c]
add esi, 0x84
call dword [ebp - 0x48]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x34]
test eax, eax
je 0x40d930
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 [edi + 8]
mov ecx, dword [edi]
test eax, eax
jne 0x40dc42
push ecx
push eax
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xorps xmm0, xmm0
xor al, al
movq qword [edi], xmm0
mov dword [edi + 8], 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 [edi + 4], eax
imul eax, eax, 0x84
push eax
push ecx
push 0
push dword [0x45764c]
call ebx
test eax, eax
je 0x40dc5e
mov dword [edi], eax
mov eax, dword [edi + 8]
cmp eax, 1
jbe 0x40dc74
mov ecx, dword [edi]
dec eax
push eax
xor edx, edx
call fcn.0040cf20
add esp, 4
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 edi, dword [ebp - 0x24]
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40dcde
mov esi, ecx
mov edi, 0xd
nop dword [eax]
push dword [esi]
push 0
push dword [0x45764c]
call ebx
lea esi, [esi + 4]
sub edi, 1
jne 0x40dcb0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
dec eax
add ecx, 0x84
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
test eax, eax
jne 0x40dca2
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x34]
push 0
push dword [0x45764c]
call ebx
push dword [ebp - 0x1c]
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 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 - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428cd6
mov esp, ebp
pop ebp
ret