Function at 0x101670e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, edx
mov edi, ecx
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [esp + 0x50], eax
cmp byte [edx + 0x55], 0
je 0x10167113
cmp dword [esi + 0xbc], 2
jl 0x10167148
mov ecx, esi
mov edx, str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x1016711a
mov ecx, esi
mov edx, str.cannot_VACUUM_from_within_a_transaction
call fcn.10038240
mov ebx, eax
mov edx, dword [edi]
test edx, edx
je 0x1016712e
mov ecx, esi
call fcn.1014d210
mov dword [edi], ebx
xor ebx, ebx
inc ebx
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x3c]
test ecx, ecx
je 0x10167171
movzx ebx, word [ecx + 0x10]
mov eax, ebx
and eax, 0x3f
cmp byte [eax + 0x101af8fa], 3
je 0x1016757e
mov ecx, esi
mov edx, str.non_text_filename
jmp 0x1016711a
mov dword [esp + 4], edx
mov dword [esp + 0x24], 0x101e0242
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x10]
mov dword [esp + 8], eax
mov edx, dword [esi + 0x18]
mov dword [esp + 0xc], edx
or edx, 6
mov al, byte [esi + 0x5e]
mov byte [esp + 0x1f], al
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x70]
mov dword [esp + 0x3c], eax
mov dword [esi + 0x18], edx
mov dword [esp + 0x10], ecx
and ecx, 0xfffffffe
mov dword [esi + 0x24], ecx
mov dword [esp + 0x14], ebx
mov edx, ebx
mov ebx, dword [esp + 8]
and edx, 0xefffadfe
or edx, 0x201
mov dword [esi + 0x20], edx
mov byte [esi + 0x5e], 0
mov ecx, dword [ebp + 8]
shl ecx, 4
mov eax, dword [ebx + ecx + 4]
mov dword [esp + 0x18], eax
mov edx, dword [eax + 4]
mov edx, dword [edx]
cmp byte [edx + 0xc], 0
jne 0x10167205
xor eax, eax
cmp byte [edx + 0x10], 0
setne al
jmp 0x10167208
xor eax, eax
inc eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov eax, dword [ebx + ecx]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x30], eax
push dword [esp + 0x24]
push str.ATTACH__Q_AS_vacuum_db
push edi
push esi
call fcn.1016a8b0
add esp, 0x10
mov ebx, eax
mov eax, dword [esp + 4]
mov dword [esi + 0x3c], eax
test ebx, ebx
jne 0x1016756b
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x30]
shl ecx, 4
lea edx, [eax + ecx]
mov dword [esp + 4], edx
mov edx, dword [eax + ecx + 4]
mov ecx, 0x21
cmp dword [ebp + 0xc], 0
mov dword [esp + 8], edx
jne 0x101675bc
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
call fcn.10161600
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + ecx + 0xc]
mov edx, dword [eax + 0x50]
mov ecx, dword [esp + 8]
call fcn.10163470
mov ecx, ebx
xor edx, edx
call fcn.1016a920
mov ebx, dword [esp + 8]
mov ecx, ebx
mov edx, eax
call fcn.1016a920
mov ecx, ebx
mov edx, dword [esp + 0x24]
call fcn.10027490
mov ecx, esi
mov edx, edi
push str.BEGIN
call fcn.1016a9f0
add esp, 4
test eax, eax
jne 0x10167647
xor edx, edx
mov eax, dword [ebp + 0xc]
test eax, eax
sete dl
add edx, edx
mov ecx, dword [esp + 0x18]
push 0
call fcn.10137f00
add esp, 4
test eax, eax
jne 0x10167647
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
cmp dword [ebp + 0xc], 0
jne 0x1016730f
mov ecx, dword [eax]
cmp byte [ecx + 5], 5
jne 0x1016730f
mov dword [esi + 0x64], 0
mov eax, dword [edx + 4]
mov edx, dword [eax + 0x24]
mov ecx, dword [esp + 8]
push 0
push dword [esp + 0x2c]
call fcn.10027ba0
add esp, 8
mov ebx, 7
test eax, eax
jne 0x10167649
cmp dword [esp + 0x2c], 0
jne 0x10167355
mov edx, dword [esi + 0x64]
mov ecx, dword [esp + 8]
push 0
push dword [esp + 0x2c]
call fcn.10027ba0
add esp, 8
test eax, eax
jne 0x10167649
cmp byte [esi + 0x57], 0
jne 0x10167649
movzx edx, byte [esi + 0x5a]
test dl, dl
jns 0x10167372
mov ecx, dword [esp + 0x18]
call fcn.1016ab80
mov edx, eax
mov ecx, dword [esp + 8]
call fcn.1016ab10
mov eax, dword [esp + 0x30]
mov byte [esi + 0xb0], al
push dword [esp + 0x20]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push edi
push esi
call fcn.1016a8b0
add esp, 0x10
test eax, eax
jne 0x10167647
push dword [esp + 0x20]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push edi
push esi
call fcn.1016a8b0
add esp, 0x10
test eax, eax
jne 0x10167647
mov byte [esi + 0xb0], 0
push dword [esp + 0x20]
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push edi
push esi
call fcn.1016a8b0
add esp, 0x10
and byte [esi + 0x18], 0xfb
test eax, eax
jne 0x10167647
push dword [esp + 0x20]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push edi
push esi
call fcn.1016a8b0
add esp, 0x10
test eax, eax
jne 0x10167647
lea ebx, [esp + 0x48]
xor edi, edi
inc edi
mov ecx, dword [esp + 0x18]
mov edx, edi
push ebx
call fcn.10166990
add esp, 4
mov eax, dword [ebx]
inc eax
mov ecx, dword [esp + 8]
mov edx, edi
push eax
call fcn.1015b6a0
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167649
mov ecx, dword [esp + 0x18]
mov edx, 3
lea eax, [esp + 0x48]
push eax
call fcn.10166990
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 3
push dword [esp + 0x48]
call fcn.1015b6a0
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167649
mov ecx, dword [esp + 0x18]
mov edx, 5
lea eax, [esp + 0x48]
push eax
call fcn.10166990
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 5
push dword [esp + 0x48]
call fcn.1015b6a0
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167649
mov ecx, dword [esp + 0x18]
mov edx, 6
lea eax, [esp + 0x48]
push eax
call fcn.10166990
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 6
push dword [esp + 0x48]
call fcn.1015b6a0
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167649
mov ecx, dword [esp + 0x18]
mov edx, 8
lea eax, [esp + 0x48]
push eax
call fcn.10166990
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 8
push dword [esp + 0x48]
call fcn.1015b6a0
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167649
cmp dword [ebp + 0xc], 0
jne 0x1016763e
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 8]
mov edx, edi
call fcn.1016abd0
mov ebx, eax
test eax, eax
jne 0x10167649
mov ecx, edi
call fcn.101698b0
test eax, eax
jne 0x10167647
mov ebx, dword [esp + 8]
mov ecx, ebx
call fcn.1016ab80
mov edi, dword [esp + 0x18]
mov ecx, edi
mov edx, eax
call fcn.1016ab10
mov ecx, ebx
call fcn.10161600
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x24]
mov ecx, edi
push 1
push eax
call fcn.10027ba0
add esp, 8
jmp 0x10167647
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
jmp 0x10167659
mov eax, ebx
not eax
test eax, 0x202
mov dword [esp + 4], edx
jne 0x10167598
cmp byte [ecx + 0x12], 1
jne 0x10167598
mov eax, dword [ecx + 8]
jmp 0x101675aa
xor eax, eax
test bl, 1
jne 0x101675aa
xor edx, edx
inc edx
call fcn.10004000
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x24], eax
and edx, 0xfffffff8
or edx, 6
mov dword [esi + 0x3c], edx
jmp 0x1016717d
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x40]
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx]
test ecx, ecx
jne 0x101675f1
or byte [esi + 0x18], 8
mov ecx, dword [esp + 0x34]
movzx eax, byte [eax + ecx + 8]
mov ecx, dword [esi + 0x20]
and ecx, 0x18
or ecx, eax
or ecx, 0x20
jmp 0x1016726a
mov ecx, dword [ecx + 0x18]
call dword [section..00cfg]
lea eax, [esp + 0x48]
push eax
push ebx
call ecx
add esp, 8
test eax, eax
jne 0x1016761c
mov eax, dword [esp + 0x48]
xor ecx, ecx
neg eax
sbb ecx, dword [esp + 0x4c]
jl 0x1016761c
mov eax, dword [esi + 0x10]
jmp 0x101675d4
mov ecx, esi
mov edx, str.output_file_already_exists
call fcn.10038240
mov ebx, eax
mov edx, dword [edi]
test edx, edx
je 0x10167637
mov ecx, esi
call fcn.1014d210
mov dword [edi], ebx
xor ebx, ebx
inc ebx
jmp 0x10167649
mov ecx, dword [esp + 8]
call fcn.101698b0
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 4]
mov byte [esi + 0xb0], 0
mov dword [esi + 0x18], edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x38]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x74], eax
mov al, byte [esp + 0x1f]
mov byte [esi + 0x5e], al
xor edx, edx
dec edx
mov ecx, dword [esp + 0x18]
push 1
push 0
call fcn.10027ba0
add esp, 8
mov byte [esi + 0x55], 1
test edi, edi
je 0x101676b7
mov ecx, dword [edi + 4]
call fcn.1000db40
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], eax
mov ecx, esi
call fcn.1015b720
jmp 0x10167133