Function at 0x140077bd0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0x4e]
test eax, eax
jne 0x140077c2e
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.14007b0e0
mov eax, 1
jmp 0x140078211
mov rax, qword [rsp + 0x88]
cmp dword [rax + 0xa4], 1
jle 0x140077c65
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.14007b0e0
mov eax, 1
jmp 0x140078211
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x64]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0xc0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
or eax, 0x202800
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
and eax, 0xfff5ffff
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x88]
mov qword [rax + 0xc0], 0
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.1400532f0
mov rcx, rax
call fcn.14006d0f0
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x88]
call fcn.14007d050
test eax, eax
je 0x140077d52
lea rax, str.ATTACH_:memory:_AS_vacuum_db_
mov qword [rsp + 0x60], rax
jmp 0x140077d5e
lea rax, str.ATTACH__AS_vacuum_db_
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e150
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x48]
cmp dword [rax + 0x28], ecx
jle 0x140077db1
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x28]
dec eax
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x88]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x20], 0
je 0x140077dbd
jmp 0x140078168
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x28]
dec eax
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140050230
mov rcx, qword [rsp + 0x28]
call fcn.1400511e0
mov dword [rsp + 0x38], eax
lea r8, str.PRAGMA_vacuum_db.synchronousOFF
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e150
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140077e2a
jmp 0x140078168
lea r8, str.BEGIN_
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e150
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140077e56
jmp 0x140078168
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.14004fa40
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140077e75
jmp 0x140078168
mov rcx, qword [rsp + 0x28]
call fcn.1400532f0
mov rcx, rax
call fcn.14006d0e0
cmp eax, 5
jne 0x140077e9b
mov rax, qword [rsp + 0x88]
mov dword [rax + 0x58], 0
mov rcx, qword [rsp + 0x28]
call fcn.1400511c0
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1400539c0
test eax, eax
jne 0x140077ef5
cmp dword [rsp + 0x4c], 0
jne 0x140077ee5
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov rax, qword [rsp + 0x88]
mov edx, dword [rax + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.1400539c0
test eax, eax
jne 0x140077ef5
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0x50]
test eax, eax
je 0x140077f02
mov dword [rsp + 0x20], 7
jmp 0x140078168
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax + 0x52]
test eax, eax
jl 0x140077f24
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax + 0x52]
mov dword [rsp + 0x3c], eax
jmp 0x140077f32
mov rcx, qword [rsp + 0x28]
call fcn.140051050
mov dword [rsp + 0x3c], eax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
call fcn.140053840
lea r8, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e090
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140077f6c
jmp 0x140078168
lea r8, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e090
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140077f98
jmp 0x140078168
lea r8, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e090
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140077fc4
jmp 0x140078168
lea r8, 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
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e090
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140077ff0
jmp 0x140078168
lea r8, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e090
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14007801c
jmp 0x140078168
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e090
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140078048
jmp 0x140078168
lea r8, 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_
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002e150
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140078074
jmp 0x140078168
mov dword [rsp + 0x24], 0
jmp 0x140078089
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xa
jge 0x1400780fa
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x1400d38c0]
movzx eax, byte [rcx + rax]
lea r8, [rsp + 0x50]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.140051150
mov eax, dword [rsp + 0x24]
inc eax
cdqe
lea rcx, [0x1400d38c0]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x24]
lea rdx, [0x1400d38c0]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x30]
call fcn.140053e00
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400780f8
jmp 0x140078168
jmp 0x14007807e
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.1400503f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140078116
jmp 0x140078168
mov rcx, qword [rsp + 0x30]
call fcn.140050230
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14007812d
jmp 0x140078168
mov rcx, qword [rsp + 0x30]
call fcn.140051050
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.140053840
mov rcx, qword [rsp + 0x30]
call fcn.1400511c0
mov r9d, 1
mov r8d, dword [rsp + 0x38]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.1400539c0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x54]
mov dword [rax + 0x2c], ecx
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0x60], ecx
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x5c]
mov dword [rax + 0x64], ecx
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0xc0], rcx
mov r9d, 1
mov r8d, 0xffffffff
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.1400539c0
mov rax, qword [rsp + 0x88]
mov byte [rax + 0x4e], 1
cmp qword [rsp + 0x40], 0
je 0x140078200
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call fcn.14004ffd0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x18], 0
mov rcx, qword [rsp + 0x88]
call fcn.1400764e0
mov eax, dword [rsp + 0x20]
add rsp, 0x78
ret