Function at 0x461120
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp byte [ebx + 0x43], 0
jne 0x46114b
push str.cannot_VACUUM_from_within_a_transaction
mov esi, dword [ebp + 8]
push ebx
call fcn.00428c72
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x46142d
cmp dword [ebx + 0x9c], 1
jle 0x46115b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x461138
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x24], eax
and eax, 0xfff5ff7f
or eax, 0x10202800
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x5c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov cl, byte [ebx + 0x4c]
shl eax, 4
mov byte [ebp + 0xf], cl
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x18], eax
add eax, ecx
mov byte [ebx + 0x4c], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], eax
call fcn.0041d9ef
call fcn.0041c78a
push str.ATTACHAS_vacuum_db
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
push ebx
mov dword [ebp - 0x14], eax
call fcn.0046105d
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4613d8
mov eax, dword [ebp - 0x14]
shl eax, 4
add eax, dword [ebx + 0x10]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 4], edi
call fcn.0044cfb8
mov esi, dword [ebp - 8]
call fcn.0042583f
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + ecx + 0xc]
push dword [eax + 0x50]
call fcn.004257d9
push 0
mov edi, esi
call fcn.004257fa
mov edi, dword [ebp - 4]
push eax
call fcn.004257fa
push 0x21
call fcn.0042581d
push str.BEGIN
push dword [ebp + 8]
push ebx
call fcn.0046105d
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x4613d5
push 2
push esi
call fcn.00451d48
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4613d5
mov eax, esi
call fcn.0041d9ef
call fcn.0041c7c9
cmp eax, 5
jne 0x46125e
and dword [ebx + 0x50], edi
xor edi, edi
push edi
push dword [ebp - 0xc]
mov eax, esi
call fcn.0041d78b
push dword [ebp - 4]
call fcn.0044f6ed
add esp, 0xc
test eax, eax
jne 0x4613d2
cmp dword [ebp - 0x1c], edi
jne 0x46129d
mov eax, dword [ebx + 0x50]
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0044f6ed
add esp, 0xc
test eax, eax
jne 0x4613d2
cmp byte [ebx + 0x45], 0
jne 0x4613d2
mov al, byte [ebx + 0x48]
test al, al
jl 0x4612b3
movsx eax, al
jmp 0x4612b8
call fcn.00425912
mov edi, dword [ebp - 4]
push eax
call fcn.004258c7
mov esi, dword [ebp - 0x20]
mov al, byte [ebp - 0x14]
push esi
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp + 8]
mov byte [ebx + 0x98], al
push ebx
call fcn.004610df
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4613d5
push esi
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push dword [ebp + 8]
push ebx
call fcn.004610df
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4613d5
push esi
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp + 8]
mov byte [ebx + 0x98], al
push ebx
call fcn.004610df
and dword [ebx + 0x18], 0xefffffff
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4613d5
push esi
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp + 8]
push ebx
call fcn.004610df
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4613d5
xor esi, esi
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x20]
push eax
movzx eax, byte [esi + 0x48a1f0]
push eax
call fcn.00425acf
movzx eax, byte [esi + 0x48a1f1]
add eax, dword [ebp - 0x20]
push eax
movzx eax, byte [esi + 0x48a1f0]
push eax
push dword [ebp - 4]
call fcn.00449dfa
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4613d5
inc esi
inc esi
cmp esi, 0xa
jl 0x46134c
push dword [ebp - 8]
mov esi, dword [ebp - 4]
call fcn.004525a9
mov edi, eax
pop ecx
test edi, edi
jne 0x4613d5
mov eax, esi
call fcn.0044cfb8
mov edi, eax
test edi, edi
jne 0x4613d5
call fcn.00425912
mov edi, dword [ebp - 8]
push eax
call fcn.004258c7
pop ecx
push 1
push dword [ebp - 0xc]
mov eax, esi
call fcn.0041d78b
push edi
call fcn.0044f6ed
add esp, 0xc
mov edi, eax
jmp 0x4613d5
push 7
pop edi
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x5c], eax
mov al, byte [ebp + 0xf]
mov byte [ebx + 0x4c], al
push 1
mov eax, 0xffffffff
push eax
push dword [ebp - 8]
mov byte [ebx + 0x98], 0
call fcn.0044f6ed
add esp, 0xc
mov byte [ebx + 0x43], 1
test esi, esi
je 0x461423
push dword [esi + 4]
call fcn.0044e512
and dword [esi + 4], 0
and dword [esi + 0xc], 0
pop ecx
mov esi, ebx
call fcn.0042cdc3
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret