Function at 0x4e9c80
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
cmp byte [ebp + 0x1c], 0
push esi
mov dword [esp + 0xc], 0
jne 0x4e9cb3
push str.cannot_VACUUM_from_within_a_transaction
mov eax, ebp
mov esi, ecx
call fcn.004c7890
add esp, 4
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x40]
mov dword [esp + 0x18], eax
or eax, 0x2800
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x24], edx
mov edx, dword [ecx]
movzx eax, byte [edx + 0xd]
mov dword [esp + 0x14], eax
push edi
mov eax, str.ATTACH__AS_vacuum_db_
mov ecx, ebp
mov dword [esp + 0x30], ebx
call fcn.004e9a20
mov edi, eax
test edi, edi
jne 0x4e9f08
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
shl ecx, 4
mov esi, dword [ecx + edx - 0xc]
lea eax, [ecx + edx]
lea ecx, [eax - 0x10]
mov eax, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
call fcn.004b3630
mov edx, dword [ebx + 4]
mov edi, eax
movzx eax, word [edx + 0x14]
push 0
push edi
push esi
mov dword [esp + 0x28], edi
call fcn.004bbce0
add esp, 0xc
test eax, eax
jne 0x4e9f03
cmp dword [esp + 0x18], eax
jne 0x4e9d5e
push eax
mov eax, dword [ebp + 0x24]
push edi
push esi
call fcn.004bbce0
add esp, 0xc
test eax, eax
jne 0x4e9f03
cmp byte [ebp + 0x1e], 0
jne 0x4e9f03
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, ebp
call fcn.004e9a20
mov edi, eax
test edi, edi
jne 0x4e9f08
mov al, byte [ebp + 0x21]
test al, al
jl 0x4e9d8a
movsx eax, al
jmp 0x4e9d91
mov eax, ebx
call fcn.004b36e0
push eax
mov eax, esi
call fcn.004b3670
add esp, 4
mov eax, str.BEGIN_EXCLUSIVE_
mov ecx, ebp
call fcn.004e9a20
mov edi, eax
test edi, edi
jne 0x4e9f08
push ebp
mov eax, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.004e9a70
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9f08
push ebp
mov eax, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.004e9a70
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9f08
push ebp
mov eax, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.004e9a70
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9f08
push ebp
mov eax, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.004e9a70
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9f08
push ebp
mov eax, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.004e9a70
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9f08
push ebp
mov eax, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.004e9a70
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9f08
mov eax, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov ecx, ebp
call fcn.004e9a20
mov edi, eax
test edi, edi
jne 0x4e9f08
xor esi, esi
jmp 0x4e9e64
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
movzx eax, byte [esi + 0x57fe14]
mov ecx, ebx
call fcn.004d1d10
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9f08
movzx ecx, byte [esi + 0x57fe15]
add ecx, dword [esp + 0x18]
movzx ebx, byte [esi + 0x57fe14]
mov eax, dword [esp + 0x10]
push ecx
call fcn.004c20f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9f08
add esi, 2
cmp esi, 8
jl 0x4e9e60
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
push edx
call fcn.004e70c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9f08
mov eax, esi
call fcn.004db250
mov edi, eax
test edi, edi
jne 0x4e9f08
mov eax, esi
call fcn.004b36e0
mov edi, dword [esp + 0x30]
push eax
mov eax, edi
call fcn.004b3670
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x20]
movzx eax, word [eax + 0x14]
push 1
push ecx
push edi
call fcn.004bbce0
add esp, 0x10
mov edi, eax
jmp 0x4e9f08
mov edi, 7
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
xor ebx, ebx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], ecx
mov byte [ebp + 0x1c], 1
cmp esi, ebx
je 0x4e9f39
mov eax, dword [esi + 4]
call fcn.004e84d0
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
push ebx
mov ebx, ebp
call fcn.004cacd0
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret