Function at 0x1802a0310
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x1805c0c48]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.1801af47e
mov dword [rbp + 4], 0
mov qword [rbp + 0x128], 0
mov dword [rbp + 0x1e4], 1
mov rax, qword [rbp + 0x428]
movzx eax, byte [rax + 0x65]
test eax, eax
jne 0x1802a03b7
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rbp + 0x428]
mov rcx, qword [rbp + 0x420]
call fcn.1802a6040
mov eax, 1
jmp 0x1802a0b6f
mov rax, qword [rbp + 0x428]
cmp dword [rax + 0xd8], 1
jle 0x1802a03eb
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rbp + 0x428]
mov rcx, qword [rbp + 0x420]
call fcn.1802a6040
mov eax, 1
jmp 0x1802a0b6f
mov rax, qword [rbp + 0x428]
mov eax, dword [rax + 0x4c]
mov dword [rbp + 0xe4], eax
cmp qword [rbp + 0x438], 0
je 0x1802a047d
mov rcx, qword [rbp + 0x438]
call fcn.1801ac391
cmp eax, 3
je 0x1802a043a
lea r8, str.non_text_filename
mov rdx, qword [rbp + 0x428]
mov rcx, qword [rbp + 0x420]
call fcn.1802a6040
mov eax, 1
jmp 0x1802a0b6f
mov rcx, qword [rbp + 0x438]
call fcn.1801acf03
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x428]
mov eax, dword [rax + 0x4c]
and eax, 0xfffffffe
mov rcx, qword [rbp + 0x428]
mov dword [rcx + 0x4c], eax
mov rax, qword [rbp + 0x428]
mov eax, dword [rax + 0x4c]
or eax, 6
mov rcx, qword [rbp + 0x428]
mov dword [rcx + 0x4c], eax
jmp 0x1802a048b
lea rax, [0x18051fbe4]
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x428]
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x428]
mov eax, dword [rax + 0x2c]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x428]
mov rax, qword [rax + 0x78]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x428]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x428]
movzx eax, byte [rax + 0x6e]
mov byte [rbp + 0x104], al
mov rax, qword [rbp + 0x428]
mov rax, qword [rax + 0x30]
or rax, 0x201
mov rcx, qword [rbp + 0x428]
mov qword [rcx + 0x30], rax
mov rax, qword [rbp + 0x428]
mov eax, dword [rax + 0x2c]
or eax, 6
mov rcx, qword [rbp + 0x428]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbp + 0x428]
movabs rcx, 0xfffffffeefffafff
mov rax, qword [rax + 0x30]
and rax, rcx
mov rcx, qword [rbp + 0x428]
mov qword [rcx + 0x30], rax
mov rax, qword [rbp + 0x428]
mov byte [rax + 0x6e], 0
movsxd rax, dword [rbp + 0x430]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x428]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x1a8], rax
movsxd rax, dword [rbp + 0x430]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x428]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call fcn.18025cbf0
mov rcx, rax
call fcn.18028de50
mov dword [rbp + 0x144], eax
mov rax, qword [rbp + 0x428]
mov eax, dword [rax + 0x28]
mov dword [rbp + 0x184], eax
mov r9, qword [rbp + 0x1c8]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, qword [rbp + 0x420]
mov rcx, qword [rbp + 0x428]
call fcn.18020cbd0
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x428]
mov ecx, dword [rbp + 0xe4]
mov dword [rax + 0x4c], ecx
cmp dword [rbp + 4], 0
je 0x1802a05e9
jmp 0x1802a0aa1
movsxd rax, dword [rbp + 0x184]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x428]
add rax, qword [rcx + 0x20]
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
mov rax, qword [rax + 8]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x438], 0
je 0x1802a06e4
mov rcx, qword [rbp + 0x48]
call fcn.18025cbf0
mov rcx, rax
call fcn.18028db20
mov qword [rbp + 0x208], rax
mov qword [rbp + 0x228], 0
mov rax, qword [rbp + 0x208]
cmp qword [rax], 0
je 0x1802a069a
lea rdx, [rbp + 0x228]
mov rcx, qword [rbp + 0x208]
call fcn.18028bb60
test eax, eax
jne 0x1802a0674
cmp qword [rbp + 0x228], 0
jle 0x1802a069a
mov dword [rbp + 4], 1
lea r8, str.output_file_already_exists
mov rdx, qword [rbp + 0x428]
mov rcx, qword [rbp + 0x420]
call fcn.1802a6040
jmp 0x1802a0aa1
mov rax, qword [rbp + 0x428]
mov eax, dword [rax + 0x2c]
or eax, 8
mov rcx, qword [rbp + 0x428]
mov dword [rcx + 0x2c], eax
movsxd rax, dword [rbp + 0x430]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x428]
mov rcx, qword [rcx + 0x20]
movzx eax, byte [rcx + rax + 0x10]
mov rcx, qword [rbp + 0x428]
mov rcx, qword [rcx + 0x30]
and rcx, 0x38
or rax, rcx
mov dword [rbp + 0x1e4], eax
mov rcx, qword [rbp + 0x28]
call fcn.180259780
mov dword [rbp + 0x164], eax
movsxd rax, dword [rbp + 0x430]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x428]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 0x18]
mov edx, dword [rax + 0x74]
mov rcx, qword [rbp + 0x48]
call fcn.18025d830
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.18025dbc0
mov edx, eax
mov rcx, qword [rbp + 0x48]
call fcn.18025dbc0
mov eax, dword [rbp + 0x1e4]
or eax, 0x20
mov edx, eax
mov rcx, qword [rbp + 0x48]
call fcn.18025db30
lea r8, str.BEGIN
mov rdx, qword [rbp + 0x420]
mov rcx, qword [rbp + 0x428]
call fcn.18020c9f0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1802a076c
jmp 0x1802a0aa1
cmp qword [rbp + 0x438], 0
jne 0x1802a0782
mov dword [rbp + 0x3f4], 2
jmp 0x1802a078c
mov dword [rbp + 0x3f4], 0
xor r8d, r8d
mov edx, dword [rbp + 0x3f4]
mov rcx, qword [rbp + 0x28]
call fcn.180257360
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1802a07ac
jmp 0x1802a0aa1
mov rcx, qword [rbp + 0x28]
call fcn.18025cbf0
mov rcx, rax
call fcn.18028de00
cmp eax, 5
jne 0x1802a07da
cmp qword [rbp + 0x438], 0
jne 0x1802a07da
mov rax, qword [rbp + 0x428]
mov dword [rax + 0x74], 0
mov rcx, qword [rbp + 0x28]
call fcn.180259730
xor r9d, r9d
mov r8d, dword [rbp + 0x164]
mov edx, eax
mov rcx, qword [rbp + 0x48]
call fcn.18025d950
test eax, eax
jne 0x1802a0835
cmp dword [rbp + 0x144], 0
jne 0x1802a0826
xor r9d, r9d
mov r8d, dword [rbp + 0x164]
mov rax, qword [rbp + 0x428]
mov edx, dword [rax + 0x74]
mov rcx, qword [rbp + 0x48]
call fcn.18025d950
test eax, eax
jne 0x1802a0835
mov rax, qword [rbp + 0x428]
movzx eax, byte [rax + 0x67]
test eax, eax
je 0x1802a0841
mov dword [rbp + 4], 7
jmp 0x1802a0aa1
mov rax, qword [rbp + 0x428]
movsx eax, byte [rax + 0x6a]
test eax, eax
jl 0x1802a0863
mov rax, qword [rbp + 0x428]
movsx eax, byte [rax + 0x6a]
mov dword [rbp + 0x3f4], eax
jmp 0x1802a0872
mov rcx, qword [rbp + 0x28]
call fcn.180259480
mov dword [rbp + 0x3f4], eax
mov edx, dword [rbp + 0x3f4]
mov rcx, qword [rbp + 0x48]
call fcn.18025d6e0
mov rax, qword [rbp + 0x428]
movzx ecx, byte [rbp + 0x184]
mov byte [rax + 0xc4], cl
mov r9, qword [rbp + 0x1a8]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rdx, qword [rbp + 0x420]
mov rcx, qword [rbp + 0x428]
call fcn.18020cbd0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1802a08c4
jmp 0x1802a0aa1
mov r9, qword [rbp + 0x1a8]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, qword [rbp + 0x420]
mov rcx, qword [rbp + 0x428]
call fcn.18020cbd0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1802a08f3
jmp 0x1802a0aa1
mov rax, qword [rbp + 0x428]
mov byte [rax + 0xc4], 0
mov r9, qword [rbp + 0x1a8]
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, qword [rbp + 0x420]
mov rcx, qword [rbp + 0x428]
call fcn.18020cbd0
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x428]
mov eax, dword [rax + 0x2c]
and eax, 0xfffffffb
mov rcx, qword [rbp + 0x428]
mov dword [rcx + 0x2c], eax
cmp dword [rbp + 4], 0
je 0x1802a0947
jmp 0x1802a0aa1
mov r9, qword [rbp + 0x1a8]
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, qword [rbp + 0x420]
mov rcx, qword [rbp + 0x428]
call fcn.18020cbd0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1802a0976
jmp 0x1802a0aa1
mov dword [rbp + 0x264], 0
jmp 0x1802a0991
mov eax, dword [rbp + 0x264]
add eax, 2
mov dword [rbp + 0x264], eax
cmp dword [rbp + 0x264], 0xa
jge 0x1802a0a10
movsxd rax, dword [rbp + 0x264]
lea rcx, [0x180519ed0]
movzx eax, byte [rcx + rax]
lea r8, [rbp + 0x244]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.180259650
mov eax, dword [rbp + 0x264]
inc eax
cdqe
lea rcx, [0x180519ed0]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x244]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rbp + 0x264]
lea rdx, [0x180519ed0]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rbp + 0x48]
call fcn.18025eda0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1802a0a0b
jmp 0x1802a0aa1
jmp 0x1802a0982
cmp qword [rbp + 0x438], 0
jne 0x1802a0a2a
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.180257df0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1802a0a32
jmp 0x1802a0aa1
mov rcx, qword [rbp + 0x48]
call fcn.180257ad0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1802a0a46
jmp 0x1802a0aa1
cmp qword [rbp + 0x438], 0
jne 0x1802a0a64
mov rcx, qword [rbp + 0x48]
call fcn.180259480
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.18025d6e0
cmp qword [rbp + 0x438], 0
jne 0x1802a0aa1
mov rcx, qword [rbp + 0x48]
call fcn.180259780
mov dword [rbp + 0x164], eax
mov rcx, qword [rbp + 0x48]
call fcn.180259730
mov r9d, 1
mov r8d, dword [rbp + 0x164]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.18025d950
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x428]
mov byte [rax + 0xc4], 0
mov rax, qword [rbp + 0x428]
mov ecx, dword [rbp + 0x64]
mov dword [rax + 0x2c], ecx
mov rax, qword [rbp + 0x428]
mov rcx, qword [rbp + 0x88]
mov qword [rax + 0x30], rcx
mov rax, qword [rbp + 0x428]
mov rcx, qword [rbp + 0xa8]
mov qword [rax + 0x78], rcx
mov rax, qword [rbp + 0x428]
mov rcx, qword [rbp + 0xc8]
mov qword [rax + 0x80], rcx
mov rax, qword [rbp + 0x428]
movzx ecx, byte [rbp + 0x104]
mov byte [rax + 0x6e], cl
mov r9d, 1
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call fcn.18025d950
mov rax, qword [rbp + 0x428]
mov byte [rax + 0x65], 1
cmp qword [rbp + 0x128], 0
je 0x1802a0b60
mov rax, qword [rbp + 0x128]
mov rcx, qword [rax + 8]
call fcn.1802577b0
mov rax, qword [rbp + 0x128]
mov qword [rax + 8], 0
mov rax, qword [rbp + 0x128]
mov qword [rax + 0x18], 0
mov rcx, qword [rbp + 0x428]
call fcn.18029de30
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1801ae55b
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.1801ac93b
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret