Function at 0x473fe0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x474025
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004554b0
add esp, 0xc
mov eax, 1
jmp 0x4744d8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x8c], 1
jle 0x474050
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004554b0
add esp, 0xc
mov eax, 1
jmp 0x4744d8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x40]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x98]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
or ecx, 0x10050000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
and ecx, 0xfaffffff
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x98], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00445900
add esp, 4
push eax
call fcn.00451290
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004a4040
add esp, 4
test eax, eax
je 0x4740ee
mov dword [ebp - 0x2c], str.ATTACH_:memory:_AS_vacuum_db_
jmp 0x4740f5
mov dword [ebp - 0x2c], str.ATTACH__AS_vacuum_db_
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00474670
add esp, 0xc
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x24]
jle 0x47412c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
sub edx, 1
shl edx, 4
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 8]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0xc], 0
je 0x474137
jmp 0x47445e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
sub edx, 1
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call fcn.00472830
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004512b0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x24], 0
je 0x47419a
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.004a7a10
add esp, 0x10
cmp dword [ebp - 0x38], 0
je 0x47419a
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00445900
add esp, 4
push eax
call fcn.0044b120
add esp, 4
cmp eax, 5
jne 0x4741be
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004462d0
add esp, 4
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.00445d20
add esp, 0x10
test eax, eax
jne 0x47420f
cmp dword [ebp - 0x20], 0
jne 0x474204
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00445d20
add esp, 0x10
test eax, eax
jne 0x47420f
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x1e]
test edx, edx
je 0x47421b
mov dword [ebp - 0xc], 7
jmp 0x47445e
push str.PRAGMA_vacuum_db.synchronousOFF
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00474670
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47423e
jmp 0x47445e
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x20]
test eax, eax
jl 0x474255
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x20]
mov dword [ebp - 0x44], edx
jmp 0x474264
mov eax, dword [ebp - 0x18]
push eax
call fcn.00474570
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004744e0
add esp, 8
push str.BEGIN_EXCLUSIVE_
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00474670
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x474297
jmp 0x47445e
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00474730
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4742ba
jmp 0x47445e
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00474730
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4742dd
jmp 0x47445e
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00474730
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x474300
jmp 0x47445e
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_rootpage_0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00474730
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x474323
jmp 0x47445e
push str.SELECT_DELETE_FROM_vacuum_db.__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.00474730
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x474346
jmp 0x47445e
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00474730
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x474369
jmp 0x47445e
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 edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00474670
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47438c
jmp 0x47445e
mov dword [ebp - 0x3c], 0
jmp 0x47439e
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 8
jge 0x4743f1
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 0x4e73d0]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00450f20
add esp, 0xc
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 0x4e73d1]
add ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx + 0x4e73d0]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00450f70
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4743ef
jmp 0x47445e
jmp 0x474395
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004745d0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47440c
jmp 0x47445e
mov ecx, dword [ebp - 4]
push ecx
call fcn.00472830
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x474423
jmp 0x47445e
mov edx, dword [ebp - 4]
push edx
call fcn.00474570
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004744e0
add esp, 8
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004462d0
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00445d20
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x98], edx
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call fcn.00445d20
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x1c], 1
cmp dword [ebp - 0x30], 0
je 0x4744c7
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
push eax
call fcn.00453820
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], 0
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046e520
add esp, 8
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret