Function at 0x10010e50
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x100394bd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10059024]
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 0x10010ead
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 0x10010ef8
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 0x10010f3a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x10010f33
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10010f7d
call fcn.100112b0
mov byte [ebp - 4], 0
test esi, esi
je 0x10010f45
push esi
call edi
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10010f58
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.10024a34
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 0x10010f99
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x10010fa0
call fcn.100112b0
mov byte [ebp - 4], 0
test esi, esi
je 0x10010fab
push esi
call edi
test ebx, ebx
js 0x10010f45
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10010fc4
push eax
call edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x10010ff9
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x10010feb
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10011012
cmp eax, 0x80070103
je 0x10010ff9
call fcn.100112b0
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10010f47
push eax
call edi
jmp 0x10010f47
mov ebx, dword [sym.imp.msi.dll_MsiRecordSetStreamA]
lea eax, [ebp - 0x1c]
push eax
push 0x100469b0
push 1
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call ebx
cmp eax, 0xea
jne 0x1001106c
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 0x10010ffb