Function at 0x1006e0a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10102008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x48], ecx
xor eax, eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x58], eax
cmp byte [edi + 0x3e], al
jne 0x1006e0ea
push str.cannot_VACUUM_from_within_a_transaction
push edi
push ecx
call fcn.100053c0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bf4c9
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x94], 1
jle 0x1006e118
push str.cannot_VACUUM___SQL_statements_in_progress
push edi
push ecx
call fcn.100053c0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bf4c9
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x50]
mov dword [ebp - 0x5c], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [ebp - 0x60], edx
mov edx, dword [edi + 0x54]
cmp byte [edi + 0x3f], 2
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x64], edx
mov edx, dword [edi + 0xac]
mov dword [edi + 0xac], 0
mov ebx, dword [eax + 4]
mov dword [ebp - 0x68], edx
mov edx, str.ATTACH_:memory:_AS_vacuum_db_
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov al, byte [eax + 0xf]
mov byte [ebp - 0x51], al
mov eax, str.ATTACH__AS_vacuum_db_
cmove eax, edx
mov edx, ecx
push eax
mov ecx, edi
call fcn.1006deb0
mov ecx, dword [ebp - 0x4c]
add esp, 4
mov edi, eax
mov dword [ebp - 0x44], edi
mov edx, dword [ecx + 0x14]
cmp edx, esi
jle 0x1006e19c
mov eax, dword [ecx + 0x10]
shl edx, 4
add eax, 0xfffffff0
add eax, edx
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x58], eax
test edi, edi
mov edi, ecx
jne 0x1006e6b0
mov eax, dword [edi + 0x10]
add edx, edx
mov esi, dword [eax + edx*8 - 0xc]
cmp byte [esi + 9], 0
je 0x1006e1c5
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e1c5
mov ecx, esi
call fcn.100160e0
xor edx, edx
mov ecx, esi
call fcn.100194a0
test eax, eax
jne 0x1006e1db
xor edx, edx
mov ecx, esi
call fcn.10019620
cmp byte [esi + 9], 0
je 0x1006e1ee
add dword [esi + 0xc], 0xffffffff
jne 0x1006e1ee
mov ecx, esi
call fcn.100160a0
mov cl, byte [ebx + 9]
test cl, cl
je 0x1006e208
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006e208
mov ecx, ebx
call fcn.100160e0
mov cl, byte [ebx + 9]
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [ebp - 0x50], edx
test cl, cl
je 0x1006e225
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e225
mov ecx, ebx
call fcn.100160a0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.1006deb0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.BEGIN_
call fcn.1006deb0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
lea edx, [eax + 2]
mov ecx, ebx
call fcn.10018630
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x1006e289
mov dword [edi + 0x48], 0
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x20]
mov ecx, esi
push 0
push dword [ebp - 0x50]
call fcn.10018080
add esp, 8
test eax, eax
jne 0x1006e705
cmp byte [ebp - 0x51], al
jne 0x1006e2c1
mov edx, dword [edi + 0x48]
mov ecx, esi
push eax
push dword [ebp - 0x50]
call fcn.10018080
add esp, 8
test eax, eax
jne 0x1006e705
cmp byte [edi + 0x40], 0
jne 0x1006e705
mov al, byte [edi + 0x42]
test al, al
js 0x1006e2d7
movsx edx, al
jmp 0x1006e323
mov cl, byte [ebx + 9]
test cl, cl
je 0x1006e2f1
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006e2f1
mov ecx, ebx
call fcn.100160e0
mov cl, byte [ebx + 9]
mov edx, dword [ebx + 4]
cmp byte [edx + 0x11], 0
jne 0x1006e303
mov dword [ebp - 0x44], 0
jmp 0x1006e30f
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x44], eax
test cl, cl
je 0x1006e320
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e320
mov ecx, ebx
call fcn.100160a0
mov edx, dword [ebp - 0x44]
mov ecx, esi
call fcn.100181a0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.1006df90
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.1006df90
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.1006df90
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.1006df90
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.1006df90
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.1006df90
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
call fcn.1006deb0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e6b0
xor edi, edi
mov dword [ebp - 0x48], edi
nop word [eax + eax]
movzx eax, byte [edi + 0x100f916c]
mov dl, byte [ebx + 9]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x44], eax
test dl, dl
je 0x1006e42d
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006e42d
mov ecx, ebx
call fcn.100160e0
mov dl, byte [ebx + 9]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
lea ecx, [eax + ecx*4]
movzx eax, byte [ecx + 0x24]
shl eax, 8
mov dword [ebp - 0x44], eax
movzx eax, byte [ecx + 0x25]
or dword [ebp - 0x44], eax
shl dword [ebp - 0x44], 8
movzx eax, byte [ecx + 0x26]
or dword [ebp - 0x44], eax
shl dword [ebp - 0x44], 8
movzx eax, byte [ecx + 0x27]
mov ecx, dword [ebp - 0x44]
or ecx, eax
mov dword [ebp - 0x44], ecx
test dl, dl
je 0x1006e479
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e479
mov ecx, ebx
call fcn.100160a0
mov ecx, dword [ebp - 0x44]
movzx eax, byte [edi + 0x100f916d]
movzx edx, byte [edi + 0x100f916c]
add eax, ecx
push eax
mov ecx, esi
call fcn.1001ec20
mov edi, eax
add esp, 4
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e6ad
mov edi, dword [ebp - 0x48]
add edi, 2
mov dword [ebp - 0x48], edi
cmp edi, 0xa
jl 0x1006e400
cmp byte [ebx + 9], al
je 0x1006e4c7
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], al
jne 0x1006e4c7
mov ecx, ebx
call fcn.100160e0
cmp byte [esi + 9], 0
je 0x1006e4dd
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e4dd
mov ecx, esi
call fcn.100160e0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov edi, dword [eax + 0x3c]
cmp dword [edi], 0
je 0x1006e527
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x20]
cdq
push edx
push eax
push 0
push ecx
call fcn.100e1450
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [edi]
mov dword [ebp - 0xc], edx
push 0xb
push edi
mov eax, dword [eax + 0x28]
call eax
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x44], edi
cmp edi, 0xc
je 0x1006e527
test edi, edi
jne 0x1006e5cb
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push 0x7fffffff
push eax
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], 1
call fcn.100208b0
lea eax, [ebp - 0x40]
push eax
call fcn.10020fc0
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e58a
mov eax, dword [ebx + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x1006e5cb
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xf], 0
jne 0x1006e5cb
cmp byte [ecx + 0xc], 0
jne 0x1006e5cb
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x1006e5be
nop word [eax + eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x1006e5b0
mov ecx, dword [ecx + 0xcc]
xor edx, edx
call fcn.1000d040
cmp byte [esi + 9], 0
je 0x1006e5de
add dword [esi + 0xc], 0xffffffff
jne 0x1006e5de
mov ecx, esi
call fcn.100160a0
cmp byte [ebx + 9], 0
je 0x1006e5f1
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e5f1
mov ecx, ebx
call fcn.100160a0
test edi, edi
jne 0x1006e6ad
cmp byte [esi + 9], 0
je 0x1006e60f
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e60f
mov ecx, esi
call fcn.100160e0
xor edx, edx
mov ecx, esi
call fcn.100194a0
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e62f
xor edx, edx
mov ecx, esi
call fcn.10019620
mov edi, eax
mov dword [ebp - 0x44], eax
cmp byte [esi + 9], 0
je 0x1006e642
add dword [esi + 0xc], 0xffffffff
jne 0x1006e642
mov ecx, esi
call fcn.100160a0
test edi, edi
jne 0x1006e6ad
mov cl, byte [esi + 9]
test cl, cl
je 0x1006e660
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e660
mov ecx, esi
call fcn.100160e0
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x1006e66d
xor edi, edi
jmp 0x1006e67b
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0xc], eax
mov edi, eax
test cl, cl
je 0x1006e68c
add dword [esi + 0xc], 0xffffffff
jne 0x1006e68c
mov ecx, esi
call fcn.100160a0
mov edx, edi
mov ecx, ebx
call fcn.100181a0
mov eax, dword [esi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0x50]
mov edx, dword [eax + 0x20]
call fcn.10018080
add esp, 8
mov dword [ebp - 0x44], eax
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x5c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x64]
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x68]
mov dword [edi + 0xac], eax
cmp byte [ebx + 9], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x50], eax
je 0x1006e6ea
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006e6ea
mov ecx, ebx
call fcn.100160e0
mov eax, dword [ebp - 0x50]
test byte [eax + 0x16], 2
je 0x1006e70e
cmp byte [ebx + 9], 0
je 0x1006e74c
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e74c
mov ecx, ebx
call fcn.100160a0
jmp 0x1006e74c
mov dword [ebp - 0x44], 7
jmp 0x1006e6b0
mov esi, dword [eax + 0x20]
lea edi, [eax + 0x20]
sub esi, dword [eax + 0x24]
mov edx, edi
mov ecx, dword [eax]
push esi
call fcn.100107a0
mov ecx, dword [edi]
add esp, 4
movzx eax, si
sub ecx, eax
mov eax, dword [ebp - 0x50]
or word [eax + 0x16], 2
mov dword [eax + 0x24], ecx
cmp byte [ebx + 9], 0
je 0x1006e749
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e749
mov ecx, ebx
call fcn.100160a0
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x58]
mov byte [edi + 0x3e], 1
test ebx, ebx
je 0x1006e76d
mov ecx, dword [ebx + 4]
call fcn.10017dc0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, edi
call fcn.10042180
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100bf4c9
mov esp, ebp
pop ebp
ret