Function at 0x61e7b564
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x4c]
mov esi, 0x61e96400
sub esp, 0x9c
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x67
mov ecx, 5
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x6c], edx
rep movsd dword es:[edi], dword [esi]
jle 0x61e7b5b1
mov dword [esp + 4], str.Too_many_columns_for_an_rtree_table
mov dword [esp], 0x61e98be8
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, 1
jmp 0x61e7bd78
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 1
or ebx, 0xffffffff
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_vtab_config
mov eax, dword [ebp + 8]
mov ecx, ebx
mov edi, dword [eax + 4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov esi, ecx
mov ecx, ebx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
lea eax, [esi - 1]
lea ecx, [eax + edx + 0x1fa]
mov dword [esp], ecx
mov dword [ebp - 0x70], ecx
call sym.sqlite3.dll_sqlite3_malloc
mov ebx, eax
mov eax, 7
test ebx, ebx
je 0x61e7bd78
mov ecx, dword [ebp - 0x70]
xor eax, eax
mov edi, ebx
cmp dword [ebp - 0x6c], 0
rep stosb byte es:[edi], al
lea eax, [ebx + 0x1f8]
mov ecx, dword [ebp + 8]
mov dword [ebx], 0x61e973e0
setne byte [ebx + 0x16]
mov dword [ebx + 0x28], 1
lea edx, [eax + esi]
mov dword [ebx + 0x20], eax
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x24], edx
mov esi, dword [ecx + 4]
mov ecx, dword [ebp - 0x68]
rep movsb byte es:[edi], byte [esi]
mov edi, edx
mov ecx, dword [ebp - 0x60]
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0x5c]
rep movsb byte es:[edi], byte [esi]
mov dword [esp], eax
mov edi, 4
call sym.sqlite3.dll_sqlite3_str_new
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], str.CREATE_TABLE_x__s
mov dword [esp], esi
mov dword [esp + 8], eax
call sym.sqlite3.dll_sqlite3_str_appendf
cmp edi, dword [ebp - 0x64]
jge 0x61e7b6b8
mov eax, dword [ebp + 8]
mov eax, dword [eax + edi*4]
cmp byte [eax], 0x2b
jne 0x61e7b6b2
mov eax, dword [ebp + 8]
inc byte [ebx + 0x19]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x60], eax
inc eax
jmp 0x61e7b6e7
cmp byte [ebx + 0x19], 0
je 0x61e7b6de
mov dword [esp], esi
mov dword [esp + 4], 0x61e9ec42
call sym.sqlite3.dll_sqlite3_str_appendf
mov dword [esp], esi
mov esi, 7
call sym.sqlite3.dll_sqlite3_str_finish
test eax, eax
mov dword [ebp - 0x60], eax
jne 0x61e7b6fe
jmp 0x61e7b75a
mov eax, dword [ebp + 8]
inc byte [ebx + 0x15]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
inc edi
mov dword [esp + 4], 0x61e9ec3e
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_str_appendf
jmp 0x61e7b693
cmp edi, dword [ebp - 0x64]
jge 0x61e7b722
mov eax, dword [ebp - 0x3c]
mov dword [esp], 0x61e98be8
mov esi, 1
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x61e7b75a
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_declare_vtab
test eax, eax
mov esi, eax
je 0x61e7b75a
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp], 0x61e98be8
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_free
test esi, esi
jne 0x61e7b806
mov al, byte [ebx + 0x15]
mov dl, al
shr dl, 1
test dl, dl
mov byte [ebx + 0x14], dl
je 0x61e7b814
cmp al, 0xa
ja 0x61e7b81b
test al, 1
je 0x61e7b795
mov eax, 1
jmp 0x61e7b820
cmp dword [ebp + 0x14], 0
lea eax, [eax*4 + 8]
mov byte [ebx + 0x17], al
je 0x61e7b867
mov eax, dword [ebx + 0x20]
mov dword [esp], str.PRAGMA__Q.page_size
mov dword [ebp - 0x38], 0
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
mov edi, eax
je 0x61e7b840
mov edx, eax
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x38]
call sym._getIntFromStmt.part.536
test eax, eax
mov esi, eax
jne 0x61e7b845
mov eax, dword [ebp - 0x38]
lea edx, [eax - 0x40]
movzx eax, byte [ebx + 0x17]
mov dword [ebx + 0x10], edx
imul eax, eax, 0x33
add eax, 4
cmp edx, eax
jle 0x61e7b7f6
mov dword [ebx + 0x10], eax
mov dword [esp], edi
call sym.sqlite3.dll_sqlite3_free
test esi, esi
je 0x61e7b8f5
mov eax, ebx
call sym._rtreeRelease
mov eax, esi
jmp 0x61e7bd78
mov eax, 2
jmp 0x61e7b820
mov eax, 3
mov eax, dword [ebp + eax*4 - 0x4c]
mov dword [esp], 0x61e98be8
mov esi, 1
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x61e7b806
mov esi, 7
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp], 0x61e98be8
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x61e7b7f6
mov eax, dword [ebx + 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
mov edi, eax
je 0x61e7b89c
mov edx, eax
mov eax, dword [ebp - 0x5c]
lea ecx, [ebx + 0x10]
call sym._getIntFromStmt.part.536
test eax, eax
mov esi, eax
je 0x61e7b8c6
jmp 0x61e7b8a1
mov esi, 7
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp], 0x61e98be8
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x61e7b7f6
cmp dword [ebx + 0x10], 0x1bf
jg 0x61e7b7f6
mov eax, dword [ebx + 0x24]
mov dword [esp], str.undersize_RTree_blobs_in___q_node_
mov esi, 0x10b
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x61e7b7f6
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x14], 0
mov eax, dword [eax + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0xc], eax
jne 0x61e7b9b2
lea eax, [ebx + 0x50]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [ebp - 0x38], eax
lea eax, [ebx + 0x54]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x61e9b8bc
mov dword [ebp - 0x34], eax
lea eax, [ebx + 0x58]
mov dword [ebp - 0x30], eax
lea eax, [ebx + 0x5c]
mov dword [ebp - 0x2c], eax
lea eax, [ebx + 0x60]
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0x64]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x68]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0x6c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_table_column_metadata
test eax, eax
je 0x61e7babf
cmp eax, 1
mov dword [ebx + 0x30], 0x100000
mov dword [ebx + 0x34], 0
cmovne esi, eax
jmp 0x61e7bb9a
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_str_new
mov edi, eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], eax
call sym.sqlite3.dll_sqlite3_str_appendf
xor eax, eax
movzx edx, byte [ebx + 0x19]
cmp eax, edx
jge 0x61e7ba04
mov dword [esp + 8], eax
mov dword [esp + 4], str._a_d
mov dword [esp], edi
mov dword [ebp - 0x68], eax
call sym.sqlite3.dll_sqlite3_str_appendf
mov eax, dword [ebp - 0x68]
inc eax
jmp 0x61e7b9df
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], eax
call sym.sqlite3.dll_sqlite3_str_appendf
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], eax
call sym.sqlite3.dll_sqlite3_str_appendf
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], eax
call sym.sqlite3.dll_sqlite3_str_appendf
mov dword [esp], edi
call sym.sqlite3.dll_sqlite3_str_finish
test eax, eax
jne 0x61e7ba7b
mov edi, 7
jmp 0x61e7bd4a
mov dword [esp + 4], eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_exec
mov edx, dword [ebp - 0x68]
mov edi, eax
mov dword [esp], edx
call sym.sqlite3.dll_sqlite3_free
test edi, edi
je 0x61e7b917
jmp 0x61e7bd4a
mov eax, dword [ebx + 0x24]
mov esi, 7
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
mov edi, eax
je 0x61e7bb9a
lea eax, [ebp - 0x50]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_prepare_v2
test eax, eax
jne 0x61e7bb5c
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_step
cmp eax, 0x64
jne 0x61e7bb39
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_column_int64
mov ecx, eax
jmp 0x61e7bb3d
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], ecx
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_finalize
test eax, eax
mov esi, eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
jne 0x61e7bb92
jmp 0x61e7bb73
cmp eax, 7
je 0x61e7bb92
mov dword [ebx + 0x30], 0x100000
mov dword [ebx + 0x34], 0
xor esi, esi
jmp 0x61e7bb92
mov eax, edx
or eax, ecx
je 0x61e7bb61
cmp edx, 0
jg 0x61e7bb8c
jl 0x61e7bb85
cmp ecx, 0x64
jae 0x61e7bb8c
mov ecx, 0x64
xor edx, edx
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], edx
mov dword [esp], edi
call sym.sqlite3.dll_sqlite3_free
mov edi, esi
xor esi, esi
cmp esi, 7
jg 0x61e7bc28
test edi, edi
jne 0x61e7bc28
cmp esi, 3
jne 0x61e7bbbb
cmp byte [ebx + 0x19], 0
mov eax, 0x61e9eb9c
jne 0x61e7bbc2
mov eax, dword [esi*4 + 0x61e9fee0]
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov edi, 7
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
mov edx, eax
je 0x61e7bc1a
mov eax, dword [ebp + esi*4 - 0x38]
mov dword [esp + 4], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xffffffff
mov dword [ebp - 0x68], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_prepare_v3
mov edx, dword [ebp - 0x68]
mov edi, eax
mov dword [esp], edx
inc esi
call sym.sqlite3.dll_sqlite3_free
jmp 0x61e7bb9e
cmp byte [ebx + 0x19], 0
je 0x61e7bd46
mov eax, dword [ebp - 0x60]
mov dword [esp], str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
mov dword [ebx + 0x40], eax
je 0x61e7ba71
mov eax, dword [ebp - 0x5c]
xor edi, edi
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_str_new
mov esi, eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], str.UPDATE___w_.__w_rowid_SET
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], eax
call sym.sqlite3.dll_sqlite3_str_appendf
movzx eax, byte [ebx + 0x19]
cmp edi, eax
jge 0x61e7bcec
test edi, edi
je 0x61e7bca8
mov dword [esp + 8], 1
mov dword [esp + 4], 0x61e98b30
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_str_append
movzx eax, byte [ebx + 0x1a]
cmp edi, eax
lea eax, [edi + 2]
jge 0x61e7bcd1
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.a_dcoalesce___d_a_d_
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_str_appendf
jmp 0x61e7bce9
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.a_d__d
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_str_appendf
inc edi
jmp 0x61e7bc84
mov dword [esp], esi
mov dword [esp + 4], str._WHERE_rowid_1
call sym.sqlite3.dll_sqlite3_str_appendf
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_str_finish
test eax, eax
mov esi, eax
je 0x61e7ba71
lea eax, [ebx + 0x70]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_prepare_v3
mov dword [esp], esi
mov edi, eax
call sym.sqlite3.dll_sqlite3_free
test edi, edi
je 0x61e7bd71
mov eax, dword [ebp - 0x5c]
mov esi, edi
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp], 0x61e98be8
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x61e7b806
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret