Function at 0x10080620
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 0x10080663
mov eax, dword [ebp + 8]
push ecx
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.10054f00
add esp, 0xc
mov esi, 1
jmp 0x100808be
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
push eax
mov dword [ebp + 0xc], eax
call fcn.1005bc30
add esp, 4
cmp byte [eax], 0
mov dword [ebp - 4], eax
jne 0x10080686
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 0x10080690
sub eax, edx
mov ebx, eax
lea edx, [ebx + 0x64]
push 1
push edx
call fcn.10054da0
mov esi, eax
add esp, 8
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x100806ba
lea esi, [eax + 7]
jmp 0x100808be
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 0x100806c1
jmp 0x100806d0
lea eax, [ebx + esi + 1]
mov byte [ebx + esi], 0x2d
call fcn.10080450
push esi
call fcn.10062500
add esp, 4
test eax, eax
jne 0x100806d0
push esi
push str.ATTACH__q_AS_vacuum_db_
call fcn.1006a850
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10080706
lea esi, [eax + 7]
jmp 0x100808be
mov ecx, ebx
mov esi, edi
call fcn.100804e0
push ebx
mov esi, eax
call fcn.10054130
add esp, 4
test esi, esi
jne 0x100808be
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.100578a0
add esp, 4
push eax
push esi
call fcn.10057890
add esp, 4
push eax
push ebx
call fcn.10057820
add esp, 0xc
mov ecx, str.PRAGMA_vacuum_db.synchronousOFF
mov esi, edi
call fcn.100804e0
mov esi, eax
test esi, esi
jne 0x100808be
mov eax, dword [ebp + 0xc]
push eax
call fcn.100578f0
push eax
push ebx
call fcn.100578c0
add esp, 0xc
mov ecx, str.BEGIN_EXCLUSIVE_
mov esi, edi
call fcn.100804e0
mov esi, eax
test esi, esi
jne 0x100808be
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence
call fcn.10080530
mov esi, eax
test esi, esi
jne 0x100808be
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.10080530
mov esi, eax
test esi, esi
jne 0x100808be
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.10080530
mov esi, eax
test esi, esi
jne 0x100808be
mov ecx, str.SELECT_CREATE_VIEW_vacuum_db.__substr_sql_13_100000000____FROM_sqlite_master_WHERE_typeview
call fcn.10080530
mov esi, eax
test esi, esi
jne 0x100808be
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.10080530
mov esi, eax
test esi, esi
jne 0x100808be
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.10080530
mov esi, eax
test esi, esi
jne 0x100808be
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.10080530
mov esi, eax
test esi, esi
jne 0x100808be
mov ecx, str.SELECT_CREATE_TRIGGER__vacuum_db.__substr_sql__16__1000000__FROM_sqlite_master_WHERE_typetrigger
call fcn.10080530
mov esi, eax
test esi, esi
jne 0x100808be
xor ebx, ebx
jmp 0x10080840
movzx edx, byte [ebx + 0x100b2148]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push edx
push eax
call fcn.1005b1b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100808be
movzx ecx, byte [ebx + 0x100b2149]
add ecx, dword [ebp - 0x10]
movzx edx, byte [ebx + 0x100b2148]
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call fcn.1005b2a0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100808be
add ebx, 2
cmp ebx, 8
jb 0x10080840
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ecx
push ebx
call fcn.1005d7f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100808be
mov edx, dword [ebp - 4]
push edx
call fcn.10058120
mov esi, eax
add esp, 4
test esi, esi
jne 0x100808be
push ebx
call fcn.10058120
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 0x100808e3
mov ecx, dword [ebx + 4]
push ecx
call fcn.1005d950
add esp, 4
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0x14], eax
cmp esi, 7
jne 0x100808ed
call fcn.10054d20
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10080903
push ebx
call fcn.10062450
push ebx
call fcn.10054130
add esp, 8
push 0
call fcn.10054130
push 0
push edi
call fcn.1005ead0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret