Function at 0x1003f550
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ae1f
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0
sub esp, 8
lea ecx, [ebp + 8]
call fcn.10006310
xor ecx, ecx
xor edi, edi
cmp eax, 0xffffffff
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp - 0x40]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.10006270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
lea esi, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmova ecx, dword [ebp - 0x40]
cmova esi, dword [ebp - 0x40]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x58], eax
cmp esi, eax
je 0x1003f5f9
movzx eax, word [esi]
push eax
mov dword [ebp - 0x5c], eax
call fcn.10051290
add esp, 4
test eax, eax
je 0x1003f5f1
mov ecx, dword [ebp - 0x5c]
lea edi, [edi + edi*4]
lea edi, [edi - 0x18]
lea edi, [ecx + edi*2]
add esi, 2
cmp esi, dword [ebp - 0x58]
jne 0x1003f5d2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005610
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
cmp edi, dword [eax]
jne 0x1003f7d0
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.10002cb0
push 0
push 0x10093cf4
push 1
push 0x10093cb8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], 2
call fcn.1001b4c0
mov esi, 2
add esp, 0x10
mov dword [ebp - 0x4c], esi
and esi, 0xfffffffd
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], 2
or esi, 1
lea ecx, [ebp + 8]
mov dword [ebp - 0x4c], esi
call fcn.10005610
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
and esi, 0xfffffffe
mov word [ebp - 0x28], ax
movups xmmword [ebp + 8], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp + 0x18], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1003f8e8
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 7
cmova eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x48]
push str.SELECT__Name__FROM__Binary__WHERE__Name____s
push eax
call fcn.10011410
add esp, 0xc
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 4]
mov esi, dword [eax]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1003f72b
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x44], 0
cmp dword [edi - 4], 1
jle 0x1003f749
push dword [edi - 0xc]
lea ecx, [ebp - 0x48]
call fcn.10007c00
mov edi, dword [ebp - 0x48]
push esi
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 7
test edi, edi
je 0x1003f784
cmp word [edi], 0
je 0x1003f784
lea eax, [ebp - 0x44]
push eax
push edi
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x1003f77d
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x1003f7fc
call fcn.1002f140
mov byte [ebp - 4], 6
test esi, esi
je 0x1003f793
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1003f7a5
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f7d0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005610
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d46a
mov esp, ebp
pop ebp
ret 0x18
push 0
push dword [ebp - 0x44]
call dword [sym.imp.msi.dll_MsiViewModify]
mov edi, eax
test edi, edi
jle 0x1003f818
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x1003f81f
call fcn.1002f140
mov byte [ebp - 4], 6
test esi, esi
je 0x1003f82e
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test edi, edi
js 0x1003f793
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1003f84f
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], 0
test eax, eax
je 0x1003f884
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x1003f876
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x1003f899
cmp eax, 0x80070103
je 0x1003f884
call fcn.1002f140
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1003f793
push eax
jmp 0x1003f78d
mov eax, dword [ebp - 0x54]
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 7
cmova edx, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x14], 7
jbe 0x1003f8b2
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push ecx
push dword [eax]
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1003f8d1
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1003f8e3
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x1003f7a5
push 0x80004005
call fcn.10005390
int3