Function at 0x10167950
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 [0x101f1014]
xor eax, ebp
mov dword [esp + 0x50], eax
cmp byte [edx + 0x55], 0
je 0x10167983
cmp dword [esi + 0xbc], 2
jl 0x101679b8
mov ecx, esi
mov edx, str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x1016798a
mov ecx, esi
mov edx, str.cannot_VACUUM_from_within_a_transaction
call fcn.10038840
mov ebx, eax
mov edx, dword [edi]
test edx, edx
je 0x1016799e
mov ecx, esi
call fcn.10129dd0
mov dword [edi], ebx
xor ebx, ebx
inc ebx
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.10157a00
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 0x101679e1
movzx ebx, word [ecx + 0x10]
mov eax, ebx
and eax, 0x3f
cmp byte [eax + 0x101b193a], 3
je 0x10167dee
mov ecx, esi
mov edx, str.non_text_filename
jmp 0x1016798a
mov dword [esp + 4], edx
mov dword [esp + 0x24], 0x101e246d
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 0x10167a75
xor eax, eax
cmp byte [edx + 0x10], 0
setne al
jmp 0x10167a78
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.1016b260
add esp, 0x10
mov ebx, eax
mov eax, dword [esp + 4]
mov dword [esi + 0x3c], eax
test ebx, ebx
jne 0x10167ddb
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 0x10167e2c
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
call fcn.10162340
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.10164200
mov ecx, ebx
xor edx, edx
call fcn.1016b2d0
mov ebx, dword [esp + 8]
mov ecx, ebx
mov edx, eax
call fcn.1016b2d0
mov ecx, ebx
mov edx, dword [esp + 0x24]
call fcn.10050e20
mov ecx, esi
mov edx, edi
push str.BEGIN
call fcn.1016b3a0
add esp, 4
test eax, eax
jne 0x10167eb7
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.10137980
add esp, 4
test eax, eax
jne 0x10167eb7
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
cmp dword [ebp + 0xc], 0
jne 0x10167b7f
mov ecx, dword [eax]
cmp byte [ecx + 5], 5
jne 0x10167b7f
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.10051370
add esp, 8
mov ebx, 7
test eax, eax
jne 0x10167eb9
cmp dword [esp + 0x2c], 0
jne 0x10167bc5
mov edx, dword [esi + 0x64]
mov ecx, dword [esp + 8]
push 0
push dword [esp + 0x2c]
call fcn.10051370
add esp, 8
test eax, eax
jne 0x10167eb9
cmp byte [esi + 0x57], 0
jne 0x10167eb9
movzx edx, byte [esi + 0x5a]
test dl, dl
jns 0x10167be2
mov ecx, dword [esp + 0x18]
call fcn.1016b530
mov edx, eax
mov ecx, dword [esp + 8]
call fcn.1016b4c0
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.1016b260
add esp, 0x10
test eax, eax
jne 0x10167eb7
push dword [esp + 0x20]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push edi
push esi
call fcn.1016b260
add esp, 0x10
test eax, eax
jne 0x10167eb7
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.1016b260
add esp, 0x10
and byte [esi + 0x18], 0xfb
test eax, eax
jne 0x10167eb7
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.1016b260
add esp, 0x10
test eax, eax
jne 0x10167eb7
lea ebx, [esp + 0x48]
xor edi, edi
inc edi
mov ecx, dword [esp + 0x18]
mov edx, edi
push ebx
call fcn.10167200
add esp, 4
mov eax, dword [ebx]
inc eax
mov ecx, dword [esp + 8]
mov edx, edi
push eax
call fcn.1015c340
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167eb9
mov ecx, dword [esp + 0x18]
mov edx, 3
lea eax, [esp + 0x48]
push eax
call fcn.10167200
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 3
push dword [esp + 0x48]
call fcn.1015c340
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167eb9
mov ecx, dword [esp + 0x18]
mov edx, 5
lea eax, [esp + 0x48]
push eax
call fcn.10167200
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 5
push dword [esp + 0x48]
call fcn.1015c340
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167eb9
mov ecx, dword [esp + 0x18]
mov edx, 6
lea eax, [esp + 0x48]
push eax
call fcn.10167200
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 6
push dword [esp + 0x48]
call fcn.1015c340
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167eb9
mov ecx, dword [esp + 0x18]
mov edx, 8
lea eax, [esp + 0x48]
push eax
call fcn.10167200
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 8
push dword [esp + 0x48]
call fcn.1015c340
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10167eb9
cmp dword [ebp + 0xc], 0
jne 0x10167eae
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 8]
mov edx, edi
call fcn.1016b580
mov ebx, eax
test eax, eax
jne 0x10167eb9
mov ecx, edi
call fcn.1016a250
test eax, eax
jne 0x10167eb7
mov ebx, dword [esp + 8]
mov ecx, ebx
call fcn.1016b530
mov edi, dword [esp + 0x18]
mov ecx, edi
mov edx, eax
call fcn.1016b4c0
mov ecx, ebx
call fcn.10162340
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x24]
mov ecx, edi
push 1
push eax
call fcn.10051370
add esp, 8
jmp 0x10167eb7
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
jmp 0x10167ec9
mov eax, ebx
not eax
test eax, 0x202
mov dword [esp + 4], edx
jne 0x10167e08
cmp byte [ecx + 0x12], 1
jne 0x10167e08
mov eax, dword [ecx + 8]
jmp 0x10167e1a
xor eax, eax
test bl, 1
jne 0x10167e1a
xor edx, edx
inc edx
call fcn.1001c910
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x24], eax
and edx, 0xfffffff8
or edx, 6
mov dword [esi + 0x3c], edx
jmp 0x101679ed
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 0x10167e61
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 0x10167ada
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 0x10167e8c
mov eax, dword [esp + 0x48]
xor ecx, ecx
neg eax
sbb ecx, dword [esp + 0x4c]
jl 0x10167e8c
mov eax, dword [esi + 0x10]
jmp 0x10167e44
mov ecx, esi
mov edx, str.output_file_already_exists
call fcn.10038840
mov ebx, eax
mov edx, dword [edi]
test edx, edx
je 0x10167ea7
mov ecx, esi
call fcn.10129dd0
mov dword [edi], ebx
xor ebx, ebx
inc ebx
jmp 0x10167eb9
mov ecx, dword [esp + 8]
call fcn.1016a250
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.10051370
add esp, 8
mov byte [esi + 0x55], 1
test edi, edi
je 0x10167f27
mov ecx, dword [edi + 4]
call fcn.1000a990
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], eax
mov ecx, esi
call fcn.1015c3c0
jmp 0x101679a3