Function at 0x1002ede0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x10067e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100ad040]
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 0x1002ee3a
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 0x1002ee83
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 0x1002eec5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x1002eebe
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x1002ef10
call fcn.1002f0b0
mov byte [ebp - 4], 0
test esi, esi
je 0x1002eed4
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 0x1002eeeb
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.1004d40a
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 0x1002ef2c
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x1002ef33
call fcn.1002f0b0
mov byte [ebp - 4], 0
test esi, esi
je 0x1002ef42
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test edi, edi
js 0x1002eed4
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002ef5f
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x1002ef94
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x1002ef86
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x1002efb1
cmp eax, 0x80070103
je 0x1002ef94
call fcn.1002f0b0
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002eed6
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x1002eed6
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x10093cf4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x1002f00a
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 0x1002ef96