Function at 0x1006dbd0
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 0x1006dc1a
push str.cannot_VACUUM_from_within_a_transaction
push edi
push ecx
call fcn.10005360
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be889
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x94], 1
jle 0x1006dc48
push str.cannot_VACUUM___SQL_statements_in_progress
push edi
push ecx
call fcn.10005360
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be889
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.1006d9e0
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 0x1006dccc
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 0x1006e1e0
mov eax, dword [edi + 0x10]
add edx, edx
mov esi, dword [eax + edx*8 - 0xc]
cmp byte [esi + 9], 0
je 0x1006dcf5
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006dcf5
mov ecx, esi
call fcn.10015fe0
xor edx, edx
mov ecx, esi
call fcn.10019390
test eax, eax
jne 0x1006dd0b
xor edx, edx
mov ecx, esi
call fcn.10019520
cmp byte [esi + 9], 0
je 0x1006dd1e
add dword [esi + 0xc], 0xffffffff
jne 0x1006dd1e
mov ecx, esi
call fcn.10015fa0
mov cl, byte [ebx + 9]
test cl, cl
je 0x1006dd38
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006dd38
mov ecx, ebx
call fcn.10015fe0
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 0x1006dd55
add dword [ebx + 0xc], 0xffffffff
jne 0x1006dd55
mov ecx, ebx
call fcn.10015fa0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.1006d9e0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
mov edx, dword [ebp - 0x48]
mov ecx, edi
push str.BEGIN_
call fcn.1006d9e0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
lea edx, [eax + 2]
mov ecx, ebx
call fcn.10018520
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x1006ddb9
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.10017f30
add esp, 8
test eax, eax
jne 0x1006e235
cmp byte [ebp - 0x51], al
jne 0x1006ddf1
mov edx, dword [edi + 0x48]
mov ecx, esi
push eax
push dword [ebp - 0x50]
call fcn.10017f30
add esp, 8
test eax, eax
jne 0x1006e235
cmp byte [edi + 0x40], 0
jne 0x1006e235
mov al, byte [edi + 0x42]
test al, al
js 0x1006de07
movsx edx, al
jmp 0x1006de53
mov cl, byte [ebx + 9]
test cl, cl
je 0x1006de21
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006de21
mov ecx, ebx
call fcn.10015fe0
mov cl, byte [ebx + 9]
mov edx, dword [ebx + 4]
cmp byte [edx + 0x11], 0
jne 0x1006de33
mov dword [ebp - 0x44], 0
jmp 0x1006de3f
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x44], eax
test cl, cl
je 0x1006de50
add dword [ebx + 0xc], 0xffffffff
jne 0x1006de50
mov ecx, ebx
call fcn.10015fa0
mov edx, dword [ebp - 0x44]
mov ecx, esi
call fcn.10018050
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.1006dac0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
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.1006dac0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
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.1006dac0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
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.1006dac0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
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.1006dac0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
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.1006dac0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
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.1006d9e0
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1006e1e0
xor edi, edi
mov dword [ebp - 0x48], edi
nop word [eax + eax]
movzx eax, byte [edi + 0x100f7e5c]
mov dl, byte [ebx + 9]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x44], eax
test dl, dl
je 0x1006df5d
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006df5d
mov ecx, ebx
call fcn.10015fe0
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 0x1006dfa9
add dword [ebx + 0xc], 0xffffffff
jne 0x1006dfa9
mov ecx, ebx
call fcn.10015fa0
mov ecx, dword [ebp - 0x44]
movzx eax, byte [edi + 0x100f7e5d]
movzx edx, byte [edi + 0x100f7e5c]
add eax, ecx
push eax
mov ecx, esi
call fcn.1001eb50
mov edi, eax
add esp, 4
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e1dd
mov edi, dword [ebp - 0x48]
add edi, 2
mov dword [ebp - 0x48], edi
cmp edi, 0xa
jl 0x1006df30
cmp byte [ebx + 9], al
je 0x1006dff7
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], al
jne 0x1006dff7
mov ecx, ebx
call fcn.10015fe0
cmp byte [esi + 9], 0
je 0x1006e00d
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e00d
mov ecx, esi
call fcn.10015fe0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov edi, dword [eax + 0x3c]
cmp dword [edi], 0
je 0x1006e057
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.100dfcd0
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 0x1006e057
test edi, edi
jne 0x1006e0fb
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.10020740
lea eax, [ebp - 0x40]
push eax
call fcn.10020e50
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e0ba
mov eax, dword [ebx + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x1006e0fb
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xf], 0
jne 0x1006e0fb
cmp byte [ecx + 0xc], 0
jne 0x1006e0fb
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x1006e0ee
nop word [eax + eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x1006e0e0
mov ecx, dword [ecx + 0xcc]
xor edx, edx
call fcn.1000cfe0
cmp byte [esi + 9], 0
je 0x1006e10e
add dword [esi + 0xc], 0xffffffff
jne 0x1006e10e
mov ecx, esi
call fcn.10015fa0
cmp byte [ebx + 9], 0
je 0x1006e121
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e121
mov ecx, ebx
call fcn.10015fa0
test edi, edi
jne 0x1006e1dd
cmp byte [esi + 9], 0
je 0x1006e13f
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e13f
mov ecx, esi
call fcn.10015fe0
xor edx, edx
mov ecx, esi
call fcn.10019390
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x1006e15f
xor edx, edx
mov ecx, esi
call fcn.10019520
mov edi, eax
mov dword [ebp - 0x44], eax
cmp byte [esi + 9], 0
je 0x1006e172
add dword [esi + 0xc], 0xffffffff
jne 0x1006e172
mov ecx, esi
call fcn.10015fa0
test edi, edi
jne 0x1006e1dd
mov cl, byte [esi + 9]
test cl, cl
je 0x1006e190
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1006e190
mov ecx, esi
call fcn.10015fe0
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x1006e19d
xor edi, edi
jmp 0x1006e1ab
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0xc], eax
mov edi, eax
test cl, cl
je 0x1006e1bc
add dword [esi + 0xc], 0xffffffff
jne 0x1006e1bc
mov ecx, esi
call fcn.10015fa0
mov edx, edi
mov ecx, ebx
call fcn.10018050
mov eax, dword [esi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0x50]
mov edx, dword [eax + 0x20]
call fcn.10017f30
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 0x1006e21a
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1006e21a
mov ecx, ebx
call fcn.10015fe0
mov eax, dword [ebp - 0x50]
test byte [eax + 0x16], 2
je 0x1006e23e
cmp byte [ebx + 9], 0
je 0x1006e27c
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e27c
mov ecx, ebx
call fcn.10015fa0
jmp 0x1006e27c
mov dword [ebp - 0x44], 7
jmp 0x1006e1e0
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.10010720
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 0x1006e279
add dword [ebx + 0xc], 0xffffffff
jne 0x1006e279
mov ecx, ebx
call fcn.10015fa0
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x58]
mov byte [edi + 0x3e], 1
test ebx, ebx
je 0x1006e29d
mov ecx, dword [ebx + 4]
call fcn.10017c70
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, edi
call fcn.10041dc0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100be889
mov esp, ebp
pop ebp
ret