Function at 0x1006da80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x100fc008]
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 0x1006daca
push str.cannot_VACUUM_from_within_a_transaction
push edi
push ecx
call fcn.10005240
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x94], 1
jle 0x1006daf8
push str.cannot_VACUUM___SQL_statements_in_progress
push edi
push ecx
call fcn.10005240
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100baa39
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.1006d890
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 0x1006db7c
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 0x1006e090
mov eax, dword [edi + 0x10]
add edx, edx
mov esi, dword [eax + edx*8 - 0xc]
cmp byte [esi + 9], 0
je 0x1006dba5
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006dba5
mov ecx, esi
call fcn.10015e90
xor edx, edx
mov ecx, esi
call fcn.10019240
test eax, eax
jne 0x1006dbbb
xor edx, edx
mov ecx, esi
call fcn.100193d0
cmp byte [esi + 9], 0
je 0x1006dbce
add dword [esi + 0xc], 0xffffffff
jne 0x1006dbce
mov ecx, esi
call fcn.10015e50
mov cl, byte [ebx + 9]
test cl, cl
je 0x1006dbe8
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006dbe8
mov ecx, ebx
call fcn.10015e90
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 0x1006dc05
add dword [ebx + 0xc], 0xffffffff
jne 0x1006dc05
mov ecx, ebx
call fcn.10015e50
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.1006d890
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.BEGIN_
call fcn.1006d890
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
lea edx, [eax + 2]
mov ecx, ebx
call fcn.100183d0
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x1006dc69
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.10017de0
add esp, 8
test eax, eax
jne 0x1006e0e5
cmp byte [ebp - 0x51], al
jne 0x1006dca1
mov edx, dword [edi + 0x48]
mov ecx, esi
push eax
push dword [ebp - 0x50]
call fcn.10017de0
add esp, 8
test eax, eax
jne 0x1006e0e5
cmp byte [edi + 0x40], 0
jne 0x1006e0e5
mov al, byte [edi + 0x42]
test al, al
js 0x1006dcb7
movsx edx, al
jmp 0x1006dd03
mov cl, byte [ebx + 9]
test cl, cl
je 0x1006dcd1
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006dcd1
mov ecx, ebx
call fcn.10015e90
mov cl, byte [ebx + 9]
mov edx, dword [ebx + 4]
cmp byte [edx + 0x11], 0
jne 0x1006dce3
mov dword [ebp - 0x44], 0
jmp 0x1006dcef
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x44], eax
test cl, cl
je 0x1006dd00
add dword [ebx + 0xc], 0xffffffff
jne 0x1006dd00
mov ecx, ebx
call fcn.10015e50
mov edx, dword [ebp - 0x44]
mov ecx, esi
call fcn.10017f00
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.1006d970
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
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.1006d970
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
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.1006d970
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
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.1006d970
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
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.1006d970
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
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.1006d970
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
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.1006d890
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e090
xor edi, edi
mov dword [ebp - 0x48], edi
nop word [eax + eax]
movzx eax, byte [edi + 0x100f3e4c]
mov dl, byte [ebx + 9]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x44], eax
test dl, dl
je 0x1006de0d
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006de0d
mov ecx, ebx
call fcn.10015e90
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 0x1006de59
add dword [ebx + 0xc], 0xffffffff
jne 0x1006de59
mov ecx, ebx
call fcn.10015e50
mov ecx, dword [ebp - 0x44]
movzx eax, byte [edi + 0x100f3e4d]
movzx edx, byte [edi + 0x100f3e4c]
add eax, ecx
push eax
mov ecx, esi
call fcn.1001ea00
mov edi, eax
add esp, 4
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e08d
mov edi, dword [ebp - 0x48]
add edi, 2
mov dword [ebp - 0x48], edi
cmp edi, 0xa
jl 0x1006dde0
cmp byte [ebx + 9], al
je 0x1006dea7
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], al
jne 0x1006dea7
mov ecx, ebx
call fcn.10015e90
cmp byte [esi + 9], 0
je 0x1006debd
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006debd
mov ecx, esi
call fcn.10015e90
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov edi, dword [eax + 0x3c]
cmp dword [edi], 0
je 0x1006df07
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.100dbe80
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 0x1006df07
test edi, edi
jne 0x1006dfab
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.100205f0
lea eax, [ebp - 0x40]
push eax
call fcn.10020d00
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006df6a
mov eax, dword [ebx + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x1006dfab
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xf], 0
jne 0x1006dfab
cmp byte [ecx + 0xc], 0
jne 0x1006dfab
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x1006df9e
nop word [eax + eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x1006df90
mov ecx, dword [ecx + 0xcc]
xor edx, edx
call fcn.1000ce90
cmp byte [esi + 9], 0
je 0x1006dfbe
add dword [esi + 0xc], 0xffffffff
jne 0x1006dfbe
mov ecx, esi
call fcn.10015e50
cmp byte [ebx + 9], 0
je 0x1006dfd1
add dword [ebx + 0xc], 0xffffffff
jne 0x1006dfd1
mov ecx, ebx
call fcn.10015e50
test edi, edi
jne 0x1006e08d
cmp byte [esi + 9], 0
je 0x1006dfef
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006dfef
mov ecx, esi
call fcn.10015e90
xor edx, edx
mov ecx, esi
call fcn.10019240
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e00f
xor edx, edx
mov ecx, esi
call fcn.100193d0
mov edi, eax
mov dword [ebp - 0x44], eax
cmp byte [esi + 9], 0
je 0x1006e022
add dword [esi + 0xc], 0xffffffff
jne 0x1006e022
mov ecx, esi
call fcn.10015e50
test edi, edi
jne 0x1006e08d
mov cl, byte [esi + 9]
test cl, cl
je 0x1006e040
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e040
mov ecx, esi
call fcn.10015e90
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x1006e04d
xor edi, edi
jmp 0x1006e05b
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0xc], eax
mov edi, eax
test cl, cl
je 0x1006e06c
add dword [esi + 0xc], 0xffffffff
jne 0x1006e06c
mov ecx, esi
call fcn.10015e50
mov edx, edi
mov ecx, ebx
call fcn.10017f00
mov eax, dword [esi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0x50]
mov edx, dword [eax + 0x20]
call fcn.10017de0
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 0x1006e0ca
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006e0ca
mov ecx, ebx
call fcn.10015e90
mov eax, dword [ebp - 0x50]
test byte [eax + 0x16], 2
je 0x1006e0ee
cmp byte [ebx + 9], 0
je 0x1006e12c
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e12c
mov ecx, ebx
call fcn.10015e50
jmp 0x1006e12c
mov dword [ebp - 0x44], 7
jmp 0x1006e090
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.100105d0
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 0x1006e129
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e129
mov ecx, ebx
call fcn.10015e50
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x58]
mov byte [edi + 0x3e], 1
test ebx, ebx
je 0x1006e14d
mov ecx, dword [ebx + 4]
call fcn.10017b20
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, edi
call fcn.10041c70
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100baa39
mov esp, ebp
pop ebp
ret