Function at 0x40f4a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x6b8], ecx
lea eax, [ebp - 0x84]
push 0x80
mov ebx, edx
mov dword [ebp - 0x6b4], 0
mov ecx, 0x189
mov dword [ebp - 0x6c0], ebx
mov esi, str.SELECT__Shortcut_._Name____Shortcut_._Description____Shortcut_._Target____Shortcut_._Arguments____Shortcut_._Shortcut____Shortcut_._Directory_____Shortcut_._Component_____Shortcut_._Icon_____Shortcut_._WkDir____Shortcut_._DisplayResourceDLL____Shortcut_._DescriptionResourceDLL____Shortcut_._Hotkey____Shortcut_._IconIndex____Shortcut_._ShowCmd____Shortcut_._DisplayResourceId____Shortcut_._DescriptionResourceId____Component_._Attributes____FeatureComponents_._Feature___FROM__Feature____FeatureComponents____Component____Shortcut__WHERE__Feature_._Action_1_AND__Component_._Action_1_AND__Feature_._Feature__FeatureComponents_._Feature___AND__Component_._Component__Shortcut_._Component___AND__Component_._Component__FeatureComponents_._Component___ORDER_BY__Shortcut_._Shortcut_
mov dword [ebp - 0x6ac], 0
lea edi, [ebp - 0x6a8]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0042a4e0
mov edi, dword [ebp - 0x6b8]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x6c4], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
test ebx, ebx
je 0x40fc6f
cmp dword [ebx + 8], 0
je 0x40fc6f
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x6b4]
push eax
push str.SELECT__FROM__Shortcut_
push ebx
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov dword [0x45771c], eax
test eax, eax
jne 0x40fc79
mov esi, dword [sym.imp.msi.dll_MsiViewModify]
push eax
push dword [ebp - 0x6b4]
call esi
lea eax, [ebp - 0x6ac]
push eax
push 0
push dword [ebp - 0x6b4]
call dword [sym.imp.msi.dll_MsiFormatRecordA]
push dword [ebp - 0x6ac]
call dword [sym.imp.msi.dll_MsiRecordIsNull]
push dword [ebp - 0x6b4]
mov dword [ebp - 0x6bc], eax
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
push dword [ebp - 0x6b4]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x6bc], 0xc
jne 0x40f5de
mov ecx, 0x22
lea edi, [ebp - 0x504]
mov esi, str._Component_._Component____Component_._ComponentId__
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x21
movsw word es:[edi], word [esi]
mov esi, str._Feature_._Display____Feature_._Level__
lea edi, [ebp - 0x3f2]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.msi.dll_MsiViewModify]
mov edi, dword [ebp - 0x6b8]
lea eax, [ebp - 0x6b4]
push eax
lea eax, [ebp - 0x6a8]
push eax
push ebx
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov dword [0x45771c], eax
test eax, eax
jne 0x40fc79
push 0x360
push eax
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi], eax
test eax, eax
je 0x40fbab
push 0
push dword [ebp - 0x6b4]
call esi
mov ebx, dword [edi]
lea eax, [ebp - 0x6ac]
push eax
push dword [ebp - 0x6b4]
mov dword [edi + 4], 8
mov dword [ebp - 0x6b0], ebx
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov esi, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
jne 0x40fa45
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x40f690
lea eax, [ecx + ecx]
mov dword [edi + 4], eax
imul eax, eax, 0x6c
push eax
push dword [edi]
push 0
push dword [0x45764c]
call esi
mov ebx, eax
test ebx, ebx
je 0x40fbab
mov eax, dword [edi + 8]
imul ecx, eax, 0x6c
mov dword [edi], ebx
add ebx, ecx
mov dword [ebp - 0x6b0], ebx
push 0x6c
inc eax
push 0
push ebx
mov dword [edi + 8], eax
call fcn.0042a4e0
add esp, 0xc
lea esi, [ebx + 0x34]
mov edi, 1
nop dword [eax]
cmp edi, 5
jae 0x40f6d1
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x6ac]
lea eax, [esi - 0x30]
mov ecx, dword [ebp + 8]
push esi
push eax
push edi
call fcn.0040c990
add esp, 0x10
jmp 0x40f73b
push esi
push 0x457498
push edi
push dword [ebp - 0x6ac]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov dword [0x45771c], eax
mov ecx, dword [esi]
cmp eax, 0xea
jne 0x40f724
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 - 0x30], eax
test eax, eax
je 0x40fba5
push esi
push eax
push edi
push dword [ebp - 0x6ac]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
jmp 0x40f73b
test ecx, ecx
jne 0x40f73b
push 2
push 8
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi - 0x30], eax
inc edi
add esi, 4
cmp edi, 0xa
jb 0x40f6b0
cmp dword [ebp - 0x6bc], 0xc
mov eax, dword [ebp - 0x6b0]
lea esi, [eax + 0x28]
lea edi, [eax + 0x2c]
jne 0x40f78f
push 2
push 8
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 2
push 8
push dword [0x45764c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [ebp - 0x6b0]
mov dword [edi], eax
mov edi, dword [sym.imp.msi.dll_MsiRecordReadStream]
jmp 0x40f7ea
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x6ac]
add eax, 0x58
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xa
call fcn.0040c990
mov esi, dword [ebp - 0x6b0]
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x6ac]
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x5c]
push eax
push edi
push 0xb
call fcn.0040c990
mov edi, dword [sym.imp.msi.dll_MsiRecordReadStream]
add esp, 0x20
push 0xf
push dword [ebp - 0x6ac]
call edi
push 0x10
mov word [esi + 0x66], ax
push dword [ebp - 0x6ac]
call edi
mov word [esi + 0x68], ax
mov esi, dword [esi + 4]
mov ecx, esi
mov eax, ecx
sub ecx, 2
test eax, eax
je 0x40f840
nop dword [eax + eax]
movzx eax, word [ecx + 2]
add ecx, 2
cmp eax, 0x7c
je 0x40f811
test ax, ax
jne 0x40f800
xor edx, edx
test ax, ax
cmovne edx, ecx
test edx, edx
je 0x40f840
mov eax, dword [ebx + 0x34]
add edx, 2
add eax, eax
sub eax, edx
add eax, esi
sar eax, 1
mov dword [ebx + 0x34], eax
lea eax, [eax*2 + 2]
push eax
push edx
push esi
call fcn.00429d30
add esp, 0xc
push 0xc
push dword [ebp - 0x6ac]
call edi
mov ebx, dword [ebp - 0x6b0]
push 0xd
mov word [ebx + 0x60], ax
push dword [ebp - 0x6ac]
call edi
push 0xe
mov word [ebx + 0x62], ax
push dword [ebp - 0x6ac]
call edi
push 0x11
mov word [ebx + 0x64], ax
push dword [ebp - 0x6ac]
call edi
mov word [ebx + 0x6a], ax
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x6c4], 0x40
push eax
push 0x12
push dword [ebp - 0x6ac]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov esi, dword [ebp - 0x6c4]
mov dword [0x45771c], eax
cmp esi, dword [ebx + 0x3c]
jne 0x40fa15
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x84]
add esi, esi
mov dword [0x456414], eax
cmp esi, 0xfffe
mov dword [0x45641c], 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 0x40f912
push 1
push 0x456410
push 0x456418
call dword [0x457674]
movzx eax, al
test eax, eax
je 0x40fa15
jmp 0x40f976
push 1
push 0x456410
push 0x456418
call dword [0x457674]
test al, al
je 0x40fa15
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 0x40f972
mov word [0x456410], si
mov word [0x456418], si
test esi, esi
jne 0x40f912
mov eax, dword [ebp - 0x6c0]
xor ebx, ebx
mov edi, dword [eax]
cmp dword [eax + 8], ebx
jbe 0x40fa0f
mov edx, dword [ebp - 0x6b0]
nop
mov eax, dword [edi + 0x4c]
cmp eax, dword [edx + 0x4c]
jne 0x40f9fd
mov ecx, dword [edi + 0x14]
mov eax, dword [edx + 0x1c]
mov esi, dword [ebp - 0x6c4]
add esi, esi
mov dword [0x45641c], eax
cmp esi, 0xfffe
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 0x40fab0
push 1
push 0x456410
push 0x456418
call dword [0x457674]
movzx eax, al
test eax, eax
jne 0x40fb14
mov edx, dword [ebp - 0x6b0]
mov eax, dword [ebp - 0x6c0]
inc ebx
add edi, 0x84
cmp ebx, dword [eax + 8]
jb 0x40f990
mov ebx, dword [ebp - 0x6b0]
lea eax, [ebp - 0x6ac]
add ebx, 0x6c
push eax
push dword [ebp - 0x6b4]
mov dword [ebp - 0x6b0], ebx
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov edi, dword [ebp - 0x6b8]
mov esi, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x40f656
push dword [ebp - 0x6b4]
mov eax, dword [sym.imp.msi.dll_MsiViewGetErrorW]
call eax
push dword [ebp - 0x6b4]
mov eax, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
call eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
test eax, eax
jne 0x40fb79
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
pop edi
pop esi
mov dword [0x45771c], 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
push 1
push 0x456410
push 0x456418
call dword [0x457674]
test al, al
je 0x40f9f7
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 0x40fb10
mov word [0x456410], si
mov word [0x456418], si
test esi, esi
jne 0x40fab0
mov eax, dword [edi + 0x68]
add eax, dword [edi + 0x6c]
lea eax, [eax*2 + 2]
push eax
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40fba5
mov ecx, dword [edi + 0x68]
add ecx, ecx
push ecx
push dword [edi + 0x30]
push esi
call fcn.0043c9e0
mov eax, dword [edi + 0x6c]
lea eax, [eax*2 + 2]
push eax
mov eax, dword [edi + 0x68]
push dword [edi + 0x34]
lea eax, [esi + eax*2]
push eax
call fcn.0043c9e0
mov ebx, dword [ebp - 0x6b0]
add esp, 0x18
mov dword [ebx + 0xc], esi
mov eax, dword [edi + 0x68]
add eax, dword [edi + 0x6c]
mov dword [ebx + 0x3c], eax
jmp 0x40fa15
inc eax
mov dword [edi + 4], eax
imul eax, eax, 0x6c
push eax
push ecx
push 0
push dword [0x45764c]
call esi
test eax, eax
je 0x40fb92
mov dword [edi], eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x6b8]
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x6bc], ecx
mov dword [ebp - 0x6b0], ecx
mov dword [ebp - 0x6c0], eax
test eax, eax
je 0x40fc1a
nop dword [eax]
mov esi, ecx
mov edi, 0xc
nop word [eax + eax]
push dword [esi]
push 0
push dword [0x45764c]
call ebx
lea esi, [esi + 4]
sub edi, 1
jne 0x40fbe0
mov eax, dword [ebp - 0x6c0]
mov ecx, dword [ebp - 0x6bc]
dec eax
add ecx, 0x6c
mov dword [ebp - 0x6c0], eax
mov dword [ebp - 0x6bc], ecx
test eax, eax
jne 0x40fbd0
mov edi, dword [ebp - 0x6b8]
push dword [ebp - 0x6b0]
push 0
push dword [0x45764c]
call ebx
push dword [ebp - 0x6b4]
mov eax, dword [sym.imp.msi.dll_MsiViewGetErrorW]
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [0x45771c], 8
call eax
push dword [ebp - 0x6b4]
mov eax, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
call eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
mov dword [0x45771c], 0x490
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