Function at 0x49aa0e
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x28], 0
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
cmp byte [esi + 0x4f], 0
jne 0x49aa38
push str.cannot_VACUUM_from_within_a_transaction
call fcn.00452094
xor eax, eax
pop ecx
inc eax
jmp 0x49adf4
cmp dword [esi + 0xb0], 1
jle 0x49aa48
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x49aa2a
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x49aa85
movzx eax, word [ecx + 8]
and eax, 0x3f
cmp byte [eax + 0x5ed508], 3
je 0x49aa6e
push str.non_text_filename
mov ecx, ebx
jmp 0x49aa2a
mov dl, 1
call fcn.004695fb
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x49aa8a
mov edx, 0x5f4bbf
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x34], eax
or eax, 0x201
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x20], eax
and dword [esi + 0x20], 0xefffaf7f
mov dword [ebp - 0x3c], ecx
mov cl, byte [esi + 0x58]
mov dword [ebp - 0x30], edi
or edi, 6
mov dword [esi + 0x18], edi
mov edi, dword [ebp + 8]
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0x24]
mov eax, ecx
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x10]
shl edi, 4
mov byte [esi + 0x58], 0
push edx
push str.ATTACH__Q_AS_vacuum_db
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, dword [eax + 4]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], ecx
mov eax, dword [eax]
movzx eax, byte [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
call fcn.0049a91a
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x49ad95
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x28], eax
mov edi, dword [eax + 4]
mov dword [ebp - 0x20], edi
je 0x49ab7d
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [ebp - 0x18], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x49ab79
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x49ab62
cmp dword [ebp - 0x14], eax
jl 0x49ab79
jg 0x49ab62
cmp dword [ebp - 0x18], eax
jbe 0x49ab79
xor edi, edi
mov edx, esi
push str.output_file_already_exists
mov ecx, ebx
inc edi
call fcn.00452094
pop ecx
jmp 0x49ad95
or dword [esi + 0x18], 8
mov ecx, dword [ebp - 8]
call fcn.0045f77a
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
call fcn.0045f7ec
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.004615f5
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.0046161a
mov edx, eax
mov ecx, edi
call fcn.0046161a
push 0x21
pop edx
mov ecx, edi
call fcn.0046167f
push str.BEGIN
mov edx, ebx
mov ecx, esi
call fcn.0049a85e
mov edi, eax
pop ecx
test edi, edi
jne 0x49ad95
mov ecx, dword [ebp - 8]
xor edx, edx
cmp dword [ebp + 0xc], edx
push eax
push 2
pop eax
cmove edx, eax
call fcn.00461afa
mov edi, eax
pop ecx
test edi, edi
jne 0x49ad95
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x49ac13
and dword [esi + 0x5c], edi
mov eax, dword [ecx + 4]
mov edi, dword [ebp - 0x20]
mov ecx, edi
push 0
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.004616a4
pop ecx
pop ecx
test eax, eax
jne 0x49ad92
cmp dword [ebp - 0x2c], eax
jne 0x49ac4f
mov edx, dword [esi + 0x5c]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.004616a4
pop ecx
pop ecx
test eax, eax
jne 0x49ad92
cmp byte [esi + 0x51], 0
jne 0x49ad92
mov al, byte [esi + 0x54]
test al, al
js 0x49ac65
movsx eax, al
jmp 0x49ac6d
mov ecx, dword [ebp - 8]
call fcn.004617c6
mov edx, eax
mov ecx, edi
call fcn.00461772
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
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.0049a91a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49ad95
push dword [ebp - 0xc]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push ebx
push esi
call fcn.0049a91a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49ad95
push dword [ebp - 0xc]
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.0049a91a
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49ad95
push dword [ebp - 0xc]
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.0049a91a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49ad95
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edi
movzx edx, byte [edi + 0x5e9024]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 8]
push eax
call fcn.00466fdb
movzx eax, byte [edi + 0x5e9025]
add eax, dword [ebp - 0x2c]
movzx edx, byte [edi + 0x5e9024]
pop ecx
push eax
mov ecx, ebx
call fcn.00467022
mov edi, eax
pop ecx
test edi, edi
jne 0x49ad95
mov edi, dword [ebp - 0x1c]
add edi, 2
mov dword [ebp - 0x1c], edi
cmp edi, 0xa
jl 0x49acff
cmp dword [ebp + 0xc], eax
jne 0x49ad56
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.004687cf
mov edi, eax
test edi, edi
jne 0x49ad95
mov ecx, ebx
call fcn.0046258b
mov edi, eax
test edi, edi
jne 0x49ad95
cmp dword [ebp + 0xc], eax
jne 0x49ad95
mov ecx, ebx
call fcn.004617c6
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.00461772
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 8]
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.004616a4
pop ecx
pop ecx
mov edi, eax
jmp 0x49ad95
push 7
pop edi
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
mov ecx, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x68], eax
mov al, byte [ebp - 1]
push 1
push edx
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.004616a4
mov ebx, dword [ebp - 0x28]
mov byte [esi + 0x4f], 1
pop ecx
pop ecx
test ebx, ebx
je 0x49adeb
mov ecx, dword [ebx + 4]
call fcn.0046154e
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
mov ecx, esi
call fcn.004814bc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret