Function at 0x45ff90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
cmp byte [edi + 0x3e], al
jne 0x45ffbf
push str.cannot_VACUUM_from_within_a_transaction
push edi
push dword [ebp + 8]
call fcn.00462d70
add esp, 0xc
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x94], 1
jle 0x45ffcf
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x45ffa9
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x18], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0x54]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
push ebx
cmp byte [edi + 0x3f], 2
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 0xac]
mov dword [edi + 0xac], 0
mov ebx, dword [eax + 4]
push esi
push 0
mov dword [ebp - 0x24], ecx
mov ecx, str.ATTACH_:memory:_AS_vacuum_db_
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov al, byte [eax + 0xf]
mov byte [ebp + 0xf], al
mov eax, dword [edi + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
mov eax, str.ATTACH__AS_vacuum_db_
push 0xffffffffffffffff
cmove eax, ecx
push eax
push edi
call fcn.00456c60
add esp, 0x1c
test eax, eax
je 0x460060
push edi
call fcn.00413bf0
push eax
push edi
push dword [ebp + 8]
call fcn.00462d70
push edi
call fcn.00413b10
add esp, 0x14
jmp 0x460077
push dword [ebp - 8]
call fcn.00414710
push dword [ebp + 8]
push dword [ebp - 8]
push edi
call fcn.00479e50
add esp, 0x10
mov edx, dword [edi + 0x14]
mov esi, eax
cmp edx, dword [ebp - 4]
jle 0x460091
mov eax, dword [edi + 0x10]
mov ecx, edx
shl ecx, 4
add eax, 0xfffffff0
add eax, ecx
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x460416
mov eax, dword [edi + 0x10]
add edx, edx
mov eax, dword [eax + edx*8 - 0xc]
push eax
mov dword [ebp - 4], eax
call fcn.00442c20
mov cl, byte [ebx + 9]
add esp, 4
test cl, cl
je 0x4600ca
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x4600ca
push ebx
call fcn.0041e570
mov cl, byte [ebx + 9]
add esp, 4
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [ebp - 8], edx
test cl, cl
je 0x4600e9
add dword [ebx + 0xc], 0xffffffff
jne 0x4600e9
push ebx
call fcn.00478290
add esp, 4
push str.PRAGMA_vacuum_db.synchronousOFF
push dword [ebp + 8]
push edi
call fcn.00426290
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460416
push str.BEGIN_
push dword [ebp + 8]
push edi
call fcn.00426290
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460416
push 2
push ebx
call fcn.00442630
mov esi, eax
add esp, 8
test esi, esi
jne 0x460416
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
cmp byte [eax + 5], 5
jne 0x460145
mov dword [edi + 0x48], esi
mov ecx, dword [ebx + 4]
mov esi, dword [ebp - 4]
push 0
push dword [ebp - 8]
push dword [ecx + 0x20]
push esi
call fcn.00444de0
add esp, 0x10
test eax, eax
jne 0x460411
cmp byte [ebp + 0xf], al
jne 0x46017e
push eax
push dword [ebp - 8]
push dword [edi + 0x48]
push esi
call fcn.00444de0
add esp, 0x10
test eax, eax
jne 0x460411
cmp byte [edi + 0x40], 0
jne 0x460411
mov al, byte [edi + 0x42]
test al, al
js 0x460194
movsx eax, al
jmp 0x46019d
push ebx
call fcn.004433d0
add esp, 4
push eax
push esi
call fcn.00444cd0
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
push dword [ebp + 8]
push edi
call fcn.00425c80
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x460416
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push dword [ebp + 8]
push edi
call fcn.00425c80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460416
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push dword [ebp + 8]
push edi
call fcn.00425c80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460416
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
push dword [ebp + 8]
push edi
call fcn.00425c80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460416
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push dword [ebp + 8]
push edi
call fcn.00425c80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460416
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push dword [ebp + 8]
push edi
call fcn.00425c80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460416
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
push dword [ebp + 8]
push edi
call fcn.00426290
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460416
mov dword [ebp + 0xc], esi
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [esi + 0x4c2124]
push eax
push ebx
call fcn.00443420
movzx eax, byte [esi + 0x4c2125]
add eax, dword [ebp - 0x10]
push eax
movzx eax, byte [esi + 0x4c2124]
push eax
push dword [ebp - 4]
call fcn.00445160
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x460416
mov esi, dword [ebp + 0xc]
add esi, 2
mov dword [ebp + 0xc], esi
cmp esi, 0xa
jl 0x460264
cmp byte [ebx + 9], al
je 0x4602c2
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], al
jne 0x4602c2
push ebx
call fcn.0041e570
add esp, 4
mov ecx, dword [ebp - 4]
cmp byte [ecx + 9], 0
je 0x4602e0
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x4602e0
push ecx
call fcn.0041e570
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov esi, dword [eax + 0x3c]
cmp dword [esi], 0
je 0x460327
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x20]
cdq
push edx
push eax
push 0
push ecx
call fcn.004a0ab0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x10], edx
push 0xb
push esi
mov eax, dword [eax + 0x28]
call eax
mov esi, eax
add esp, 0xc
cmp esi, 0xc
je 0x460327
test esi, esi
jne 0x4603a7
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
push SysReAllocString
mov dword [ebp - 0x54], 0
movlpd qword [ebp - 0x4c], xmm0
mov eax, dword [ecx]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], 1
call fcn.004187e0
lea eax, [ebp - 0x54]
push eax
call fcn.00418dd0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46038a
mov eax, dword [ebx + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x4603a7
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp byte [eax + 0xf], 0
jne 0x4603a7
cmp byte [eax + 0xc], 0
jne 0x4603a7
push eax
call fcn.00436380
add esp, 4
mov eax, dword [ebp - 4]
cmp byte [eax + 9], 0
je 0x4603bf
add dword [eax + 0xc], 0xffffffff
jne 0x4603bf
push eax
call fcn.00478290
add esp, 4
cmp byte [ebx + 9], 0
je 0x4603d4
add dword [ebx + 0xc], 0xffffffff
jne 0x4603d4
push ebx
call fcn.00478290
add esp, 4
test esi, esi
jne 0x460416
push dword [ebp - 4]
call fcn.00442c20
mov esi, eax
add esp, 4
test esi, esi
jne 0x460416
mov esi, dword [ebp - 4]
push esi
call fcn.004433d0
push eax
push ebx
call fcn.00444cd0
mov eax, dword [esi + 4]
push 1
push dword [ebp - 8]
push dword [eax + 0x20]
push ebx
call fcn.00444de0
add esp, 0x1c
mov esi, eax
jmp 0x460416
mov esi, 7
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x1c]
push 1
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push ebx
mov dword [edi + 0xac], eax
call fcn.00444de0
mov ebx, dword [ebp - 0xc]
add esp, 0x10
mov byte [edi + 0x3e], 1
test ebx, ebx
je 0x460464
push dword [ebx + 4]
call fcn.00442960
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
push edi
call fcn.0045f0d0
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret