Function at 0x462130
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
xor ecx, ecx
push edi
mov ebx, eax
mov dword [esp + 0x10], ecx
cmp byte [ebp + 0x1c], cl
jne 0x462164
push str.cannot_VACUUM_from_within_a_transaction
mov eax, ebp
mov edi, ebx
call fcn.00444f30
add esp, 4
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
cmp dword [ebp + 0x8c], 1
jle 0x462174
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x46214c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x18], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x40]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x98]
mov dword [ebp + 0x98], ecx
mov edi, dword [eax + 4]
mov eax, edi
mov dword [esp + 0x24], edx
call fcn.00432560
call fcn.00430f30
mov ecx, dword [ebp + 4]
mov dword [esp + 0x2c], ecx
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.00436fb0
test eax, eax
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
jne 0x4621d8
mov eax, str.ATTACH__AS_vacuum_db_
push esi
mov ecx, ebx
mov edx, ebp
call fcn.00462040
mov esi, eax
mov eax, dword [ebp + 4]
cmp eax, dword [esp + 0x30]
jle 0x4621fd
mov ecx, dword [ebp + 8]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [esp + 0x14], edx
test esi, esi
jne 0x462426
mov ecx, dword [ebp + 8]
shl eax, 4
mov esi, dword [eax + ecx - 0xc]
mov eax, esi
mov dword [esp + 0x30], esi
call fcn.0045b6f0
mov eax, edi
call fcn.00432120
mov edx, eax
mov eax, edi
mov dword [esp + 0x10], edx
call fcn.00432560
call fcn.00430fa0
cmp eax, 5
jne 0x46223f
mov dword [ebp + 0x24], 0
push 0
mov eax, edi
call fcn.00432110
push eax
push esi
mov eax, edx
call fcn.00439a10
add esp, 0xc
test eax, eax
jne 0x462421
cmp dword [esp + 0x18], eax
jne 0x46227c
mov edx, dword [ebp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push edx
push esi
call fcn.00439a10
add esp, 0xc
test eax, eax
jne 0x462421
cmp byte [ebp + 0x1e], 0
jne 0x462421
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, ebx
mov edx, ebp
call fcn.00462040
mov esi, eax
test esi, esi
jne 0x462426
mov al, byte [ebp + 0x20]
test al, al
jl 0x4622aa
movsx eax, al
jmp 0x4622b1
mov eax, edi
call fcn.00432210
push eax
mov eax, dword [esp + 0x34]
call fcn.004321b0
add esp, 4
mov eax, str.BEGIN_EXCLUSIVE_
mov ecx, ebx
mov edx, ebp
call fcn.00462040
mov esi, eax
test esi, esi
jne 0x462426
push ebx
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov eax, ebp
call fcn.004620b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x462426
push ebx
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov eax, ebp
call fcn.004620b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x462426
push ebx
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov eax, ebp
call fcn.004620b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x462426
push ebx
mov ecx, 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 eax, ebp
call fcn.004620b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x462426
push ebx
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov eax, ebp
call fcn.004620b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x462426
push ebx
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov eax, ebp
call fcn.004620b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x462426
mov eax, 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 ecx, ebx
mov edx, ebp
call fcn.00462040
mov esi, eax
test esi, esi
jne 0x462426
xor ebx, ebx
lea esp, [esp]
movzx ecx, byte [ebx + 0x49fcdc]
lea eax, [esp + 0x18]
push eax
push ecx
mov eax, edi
call fcn.00432530
movzx edx, byte [ebx + 0x49fcdd]
add edx, dword [esp + 0x20]
movzx eax, byte [ebx + 0x49fcdc]
push edx
push eax
mov eax, dword [esp + 0x40]
call fcn.0044b720
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462426
add ebx, 2
cmp ebx, 8
jl 0x462390
mov esi, dword [esp + 0x30]
mov ebx, edi
call fcn.0045d500
mov esi, eax
test esi, esi
jne 0x462426
mov ebx, dword [esp + 0x30]
mov eax, ebx
call fcn.0045b6f0
mov esi, eax
test esi, esi
jne 0x462426
mov eax, ebx
call fcn.00432210
push eax
mov eax, edi
call fcn.004321b0
add esp, 4
push 1
mov eax, ebx
call fcn.00432110
push eax
mov eax, dword [esp + 0x18]
push edi
call fcn.00439a10
add esp, 0xc
mov esi, eax
jmp 0x462426
mov esi, 7
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 1
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ebp + 0x40], eax
push 0xffffffffffffffff
push edi
or eax, 0xffffffff
mov dword [ebp + 0x3c], edx
mov dword [ebp + 0x98], ecx
call fcn.00439a10
mov edi, dword [esp + 0x20]
xor ebx, ebx
add esp, 0xc
mov byte [ebp + 0x1c], 1
cmp edi, ebx
je 0x462475
mov edx, dword [edi + 4]
push edx
call fcn.0045e330
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
or eax, 0xffffffff
mov ecx, ebp
call fcn.00447ae0
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret