Function at 0x4126ff10
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 0x18], r14
mov qword [rax - 0x20], r15
mov r15d, dword [rdx + 0x18]
xor r14d, r14d
mov rdi, rdx
mov eax, r15d
or eax, 0x2800
cmp byte [rdx + 0x28], r14b
mov dword [rdx + 0x18], eax
jne 0x4126ff62
lea rdx, str.cannot_VACUUM_from_within_a_transaction
xor r8d, r8d
call fcn.41249fc0
lea ebx, [r14 + 1]
jmp 0x412701d4
mov rax, qword [rdx + 0x10]
lea r9, [rsp + 0x38]
lea rdx, str.ATTACH__AS_vacuum_db_
mov r8d, 0xffffffff
mov rcx, rdi
mov qword [rsp + 0x58], r13
mov r13, qword [rax + 8]
mov qword [rsp + 0x20], r14
call fcn.41243f90
test eax, eax
je 0x4126ffa0
mov rcx, rdi
call fcn.41242480
mov ebx, eax
jmp 0x4126ffbb
mov rcx, qword [rsp + 0x38]
call fcn.4123f770
cmp eax, 0x64
je 0x4126ffa0
mov rcx, qword [rsp + 0x38]
call fcn.4123f0f0
mov ebx, eax
test ebx, ebx
jne 0x412701cf
movsxd rdx, dword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x60], r12
lea eax, [rdx - 1]
movsxd rcx, eax
lea r14, [rcx + rcx*2]
lea rcx, [rdx + rdx*2]
add rcx, rcx
shl r14, 4
mov r12, qword [r8 + rcx*8 - 0x28]
mov rcx, r13
add r14, r8
call fcn.41253ec0
mov rcx, r13
mov ebx, eax
mov dword [rsp + 0x38], eax
call fcn.41253eb0
mov r8d, ebx
mov rcx, r12
mov edx, eax
call fcn.41253dd0
test eax, eax
jne 0x412701c5
mov edx, dword [rdi + 0x30]
mov r8d, ebx
mov rcx, r12
call fcn.41253dd0
test eax, eax
jne 0x412701c5
cmp byte [rdi + 0x2a], al
jne 0x412701c5
lea rdx, str.PRAGMA_vacuum_db.synchronousOFF
mov rcx, rdi
call fcn.4126fd70
test eax, eax
mov ebx, eax
jne 0x412701ca
movzx eax, byte [rdi + 0x2d]
test al, al
js 0x4127005d
movsx eax, al
jmp 0x41270065
mov rcx, r13
call fcn.41253fc0
mov edx, eax
mov rcx, r12
call fcn.41253f50
lea rdx, str.BEGIN_EXCLUSIVE_
mov rcx, rdi
call fcn.4126fd70
test eax, eax
mov ebx, eax
jne 0x412701ca
lea rdx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov rcx, rdi
call fcn.4126fde0
test eax, eax
mov ebx, eax
jne 0x412701ca
lea rdx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rcx, rdi
call fcn.4126fde0
test eax, eax
mov ebx, eax
jne 0x412701ca
lea rdx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov rcx, rdi
call fcn.4126fde0
test eax, eax
mov ebx, eax
jne 0x412701ca
lea rdx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
mov rcx, rdi
call fcn.4126fde0
test eax, eax
mov ebx, eax
jne 0x412701ca
lea rdx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rcx, rdi
call fcn.4126fde0
test eax, eax
mov ebx, eax
jne 0x412701ca
lea rdx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov rcx, rdi
call fcn.4126fde0
test eax, eax
mov ebx, eax
jne 0x412701ca
lea rdx, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov rcx, rdi
call fcn.4126fd70
test eax, eax
mov ebx, eax
jne 0x412701ca
xor ebp, ebp
lea rsi, [0x412c6998]
movzx edx, byte [rsi]
lea r8, [rsp + 0x30]
mov rcx, r13
call fcn.41257050
test eax, eax
mov ebx, eax
jne 0x412701ca
movzx r8d, byte [rsi + 1]
movzx edx, byte [rsi]
mov rcx, r12
add r8d, dword [rsp + 0x30]
call fcn.412571c0
test eax, eax
mov ebx, eax
jne 0x412701ca
add ebp, 2
add rsi, 2
cmp ebp, 8
jb 0x41270140
mov rdx, r12
mov rcx, r13
call fcn.4125ddd0
test eax, eax
mov ebx, eax
jne 0x412701ca
mov rcx, r12
call fcn.41258960
test eax, eax
mov ebx, eax
jne 0x412701ca
mov rcx, r13
call fcn.41258960
test eax, eax
mov ebx, eax
jne 0x412701ca
mov rcx, r12
call fcn.41253eb0
mov r8d, dword [rsp + 0x38]
mov rcx, r13
mov edx, eax
call fcn.41253dd0
mov ebx, eax
jmp 0x412701ca
mov ebx, 7
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
test r14, r14
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov dword [rdi + 0x18], r15d
mov r15, qword [rsp + 0x48]
mov byte [rdi + 0x28], 1
je 0x4127020c
mov rcx, qword [r14 + 8]
call fcn.4125de30
mov qword [r14 + 8], 0
mov qword [r14 + 0x28], 0
xor edx, edx
mov rcx, rdi
call fcn.4125fde0
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x88]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret