Function at 0x6757a1
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x70
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x4f]
test al, al
jne 0x6757e2
sub esp, 4
push str.cannot_VACUUM_from_within_a_transaction
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005fbacd
add esp, 0x10
mov eax, 1
jmp 0x675e25
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xb0]
cmp eax, 1
jle 0x675810
sub esp, 4
push str.cannot_VACUUM___SQL_statements_in_progress
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005fbacd
add esp, 0x10
mov eax, 1
jmp 0x675e25
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x14], 0
je 0x675887
sub esp, 0xc
push dword [ebp + 0x14]
call fcn.0062abd3
add esp, 0x10
cmp eax, 3
je 0x675852
sub esp, 4
push str.non_text_filename
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005fbacd
add esp, 0x10
mov eax, 1
jmp 0x675e25
sub esp, 0xc
push dword [ebp + 0x14]
call fcn.0062ab73
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
and eax, 0xfffffffe
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
or eax, 6
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
jmp 0x67588e
mov dword [ebp - 0x14], 0x8ac7ba
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x58]
mov byte [ebp - 0x35], al
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov ecx, eax
or ecx, 0x201
mov dword [ebp - 0x70], ecx
mov eax, edx
or ah, 0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
or eax, 6
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov ecx, eax
and ecx, 0xefffafff
mov ebx, ecx
mov eax, edx
and eax, 0xfffffffe
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], esi
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x58], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0x10]
shl edx, 4
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0x10]
shl edx, 4
add eax, edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
sub esp, 0xc
push dword [ebp - 0x40]
call fcn.00620373
add esp, 0x10
sub esp, 0xc
push eax
call fcn.0060ea29
add esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x14]
push str.ATTACH__Q_AS_vacuum_db
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0067563d
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x3c], edx
cmp dword [ebp - 0xc], 0
jne 0x675d73
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x48]
shl edx, 4
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], eax
cmp dword [ebp + 0x14], 0
je 0x675a58
sub esp, 0xc
push dword [ebp - 0x4c]
call fcn.00620373
add esp, 0x10
sub esp, 0xc
push eax
call fcn.0060edb8
add esp, 0x10
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
test eax, eax
je 0x675a47
sub esp, 8
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x50]
call fcn.005f9d4a
add esp, 0x10
test eax, eax
jne 0x675a25
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov ebx, 0
mov ecx, 0
cmp ebx, eax
sbb ecx, edx
jge 0x675a47
mov dword [ebp - 0xc], 1
sub esp, 4
push str.output_file_already_exists
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005fbacd
add esp, 0x10
jmp 0x675d92
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
or eax, 8
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
sub esp, 0xc
push dword [ebp - 0x40]
call fcn.00616c76
add esp, 0x10
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0x10]
shl edx, 4
add eax, edx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x50]
sub esp, 8
push eax
push dword [ebp - 0x4c]
call fcn.00616a0f
add esp, 0x10
sub esp, 8
push 0
push dword [ebp - 0x40]
call fcn.00616a55
add esp, 0x10
sub esp, 8
push eax
push dword [ebp - 0x4c]
call fcn.00616a55
add esp, 0x10
sub esp, 8
push 0x21
push dword [ebp - 0x4c]
call fcn.00616af1
add esp, 0x10
sub esp, 4
push str.BEGIN
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0067553e
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x675d76
cmp dword [ebp + 0x14], 0
jne 0x675aeb
mov eax, 2
jmp 0x675af0
mov eax, 0
sub esp, 4
push 0
push eax
push dword [ebp - 0x40]
call fcn.0061758c
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x675d79
sub esp, 0xc
push dword [ebp - 0x40]
call fcn.00620373
add esp, 0x10
sub esp, 0xc
push eax
call fcn.0060f21e
add esp, 0x10
cmp eax, 5
jne 0x675b37
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x5c], 0
sub esp, 0xc
push dword [ebp - 0x40]
call fcn.00616c44
add esp, 0x10
push 0
push dword [ebp - 0x54]
push eax
push dword [ebp - 0x4c]
call fcn.00616b37
add esp, 0x10
test eax, eax
jne 0x675b86
cmp dword [ebp - 0x44], 0
jne 0x675b7b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x5c]
push 0
push dword [ebp - 0x54]
push eax
push dword [ebp - 0x4c]
call fcn.00616b37
add esp, 0x10
test eax, eax
jne 0x675b86
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x51]
test al, al
je 0x675b92
mov dword [ebp - 0xc], 7
jmp 0x675d92
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x54]
test al, al
js 0x675ba9
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x54]
movsx eax, al
jmp 0x675bb7
sub esp, 0xc
push dword [ebp - 0x40]
call fcn.00616e20
add esp, 0x10
sub esp, 8
push eax
push dword [ebp - 0x4c]
call fcn.00616d93
add esp, 0x10
mov eax, dword [ebp - 0x48]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xa4], dl
push dword [ebp - 0x3c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0067563d
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x675d7c
push dword [ebp - 0x3c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0067563d
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x675d7f
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xa4], 0
push dword [ebp - 0x3c]
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0067563d
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
and eax, 0xfffffffb
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
cmp dword [ebp - 0xc], 0
jne 0x675d82
push dword [ebp - 0x3c]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0067563d
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x675d85
mov dword [ebp - 0x18], 0
jmp 0x675ce9
mov eax, dword [ebp - 0x18]
add eax, 0x8ba104
movzx eax, byte [eax]
movzx eax, al
sub esp, 4
lea edx, [ebp - 0x64]
push edx
push eax
push dword [ebp - 0x40]
call fcn.006200a4
add esp, 0x10
mov eax, dword [ebp - 0x18]
add eax, 1
movzx eax, byte [eax + 0x8ba104]
movzx edx, al
mov eax, dword [ebp - 0x64]
add edx, eax
mov eax, dword [ebp - 0x18]
add eax, 0x8ba104
movzx eax, byte [eax]
movzx eax, al
sub esp, 4
push edx
push eax
push dword [ebp - 0x4c]
call fcn.00620121
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x675d88
add dword [ebp - 0x18], 2
cmp dword [ebp - 0x18], 9
jle 0x675c84
cmp dword [ebp + 0x14], 0
jne 0x675d09
sub esp, 8
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
call fcn.00622a21
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x675d8b
sub esp, 0xc
push dword [ebp - 0x4c]
call fcn.006186df
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x675d8e
cmp dword [ebp + 0x14], 0
jne 0x675d49
sub esp, 0xc
push dword [ebp - 0x4c]
call fcn.00616e20
add esp, 0x10
sub esp, 8
push eax
push dword [ebp - 0x40]
call fcn.00616d93
add esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x675d91
sub esp, 0xc
push dword [ebp - 0x4c]
call fcn.00616c44
add esp, 0x10
push 1
push dword [ebp - 0x54]
push eax
push dword [ebp - 0x40]
call fcn.00616b37
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x675d92
nop
jmp 0x675d92
nop
jmp 0x675d92
nop
jmp 0x675d92
nop
jmp 0x675d92
nop
jmp 0x675d92
nop
jmp 0x675d92
nop
jmp 0x675d92
nop
jmp 0x675d92
nop
jmp 0x675d92
nop
jmp 0x675d92
nop
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xa4], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x64], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x68], edx
mov eax, dword [ebp + 0xc]
movzx edx, byte [ebp - 0x35]
mov byte [eax + 0x58], dl
push 1
push 0
push 0xffffffffffffffff
push dword [ebp - 0x40]
call fcn.00616b37
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x4f], 1
cmp dword [ebp - 0x10], 0
je 0x675e14
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sub esp, 0xc
push eax
call fcn.006168c5
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.0064d2e4
add esp, 0x10
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret