Function at 0x1006dbf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10100008]
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 0x1006dc3a
push str.cannot_VACUUM_from_within_a_transaction
push edi
push ecx
call fcn.100053b0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be769
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x94], 1
jle 0x1006dc68
push str.cannot_VACUUM___SQL_statements_in_progress
push edi
push ecx
call fcn.100053b0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be769
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.1006da00
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 0x1006dcec
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 0x1006e200
mov eax, dword [edi + 0x10]
add edx, edx
mov esi, dword [eax + edx*8 - 0xc]
cmp byte [esi + 9], 0
je 0x1006dd15
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006dd15
mov ecx, esi
call fcn.10016010
xor edx, edx
mov ecx, esi
call fcn.100193c0
test eax, eax
jne 0x1006dd2b
xor edx, edx
mov ecx, esi
call fcn.10019550
cmp byte [esi + 9], 0
je 0x1006dd3e
add dword [esi + 0xc], 0xffffffff
jne 0x1006dd3e
mov ecx, esi
call fcn.10015fd0
mov cl, byte [ebx + 9]
test cl, cl
je 0x1006dd58
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006dd58
mov ecx, ebx
call fcn.10016010
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 0x1006dd75
add dword [ebx + 0xc], 0xffffffff
jne 0x1006dd75
mov ecx, ebx
call fcn.10015fd0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.1006da00
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.BEGIN_
call fcn.1006da00
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
lea edx, [eax + 2]
mov ecx, ebx
call fcn.10018550
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x1006ddd9
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.10017f60
add esp, 8
test eax, eax
jne 0x1006e255
cmp byte [ebp - 0x51], al
jne 0x1006de11
mov edx, dword [edi + 0x48]
mov ecx, esi
push eax
push dword [ebp - 0x50]
call fcn.10017f60
add esp, 8
test eax, eax
jne 0x1006e255
cmp byte [edi + 0x40], 0
jne 0x1006e255
mov al, byte [edi + 0x42]
test al, al
js 0x1006de27
movsx edx, al
jmp 0x1006de73
mov cl, byte [ebx + 9]
test cl, cl
je 0x1006de41
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006de41
mov ecx, ebx
call fcn.10016010
mov cl, byte [ebx + 9]
mov edx, dword [ebx + 4]
cmp byte [edx + 0x11], 0
jne 0x1006de53
mov dword [ebp - 0x44], 0
jmp 0x1006de5f
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x44], eax
test cl, cl
je 0x1006de70
add dword [ebx + 0xc], 0xffffffff
jne 0x1006de70
mov ecx, ebx
call fcn.10015fd0
mov edx, dword [ebp - 0x44]
mov ecx, esi
call fcn.10018080
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.1006dae0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
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.1006dae0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
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.1006dae0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
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.1006dae0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
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.1006dae0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
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.1006dae0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
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.1006da00
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e200
xor edi, edi
mov dword [ebp - 0x48], edi
nop word [eax + eax]
movzx eax, byte [edi + 0x100f7e6c]
mov dl, byte [ebx + 9]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x44], eax
test dl, dl
je 0x1006df7d
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006df7d
mov ecx, ebx
call fcn.10016010
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 0x1006dfc9
add dword [ebx + 0xc], 0xffffffff
jne 0x1006dfc9
mov ecx, ebx
call fcn.10015fd0
mov ecx, dword [ebp - 0x44]
movzx eax, byte [edi + 0x100f7e6d]
movzx edx, byte [edi + 0x100f7e6c]
add eax, ecx
push eax
mov ecx, esi
call fcn.1001eb80
mov edi, eax
add esp, 4
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e1fd
mov edi, dword [ebp - 0x48]
add edi, 2
mov dword [ebp - 0x48], edi
cmp edi, 0xa
jl 0x1006df50
cmp byte [ebx + 9], al
je 0x1006e017
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], al
jne 0x1006e017
mov ecx, ebx
call fcn.10016010
cmp byte [esi + 9], 0
je 0x1006e02d
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e02d
mov ecx, esi
call fcn.10016010
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov edi, dword [eax + 0x3c]
cmp dword [edi], 0
je 0x1006e077
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.100dfbb0
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 0x1006e077
test edi, edi
jne 0x1006e11b
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.10020770
lea eax, [ebp - 0x40]
push eax
call fcn.10020e80
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e0da
mov eax, dword [ebx + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x1006e11b
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xf], 0
jne 0x1006e11b
cmp byte [ecx + 0xc], 0
jne 0x1006e11b
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x1006e10e
nop word [eax + eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x1006e100
mov ecx, dword [ecx + 0xcc]
xor edx, edx
call fcn.1000d010
cmp byte [esi + 9], 0
je 0x1006e12e
add dword [esi + 0xc], 0xffffffff
jne 0x1006e12e
mov ecx, esi
call fcn.10015fd0
cmp byte [ebx + 9], 0
je 0x1006e141
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e141
mov ecx, ebx
call fcn.10015fd0
test edi, edi
jne 0x1006e1fd
cmp byte [esi + 9], 0
je 0x1006e15f
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e15f
mov ecx, esi
call fcn.10016010
xor edx, edx
mov ecx, esi
call fcn.100193c0
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e17f
xor edx, edx
mov ecx, esi
call fcn.10019550
mov edi, eax
mov dword [ebp - 0x44], eax
cmp byte [esi + 9], 0
je 0x1006e192
add dword [esi + 0xc], 0xffffffff
jne 0x1006e192
mov ecx, esi
call fcn.10015fd0
test edi, edi
jne 0x1006e1fd
mov cl, byte [esi + 9]
test cl, cl
je 0x1006e1b0
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e1b0
mov ecx, esi
call fcn.10016010
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x1006e1bd
xor edi, edi
jmp 0x1006e1cb
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0xc], eax
mov edi, eax
test cl, cl
je 0x1006e1dc
add dword [esi + 0xc], 0xffffffff
jne 0x1006e1dc
mov ecx, esi
call fcn.10015fd0
mov edx, edi
mov ecx, ebx
call fcn.10018080
mov eax, dword [esi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0x50]
mov edx, dword [eax + 0x20]
call fcn.10017f60
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 0x1006e23a
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006e23a
mov ecx, ebx
call fcn.10016010
mov eax, dword [ebp - 0x50]
test byte [eax + 0x16], 2
je 0x1006e25e
cmp byte [ebx + 9], 0
je 0x1006e29c
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e29c
mov ecx, ebx
call fcn.10015fd0
jmp 0x1006e29c
mov dword [ebp - 0x44], 7
jmp 0x1006e200
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.10010750
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 0x1006e299
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e299
mov ecx, ebx
call fcn.10015fd0
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x58]
mov byte [edi + 0x3e], 1
test ebx, ebx
je 0x1006e2bd
mov ecx, dword [ebx + 4]
call fcn.10017ca0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, edi
call fcn.10041df0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100be769
mov esp, ebp
pop ebp
ret