Function at 0x49cdd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, edx
mov dword [esp + 0x2c], 0
push edi
mov ebx, ecx
cmp byte [esi + 0x4f], 0
jne 0x49ce07
push str.cannot_VACUUM_from_within_a_transaction
call fcn.004317f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xac], 1
jle 0x49ce29
push str.cannot_VACUUM___SQL_statements_in_progress
call fcn.004317f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x49ce66
movzx eax, word [ecx + 8]
and eax, 0x1f
cmp byte [eax + 0x61debc], 3
je 0x49ce5b
push str.non_text_filename
mov ecx, ebx
call fcn.004317f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, 1
call fcn.00451260
mov ecx, eax
jmp 0x49ce6b
mov ecx, 0x6194fc
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x64]
mov dword [esp + 0x3c], eax
or eax, 0x201
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x68]
mov dword [esi + 0x20], eax
and dword [esi + 0x20], 0xefffaf7f
mov dword [esp + 0x44], edx
mov dl, byte [esi + 0x58]
mov dword [esp + 0x38], edi
or edi, 6
mov dword [esi + 0x18], edi
mov edi, dword [ebp + 8]
mov byte [esp + 0x13], dl
mov edx, dword [esp + 0x2c]
mov eax, edx
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x10]
shl edi, 4
mov byte [esi + 0x58], 0
push ecx
push str.ATTACH__Q_AS_vacuum_db
mov edx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [eax + 4]
mov dword [ebp + 8], edi
mov dword [esp + 0x28], edx
mov eax, dword [eax]
movzx eax, byte [eax + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x38], eax
call fcn.0049cc00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49d1a4
mov eax, dword [esp + 0x28]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x30], eax
mov edi, dword [eax + 4]
mov dword [esp + 0x1c], edi
je 0x49cf6d
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x49cf6d
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x49cf52
cmp dword [esp + 0x24], eax
jl 0x49cf6d
jg 0x49cf52
cmp dword [esp + 0x20], eax
jbe 0x49cf6d
push str.output_file_already_exists
mov edx, esi
mov ecx, ebx
mov edi, 1
call fcn.004317f0
add esp, 4
jmp 0x49d1a4
mov ecx, dword [esp + 0x14]
call fcn.00446b50
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov edx, dword [edx + ecx + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.004468d0
mov ecx, dword [esp + 0x14]
xor edx, edx
call fcn.00446950
mov edx, eax
mov ecx, edi
call fcn.00446950
mov edx, 0x21
mov ecx, edi
call fcn.00446a40
push str.BEGIN
mov edx, ebx
mov ecx, esi
call fcn.0049caa0
mov edi, eax
add esp, 4
test edi, edi
jne 0x49d1a4
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp dword [ebp + 0xc], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.004470e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x49d1a4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x49cfff
mov dword [esi + 0x5c], edi
mov eax, dword [ecx + 4]
mov edi, dword [esp + 0x1c]
mov ecx, edi
push 0
push dword [esp + 0x24]
mov edx, dword [eax + 0x20]
call fcn.00446a80
add esp, 8
test eax, eax
jne 0x49d19f
cmp dword [esp + 0x34], eax
jne 0x49d041
mov edx, dword [esi + 0x5c]
mov ecx, edi
push eax
push dword [esp + 0x24]
call fcn.00446a80
add esp, 8
test eax, eax
jne 0x49d19f
cmp byte [esi + 0x51], 0
jne 0x49d19f
mov al, byte [esi + 0x54]
test al, al
js 0x49d057
movsx eax, al
jmp 0x49d060
mov ecx, dword [esp + 0x14]
call fcn.00446cd0
mov edx, eax
mov ecx, edi
call fcn.00446c50
push dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ebx
push esi
mov byte [esi + 0xa4], al
call fcn.0049cc00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49d1a4
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push ebx
push esi
call fcn.0049cc00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49d1a4
push dword [esp + 0x18]
mov byte [esi + 0xa4], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push ebx
push esi
call fcn.0049cc00
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49d1a4
push dword [esp + 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebx
push esi
call fcn.0049cc00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49d1a4
xor ebx, ebx
nop dword [eax]
nop word [eax + eax]
movzx edx, byte [ebx + 0x619ae4]
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x14]
push eax
call fcn.0044de70
movzx eax, byte [ebx + 0x619ae5]
add esp, 4
add eax, dword [esp + 0x34]
movzx edx, byte [ebx + 0x619ae4]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0044ded0
mov edi, eax
add esp, 4
test edi, edi
jne 0x49d1a4
add ebx, 2
cmp ebx, 0xa
jl 0x49d100
mov ebx, dword [esp + 0x1c]
cmp dword [ebp + 0xc], eax
jne 0x49d15f
mov ecx, dword [esp + 0x14]
mov edx, ebx
call fcn.00450090
mov edi, eax
test edi, edi
jne 0x49d1a4
mov ecx, ebx
call fcn.00447f10
mov edi, eax
test edi, edi
jne 0x49d1a4
cmp dword [ebp + 0xc], eax
jne 0x49d1a4
mov ecx, ebx
call fcn.00446cd0
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.00446c50
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x20]
call fcn.00446a80
add esp, 8
mov edi, eax
jmp 0x49d1a4
mov edi, 7
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x68], eax
mov al, byte [esp + 0x13]
push 1
push 0xffffffffffffffff
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.00446a80
mov ebx, dword [esp + 0x38]
add esp, 8
mov byte [esi + 0x4f], 1
test ebx, ebx
je 0x49d20a
mov ecx, dword [ebx + 4]
call fcn.004467f0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.00474a70
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret