Function at 0x10034fc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x1007700d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100c0040]
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 eax, dword [ebx + 4]
test eax, eax
je 0x1003501a
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]
test eax, eax
je 0x10035063
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
cmp word [ebp], 0
je 0x100350a5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x1003509e
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x100350f0
call fcn.10035290
mov byte [ebp - 4], 0
test esi, esi
je 0x100350b4
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100350cb
push ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
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.10053e7d
lea esp, [ebp + 0x204]
pop ebp
ret
push 0
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiViewModify]
mov edi, eax
test edi, edi
jle 0x1003510c
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x10035113
call fcn.10035290
mov byte [ebp - 4], 0
test esi, esi
je 0x10035122
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test edi, edi
js 0x100350b4
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003513f
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x10035174
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x10035166
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10035191
cmp eax, 0x80070103
je 0x10035174
call fcn.10035290
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100350b6
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x100350b6
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x100a416c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x100351ea
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]
lea ecx, [ebp - 0x1c]
mov dword [ebx + 4], eax
push ecx
push eax
push 1
push dword [ebp - 0x14]
mov dword [ebx], esi
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
test eax, eax
sete bl
jmp 0x10035176