Function at 0x140200b40
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov rdi, rsp
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [0x14031fcd0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax + 0x5f]
test eax, eax
jne 0x140200bc7
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.140204780
mov eax, 1
jmp 0x1402011ba
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 0xbc], 1
jle 0x140200bfe
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.140204780
mov eax, 1
jmp 0x1402011ba
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xb8]
movzx eax, word [rax + 0x2c]
mov word [rsp + 0x38], ax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x74]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x78]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax + 0x68]
mov byte [rsp + 0x48], al
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x30]
or eax, 0x201
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x30], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x2c]
or eax, 6
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x30]
and eax, 0xffffaf7f
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x30], eax
mov rax, qword [rsp + 0xb8]
mov byte [rax + 0x68], 0
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.1401d64e0
mov rcx, rax
call fcn.1401f55c0
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x60], eax
lea r8, str.ATTACHAS_vacuum_db
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.1401a9600
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140200d3b
jmp 0x1402010f6
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb8]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401d2a70
mov rcx, qword [rsp + 0x28]
call fcn.1401d3d50
mov dword [rsp + 0x5c], eax
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 0x18]
mov edx, dword [rax + 0x74]
mov rcx, qword [rsp + 0x30]
call fcn.1401d6e30
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1401d7080
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1401d7080
mov edx, 0x21
mov rcx, qword [rsp + 0x30]
call fcn.1401d7020
lea r8, str.BEGIN
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.1401a9600
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140200df8
jmp 0x1402010f6
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.1401d21f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140200e17
jmp 0x1402010f6
mov rcx, qword [rsp + 0x28]
call fcn.1401d64e0
mov rcx, rax
call fcn.1401f55a0
cmp eax, 5
jne 0x140200e3d
mov rax, qword [rsp + 0xb8]
mov dword [rax + 0x6c], 0
mov rcx, qword [rsp + 0x28]
call fcn.1401d3da0
xor r9d, r9d
mov r8d, dword [rsp + 0x5c]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1401d6ef0
test eax, eax
jne 0x140200e97
cmp dword [rsp + 0x58], 0
jne 0x140200e87
xor r9d, r9d
mov r8d, dword [rsp + 0x5c]
mov rax, qword [rsp + 0xb8]
mov edx, dword [rax + 0x6c]
mov rcx, qword [rsp + 0x30]
call fcn.1401d6ef0
test eax, eax
jne 0x140200e97
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x140200ea4
mov dword [rsp + 0x20], 7
jmp 0x1402010f6
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax + 0x64]
test eax, eax
jl 0x140200ec9
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax + 0x64]
mov dword [rsp + 0x90], eax
jmp 0x140200eda
mov rcx, qword [rsp + 0x28]
call fcn.1401d3b60
mov dword [rsp + 0x90], eax
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call fcn.1401d6d30
mov rax, qword [rsp + 0xb8]
movzx ecx, byte [rsp + 0x60]
mov byte [rax + 0xb4], cl
mov r9, qword [rsp + 0x68]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.1401a9750
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140200f2f
jmp 0x1402010f6
mov r9, qword [rsp + 0x68]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.1401a9750
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140200f60
jmp 0x1402010f6
mov rax, qword [rsp + 0xb8]
mov byte [rax + 0xb4], 0
mov r9, qword [rsp + 0x68]
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.1401a9750
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x2c]
and eax, 0xfffffffb
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x2c], eax
cmp dword [rsp + 0x20], 0
je 0x140200fb9
jmp 0x1402010f6
mov r9, qword [rsp + 0x68]
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.1401a9750
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140200fea
jmp 0x1402010f6
mov dword [rsp + 0x84], 0
jmp 0x140201008
mov eax, dword [rsp + 0x84]
add eax, 2
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0xa
jge 0x140201088
movsxd rax, dword [rsp + 0x84]
lea rcx, [0x1402b1358]
movzx eax, byte [rcx + rax]
lea r8, [rsp + 0x74]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.1401d3ca0
mov eax, dword [rsp + 0x84]
inc eax
cdqe
lea rcx, [0x1402b1358]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x84]
lea rdx, [0x1402b1358]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x30]
call fcn.1401d7370
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140201083
jmp 0x1402010f6
jmp 0x140200ff7
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.1401d2cb0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402010a4
jmp 0x1402010f6
mov rcx, qword [rsp + 0x30]
call fcn.1401d2a70
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402010bb
jmp 0x1402010f6
mov rcx, qword [rsp + 0x30]
call fcn.1401d3b60
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.1401d6d30
mov rcx, qword [rsp + 0x30]
call fcn.1401d3da0
mov r9d, 1
mov r8d, dword [rsp + 0x5c]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.1401d6ef0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb8]
mov byte [rax + 0xb4], 0
movzx eax, word [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x74], ecx
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x44]
mov dword [rax + 0x78], ecx
mov rax, qword [rsp + 0xb8]
movzx ecx, byte [rsp + 0x48]
mov byte [rax + 0x68], cl
mov r9d, 1
mov r8d, 0xffffffff
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.1401d6ef0
mov rax, qword [rsp + 0xb8]
mov byte [rax + 0x5f], 1
cmp qword [rsp + 0x50], 0
je 0x1402011a9
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call fcn.1401d27f0
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], 0
mov rcx, qword [rsp + 0xb8]
call fcn.1401ff2a0
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1402629dc
mov rax, rdi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400b1670
add rsp, 0xa0
pop rdi
ret