Function at 0x62eb00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], 0
mov al, byte [esi + 0x4f]
test al, al
jne 0x62eb20
push str.cannot_VACUUM_from_within_a_transaction
jmp 0x62eb66
cmp dword [esi + 0xb0], 1
jle 0x62eb46
mov ecx, dword [ebp + 8]
push str.cannot_VACUUM___SQL_statements_in_progress
push esi
push ecx
call fcn.005ae090
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x14]
mov edx, dword [esi + 0x3c]
test edi, edi
mov dword [ebp - 8], edx
je 0x62eb97
push edi
call fcn.0058d470
add esp, 4
cmp eax, 3
je 0x62eb7e
push str.non_text_filename
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.005ae090
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.0058d3a0
mov ecx, dword [esi + 0x3c]
add esp, 4
and ecx, 0xfffffffe
mov edi, eax
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x62eb9c
mov edi, 0x751b54
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
push ebx
mov ebx, dword [esi + 0x64]
mov dword [ebp - 0x34], eax
mov edx, dword [esi + 0x18]
or eax, 0x201
mov dword [ebp - 0x20], ebx
mov ebx, dword [esi + 0x68]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x24], ebx
mov bl, byte [esi + 0x58]
and eax, 0xefffaf7f
mov byte [ebp + 0xf], bl
mov dword [esi + 0x20], eax
mov ebx, dword [esi + 0x24]
mov dword [ebp - 0x1c], edx
or edx, 6
mov dword [esi + 0x24], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x18], edx
mov edx, dword [esi + 0x10]
shl ebx, 4
mov dword [ebp - 0x30], ecx
mov byte [esi + 0x58], 0
mov ecx, dword [ebx + edx]
lea eax, [ebx + edx]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 4]
push eax
mov dword [ebp - 4], eax
call fcn.0057f150
push eax
call fcn.00589660
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push edi
push str.ATTACH__Q_AS_vacuum_db
push eax
push esi
mov dword [ebp - 0xc], edx
call fcn.005b23f0
mov ecx, dword [ebp - 8]
mov edi, eax
add esp, 0x18
mov dword [esi + 0x3c], ecx
test edi, edi
jne 0x62ef0c
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x10]
shl eax, 4
add eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [eax + 4]
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [ebp - 8], edi
je 0x62ecb2
push edi
call fcn.0057f150
push eax
call fcn.00581840
xor ecx, ecx
add esp, 8
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
cmp dword [eax], ecx
je 0x62ecaa
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.00580f60
add esp, 8
test eax, eax
jne 0x62ec8e
mov eax, dword [ebp - 0x28]
test eax, eax
jl 0x62ecaa
jg 0x62ec8e
mov eax, dword [ebp - 0x2c]
test eax, eax
jbe 0x62ecaa
mov eax, dword [ebp + 8]
push str.output_file_already_exists
push esi
push eax
mov edi, 1
call fcn.005ae090
add esp, 0xc
jmp 0x62ef0c
mov eax, dword [esi + 0x18]
or al, 8
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x62ecdc
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
lea edx, [ebp - 0x28]
push ecx
push edx
push eax
push esi
call fcn.0062e4b0
mov eax, dword [ebp + 0x10]
add esp, 0x10
test eax, eax
je 0x62ecdc
mov dword [esi + 0x5c], 0
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + ecx + 0xc]
mov eax, dword [edx + 0x50]
push eax
push edi
call fcn.005ae0c0
mov ebx, dword [ebp - 4]
push 0
push ebx
call fcn.005b2050
push eax
push edi
call fcn.005b2050
push 0x21
push edi
call fcn.005a8d70
mov ecx, dword [ebp + 8]
push str.BEGIN
push ecx
push esi
call fcn.005b2310
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x62ef0c
mov edx, dword [ebp + 0x14]
push eax
neg edx
sbb edx, edx
and edx, 0xfffffffe
add edx, 2
push edx
push ebx
call fcn.00583d90
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x62ef0c
push ebx
call fcn.0057f150
push eax
call fcn.00581860
add esp, 8
cmp eax, 5
jne 0x62ed5c
mov dword [esi + 0x5c], edi
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push 0
push ebx
push eax
call fcn.005835b0
mov edi, dword [ebp - 8]
add esp, 4
push eax
push edi
call fcn.00589360
add esp, 0x10
test eax, eax
jne 0x62ef07
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x62eda2
mov ecx, dword [esi + 0x5c]
push 0
push ebx
push ecx
push edi
call fcn.00589360
add esp, 0x10
test eax, eax
jne 0x62ef07
mov al, byte [esi + 0x51]
test al, al
jne 0x62ef07
mov al, byte [esi + 0x54]
test al, al
jl 0x62edb9
movsx eax, al
jmp 0x62edc5
mov edx, dword [ebp - 4]
push edx
call fcn.005b2170
add esp, 4
push eax
push edi
call fcn.005b2100
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov al, byte [ebp - 0xc]
push ebx
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ecx
push esi
mov byte [esi + 0xa4], al
call fcn.005b23f0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x62ef0c
mov edx, dword [ebp + 8]
push ebx
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push edx
push esi
call fcn.005b23f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x62ef0c
mov byte [esi + 0xa4], al
mov eax, dword [ebp + 8]
push ebx
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push eax
push esi
call fcn.005b23f0
mov ecx, dword [esi + 0x18]
mov edi, eax
add esp, 0x10
and ecx, 0xfffffffb
test edi, edi
mov dword [esi + 0x18], ecx
jne 0x62ef0c
mov ecx, dword [ebp + 8]
push ebx
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ecx
push esi
call fcn.005b23f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x62ef0c
xor ebx, ebx
mov ecx, dword [ebp - 4]
xor eax, eax
mov al, byte [ebx + 0x750480]
lea edx, [ebp + 8]
push edx
push eax
push ecx
call fcn.0059c7b0
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ebx + 0x750481]
xor eax, eax
mov al, byte [ebx + 0x750480]
add edx, ecx
mov ecx, dword [ebp - 8]
push edx
push eax
push ecx
call fcn.00589240
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x62ef0c
add ebx, 2
cmp ebx, 0xa
jl 0x62ee5d
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 8]
test eax, eax
jne 0x62eec1
mov edx, dword [ebp - 4]
push ebx
push edx
call fcn.005b21c0
mov edi, eax
add esp, 8
test edi, edi
jne 0x62ef0c
push ebx
call fcn.005ae0f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x62ef0c
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x62ef0c
push ebx
call fcn.005b2170
mov edi, dword [ebp - 4]
push eax
push edi
call fcn.005b2100
mov eax, dword [ebp + 0x18]
add esp, 0xc
push 1
push eax
push ebx
call fcn.005835b0
add esp, 4
push eax
push edi
call fcn.00589360
add esp, 0x10
mov edi, eax
jmp 0x62ef0c
mov edi, 7
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x20], edx
mov edx, dword [ebp - 0x24]
mov dword [esi + 0x64], ecx
mov ecx, dword [ebp - 4]
push 1
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0xf]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov byte [esi + 0xa4], 0
mov dword [esi + 0x68], edx
mov byte [esi + 0x58], al
call fcn.00589360
mov ebx, dword [ebp - 0x10]
add esp, 0x10
test ebx, ebx
mov byte [esi + 0x4f], 1
je 0x62ef68
mov edx, dword [ebx + 4]
push edx
call fcn.0058acc0
add esp, 4
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
push esi
call fcn.005a9b20
add esp, 4
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret