Function at 0x4aa8f0
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 + 0x43]
test ecx, ecx
jne 0x4aa935
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0045ea30
add esp, 0xc
mov eax, 1
jmp 0x4aae25
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x98], 1
jle 0x4aa960
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0045ea30
add esp, 0xc
mov eax, 1
jmp 0x4aae25
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x58]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xb4]
mov dword [ebp - 0x14], 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 + 0xb4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0043f130
add esp, 4
push eax
call fcn.0043ff50
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043ab00
add esp, 4
test eax, eax
je 0x4aa9fe
mov dword [ebp - 0x2c], str.ATTACH_:memory:_AS_vacuum_db_
jmp 0x4aaa05
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.004a9790
add esp, 0xc
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
cmp eax, dword [ebp - 0x24]
jle 0x4aaa3c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
sub edx, 1
shl edx, 4
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 0x10]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0xc], 0
je 0x4aaa47
jmp 0x4aadad
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
sub edx, 1
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call fcn.004a7d10
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00453f00
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x4c], 0
je 0x4aaaaa
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0044cd90
add esp, 0x10
cmp dword [ebp - 0x38], 0
je 0x4aaaaa
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x4c], 0
push str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004a9790
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aaacd
jmp 0x4aadad
push str.BEGIN_
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004a9790
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aaaf0
jmp 0x4aadad
push 2
mov edx, dword [ebp - 0x18]
push edx
call fcn.0049e790
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aab0c
jmp 0x4aadad
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043f130
add esp, 4
push eax
call fcn.0043fdb0
add esp, 4
cmp eax, 5
jne 0x4aab30
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x4c], 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043f2b0
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0045de10
add esp, 0x10
test eax, eax
jne 0x4aab81
cmp dword [ebp - 0x20], 0
jne 0x4aab76
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0045de10
add esp, 0x10
test eax, eax
jne 0x4aab81
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x45]
test ecx, ecx
je 0x4aab8d
mov dword [ebp - 0xc], 7
jmp 0x4aadad
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x48]
test eax, eax
jl 0x4aaba4
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x48]
mov dword [ebp - 0x44], edx
jmp 0x4aabb3
mov eax, dword [ebp - 0x18]
push eax
call fcn.00453d50
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00453db0
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.004aa130
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aabe6
jmp 0x4aadad
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.004aa130
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aac09
jmp 0x4aadad
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.004aa130
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aac2c
jmp 0x4aadad
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.004aa130
add esp, 0xc
mov dword [ebp - 0xc], 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 - 0xc], 0
je 0x4aac72
jmp 0x4aadad
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.004aa130
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aac95
jmp 0x4aadad
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.004aa130
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aacb8
jmp 0x4aadad
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.004a9790
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aacdb
jmp 0x4aadad
mov dword [ebp - 0x3c], 0
jmp 0x4aaced
mov edx, dword [ebp - 0x3c]
add edx, 2
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0xa
jge 0x4aad40
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
movzx edx, byte [ecx + 0x5155b0]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00453ce0
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
movzx edx, byte [ecx + 0x5155b1]
add edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 0x5155b0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0049b6b0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aad3e
jmp 0x4aadad
jmp 0x4aace4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004a8260
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aad5b
jmp 0x4aadad
mov edx, dword [ebp - 4]
push edx
call fcn.004a7d10
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aad72
jmp 0x4aadad
mov eax, dword [ebp - 4]
push eax
call fcn.00453d50
add esp, 4
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00453db0
add esp, 8
push 1
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0043f2b0
add esp, 4
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0045de10
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x54], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x58], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xb4], eax
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0045de10
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x43], 1
cmp dword [ebp - 0x30], 0
je 0x4aae16
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.004a4f30
add esp, 4
mov edx, dword [ebp - 0x30]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00466590
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret