Function at 0x100402d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006af45
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10040314
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp word [str.SELECT__Argument____Condition__FROM__ControlEvent__WHERE__Dialog____ExitDialog_AND__Control____Finish_AND__Event___DoAction_ORDER_BY__Ordering_], 0
je 0x1004035d
lea eax, [ebp - 0x18]
push eax
push str.SELECT__Argument____Condition__FROM__ControlEvent__WHERE__Dialog____ExitDialog_AND__Control____Finish_AND__Event___DoAction_ORDER_BY__Ordering_
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x10040356
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10040397
call fcn.1002f0b0
mov byte [ebp - 4], 0
test esi, esi
je 0x1004036c
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10040381
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiViewModify]
mov edi, eax
test edi, edi
jle 0x100403b3
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x100403ba
call fcn.1002f0b0
mov byte [ebp - 4], 0
test esi, esi
je 0x100403c9
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test edi, edi
js 0x1004036c
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
xor al, al
mov byte [ebp - 0xe], al
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100403ee
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x100405d3
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x10040419
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x100405c7
xor ebx, ebx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x10040490
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], ebx
push eax
push 0x10093cf4
push 2
push edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x10040490
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x1c], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 2
mov dword [ebp - 0x30], ebx
push edi
mov dword [ebp - 0x34], esi
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov esi, dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x100404a9
mov byte [ebp - 0xd], 0
cmp eax, 2
jne 0x100404ad
mov byte [ebp - 0xd], 1
xor edi, edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10040526
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], edi
push ecx
push 0x10093cf4
push 1
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x10040526
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x1c], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x28], edi
push 1
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov esi, dword [ebp + 8]
cmp byte [ebp - 0xd], 0
je 0x10040588
push 0
mov edx, 0x1009ab8c
mov ecx, edi
call fcn.1002d290
add esp, 4
test al, al
je 0x10040588
push 0
mov edx, str.AI_ViewReadme
mov ecx, edi
call fcn.1002d290
add esp, 4
test al, al
je 0x1004055c
mov byte [ebp - 0xe], 1
jmp 0x10040580
push 0
mov edx, str.AI_LaunchApp
mov ecx, edi
call fcn.1002d290
mov ecx, dword [ebp - 0x20]
add esp, 4
test al, al
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x20], ecx
push edi
push esi
call dword [sym.imp.msi.dll_MsiEnumComponentQualifiersA]
mov byte [ebp - 4], 3
test edi, edi
je 0x10040597
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
test ebx, ebx
je 0x100405b4
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
jmp 0x100403e0
cmp eax, 0x80070103
je 0x100405d3
call fcn.1002f0b0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1c]
mov ebx, dword [ebp + 8]
xor edi, edi
push eax
push 0x10093cf4
push str.CTRLS
mov dword [ebp - 0x30], edi
push ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x1004064a
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x1c], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push edi
push str.CTRLS
mov dword [ebp - 0x30], edi
push ebx
mov dword [ebp - 0x34], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp byte [ebp - 0x20], 0
jne 0x10040686
push 0
mov edx, 0x1009abd8
mov ecx, edi
call fcn.1002d290
add esp, 4
test al, al
jne 0x1004067a
push 0
mov edx, 0x10099180
mov ecx, edi
call fcn.1002d290
add esp, 4
test al, al
je 0x10040686
push str.AI_LaunchApp
push ebx
call dword [sym.imp.msi.dll_MsiEnumComponentQualifiersA]
cmp byte [ebp - 0xe], 0
jne 0x100406c2
push 0
mov edx, 0x1009abd8
mov ecx, edi
call fcn.1002d290
add esp, 4
test al, al
jne 0x100406b6
push 0
mov edx, 0x10093d00
mov ecx, edi
call fcn.1002d290
add esp, 4
test al, al
je 0x100406c2
push str.AI_ViewReadme
push ebx
call dword [sym.imp.msi.dll_MsiEnumComponentQualifiersA]
mov byte [ebp - 4], 2
test edi, edi
je 0x100406d1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004036c
push eax
jmp 0x10040366