Function at 0x10043330
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b6fd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 - 0x1c], edx
mov edi, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push 0x10093cf4
xor ebx, ebx
push str.AI_USER_IGNORE_MSI
mov dword [ebp - 0x24], ebx
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x100433d4
mov esi, dword [ebp - 0x18]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x18], 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 - 0x18]
push eax
push ebx
push str.AI_USER_IGNORE_MSI
mov dword [ebp - 0x24], ebx
push edi
mov dword [ebp - 0x28], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
xor ecx, ecx
mov eax, ebx
cmp word [ebx], cx
je 0x100433f5
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100433e0
test ecx, ecx
je 0x100433f5
xor bl, bl
jmp 0x10043509
push edi
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x10043410
xor bl, bl
jmp 0x100434fa
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10043429
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp byte [ebp + 0xc], 0
mov ecx, str.SELECT__UserName__FROM__AI_UserAccounts__WHERE__UserName____
mov eax, str.SELECT__GroupName__FROM__AI_UserGroups__WHERE__GroupName____
mov dword [ebp - 0x10], 0
cmove eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
je 0x10043458
xor bl, bl
jmp 0x100434e8
push 1
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x100434d7
push dword [ebp - 0x1c]
push 1
push esi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
test eax, eax
jne 0x100434d7
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x100434d7
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100434a0
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x100434c1
cmp dword [ebp - 0x14], eax
je 0x100434c1
mov bl, 1
jmp 0x100434c3
xor bl, bl
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100434d9
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x100434d9
xor bl, bl
mov byte [ebp - 4], 2
test esi, esi
je 0x100434e8
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100434fa
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 0
test edi, edi
je 0x10043509
push edi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x24], 0
mov al, bl
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret