Function at 0x100b1bd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 8]
xor ecx, ecx
mov dword [ebp - 0x14], eax
or eax, 0x2800
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [edi + 8], eax
cmp byte [edi + 0x10], cl
jne 0x100b1c13
mov eax, dword [ebp + 8]
push ecx
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.10089350
add esp, 0xc
mov esi, 1
jmp 0x100b1e6e
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
push eax
mov dword [ebp + 0xc], eax
call fcn.10094170
add esp, 4
cmp byte [eax], 0
mov dword [ebp - 4], eax
jne 0x100b1c36
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100b1c40
sub eax, edx
mov ebx, eax
lea edx, [ebx + 0x64]
push 1
push edx
call fcn.100891f0
mov esi, eax
add esp, 8
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x100b1c6a
lea esi, [eax + 7]
jmp 0x100b1e6e
mov eax, dword [ebp - 4]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100b1c71
jmp 0x100b1c80
lea eax, [ebx + esi + 1]
mov byte [ebx + esi], 0x2d
call fcn.100b1a00
push esi
call fcn.1009c230
add esp, 4
test eax, eax
jne 0x100b1c80
push esi
push str.ATTACH__q_AS_vacuum_db_
call fcn.1008eb20
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100b1cb6
lea esi, [eax + 7]
jmp 0x100b1e6e
mov ecx, ebx
mov esi, edi
call fcn.100b1a90
push ebx
mov esi, eax
call fcn.10082dd0
add esp, 4
test esi, esi
jne 0x100b1e6e
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov esi, dword [ebp + 0xc]
lea eax, [eax + eax*2]
mov ebx, dword [ecx + eax*8 - 0x14]
lea eax, [ecx + eax*8]
lea edx, [eax - 0x18]
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ebx
call fcn.1008fde0
add esp, 4
push eax
push esi
call fcn.1008fdd0
add esp, 4
push eax
push ebx
call fcn.1008fd60
add esp, 0xc
mov ecx, str.PRAGMA_vacuum_db.synchronousOFF
mov esi, edi
call fcn.100b1a90
mov esi, eax
test esi, esi
jne 0x100b1e6e
mov eax, dword [ebp + 0xc]
push eax
call fcn.1008fe30
push eax
push ebx
call fcn.1008fe00
add esp, 0xc
mov ecx, str.BEGIN_EXCLUSIVE_
mov esi, edi
call fcn.100b1a90
mov esi, eax
test esi, esi
jne 0x100b1e6e
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence
call fcn.100b1ae0
mov esi, eax
test esi, esi
jne 0x100b1e6e
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.100b1ae0
mov esi, eax
test esi, esi
jne 0x100b1e6e
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.100b1ae0
mov esi, eax
test esi, esi
jne 0x100b1e6e
mov ecx, str.SELECT_CREATE_VIEW_vacuum_db.__substr_sql_13_100000000____FROM_sqlite_master_WHERE_typeview
call fcn.100b1ae0
mov esi, eax
test esi, esi
jne 0x100b1e6e
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_AND_name_sqlite_sequence_
call fcn.100b1ae0
mov esi, eax
test esi, esi
jne 0x100b1e6e
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.100b1ae0
mov esi, eax
test esi, esi
jne 0x100b1e6e
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.100b1ae0
mov esi, eax
test esi, esi
jne 0x100b1e6e
mov ecx, str.SELECT_CREATE_TRIGGER__vacuum_db.__substr_sql__16__1000000__FROM_sqlite_master_WHERE_typetrigger
call fcn.100b1ae0
mov esi, eax
test esi, esi
jne 0x100b1e6e
xor ebx, ebx
jmp 0x100b1df0
movzx edx, byte [ebx + 0x10118834]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push edx
push eax
call fcn.100936f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100b1e6e
movzx ecx, byte [ebx + 0x10118835]
add ecx, dword [ebp - 0x10]
movzx edx, byte [ebx + 0x10118834]
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call fcn.100937e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100b1e6e
add ebx, 2
cmp ebx, 8
jb 0x100b1df0
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ecx
push ebx
call fcn.10095d30
mov esi, eax
add esp, 8
test esi, esi
jne 0x100b1e6e
mov edx, dword [ebp - 4]
push edx
call fcn.10090660
mov esi, eax
add esp, 4
test esi, esi
jne 0x100b1e6e
push ebx
call fcn.10090660
add esp, 4
mov esi, eax
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov byte [edi + 0x10], 1
test ebx, ebx
je 0x100b1e93
mov ecx, dword [ebx + 4]
push ecx
call fcn.10095e90
add esp, 4
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0x14], eax
cmp esi, 7
jne 0x100b1e9d
call fcn.10089170
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100b1eb3
push ebx
call fcn.1009c180
push ebx
call fcn.10082dd0
add esp, 8
push 0
call fcn.10082dd0
push 0
push edi
call fcn.10089b70
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret