Function at 0x100433b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b76d
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 0x10043454
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 0x10043475
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10043460
test ecx, ecx
je 0x10043475
xor bl, bl
jmp 0x10043589
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 0x10043490
xor bl, bl
jmp 0x1004357a
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100434a9
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 0x100434d8
xor bl, bl
jmp 0x10043568
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 0x10043557
push dword [ebp - 0x1c]
push 1
push esi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
test eax, eax
jne 0x10043557
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x10043557
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10043520
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 0x10043541
cmp dword [ebp - 0x14], eax
je 0x10043541
mov bl, 1
jmp 0x10043543
xor bl, bl
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10043559
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x10043559
xor bl, bl
mov byte [ebp - 4], 2
test esi, esi
je 0x10043568
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004357a
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 0
test edi, edi
je 0x10043589
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