Function at 0x100a11f0
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 0x100a122e
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10027750
add esp, 0xc
mov eax, 1
jmp 0x100a17f7
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xb0], 1
jle 0x100a1259
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10027750
add esp, 0xc
mov eax, 1
jmp 0x100a17f7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
cmp dword [ebp + 0x14], 0
je 0x100a12c7
mov eax, dword [ebp + 0x14]
push eax
call fcn.100573e0
add esp, 4
cmp eax, 3
je 0x100a1298
push str.non_text_filename
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10027750
add esp, 0xc
mov eax, 1
jmp 0x100a17f7
mov eax, dword [ebp + 0x14]
push eax
call fcn.10057380
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 0x100a12ce
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.1004c9b0
add esp, 4
push eax
call fcn.1003afc0
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.100a1080
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 0x100a13c0
jmp 0x100a1769
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 0x100a1459
mov edx, dword [ebp - 0xc]
push edx
call fcn.1004c9b0
add esp, 4
push eax
call fcn.1003b2f0
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 0x100a144a
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.100259a0
add esp, 8
test eax, eax
jne 0x100a1429
cmp dword [ebp - 0x50], 0
jl 0x100a144a
jg 0x100a1429
cmp dword [ebp - 0x54], 0
jbe 0x100a144a
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.10027750
add esp, 0xc
jmp 0x100a1769
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.100434c0
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.10043280
add esp, 8
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.100432c0
add esp, 8
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100432c0
add esp, 8
push 0x21
mov edx, dword [ebp - 0xc]
push edx
call fcn.10043360
add esp, 8
push str.BEGIN
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100a0f90
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a14d4
jmp 0x100a1769
cmp dword [ebp + 0x14], 0
jne 0x100a14e3
mov dword [ebp - 0x2c], 2
jmp 0x100a14ea
mov dword [ebp - 0x2c], 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10043d80
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a150a
jmp 0x100a1769
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1004c9b0
add esp, 4
push eax
call fcn.1003b720
add esp, 4
cmp eax, 5
jne 0x100a152e
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.10043490
add esp, 4
push eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.100433a0
add esp, 0x10
test eax, eax
jne 0x100a157f
cmp dword [ebp - 0x3c], 0
jne 0x100a1574
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.100433a0
add esp, 0x10
test eax, eax
jne 0x100a157f
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x51]
test edx, edx
je 0x100a158b
mov dword [ebp - 8], 7
jmp 0x100a1769
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x54]
test ecx, ecx
jl 0x100a15a2
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x54]
mov dword [ebp - 0x30], eax
jmp 0x100a15b1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10043680
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.100435c0
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.100a1080
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a15f4
jmp 0x100a1769
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.100a1080
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a161b
jmp 0x100a1769
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.100a1080
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 0x100a165b
jmp 0x100a1769
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.100a1080
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a1682
jmp 0x100a1769
mov dword [ebp - 0x14], 0
jmp 0x100a1694
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xa
jge 0x100a16ea
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x100d96e4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1004c730
add esp, 0xc
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x100d96e5]
add ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x100d96e4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1004c7a0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a16e8
jmp 0x100a1769
jmp 0x100a168b
cmp dword [ebp + 0x14], 0
jne 0x100a1703
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.1004f020
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a170b
jmp 0x100a1769
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10044e10
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a1722
jmp 0x100a1769
cmp dword [ebp + 0x14], 0
jne 0x100a1741
mov edx, dword [ebp - 0xc]
push edx
call fcn.10043680
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.100435c0
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x100a1769
push 1
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10043490
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.100433a0
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.100433a0
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x4f], 1
cmp dword [ebp - 0x18], 0
je 0x100a17e8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call fcn.10043150
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.100798c0
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret