Function at 0x100a1380
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x4f]
test ecx, ecx
jne 0x100a13be
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100278e0
add esp, 0xc
mov eax, 1
jmp 0x100a1987
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xb0], 1
jle 0x100a13e9
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100278e0
add esp, 0xc
mov eax, 1
jmp 0x100a1987
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
cmp dword [ebp + 0x14], 0
je 0x100a1457
mov eax, dword [ebp + 0x14]
push eax
call fcn.10057570
add esp, 4
cmp eax, 3
je 0x100a1428
push str.non_text_filename
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100278e0
add esp, 0xc
mov eax, 1
jmp 0x100a1987
mov eax, dword [ebp + 0x14]
push eax
call fcn.10057510
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
and edx, 0xfffffffe
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
or edx, 6
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
jmp 0x100a145e
mov dword [ebp - 0x24], 0x100f0058
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x5c], edx
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x68]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 0x58]
mov byte [ebp - 1], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
or ecx, 0x201
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
or edx, 6
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
and edx, 0xefffafff
mov eax, dword [ecx + 0x24]
and eax, 0xfffffffe
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x24], eax
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x58], 0
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1004cb40
add esp, 4
push eax
call fcn.1003b150
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x24]
push edx
push str.ATTACH__Q_AS_vacuum_db
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100a1210
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x3c], eax
cmp dword [ebp - 8], 0
je 0x100a1550
jmp 0x100a18f9
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x14], 0
je 0x100a15e9
mov edx, dword [ebp - 0xc]
push edx
call fcn.1004cb40
add esp, 4
push eax
call fcn.1003b480
add esp, 4
mov dword [ebp - 0x28], eax
xorpd xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x100a15da
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.10025b40
add esp, 8
test eax, eax
jne 0x100a15b9
cmp dword [ebp - 0x50], 0
jl 0x100a15da
jg 0x100a15b9
cmp dword [ebp - 0x54], 0
jbe 0x100a15da
mov dword [ebp - 8], 1
push str.output_file_already_exists
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100278e0
add esp, 0xc
jmp 0x100a18f9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
or eax, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.10043650
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10043410
add esp, 8
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.10043450
add esp, 8
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10043450
add esp, 8
push 0x21
mov edx, dword [ebp - 0xc]
push edx
call fcn.100434f0
add esp, 8
push str.BEGIN
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100a1120
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a1664
jmp 0x100a18f9
cmp dword [ebp + 0x14], 0
jne 0x100a1673
mov dword [ebp - 0x2c], 2
jmp 0x100a167a
mov dword [ebp - 0x2c], 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10043f10
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a169a
jmp 0x100a18f9
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1004cb40
add esp, 4
push eax
call fcn.1003b8b0
add esp, 4
cmp eax, 5
jne 0x100a16be
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x5c], 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10043620
add esp, 4
push eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.10043530
add esp, 0x10
test eax, eax
jne 0x100a170f
cmp dword [ebp - 0x3c], 0
jne 0x100a1704
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10043530
add esp, 0x10
test eax, eax
jne 0x100a170f
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x51]
test edx, edx
je 0x100a171b
mov dword [ebp - 8], 7
jmp 0x100a18f9
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x54]
test ecx, ecx
jl 0x100a1732
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x54]
mov dword [ebp - 0x30], eax
jmp 0x100a1741
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10043810
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10043750
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x34]
mov byte [ecx + 0xa4], dl
mov eax, dword [ebp - 0x1c]
push eax
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.100a1210
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a1784
jmp 0x100a18f9
mov eax, dword [ebp - 0x1c]
push eax
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.100a1210
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a17ab
jmp 0x100a18f9
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xa4], 0
mov ecx, dword [ebp - 0x1c]
push ecx
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.100a1210
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
and edx, 0xfffffffb
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
cmp dword [ebp - 8], 0
je 0x100a17eb
jmp 0x100a18f9
mov ecx, dword [ebp - 0x1c]
push ecx
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.100a1210
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a1812
jmp 0x100a18f9
mov dword [ebp - 0x14], 0
jmp 0x100a1824
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xa
jge 0x100a187a
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x100d972c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1004c8c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x100d972d]
add ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x100d972c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1004c930
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a1878
jmp 0x100a18f9
jmp 0x100a181b
cmp dword [ebp + 0x14], 0
jne 0x100a1893
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.1004f1b0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a189b
jmp 0x100a18f9
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10044fa0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a18b2
jmp 0x100a18f9
cmp dword [ebp + 0x14], 0
jne 0x100a18d1
mov edx, dword [ebp - 0xc]
push edx
call fcn.10043810
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.10043750
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x100a18f9
push 1
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10043620
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.10043530
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xa4], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x48]
mov dword [ecx + 0x64], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x68], ecx
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 1]
mov byte [edx + 0x58], al
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10043530
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x4f], 1
cmp dword [ebp - 0x18], 0
je 0x100a1978
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call fcn.100432e0
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10079a50
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret