Function at 0x10027ee0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x1005f1ed
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10088020]
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 0x10027f3d
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 0x10027f88
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 0x10027fca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x10027fc3
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x1002800d
call fcn.100281a0
mov byte [ebp - 4], 0
test esi, esi
je 0x10027fd5
push esi
call edi
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10027fe8
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.10044a98
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 0x10028029
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x10028030
call fcn.100281a0
mov byte [ebp - 4], 0
test esi, esi
je 0x1002803b
push esi
call edi
test ebx, ebx
js 0x10027fd5
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10028054
push eax
call edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x10028089
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x1002807b
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x100280a2
cmp eax, 0x80070103
je 0x10028089
call fcn.100281a0
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10027fd7
push eax
call edi
jmp 0x10027fd7
mov ebx, dword [sym.imp.msi.dll_MsiRecordSetStreamA]
lea eax, [ebp - 0x1c]
push eax
push 0x100707ac
push 1
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call ebx
cmp eax, 0xea
jne 0x100280fc
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 0x1002808b