Function at 0x61c68c93
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x70], ecx
lea edi, [ebp - 0x30]
mov esi, 0x61c7eb94
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, 2
cmp dword [ebp - 0x70], 5
jle 0x61c68cd0
mov al, 3
cmp dword [ebp - 0x70], 0xe
jg 0x61c68cd0
mov eax, dword [ebp - 0x70]
and eax, 1
mov eax, dword [ebp + eax*4 - 0x30]
test eax, eax
je 0x61c68cf7
mov dword [esp + 4], eax
mov dword [esp], 0x61c77578
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov edi, 1
jmp 0x61c69173
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov ecx, dword [ebp - 0x60]
mov dword [esp], ecx
call sym.sqlite3.dll_sqlite3_vtab_config
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
or edx, 0xffffffff
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [ebp - 0x74], ecx
dec ecx
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
lea esi, [edx + ecx + 0x1e2]
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_malloc
mov ebx, eax
mov edi, 7
test eax, eax
je 0x61c69173
mov edi, eax
mov ecx, esi
xor eax, eax
rep stosb byte es:[edi], al
mov dword [ebx + 0x24], 1
mov dword [ebx], 0x61c75154
lea edx, [ebx + 0x1e0]
mov dword [ebp - 0x6c], edx
mov dword [ebx + 0x1c], edx
mov eax, dword [ebp - 0x74]
add eax, edx
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x70]
sub eax, 4
mov cl, 2
cdq
idiv ecx
mov byte [ebx + 0x14], al
lea eax, [eax*8 + 8]
mov byte [ebx + 0x16], al
cmp dword [ebp - 0x78], 0
setne byte [ebx + 0x15]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 4]
mov edi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 8]
mov edi, eax
mov ecx, dword [ebp - 0x68]
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp + 0x14], 0
je 0x61c68e15
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.PRAGMA__Q.page_size
call sym.sqlite3.dll_sqlite3_mprintf
mov esi, eax
lea ecx, [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp - 0x60]
call sym._getIntFromStmt
mov edi, eax
test eax, eax
jne 0x61c68e44
mov edx, dword [ebp - 0x1c]
sub edx, 0x40
mov dword [ebx + 0x10], edx
movzx eax, byte [ebx + 0x16]
imul eax, eax, 0x33
add eax, 4
cmp eax, edx
jge 0x61c68e64
mov dword [ebx + 0x10], eax
jmp 0x61c68e64
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0x61c7bcd0
call sym.sqlite3.dll_sqlite3_mprintf
mov esi, eax
lea ecx, [ebx + 0x10]
mov edx, eax
mov eax, dword [ebp - 0x60]
call sym._getIntFromStmt
mov edi, eax
test eax, eax
je 0x61c68e64
mov ecx, dword [ebp - 0x60]
mov dword [esp], ecx
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp + 4], eax
mov dword [esp], 0x61c77578
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
test edi, edi
jne 0x61c6916c
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x60]
mov dword [ebx + 0xc], edx
cmp dword [ebp + 0x14], 0
je 0x61c68f0e
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x68]
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
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__
call sym.sqlite3.dll_sqlite3_mprintf
mov esi, eax
test eax, eax
je 0x61c69180
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x60]
mov dword [esp], edx
call sym.sqlite3.dll_sqlite3_exec
mov edi, eax
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_free
test edi, edi
jne 0x61c6906e
lea eax, [ebx + 0x38]
mov dword [ebp - 0x54], eax
lea eax, [ebx + 0x3c]
mov dword [ebp - 0x50], eax
lea eax, [ebx + 0x40]
mov dword [ebp - 0x4c], eax
lea eax, [ebx + 0x44]
mov dword [ebp - 0x48], eax
lea eax, [ebx + 0x48]
mov dword [ebp - 0x44], eax
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x40], eax
lea eax, [ebx + 0x50]
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 0x54]
mov dword [ebp - 0x38], eax
lea eax, [ebx + 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call sym.sqlite3.dll_sqlite3_mprintf
mov dword [ebp - 0x6c], eax
mov edi, 7
test eax, eax
je 0x61c6900d
lea ecx, [ebp - 0x20]
mov dword [esp], 0
mov edx, eax
mov eax, dword [ebp - 0x60]
call sym._sqlite3_prepare_v2.clone.198
test eax, eax
jne 0x61c68fc2
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_step
xor esi, esi
xor edi, edi
cmp eax, 0x64
jne 0x61c68fb1
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_column_int64
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_finalize
test eax, eax
jne 0x61c68ffa
jmp 0x61c68fc9
cmp eax, 7
jne 0x61c68fcf
jmp 0x61c68ffa
mov ecx, edi
or ecx, esi
jne 0x61c68fe1
mov dword [ebx + 0x28], 0x100000
mov dword [ebx + 0x2c], 0
xor eax, eax
jmp 0x61c68ffa
cmp edi, 0
jg 0x61c68ff4
jl 0x61c68fed
cmp esi, 0x64
jae 0x61c68ff4
mov esi, 0x64
xor edi, edi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], edi
mov edx, dword [ebp - 0x6c]
mov dword [esp], edx
mov dword [ebp - 0x7c], eax
call sym.sqlite3.dll_sqlite3_free
mov eax, dword [ebp - 0x7c]
mov edi, eax
xor esi, esi
mov eax, edi
jmp 0x61c6905f
mov ecx, dword [ebp - 0x64]
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x68]
mov dword [esp + 4], eax
mov eax, dword [esi*4 + 0x61c7ed70]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, eax
mov eax, 7
test edi, edi
je 0x61c69050
mov ecx, dword [ebp + esi*4 - 0x54]
mov dword [esp], 0
mov edx, edi
mov eax, dword [ebp - 0x60]
call sym._sqlite3_prepare_v2.clone.198
mov dword [esp], edi
mov dword [ebp - 0x7c], eax
call sym.sqlite3.dll_sqlite3_free
inc esi
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x61c69068
cmp esi, 8
jle 0x61c69013
mov edi, eax
test eax, eax
je 0x61c69093
mov edx, dword [ebp - 0x60]
mov dword [esp], edx
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp + 4], eax
mov dword [esp], 0x61c77578
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x61c6916c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.CREATE_TABLE_x__s
call sym.sqlite3.dll_sqlite3_mprintf
mov esi, eax
mov edi, 4
jmp 0x61c690dd
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + edi*4]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], str._s___s
call sym.sqlite3.dll_sqlite3_mprintf
mov dword [esp], esi
mov dword [ebp - 0x7c], eax
call sym.sqlite3.dll_sqlite3_free
inc edi
mov eax, dword [ebp - 0x7c]
mov esi, eax
cmp edi, dword [ebp - 0x70]
jge 0x61c690e6
test esi, esi
jne 0x61c690b2
test esi, esi
je 0x61c6914a
mov dword [esp + 4], esi
mov dword [esp], str._s__
call sym.sqlite3.dll_sqlite3_mprintf
mov dword [ebp - 0x5c], eax
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_free
mov edi, 7
cmp dword [ebp - 0x5c], 0
je 0x61c69156
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x60]
mov dword [esp], edx
call sym.sqlite3.dll_sqlite3_declare_vtab
mov edi, eax
test eax, eax
je 0x61c69156
mov ecx, dword [ebp - 0x60]
mov dword [esp], ecx
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp + 4], eax
mov dword [esp], 0x61c77578
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x61c69156
mov dword [ebp - 0x5c], 0
mov edi, 7
mov ecx, dword [ebp - 0x5c]
mov dword [esp], ecx
call sym.sqlite3.dll_sqlite3_free
test edi, edi
jne 0x61c6916c
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jmp 0x61c69173
mov eax, ebx
call sym._rtreeRelease
mov eax, edi
add esp, 0xac
pop ebx
pop esi
pop edi
leave
ret
mov edi, 7
jmp 0x61c6906e