Function at 0x10082f73
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
and dword [esp + 0x24], 0
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
cmp byte [esi + 0x4f], 0
jne 0x10082fa0
push str.cannot_VACUUM_from_within_a_transaction
call fcn.100369c1
xor eax, eax
inc eax
jmp 0x10083377
cmp dword [esi + 0xb0], 1
jle 0x10082fb0
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x10082f93
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x10082fee
movzx eax, word [ecx + 8]
and eax, 0x3f
cmp byte [eax + 0x100c22e8], 3
je 0x10082fd7
push str.non_text_filename
mov ecx, ebx
jmp 0x10082f93
mov dl, 1
call fcn.1004e006
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x10082ff3
mov edx, 0x100b3a5d
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x2c], edi
mov edi, dword [esi + 0x64]
mov dword [esp + 0x38], edi
mov edi, dword [esi + 0x68]
mov dword [esp + 0x28], ecx
mov cl, byte [esi + 0x58]
mov dword [esp + 0x34], eax
or eax, 6
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
and edi, 0xfffffffe
mov eax, dword [esi + 0x10]
mov dword [esi + 0x24], edi
mov edi, dword [ebp + 8]
mov byte [esp + 0xf], cl
mov ecx, dword [esp + 0x28]
and ecx, 0xefffafff
shl edi, 4
mov byte [esi + 0x58], 0
or ecx, 0x201
mov dword [esi + 0x20], ecx
push edx
mov ecx, dword [edi + eax]
mov eax, dword [eax + edi + 4]
mov dword [esp + 0x14], eax
push str.ATTACH__Q_AS_vacuum_db
push ebx
mov eax, dword [eax + 4]
push esi
mov dword [ebp + 8], edi
mov dword [esp + 0x24], ecx
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [esp + 0x1e], al
mov eax, dword [esi + 0x14]
mov dword [esp + 0x30], eax
call fcn.10082e88
mov edi, eax
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x10083311
mov eax, dword [esp + 0x20]
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 + 0x24], edi
je 0x100830fa
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100830f6
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x100830e0
cmp dword [esp + 0x1c], eax
jl 0x100830f6
jg 0x100830e0
cmp dword [esp + 0x18], eax
jbe 0x100830f6
xor edi, edi
mov edx, esi
push str.output_file_already_exists
mov ecx, ebx
inc edi
call fcn.100369c1
jmp 0x10083311
or dword [esi + 0x18], 8
mov ecx, dword [esp + 0x10]
call fcn.10045f54
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov edx, dword [ecx + edx + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.10045e09
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.10045e41
mov edx, eax
mov ecx, edi
call fcn.10045e41
push 0x21
pop edx
mov ecx, edi
call fcn.10045ea3
push str.BEGIN
mov edx, ebx
mov ecx, esi
call fcn.10082dcc
mov edi, eax
test edi, edi
jne 0x10083311
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp dword [ebp + 0xc], edx
push eax
push 2
pop eax
cmove edx, eax
call fcn.1004636a
mov edi, eax
test edi, edi
jne 0x10083311
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x10083182
and dword [esi + 0x5c], edi
mov eax, dword [ecx + 4]
mov edi, dword [esp + 0x24]
mov ecx, edi
push 0
push dword [esp + 0x1c]
mov edx, dword [eax + 0x24]
call fcn.10045ec8
test eax, eax
jne 0x1008330e
cmp byte [esp + 0xe], al
jne 0x100831be
mov edx, dword [esi + 0x5c]
mov ecx, edi
push eax
push dword [esp + 0x1c]
call fcn.10045ec8
test eax, eax
jne 0x1008330e
cmp byte [esi + 0x51], 0
jne 0x1008330e
mov al, byte [esi + 0x54]
test al, al
js 0x100831d4
movsx eax, al
jmp 0x100831dd
mov ecx, dword [esp + 0x10]
call fcn.1004604e
mov edx, eax
mov ecx, edi
call fcn.10045ff3
push dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ebx
push esi
mov byte [esi + 0xa4], al
call fcn.10082e88
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10083311
push dword [esp + 0x14]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push ebx
push esi
call fcn.10082e88
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10083311
push dword [esp + 0x14]
mov byte [esi + 0xa4], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push ebx
push esi
call fcn.10082e88
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10083311
push dword [esp + 0x14]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebx
push esi
call fcn.10082e88
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10083311
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], edi
movzx edx, byte [edi + 0x100bdc68]
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x10]
push eax
call fcn.1004ba09
movzx eax, byte [edi + 0x100bdc69]
mov ecx, ebx
add eax, dword [esp + 0x24]
movzx edx, byte [edi + 0x100bdc68]
push eax
call fcn.1004ba4e
mov edi, eax
test edi, edi
jne 0x10083311
mov edi, dword [esp + 0x20]
add edi, 2
mov dword [esp + 0x20], edi
cmp edi, 0xa
jl 0x10083276
cmp dword [ebp + 0xc], eax
jne 0x100832d1
mov ecx, dword [esp + 0x10]
mov edx, ebx
call fcn.1004d24e
mov edi, eax
test edi, edi
jne 0x10083311
mov ecx, ebx
call fcn.10046db4
mov edi, eax
test edi, edi
jne 0x10083311
cmp dword [ebp + 0xc], eax
jne 0x10083311
mov ecx, ebx
call fcn.1004604e
mov ecx, dword [esp + 0x10]
mov edx, eax
call fcn.10045ff3
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
push 1
push dword [esp + 0x1c]
mov edx, dword [eax + 0x24]
call fcn.10045ec8
mov edi, eax
jmp 0x10083311
push 7
pop edi
mov eax, dword [esp + 0x34]
or edx, 0xffffffff
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x68], eax
mov al, byte [esp + 0xf]
push 1
push 0
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.10045ec8
mov ebx, dword [esp + 0x30]
mov byte [esi + 0x4f], 1
test ebx, ebx
je 0x1008336e
mov ecx, dword [ebx + 4]
call fcn.10045d67
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
mov ecx, esi
call fcn.10067c10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8