Function at 0x10064a90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
or eax, 0x2800
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x1c]
test eax, eax
jne 0x10064aef
push 0
push str.cannot_VACUUM_from_within_a_transaction
mov ecx, dword [ebp + 8]
push ecx
call fcn.10023640
add esp, 0xc
mov dword [ebp - 8], 1
jmp 0x10064d93
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], str.ATTACH__AS_vacuum_db_
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10064970
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064b20
jmp 0x10064d93
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
sub edx, 1
imul edx, edx, 0x18
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 8]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
sub edx, 1
imul edx, edx, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10030390
add esp, 4
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10030380
add esp, 4
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.100302c0
add esp, 0xc
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1e]
test ecx, ecx
je 0x10064b8b
mov dword [ebp - 8], 7
jmp 0x10064d93
push str.PRAGMA_vacuum_db.synchronousOFF
mov edx, dword [ebp + 0xc]
push edx
call fcn.10064970
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064baa
jmp 0x10064d93
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x1f]
test ecx, ecx
jl 0x10064bc1
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x1f]
mov dword [ebp - 0x24], eax
jmp 0x10064bd0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10030480
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10030410
add esp, 8
push str.BEGIN_EXCLUSIVE_
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10064970
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064bff
jmp 0x10064d93
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov edx, dword [ebp + 0xc]
push edx
call fcn.100649d0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064c1e
jmp 0x10064d93
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov eax, dword [ebp + 0xc]
push eax
call fcn.100649d0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064c3d
jmp 0x10064d93
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100649d0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064c5c
jmp 0x10064d93
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
mov edx, dword [ebp + 0xc]
push edx
call fcn.100649d0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064c7b
jmp 0x10064d93
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov eax, dword [ebp + 0xc]
push eax
call fcn.100649d0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064c9a
jmp 0x10064d93
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100649d0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064cb9
jmp 0x10064d93
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov edx, dword [ebp + 0xc]
push edx
call fcn.10064970
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064cd8
jmp 0x10064d93
cmp dword [ebp - 8], 0
jne 0x10064d93
mov dword [ebp - 0x1c], 0
jmp 0x10064cf4
mov eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 8
jae 0x10064d52
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x100d8da0]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10036d70
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064d20
jmp 0x10064d93
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x100d8da1]
add eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + 0x100d8da0]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10036e50
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064d50
jmp 0x10064d93
jmp 0x10064ceb
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100380e0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064d6d
jmp 0x10064d93
mov eax, dword [ebp - 4]
push eax
call fcn.100315b0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10064d84
jmp 0x10064d93
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100315b0
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x1c], 1
cmp dword [ebp - 0x18], 0
je 0x10064dcc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call fcn.100300d0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1004ccd0
add esp, 8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret