Function at 0x61e7f6e2
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x4c]
mov esi, 0x61e8b3e0
sub esp, 0x9c
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 5
mov dword [ebp - 0x60], eax
mov ecx, 4
mov dword [ebp - 0x70], edx
rep movsd dword es:[edi], dword [esi]
mov eax, 2
jle 0x61e7f723
mov eax, dword [ebp - 0x68]
mov edx, 3
and eax, 1
cmp dword [ebp - 0x68], 0xe
cmovg eax, edx
mov eax, dword [ebp + eax*4 - 0x4c]
test eax, eax
je 0x61e7f74a
mov dword [esp + 4], eax
mov dword [esp], 0x61e8dab0
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
mov eax, 1
jmp 0x61e7fcc6
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_vtab_config
mov eax, dword [ebp + 8]
or edx, 0xffffffff
mov ecx, edx
mov edi, dword [eax + 4]
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, ecx
mov ecx, edx
not esi
lea eax, [esi - 1]
mov dword [ebp - 0x6c], 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 - 0x5c], eax
mov edi, dword [ebp - 0x5c]
lea eax, [esi - 1]
lea ecx, [eax + edi + 0x1e2]
mov dword [esp], ecx
mov dword [ebp - 0x64], ecx
call sym.sqlite3.dll_sqlite3_malloc
mov ebx, eax
mov eax, 7
test ebx, ebx
je 0x61e7fcc6
mov ecx, dword [ebp - 0x64]
xor eax, eax
mov edi, ebx
rep stosb byte es:[edi], al
lea eax, [ebx + 0x1e0]
mov ecx, 2
mov dword [ebx], 0x61e8bee0
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x1c], eax
add esi, eax
mov edi, eax
mov eax, dword [ebp - 0x68]
mov dword [ebx + 0x20], esi
mov dword [ebp - 0x64], esi
sub eax, 4
cdq
idiv ecx
cmp dword [ebp - 0x70], 0
mov ecx, dword [ebp - 0x6c]
setne byte [ebx + 0x15]
cmp dword [ebp + 0x14], 0
mov byte [ebx + 0x14], al
lea eax, [eax*8 + 8]
mov byte [ebx + 0x16], al
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
mov esi, dword [eax + 8]
rep movsb byte es:[edi], byte [esi]
je 0x61e7f8a5
mov eax, dword [ebx + 0x1c]
mov dword [esp], str.PRAGMA__Q.page_size
mov dword [ebp - 0x3c], 0
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
mov esi, eax
je 0x61e7f87c
mov edx, eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x3c]
call sym._getIntFromStmt.part.549
test eax, eax
mov dword [ebp - 0x5c], eax
jne 0x61e7f883
mov eax, dword [ebp - 0x3c]
lea edx, [eax - 0x40]
movzx eax, byte [ebx + 0x16]
mov dword [ebx + 0x10], edx
imul eax, eax, 0x33
add eax, 4
cmp edx, eax
jle 0x61e7f902
mov dword [ebx + 0x10], eax
jmp 0x61e7f902
mov dword [ebp - 0x5c], 7
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp], 0x61e8dab0
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x61e7f902
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], 0x61e9383c
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
mov esi, eax
je 0x61e7f8db
mov edx, eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebx + 0x10]
call sym._getIntFromStmt.part.549
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x61e7f902
jmp 0x61e7f8e2
mov dword [ebp - 0x5c], 7
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp], 0x61e8dab0
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_free
cmp dword [ebp - 0x5c], 0
jne 0x61e7fcbc
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x14], 0
mov eax, dword [eax + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0xc], eax
jne 0x61e7f9d8
lea eax, [ebx + 0x38]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.sqlite_stat1
mov dword [ebp - 0x38], eax
lea eax, [ebx + 0x40]
mov dword [ebp - 0x34], eax
lea eax, [ebx + 0x44]
mov dword [ebp - 0x30], eax
lea eax, [ebx + 0x48]
mov dword [ebp - 0x2c], eax
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0x50]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x54]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_table_column_metadata
test eax, eax
je 0x61e7fa5a
cmp eax, 1
cmove eax, dword [ebp - 0x5c]
mov dword [ebx + 0x28], 0x100000
mov dword [ebx + 0x2c], 0
mov dword [ebp - 0x5c], eax
jmp 0x61e7fb3d
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], edi
mov dword [esp + 4], edi
mov dword [esp], str.CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY__data_BLOB__CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY__nodeno_INTEGER__CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY__parentnode_INTEGER__INSERT_INTO__q._q_node_VALUES_1__zeroblob__d__
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
je 0x61e7fbbc
mov dword [esp + 4], eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x60]
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 - 0x6c]
mov esi, eax
mov dword [esp], edx
call sym.sqlite3.dll_sqlite3_free
test esi, esi
je 0x61e7f933
jmp 0x61e7fbc7
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
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 esi, eax
mov dword [ebp - 0x5c], 7
je 0x61e7fb3d
lea eax, [ebp - 0x50]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_prepare_v2
test eax, eax
jne 0x61e7fafa
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_step
cmp eax, 0x64
jne 0x61e7fad6
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 0x61e7fada
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], ecx
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_finalize
test eax, eax
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x70]
jne 0x61e7fb35
jmp 0x61e7fb16
cmp eax, 7
je 0x61e7fb35
mov dword [ebx + 0x28], 0x100000
mov dword [ebx + 0x2c], 0
mov dword [ebp - 0x5c], 0
jmp 0x61e7fb35
mov eax, edx
or eax, ecx
je 0x61e7faff
cmp edx, 0
jg 0x61e7fb2f
jl 0x61e7fb28
cmp ecx, 0x64
jae 0x61e7fb2f
mov ecx, 0x64
xor edx, edx
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], edx
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_free
mov esi, dword [ebp - 0x5c]
xor ecx, ecx
cmp ecx, 8
jg 0x61e7fbc3
test esi, esi
jne 0x61e7fbc3
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], edi
mov esi, 7
mov dword [ebp - 0x5c], ecx
mov dword [esp + 8], eax
mov eax, dword [ecx*4 + 0x61e94380]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
mov edx, eax
mov ecx, dword [ebp - 0x5c]
je 0x61e7fbab
mov eax, dword [ebp + ecx*4 - 0x3c]
mov dword [esp + 4], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x5c], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_prepare_v2
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x5c]
mov esi, eax
mov dword [esp], edx
mov dword [ebp - 0x5c], ecx
call sym.sqlite3.dll_sqlite3_free
mov ecx, dword [ebp - 0x5c]
inc ecx
jmp 0x61e7fb42
mov esi, 7
jmp 0x61e7fbc7
test esi, esi
je 0x61e7fbef
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp], 0x61e8dab0
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], esi
mov dword [edi], eax
jmp 0x61e7fcbc
mov eax, dword [ebp + 8]
mov esi, 4
mov eax, dword [eax + 0xc]
mov dword [esp], str.CREATE_TABLE_x__s
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, eax
test edi, edi
je 0x61e7fc42
cmp esi, dword [ebp - 0x68]
jge 0x61e7fc42
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], edi
inc esi
mov dword [esp], str._s___s
mov dword [esp + 8], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov dword [esp], edi
mov dword [ebp - 0x5c], eax
call sym.sqlite3.dll_sqlite3_free
mov eax, dword [ebp - 0x5c]
mov edi, eax
jmp 0x61e7fc0c
test edi, edi
jne 0x61e7fc51
xor esi, esi
mov dword [ebp - 0x5c], 7
jmp 0x61e7fca5
mov dword [esp + 4], edi
mov dword [esp], str._s__
call sym.sqlite3.dll_sqlite3_mprintf
mov dword [esp], edi
mov esi, eax
call sym.sqlite3.dll_sqlite3_free
test esi, esi
je 0x61e7fc46
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_declare_vtab
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x61e7fca5
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp], 0x61e8dab0
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_free
cmp dword [ebp - 0x5c], 0
jne 0x61e7fcbc
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
jmp 0x61e7fcc6
mov eax, ebx
call sym._rtreeRelease
mov eax, dword [ebp - 0x5c]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret