Function at 0x1400f0720
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rdi
push r13
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x1402cbc00]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp byte [rdx + 0x65], 0
mov r13, r9
mov dword [rsp + 0x28], r8d
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x38], 0
mov r15d, 1
jne 0x1400f07b7
mov edx, Ordinal_41
mov rcx, rdi
call fcn.14004f090
mov rbx, rax
test rax, rax
je 0x1400f079c
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14029c638]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14029c648]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r14]
test rdx, rdx
je 0x1400f07ac
mov rcx, rdi
call fcn.14004ebc0
mov qword [r14], rbx
mov eax, r15d
jmp 0x1400f0f9c
cmp dword [rdx + 0xd8], r15d
jle 0x1400f0827
mov edx, Ordinal_46
mov rcx, rdi
call fcn.14004f090
mov rbx, rax
test rax, rax
je 0x1400f080c
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14029c660]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14029c670]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x14029c678]
mov word [rbx + 0x28], ax
movzx eax, byte [0x14029c67a]
mov byte [rbx + 0x2a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1400f07ac
mov rcx, rdi
call fcn.14004ebc0
mov eax, r15d
mov qword [r14], rbx
jmp 0x1400f0f9c
mov qword [rsp + 0xe0], rsi
mov esi, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x1400f08ef
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x295390], 3
je 0x1400f089b
mov edx, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.14004f090
mov rbx, rax
test rax, rax
je 0x1400f0880
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x14029c690]
mov word [rax + 0x10], cx
mov rdx, qword [r14]
test rdx, rdx
je 0x1400f0890
mov rcx, rdi
call fcn.14004ebc0
mov qword [r14], rbx
mov eax, r15d
jmp 0x1400f0f94
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1400f08bf
cmp byte [r9 + 0x16], r15b
jne 0x1400f08bf
mov r9, qword [r9 + 8]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x1400f08f6
test r15b, cl
je 0x1400f08d1
and dword [rdi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rdi + 0x4c], 6
jmp 0x1400f08f6
movzx edx, r15b
mov rcx, r13
call fcn.14007bc30
and dword [rdi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rdi + 0x4c], 6
mov r8d, dword [rsp + 0x28]
jmp 0x1400f08f6
lea r9, [0x140283fa6]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x30], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x40], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x48], rdx
mov rdx, qword [rdi + 0x80]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xd8], r12
movsxd r12, r8d
shl r12, 5
mov qword [rsp + 0x50], rdx
movzx edx, byte [rdi + 0x6e]
mov byte [rdi + 0x6e], 0
mov rcx, qword [rax + r12]
mov rbx, qword [rax + r12 + 8]
mov qword [rsp + 0xb0], rcx
mov byte [rsp + 0x20], dl
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x1400f098e
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x2c], 0
je 0x1400f0993
mov dword [rsp + 0x2c], r15d
mov eax, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r14
mov dword [rsp + 0x24], eax
mov rcx, rdi
call fcn.1400f0490
mov dword [rdi + 0x4c], esi
mov ebp, eax
test eax, eax
jne 0x1400f0f09
movsxd rax, dword [rsp + 0x24]
shl rax, 5
add rax, qword [rdi + 0x20]
mov qword [rsp + 0x38], rax
mov rsi, qword [rax + 8]
test r13, r13
je 0x1400f0a84
mov rax, qword [rsi + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0xb8], 0
mov rax, qword [rcx]
test rax, rax
je 0x1400f0a6d
lea rdx, [rsp + 0xb8]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x1400f0a11
cmp qword [rsp + 0xb8], 0
jle 0x1400f0a6d
mov edx, reloc.WLDAP32.dll_Ordinal_27
mov rcx, rdi
mov ebp, r15d
call fcn.14004f090
mov rsi, rax
test rax, rax
je 0x1400f0a55
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14029c6c0]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x14029c6c8]
mov word [rax + 0x18], cx
movzx eax, byte [0x14029c6ca]
mov byte [rsi + 0x1a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1400f0a65
mov rcx, rdi
call fcn.14004ebc0
mov qword [r14], rsi
jmp 0x1400f0f09
mov rax, qword [rdi + 0x20]
or dword [rdi + 0x2c], 8
movzx r15d, byte [r12 + rax + 0x10]
mov eax, dword [rdi + 0x30]
and eax, 0x38
or r15d, eax
mov rcx, rbx
call fcn.14006cee0
mov rcx, qword [rdi + 0x20]
mov r12d, eax
movsxd rdx, dword [rsp + 0x28]
shl rdx, 5
mov rdx, qword [rdx + rcx + 0x18]
mov rcx, rsi
mov edx, dword [rdx + 0x74]
call fcn.14006cc50
xor edx, edx
mov rcx, rbx
call fcn.14006ccf0
mov edx, eax
mov rcx, rsi
call fcn.14006ccf0
cmp byte [rsi + 0x11], 0
mov rbp, qword [rsi + 8]
je 0x1400f0adb
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x1400f0adb
mov rcx, rsi
call fcn.140069b20
mov rcx, qword [rbp]
or r15d, 0x20
mov edx, r15d
call fcn.140061d10
cmp byte [rsi + 0x11], 0
je 0x1400f0aff
sub dword [rsi + 0x14], 1
jne 0x1400f0aff
mov rcx, rsi
call fcn.140069af0
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rdi
call fcn.1400f0250
mov ebp, eax
test eax, eax
jne 0x1400f0f09
xor edx, edx
mov eax, 2
test r13, r13
cmove edx, eax
cmp byte [rbx + 0x11], bpl
jne 0x1400f0b43
movzx eax, byte [rbx + 0x10]
test al, al
je 0x1400f0b43
cmp al, 1
jne 0x1400f0ca7
test r13, r13
jne 0x1400f0b58
xor r8d, r8d
mov rcx, rbx
call fcn.14006d550
mov ebp, eax
test ebp, ebp
jne 0x1400f0f09
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1400f0b6e
test r13, r13
jne 0x1400f0b6e
mov dword [rdi + 0x74], r13d
mov rax, qword [rbx + 8]
xor r9d, r9d
mov r8d, r12d
mov rcx, rsi
mov edx, dword [rax + 0x34]
call fcn.14006cdc0
test eax, eax
jne 0x1400f0f04
cmp dword [rsp + 0x2c], eax
jne 0x1400f0baa
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, r12d
mov rcx, rsi
call fcn.14006cdc0
test eax, eax
jne 0x1400f0f04
cmp byte [rdi + 0x67], 0
jne 0x1400f0f04
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x1400f0bc4
mov rcx, rbx
call fcn.14006d040
mov edx, eax
mov rcx, rsi
call fcn.14006cfb0
mov eax, dword [rsp + 0x24]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r15, qword [rsp + 0xb0]
mov rdx, r14
mov r9, r15
mov byte [rdi + 0xc4], al
mov rcx, rdi
call fcn.1400f0490
mov ebp, eax
test eax, eax
jne 0x1400f0f09
mov r9, r15
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rdi
call fcn.1400f0490
mov ebp, eax
test eax, eax
jne 0x1400f0f09
mov r9, r15
mov byte [rdi + 0xc4], al
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, r14
mov rcx, rdi
call fcn.1400f0490
and dword [rdi + 0x2c], 0xfffffffb
mov ebp, eax
test eax, eax
jne 0x1400f0f09
mov r9, r15
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r14
mov rcx, rdi
call fcn.1400f0490
mov ebp, eax
test eax, eax
jne 0x1400f0f09
xor r14d, r14d
lea r12, [0x140000000]
cmp byte [rbx + 0x11], 0
movzx ebp, byte [r14 + r12 + 0x28fa00]
mov r15, qword [rbx + 8]
je 0x1400f0c94
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x1400f0c94
mov rcx, rbx
call fcn.140069b20
cmp ebp, 0xf
jne 0x1400f0cdf
mov rax, qword [r15]
mov ebp, dword [rax + 0x84]
add ebp, dword [rbx + 0x1c]
jmp 0x1400f0cf3
test r13, r13
jne 0x1400f0b58
mov rax, qword [rbx]
mov edx, dword [rax + 0x2f0]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x1400f0cd8
cmp byte [rcx + 0xa], r13b
je 0x1400f0cd8
call fcn.140064b20
jmp 0x1400f0b4e
xor ebp, ebp
jmp 0x1400f0b50
mov rax, qword [r15 + 0x18]
lea edx, [rbp*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov ebp, dword [rdx + rcx]
bswap ebp
cmp byte [rbx + 0x11], 0
je 0x1400f0d07
sub dword [rbx + 0x14], 1
jne 0x1400f0d07
mov rcx, rbx
call fcn.140069af0
movzx r8d, byte [r14 + r12 + 0x28fa01]
mov rcx, rsi
movzx edx, byte [r14 + r12 + 0x28fa00]
add r8d, ebp
call fcn.140077de0
mov ebp, eax
test eax, eax
jne 0x1400f0f09
add r14, 2
cmp r14, 0xa
jl 0x1400f0c70
test r13, r13
jne 0x1400f0e7e
cmp byte [rbx + 0x11], r13b
je 0x1400f0d5c
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], r13b
jne 0x1400f0d5c
mov rcx, rbx
call fcn.140069b20
cmp byte [rsi + 0x11], 0
je 0x1400f0d73
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x1400f0d73
mov rcx, rsi
call fcn.140069b20
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x1400f0dbe
mov rax, qword [rsi + 8]
lea r8, [rsp + 0xb0]
mov edx, dword [rax + 0x40]
movsxd rax, dword [rax + 0x34]
imul rdx, rax
mov qword [rsp + 0xb0], rdx
mov edx, listen
call qword [r9 + 0x50]
xor ebp, ebp
cmp eax, 0xc
cmovne ebp, eax
test ebp, ebp
jne 0x1400f0e4e
mov rax, qword [rsi]
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov qword [rsp + 0x80], rax
mov edx, 0x7fffffff
movdqa xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 1
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x68], rbx
call fcn.140079b80
lea rcx, [rsp + 0x60]
call fcn.14007a310
mov ebp, eax
test eax, eax
jne 0x1400f0e37
mov rax, qword [rbx + 8]
mov ecx, 0xfffd
and word [rax + 0x28], cx
jmp 0x1400f0e4e
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
cmp byte [rcx + 0x10], 0
jne 0x1400f0e4e
call fcn.140060100
cmp byte [rsi + 0x11], 0
je 0x1400f0e62
sub dword [rsi + 0x14], 1
jne 0x1400f0e62
mov rcx, rsi
call fcn.140069af0
cmp byte [rbx + 0x11], 0
je 0x1400f0e76
sub dword [rbx + 0x14], 1
jne 0x1400f0e76
mov rcx, rbx
call fcn.140069af0
test ebp, ebp
jne 0x1400f0f09
cmp byte [rsi + 0x11], 0
je 0x1400f0e95
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x1400f0e95
mov rcx, rsi
call fcn.140069b20
xor edx, edx
mov rcx, rsi
call fcn.14006e890
mov ebp, eax
test eax, eax
jne 0x1400f0eb1
xor edx, edx
mov rcx, rsi
call fcn.14006eae0
mov ebp, eax
cmp byte [rsi + 0x11], 0
je 0x1400f0ec5
sub dword [rsi + 0x14], 1
jne 0x1400f0ec5
mov rcx, rsi
call fcn.140069af0
test ebp, ebp
jne 0x1400f0f09
test r13, r13
jne 0x1400f0f09
mov rcx, rsi
call fcn.14006d040
mov edx, eax
mov rcx, rbx
call fcn.14006cfb0
mov rcx, rsi
call fcn.14006cee0
mov rcx, qword [rsi + 8]
mov r9d, 1
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.14006cdc0
mov ebp, eax
jmp 0x1400f0f09
mov ebp, 7
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x40]
mov edx, 0xffffffff
mov qword [rdi + 0x30], rax
mov rcx, rbx
mov rax, qword [rsp + 0x48]
mov qword [rdi + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x80], rax
movzx eax, byte [rsp + 0x20]
mov byte [rdi + 0x6e], al
mov byte [rdi + 0xc4], 0
call fcn.14006cdc0
mov rbx, qword [rsp + 0x38]
mov r12, qword [rsp + 0xd8]
mov byte [rdi + 0x65], 1
test rbx, rbx
je 0x1400f0f82
mov rcx, qword [rbx + 8]
call fcn.14006ca10
mov qword [rbx + 8], 0
mov qword [rbx + 0x18], 0
mov rcx, rdi
call fcn.1400ad560
mov eax, ebp
mov rbp, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401e1190
add rsp, 0xf0
pop r15
pop r14
pop r13
pop rdi
pop rbx
ret