Function at 0x100d3dd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x3f]
test ecx, ecx
jne 0x100d3e15
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10069b70
add esp, 0xc
mov eax, 1
jmp 0x100d42df
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x94], 1
jle 0x100d3e40
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10069b70
add esp, 0xc
mov eax, 1
jmp 0x100d42df
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xb0]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
or ecx, 0x202800
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
and ecx, 0xfff5ffff
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xb0], 0
mov ecx, 0x10
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx + 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
call fcn.1008b780
add esp, 4
push eax
call fcn.1007c0d0
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.100e8360
add esp, 4
test eax, eax
je 0x100d3ee7
mov dword [ebp - 0x18], str.ATTACH_:memory:_AS_vacuum_db_
jmp 0x100d3eee
mov dword [ebp - 0x18], str.ATTACH__AS_vacuum_db_
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.100d3c70
add esp, 0xc
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
cmp edx, dword [ebp - 0x24]
jle 0x100d3f25
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
sub ecx, 1
shl ecx, 4
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 4], 0
je 0x100d3f30
jmp 0x100d4267
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
sub ecx, 1
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10084b00
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.10083290
add esp, 4
mov dword [ebp - 0x1c], eax
push str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.100d3c70
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d3f87
jmp 0x100d4267
push str.BEGIN_
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100d3c70
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d3faa
jmp 0x100d4267
push 2
mov edx, dword [ebp - 8]
push edx
call fcn.10083b20
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d3fc6
jmp 0x100d4267
mov eax, dword [ebp - 8]
push eax
call fcn.1008b780
add esp, 4
push eax
call fcn.1007c7c0
add esp, 4
cmp eax, 5
jne 0x100d3fea
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x48], 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10083260
add esp, 4
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10083170
add esp, 0x10
test eax, eax
jne 0x100d403b
cmp dword [ebp - 0x28], 0
jne 0x100d4030
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x48]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10083170
add esp, 0x10
test eax, eax
jne 0x100d403b
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x41]
test ecx, ecx
je 0x100d4047
mov dword [ebp - 4], 7
jmp 0x100d4267
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x43]
test eax, eax
jl 0x100d405e
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x43]
mov dword [ebp - 0x20], edx
jmp 0x100d406d
mov eax, dword [ebp - 8]
push eax
call fcn.10083460
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100833a0
add esp, 8
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100d3cf0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d40a0
jmp 0x100d4267
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.100d3cf0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d40c3
jmp 0x100d4267
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.100d3cf0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d40e6
jmp 0x100d4267
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
or ecx, 0x8000000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
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
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100d3cf0
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
and eax, 0xf7ffffff
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
cmp dword [ebp - 4], 0
je 0x100d412c
jmp 0x100d4267
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.100d3cf0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d414f
jmp 0x100d4267
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.100d3cf0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d4172
jmp 0x100d4267
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_
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100d3c70
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d4195
jmp 0x100d4267
mov dword [ebp - 0x10], 0
jmp 0x100d41a7
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0xa
jge 0x100d41fa
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x100fe208]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1008b4b0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x100fe209]
add edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x100fe208]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.1008b520
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d41f8
jmp 0x100d4267
jmp 0x100d419e
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.1008de50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d4215
jmp 0x100d4267
mov edx, dword [ebp - 0xc]
push edx
call fcn.10084b00
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100d422c
jmp 0x100d4267
mov eax, dword [ebp - 0xc]
push eax
call fcn.10083460
add esp, 4
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.100833a0
add esp, 8
push 1
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10083260
add esp, 4
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10083170
add esp, 0x10
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0x50], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x54], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0xb0], eax
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call fcn.10083170
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x3f], 1
cmp dword [ebp - 0x14], 0
je 0x100d42d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call fcn.10082f30
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100b1bb0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret