Function at 0x6e9730
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
cmp byte [esi + 0x55], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 1
jne 0x6e97b3
push 0
push 0x28
mov ecx, esi
call fcn.00671860
mov edi, eax
add esp, 8
test edi, edi
je 0x6e978e
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebx]
test edx, edx
je 0x6e979b
mov ecx, esi
call fcn.006714e0
mov dword [ebx], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xbc], 1
jle 0x6e97d9
push 0
push 0x2b
mov ecx, esi
call fcn.00671860
mov edi, eax
add esp, 8
test edi, edi
je 0x6e978e
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x6e9785
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0xc], edi
test edx, edx
je 0x6e9879
movzx ecx, word [edx + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x7d4440], 3
je 0x6e9827
push 0
push 0x12
mov ecx, esi
call fcn.00671860
mov edi, eax
add esp, 8
test edi, edi
je 0x6e978e
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [edi], xmm0
mov cx, word [0x7e00e4]
mov word [edi + 0x10], cx
jmp 0x6e978e
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x6e984b
cmp byte [edx + 0x12], 1
jne 0x6e984b
mov edx, dword [edx + 8]
mov eax, edi
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x6e987e
test cl, 1
je 0x6e985f
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x6e987e
mov ecx, dword [ebp - 0x20]
mov dl, 1
call fcn.006956b0
mov edx, eax
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x6e987e
mov edx, 0x7d5458
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x68]
mov edi, dword [esi + 0x24]
mov dword [ebp - 0x40], ecx
and ecx, 0xefffafff
mov dword [ebp - 0x48], ebx
or ecx, 0x201
mov ebx, dword [esi + 0x6c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
or eax, 6
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x4c], ebx
mov ebx, dword [esi + 0x70]
shl ecx, 4
mov dword [ebp - 0x50], ebx
mov ebx, dword [esi + 0x74]
mov dword [ebp - 0x44], edi
and edi, 0xfffffffe
mov dword [esi + 0x24], edi
mov dword [ebp - 0x54], ebx
mov bl, byte [esi + 0x5e]
mov byte [esi + 0x5e], 0
mov edi, dword [ecx + eax]
mov dword [ebp - 0x18], edi
mov edi, dword [ecx + eax + 4]
mov byte [ebp - 0x19], bl
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x6e98fe
cmp byte [eax + 0x10], 0
mov dword [ebp - 0x34], 0
je 0x6e9905
mov dword [ebp - 0x34], 1
mov eax, dword [esi + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push ebx
push esi
mov dword [ebp - 0x24], eax
call fcn.006e95f0
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x3c], eax
test ebx, ebx
jne 0x6e9c4b
mov eax, dword [ebp - 0x24]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x38], eax
mov ebx, dword [eax + 4]
mov dword [ebp - 0x28], ebx
je 0x6e99db
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [ebp - 0x10], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x6e99c1
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x6e997a
cmp dword [ebp - 0xc], eax
jl 0x6e99c1
jg 0x6e997a
cmp dword [ebp - 0x10], eax
jbe 0x6e99c1
push 0
push 0x1b
mov ecx, esi
mov ebx, 1
call fcn.00671860
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x6e99a4
push 0x1b
push str.output_file_already_exists
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
test edx, edx
je 0x6e99b7
mov ecx, esi
call fcn.006714e0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x6e9c4b
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x2c]
or dword [esi + 0x18], 8
movzx ecx, byte [ecx + eax + 8]
mov eax, dword [esi + 0x20]
and eax, 0x38
or ecx, eax
mov dword [ebp - 0x30], ecx
mov ecx, edi
call fcn.00689750
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + ecx + 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x50]
call fcn.00689490
xor edx, edx
mov ecx, edi
call fcn.00689530
mov edx, eax
mov ecx, ebx
call fcn.00689530
mov edx, dword [ebp - 0x30]
mov ecx, ebx
or edx, 0x20
call fcn.00689640
mov edx, dword [ebp - 0x14]
mov ecx, esi
push str.BEGIN
call fcn.006e9500
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x6e9c4b
xor edx, edx
mov ecx, edi
cmp dword [ebp - 0x20], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.0068a100
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x6e9c4b
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x6e9a6c
cmp dword [ebp - 0x20], ebx
jne 0x6e9a6c
mov dword [esi + 0x64], ebx
mov edx, dword [edi + 4]
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
mov edx, dword [edx + 0x24]
push 0
push dword [ebp - 0xc]
call fcn.00689680
add esp, 8
test eax, eax
jne 0x6e9c46
cmp dword [ebp - 0x34], eax
jne 0x6e9aa7
mov edx, dword [esi + 0x64]
mov ecx, ebx
push eax
push dword [ebp - 0xc]
call fcn.00689680
add esp, 8
test eax, eax
jne 0x6e9c46
cmp byte [esi + 0x57], 0
jne 0x6e9c46
mov al, byte [esi + 0x5a]
test al, al
js 0x6e9abd
movsx eax, al
jmp 0x6e9ac4
mov ecx, edi
call fcn.006898e0
mov edx, eax
mov ecx, ebx
call fcn.00689860
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0x14]
mov byte [esi + 0xb0], al
push esi
call fcn.006e95f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6e9c4b
push dword [ebp - 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp - 0x14]
push esi
call fcn.006e95f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6e9c4b
push dword [ebp - 0x18]
mov byte [esi + 0xb0], 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 dword [ebp - 0x14]
push esi
call fcn.006e95f0
and dword [esi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6e9c4b
push dword [ebp - 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0x14]
push esi
call fcn.006e95f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6e9c4b
mov dword [ebp - 0x18], eax
nop dword [eax + eax]
mov cl, byte [edi + 9]
movzx ebx, byte [eax + 0x7cf320]
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
test cl, cl
je 0x6e9b8a
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x6e9b8a
mov ecx, edi
call fcn.00686c00
mov cl, byte [edi + 9]
mov eax, dword [ebp - 0x24]
cmp ebx, 0xf
jne 0x6e9b99
mov eax, dword [eax]
mov ebx, dword [eax + 0x6c]
add ebx, dword [edi + 0x14]
jmp 0x6e9ba5
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x6e9bb6
add dword [edi + 0xc], 0xffffffff
jne 0x6e9bb6
mov ecx, edi
call fcn.00686bc0
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ecx + 0x7cf321]
movzx edx, byte [ecx + 0x7cf320]
add eax, ebx
mov ecx, dword [ebp - 0x28]
push eax
call fcn.00691f60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x6e9c4b
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
cmp eax, 0xa
jl 0x6e9b60
cmp dword [ebp - 0x20], ebx
jne 0x6e9c02
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.00693fd0
mov ebx, eax
test ebx, ebx
jne 0x6e9c4b
mov ecx, dword [ebp - 0x28]
call fcn.0068af20
mov ebx, eax
test ebx, ebx
jne 0x6e9c4b
cmp dword [ebp - 0x20], eax
jne 0x6e9c4b
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
call fcn.006898e0
mov edx, eax
mov ecx, edi
call fcn.00689860
mov ecx, ebx
call fcn.00689750
mov ecx, dword [ebx + 4]
push 1
push eax
mov edx, dword [ecx + 0x24]
mov ecx, edi
call fcn.00689680
add esp, 8
mov ebx, eax
jmp 0x6e9c4b
mov ebx, 7
mov eax, dword [ebp - 0x3c]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, edi
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x74], eax
mov al, byte [ebp - 0x19]
push 1
push 0
mov byte [esi + 0xb0], 0
mov byte [esi + 0x5e], al
call fcn.00689680
mov edi, dword [ebp - 0x38]
add esp, 8
mov byte [esi + 0x55], 1
test edi, edi
je 0x6e9cb4
mov ecx, dword [edi + 4]
call fcn.00689330
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov ecx, esi
call fcn.006bc570
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0076d59e
mov esp, ebp
pop ebp
ret