Function at 0x10022170
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045c2d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10067024]
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]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x100221b6
push eax
call edi
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x18]
push ebx
mov ecx, str.SELECT__Argument____Condition__FROM__ControlEvent__WHERE__Dialog____ExitDialog_AND__Control____Finish_AND__Event___DoAction_ORDER_BY__Ordering_
mov dword [ebp - 0x18], 0
call fcn.10016e00
add esp, 4
test eax, eax
js 0x10022428
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
xor al, al
mov byte [ebp - 0xd], al
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov esi, 1
test eax, eax
je 0x100221fb
push eax
call edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x1002235d
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x10022226
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x10022351
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov edx, 2
push eax
call fcn.100173c0
mov edi, dword [ebp - 0x28]
add esp, 4
push edi
push ebx
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1002226b
cmp eax, 2
je 0x1002226b
xor bl, bl
jmp 0x1002226d
mov bl, 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov edx, esi
push eax
call fcn.100173c0
mov esi, dword [ebp - 0x20]
add esp, 4
test bl, bl
je 0x10022303
push 0
mov edx, 0x10059974
mov ecx, esi
call fcn.10015020
add esp, 4
test al, al
je 0x10022303
push 0
mov edx, str.AI_ViewReadme
mov ecx, esi
call fcn.10015020
add esp, 4
test al, al
je 0x100222d2
mov ebx, dword [ebp + 8]
push esi
push ebx
mov byte [ebp - 0xd], 1
call dword [sym.imp.msi.dll_MsiEnumComponentQualifiersA]
jmp 0x10022306
push 0
mov edx, str.AI_LaunchApp
mov ecx, esi
call fcn.10015020
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov ebx, dword [ebp + 8]
test al, al
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
push esi
push ebx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.msi.dll_MsiEnumComponentQualifiersA]
jmp 0x10022306
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x10022319
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x1002231f
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
test edi, edi
je 0x10022338
push edi
call esi
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
jmp 0x100221ec
cmp eax, 0x80070103
je 0x1002235d
call fcn.10016f50
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
mov edx, str.CTRLS
mov ecx, ebx
call fcn.10016940
mov esi, dword [ebp - 0x28]
add esp, 4
cmp byte [ebp - 0x1c], 0
jne 0x100223c1
push 0
mov edx, 0x100599c0
mov ecx, esi
call fcn.10015020
add esp, 4
test al, al
jne 0x100223b5
push 0
mov edx, 0x10058140
mov ecx, esi
call fcn.10015020
add esp, 4
test al, al
je 0x100223c1
push str.AI_LaunchApp
push ebx
call dword [sym.imp.msi.dll_MsiEnumComponentQualifiersA]
cmp byte [ebp - 0xd], 0
jne 0x100223fd
push 0
mov edx, 0x100599c0
mov ecx, esi
call fcn.10015020
add esp, 4
test al, al
jne 0x100223f1
push 0
mov edx, 0x10056584
mov ecx, esi
call fcn.10015020
add esp, 4
test al, al
je 0x100223fd
push str.AI_ViewReadme
push ebx
call dword [sym.imp.msi.dll_MsiEnumComponentQualifiersA]
mov byte [ebp - 4], 1
test esi, esi
je 0x1002240c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10022428
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10022439
push eax
call edi
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