Function at 0x449f32
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp byte [ebx + 0x3f], 0
jne 0x449f65
push str.cannot_VACUUM_from_within_a_transaction
push ebx
push edi
call fcn.00404967
add esp, 0xc
mov eax, 1
jmp 0x44a2b6
cmp dword [ebx + 0x94], 1
jle 0x449f87
push str.cannot_VACUUM___SQL_statements_in_progress
push ebx
push edi
call fcn.00404967
add esp, 0xc
mov eax, 1
jmp 0x44a2b6
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebx + 0x50]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x14], eax
mov edx, dword [ebx + 0xac]
mov dword [ebp - 0x18], edx
or dword [ebx + 0x18], 0x202800
and dword [ebx + 0x18], 0xfff5ffff
xor ecx, ecx
mov dword [ebx + 0xac], ecx
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 4]
mov dword [ebp - 4], edx
push dword [ebp - 4]
call fcn.00419c38
pop ecx
push eax
call fcn.0041011a
pop ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x28], ecx
push ebx
call fcn.0045708d
pop ecx
test eax, eax
je 0x449fec
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
jmp 0x449ff1
mov eax, str.ATTACH__AS_vacuum_db_
push eax
push edi
push ebx
call fcn.00449e1f
add esp, 0xc
mov esi, eax
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 0x28]
jle 0x44a013
mov edx, dword [ebx + 0x14]
dec edx
shl edx, 4
add edx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], edx
test esi, esi
jne 0x44a25b
mov ecx, dword [ebx + 0x14]
dec ecx
shl ecx, 4
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + ecx + 4]
mov dword [ebp - 8], edx
push dword [ebp - 8]
call fcn.004155b5
pop ecx
push dword [ebp - 4]
call fcn.00414692
pop ecx
mov dword [ebp - 0x24], eax
push str.PRAGMA_vacuum_db.synchronousOFF
push edi
push ebx
call fcn.00449e1f
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
push str.BEGIN_
push edi
push ebx
call fcn.00449e1f
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
push 2
push dword [ebp - 4]
call fcn.00414b60
add esp, 8
mov esi, eax
test esi, esi
jne 0x44a25b
push dword [ebp - 4]
call fcn.00419c38
pop ecx
push eax
call fcn.00410602
pop ecx
cmp eax, 5
jne 0x44a0a4
xor eax, eax
mov dword [ebx + 0x48], eax
push 0
push dword [ebp - 0x24]
push dword [ebp - 4]
call fcn.00414684
pop ecx
push eax
push dword [ebp - 8]
call fcn.00414609
add esp, 0x10
test eax, eax
jne 0x44a0e5
cmp dword [ebp - 0x20], 0
jne 0x44a0df
push 0
push dword [ebp - 0x24]
push dword [ebx + 0x48]
push dword [ebp - 8]
call fcn.00414609
add esp, 0x10
test eax, eax
jne 0x44a0e5
cmp byte [ebx + 0x41], 0
je 0x44a0ef
mov esi, 7
jmp 0x44a25b
cmp byte [ebx + 0x43], 0
jl 0x44a0fb
movsx eax, byte [ebx + 0x43]
jmp 0x44a104
push dword [ebp - 4]
call fcn.00414768
pop ecx
push eax
push dword [ebp - 8]
call fcn.00414714
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
push edi
push ebx
call fcn.00449e87
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push edi
push ebx
call fcn.00449e87
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push edi
push ebx
call fcn.00449e87
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
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
push edi
push ebx
call fcn.00449e87
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push edi
push ebx
call fcn.00449e87
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push edi
push ebx
call fcn.00449e87
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
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_
push edi
push ebx
call fcn.00449e1f
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
xor edi, edi
lea eax, [ebp - 0x2c]
push eax
xor edx, edx
mov dl, byte [edi + 0x465520]
push edx
push dword [ebp - 4]
call fcn.00419a70
add esp, 0xc
xor ecx, ecx
mov cl, byte [edi + 0x465521]
add ecx, dword [ebp - 0x2c]
push ecx
xor eax, eax
mov al, byte [edi + 0x465520]
push eax
push dword [ebp - 8]
call fcn.00419aba
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x44a25b
add edi, 2
cmp edi, 0xa
jl 0x44a1c1
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0041b415
add esp, 8
mov esi, eax
test esi, esi
jne 0x44a25b
push dword [ebp - 8]
call fcn.004155b5
pop ecx
mov esi, eax
test esi, esi
jne 0x44a25b
push dword [ebp - 8]
call fcn.00414768
pop ecx
push eax
push dword [ebp - 4]
call fcn.00414714
add esp, 8
push 1
push dword [ebp - 0x24]
push dword [ebp - 8]
call fcn.00414684
pop ecx
push eax
push dword [ebp - 4]
call fcn.00414609
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x50], edx
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x54], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xac], eax
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 4]
call fcn.00414609
add esp, 0x10
mov byte [ebx + 0x3f], 1
cmp dword [ebp - 0x1c], 0
je 0x44a2ad
mov edx, dword [ebp - 0x1c]
push dword [edx + 4]
call fcn.004144d3
pop ecx
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [edx + 0xc], ecx
push ebx
call fcn.00432379
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret