Function at 0x6095e374
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x6095e2d0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [eax + 4], 0x6095e310
mov edx, dword [ebp + 8]
mov esi, dword [edx]
add esp, 0xfffffff4
push dword [edx + 8]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 0xfffffff4
mov ecx, dword [ebp + 8]
push dword [ecx + 0x24]
call sym.sqlite3.dll_sqlite3_free
add esp, 0x20
add esp, 0xfffffff4
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call sym._sqlite3Fts3ExprFree
mov edi, dword [ebp + 8]
add edi, 4
xor eax, eax
cld
mov ecx, 0x11
rep stosd dword es:[edi], eax
add esp, 0x10
cmp dword [ebp + 0xc], 1
jbe 0x6095e4cc
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffffe
add esp, 0xfffffff4
mov eax, dword [ebp + 0x18]
push dword [eax]
call sym.sqlite3.dll_sqlite3_value_text
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x6095e420
add esp, 0xfffffff4
mov edx, dword [ebp + 0x18]
push dword [edx]
call sym.sqlite3.dll_sqlite3_value_type
add esp, 0x10
cmp eax, 5
je 0x6095e420
mov eax, 7
jmp 0x6095e56a
add esp, 0xfffffffc
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
push 0xffffffffffffffff
push edi
push ebx
push dword [esi + 0x18]
push dword [esi + 0x1c]
push dword [esi + 0x20]
call sym._sqlite3Fts3ExprParse
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x6095e464
cmp ebx, 1
jne 0x6095e568
add esp, 0xfffffff8
push edi
push 0x6095e350
call sym.sqlite3.dll_sqlite3_mprintf
mov dword [esi + 8], eax
jmp 0x6095e568
add esp, 0xfffffff4
push esi
call sym._sqlite3Fts3ReadLock
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6095e56a
add esp, 0xfffffff4
push 0
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov ecx, dword [ebp + 8]
push dword [ecx + 0xc]
push ecx
call sym._fts3EvalExpr
mov ebx, eax
add esp, 0x20
add esp, 0xfffffff4
push esi
call sym._sqlite3Fts3SegmentsClose
add esp, 0x10
test ebx, ebx
jne 0x6095e568
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
cmp dword [ebp + 0xc], 0
sete al
movzx eax, al
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0x84]
mov edx, dword [ebp - 0xc]
push dword [edx + eax*4]
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x6095e500
mov ebx, 7
jmp 0x6095e54c
add esp, 0xfffffff4
push 0
mov eax, dword [ebp + 8]
add eax, 8
push eax
push 0xffffffffffffffff
push edi
push dword [esi + 0xc]
call sym.sqlite3.dll_sqlite3_prepare_v2
mov ebx, eax
add esp, 0x20
add esp, 0xfffffff4
push edi
call sym.sqlite3.dll_sqlite3_free
add esp, 0x10
test ebx, ebx
jne 0x6095e54c
cmp dword [ebp + 0xc], 1
jne 0x6095e54c
add esp, 0xfffffffc
mov ecx, dword [ebp + 0x18]
push dword [ecx]
push 1
mov eax, dword [ebp + 8]
push dword [eax + 8]
call sym.sqlite3.dll_sqlite3_bind_value
mov ebx, eax
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov word [edx + 4], cx
test ebx, ebx
jne 0x6095e568
add esp, 0xfffffff4
push edx
call sym._fts3NextMethod
jmp 0x6095e56a
mov eax, ebx
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret