Function at 0x10016bd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x10043b9d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10067024]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 0x20c]
mov al, byte [ebp + 0x210]
mov byte [ebp - 0xd], al
mov dword [ebp - 0x20], ebx
mov eax, dword [ebx + 4]
test eax, eax
je 0x10016c2d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0xd], 0
mov ecx, str.SELECT__Text__FROM__UIText__WHERE__Key____s
mov eax, str.SELECT__Message__FROM__Error__WHERE__Error____s
mov dword [ebx + 4], 0
cmove eax, ecx
mov dword [ebx], 0
push edi
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
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 0x10016c78
push eax
call edi
push esi
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 [ebp], 0
je 0x10016cba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x10016cb3
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10016cfd
call fcn.10016f50
mov byte [ebp - 4], 0
test esi, esi
je 0x10016cc5
push esi
call edi
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10016cd8
push ecx
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.1002c803
lea esp, [ebp + 0x204]
pop ebp
ret
push 0
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiViewModify]
mov ebx, eax
test ebx, ebx
jle 0x10016d19
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x10016d20
call fcn.10016f50
mov byte [ebp - 4], 0
test esi, esi
je 0x10016d2b
push esi
call edi
test ebx, ebx
js 0x10016cc5
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10016d44
push eax
call edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x10016d79
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x10016d6b
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10016d92
cmp eax, 0x80070103
je 0x10016d79
call fcn.10016f50
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10016cc7
push eax
call edi
jmp 0x10016cc7
mov ebx, dword [sym.imp.msi.dll_MsiRecordSetStreamA]
lea eax, [ebp - 0x1c]
push eax
push 0x10053794
push 1
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call ebx
cmp eax, 0xea
jne 0x10016dec
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 ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov dword [ecx], esi
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 1
push dword [ebp - 0x14]
call ebx
test eax, eax
sete bl
jmp 0x10016d7b