Function at 0x1003b8e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100629fd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10088020]
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 0x100707ac
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 0x1003b984
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 0x1003b9a5
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003b990
test ecx, ecx
je 0x1003b9a5
xor bl, bl
jmp 0x1003baaa
push edi
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test edi, edi
jne 0x1003b9c6
xor bl, bl
jmp 0x1003ba9f
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1003b9db
push eax
call esi
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 0x1003ba0a
xor bl, bl
jmp 0x1003ba91
push 1
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov edi, eax
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x1003ba81
push dword [ebp - 0x1c]
push 1
push edi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
test eax, eax
jne 0x1003ba81
push edi
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x1003ba81
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003ba4e
push eax
call esi
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 0x1003ba6f
cmp dword [ebp - 0x14], eax
je 0x1003ba6f
mov bl, 1
jmp 0x1003ba71
xor bl, bl
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003ba83
push eax
call esi
jmp 0x1003ba83
xor bl, bl
mov byte [ebp - 4], 2
test edi, edi
je 0x1003ba8e
push edi
call esi
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1003ba9f
push eax
call esi
mov byte [ebp - 4], 0
test edi, edi
je 0x1003baaa
push edi
call esi
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