Function at 0x6ea450
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x831184]
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 0x6ea4d3
push 0
push 0x28
mov ecx, esi
call fcn.00672560
mov edi, eax
add esp, 8
test edi, edi
je 0x6ea4ae
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 0x6ea4bb
mov ecx, esi
call fcn.006721e0
mov dword [ebx], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xbc], 1
jle 0x6ea4f9
push 0
push 0x2b
mov ecx, esi
call fcn.00672560
mov edi, eax
add esp, 8
test edi, edi
je 0x6ea4ae
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x6ea4a5
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0xc], edi
test edx, edx
je 0x6ea599
movzx ecx, word [edx + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x7d6460], 3
je 0x6ea547
push 0
push 0x12
mov ecx, esi
call fcn.00672560
mov edi, eax
add esp, 8
test edi, edi
je 0x6ea4ae
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [edi], xmm0
mov cx, word [0x7e220c]
mov word [edi + 0x10], cx
jmp 0x6ea4ae
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x6ea56b
cmp byte [edx + 0x12], 1
jne 0x6ea56b
mov edx, dword [edx + 8]
mov eax, edi
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x6ea59e
test cl, 1
je 0x6ea57f
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x6ea59e
mov ecx, dword [ebp - 0x20]
mov dl, 1
call fcn.006963b0
mov edx, eax
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x6ea59e
mov edx, 0x7d7468
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 0x6ea61e
cmp byte [eax + 0x10], 0
mov dword [ebp - 0x34], 0
je 0x6ea625
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.006ea310
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x3c], eax
test ebx, ebx
jne 0x6ea96b
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 0x6ea6fb
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 0x6ea6e1
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x6ea69a
cmp dword [ebp - 0xc], eax
jl 0x6ea6e1
jg 0x6ea69a
cmp dword [ebp - 0x10], eax
jbe 0x6ea6e1
push 0
push 0x1b
mov ecx, esi
mov ebx, 1
call fcn.00672560
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x6ea6c4
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 0x6ea6d7
mov ecx, esi
call fcn.006721e0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x6ea96b
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.0068a460
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.0068a1a0
xor edx, edx
mov ecx, edi
call fcn.0068a240
mov edx, eax
mov ecx, ebx
call fcn.0068a240
mov edx, dword [ebp - 0x30]
mov ecx, ebx
or edx, 0x20
call fcn.0068a350
mov edx, dword [ebp - 0x14]
mov ecx, esi
push str.BEGIN
call fcn.006ea220
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x6ea96b
xor edx, edx
mov ecx, edi
cmp dword [ebp - 0x20], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.0068ae10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x6ea96b
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x6ea78c
cmp dword [ebp - 0x20], ebx
jne 0x6ea78c
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.0068a390
add esp, 8
test eax, eax
jne 0x6ea966
cmp dword [ebp - 0x34], eax
jne 0x6ea7c7
mov edx, dword [esi + 0x64]
mov ecx, ebx
push eax
push dword [ebp - 0xc]
call fcn.0068a390
add esp, 8
test eax, eax
jne 0x6ea966
cmp byte [esi + 0x57], 0
jne 0x6ea966
mov al, byte [esi + 0x5a]
test al, al
js 0x6ea7dd
movsx eax, al
jmp 0x6ea7e4
mov ecx, edi
call fcn.0068a5f0
mov edx, eax
mov ecx, ebx
call fcn.0068a570
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.006ea310
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6ea96b
push dword [ebp - 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp - 0x14]
push esi
call fcn.006ea310
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6ea96b
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.006ea310
and dword [esi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6ea96b
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.006ea310
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6ea96b
mov dword [ebp - 0x18], eax
nop dword [eax + eax]
mov cl, byte [edi + 9]
movzx ebx, byte [eax + 0x7d1338]
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
test cl, cl
je 0x6ea8aa
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x6ea8aa
mov ecx, edi
call fcn.00687910
mov cl, byte [edi + 9]
mov eax, dword [ebp - 0x24]
cmp ebx, 0xf
jne 0x6ea8b9
mov eax, dword [eax]
mov ebx, dword [eax + 0x6c]
add ebx, dword [edi + 0x14]
jmp 0x6ea8c5
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x6ea8d6
add dword [edi + 0xc], 0xffffffff
jne 0x6ea8d6
mov ecx, edi
call fcn.006878d0
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ecx + 0x7d1339]
movzx edx, byte [ecx + 0x7d1338]
add eax, ebx
mov ecx, dword [ebp - 0x28]
push eax
call fcn.00692c60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x6ea96b
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
cmp eax, 0xa
jl 0x6ea880
cmp dword [ebp - 0x20], ebx
jne 0x6ea922
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.00694cd0
mov ebx, eax
test ebx, ebx
jne 0x6ea96b
mov ecx, dword [ebp - 0x28]
call fcn.0068bc30
mov ebx, eax
test ebx, ebx
jne 0x6ea96b
cmp dword [ebp - 0x20], eax
jne 0x6ea96b
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
call fcn.0068a5f0
mov edx, eax
mov ecx, edi
call fcn.0068a570
mov ecx, ebx
call fcn.0068a460
mov ecx, dword [ebx + 4]
push 1
push eax
mov edx, dword [ecx + 0x24]
mov ecx, edi
call fcn.0068a390
add esp, 8
mov ebx, eax
jmp 0x6ea96b
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.0068a390
mov edi, dword [ebp - 0x38]
add esp, 8
mov byte [esi + 0x55], 1
test edi, edi
je 0x6ea9d4
mov ecx, dword [edi + 4]
call fcn.0068a040
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov ecx, esi
call fcn.006bd280
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret