Function at 0x1403791f0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r12d, r12d
mov dword [rsp + 0x24], r8d
mov r15, r9
mov rdi, rdx
mov r14, rcx
mov ebp, 1
cmp byte [rdx + 0x65], r12b
jne 0x14037927d
mov edx, reloc.SinoSPE.dll_Ordinal_40
mov rcx, rdi
call fcn.140342dc0
mov rbx, rax
test rax, rax
je 0x140379263
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1403f3880]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1403f3890]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r14]
test rdx, rdx
je 0x140379273
mov rcx, rdi
call fcn.140342c30
mov qword [r14], rbx
mov eax, ebp
jmp 0x1403798a3
cmp dword [rdx + 0xd8], ebp
jle 0x1403792eb
mov edx, Ordinal_44
mov rcx, rdi
call fcn.140342dc0
mov rbx, rax
test rax, rax
je 0x1403792d1
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1403f38a8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1403f38b8]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x1403f38c0]
mov word [rbx + 0x28], ax
movzx eax, byte [0x1403f38c2]
mov byte [rbx + 0x2a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x140379273
mov rcx, rdi
call fcn.140342c30
mov eax, ebp
mov qword [r14], rbx
jmp 0x1403798a3
mov qword [rsp + 0x78], r13
mov r13d, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r15, r15
je 0x1403793b0
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x3e4010], 3
je 0x14037935c
mov edx, reloc.OLEAUT32.dll_SafeArrayGetUBound
mov rcx, rdi
call fcn.140342dc0
mov rbx, rax
test rax, rax
je 0x140379342
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x1403f38d8]
mov word [rax + 0x10], cx
mov rdx, qword [r14]
test rdx, rdx
je 0x140379352
mov rcx, rdi
call fcn.140342c30
mov qword [r14], rbx
mov eax, ebp
jmp 0x14037989e
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x140379380
cmp byte [r9 + 0x16], bpl
jne 0x140379380
mov r9, qword [r9 + 8]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x1403793b7
test bpl, cl
je 0x140379392
and dword [rdi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rdi + 0x4c], 6
jmp 0x1403793b7
movzx edx, bpl
mov rcx, r15
call fcn.1403af620
and dword [rdi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rdi + 0x4c], 6
mov r8d, dword [rsp + 0x24]
jmp 0x1403793b7
lea r9, [0x1403f5736]
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 + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rdi + 0x80]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x58], rdx
movzx edx, byte [rdi + 0x6e]
mov byte [rdi + 0x6e], r12b
movsxd rcx, r8d
shl rcx, 5
mov byte [rsp + 0x20], dl
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x80], rsi
mov rdx, qword [rcx + rax]
mov rbx, qword [rcx + rax + 8]
mov qword [rsp + 0x40], rdx
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r12b
jne 0x140379446
mov dword [rsp + 0x28], r12d
cmp byte [rcx + 0x14], r12b
je 0x14037944a
mov dword [rsp + 0x28], ebp
mov eax, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r14
mov dword [rsp + 0x2c], eax
mov rcx, rdi
call fcn.1402b5570
mov dword [rdi + 0x4c], r13d
mov esi, eax
test eax, eax
jne 0x14037981d
movsxd r12, dword [rsp + 0x2c]
shl r12, 5
add r12, qword [rdi + 0x20]
mov r13, qword [r12 + 8]
test r15, r15
je 0x140379531
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x60], 0
mov rax, qword [rcx]
test rax, rax
je 0x140379517
lea rdx, [rsp + 0x60]
call qword [rax + reloc.SinoSPE.dll_Ordinal_48]
test eax, eax
jne 0x1403794bc
cmp qword [rsp + 0x60], 0
jle 0x140379517
mov edx, Ordinal_29
mov rcx, rdi
mov esi, ebp
call fcn.140342dc0
mov rbp, rax
test rax, rax
je 0x1403794ff
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1403f3908]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1403f3910]
mov word [rax + 0x18], cx
movzx eax, byte [0x1403f3912]
mov byte [rbp + 0x1a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x14037950f
mov rcx, rdi
call fcn.140342c30
mov qword [r14], rbp
jmp 0x14037981d
mov rax, qword [rdi + 0x20]
or dword [rdi + 0x2c], 8
mov rcx, qword [rsp + 0x38]
movzx ebp, byte [rcx + rax + 0x10]
mov eax, dword [rdi + 0x30]
and eax, 0x38
or ebp, eax
mov rcx, rbx
call fcn.14033a6f0
mov rcx, qword [rdi + 0x20]
movsxd rdx, dword [rsp + 0x24]
shl rdx, 5
mov dword [rsp + 0x60], eax
mov rdx, qword [rdx + rcx + 0x18]
mov rcx, r13
mov edx, dword [rdx + 0x74]
call fcn.14033c850
xor edx, edx
mov rcx, rbx
call fcn.14033ca50
mov edx, eax
mov rcx, r13
call fcn.14033ca50
or ebp, 0x20
mov rcx, r13
mov edx, ebp
call fcn.14033c9f0
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rdi
call fcn.1402b5310
mov esi, eax
test eax, eax
jne 0x14037981d
xor edx, edx
mov eax, 2
test r15, r15
cmove edx, eax
cmp byte [rbx + 0x11], sil
jne 0x1403795bf
movzx eax, byte [rbx + 0x10]
test al, al
je 0x1403795bf
cmp al, 1
jne 0x140379722
test r15, r15
jne 0x1403795d4
xor r8d, r8d
mov rcx, rbx
call fcn.1402a72e0
mov esi, eax
test esi, esi
jne 0x14037981d
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1403795ea
test r15, r15
jne 0x1403795ea
mov dword [rdi + 0x74], r15d
mov rax, qword [rbx + 8]
xor r9d, r9d
mov esi, dword [rsp + 0x60]
mov rcx, r13
mov r8d, esi
mov edx, dword [rax + 0x34]
call fcn.14033c8f0
test eax, eax
jne 0x140379818
cmp dword [rsp + 0x28], eax
jne 0x14037962a
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, esi
mov rcx, r13
call fcn.14033c8f0
test eax, eax
jne 0x140379818
cmp byte [rdi + 0x67], 0
jne 0x140379818
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x140379644
mov rcx, rbx
call fcn.14033a600
mov edx, eax
mov rcx, r13
call fcn.14033c7c0
mov eax, dword [rsp + 0x2c]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rbp, qword [rsp + 0x40]
mov rdx, r14
mov r9, rbp
mov byte [rdi + 0xc4], al
mov rcx, rdi
call fcn.1402b5570
mov esi, eax
test eax, eax
jne 0x14037981d
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rdi
call fcn.1402b5570
mov esi, eax
test eax, eax
jne 0x14037981d
mov r9, rbp
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.1402b5570
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x14037981d
mov r9, rbp
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.1402b5570
mov esi, eax
test eax, eax
jne 0x14037981d
xor ebp, ebp
cmp byte [rbx + 0x11], 0
lea rax, [0x140000000]
movzx esi, byte [rax + rbp + 0x3e4278]
mov r14, qword [rbx + 8]
je 0x14037970f
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14037970f
mov rcx, rbx
call fcn.1402a8560
cmp esi, 0xf
jne 0x14037975a
mov rax, qword [r14]
mov esi, dword [rax + 0x84]
add esi, dword [rbx + 0x1c]
jmp 0x14037976e
test r15, r15
jne 0x1403795d4
mov rax, qword [rbx]
mov edx, dword [rax + 0x308]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x140379753
cmp byte [rcx + 0xa], r15b
je 0x140379753
call fcn.140315ad0
jmp 0x1403795ca
xor esi, esi
jmp 0x1403795cc
mov rax, qword [r14 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
cmp byte [rbx + 0x11], 0
je 0x140379782
sub dword [rbx + 0x14], 1
jne 0x140379782
mov rcx, rbx
call fcn.1403acf60
lea rax, [0x140000000]
mov rcx, r13
movzx r8d, byte [rax + rbp + 0x3e4279]
movzx edx, byte [rax + rbp + 0x3e4278]
add r8d, esi
call fcn.14033d550
mov esi, eax
test eax, eax
jne 0x14037981d
add rbp, 2
cmp rbp, 0xa
jl 0x1403796e5
test r15, r15
jne 0x1403797cf
mov rdx, r13
mov rcx, rbx
call fcn.140339c00
mov esi, eax
test eax, eax
jne 0x14037981d
mov rcx, r13
call fcn.1403399d0
mov esi, eax
test eax, eax
jne 0x14037981d
test r15, r15
jne 0x14037981d
mov rcx, r13
call fcn.14033a600
mov edx, eax
mov rcx, rbx
call fcn.14033c7c0
mov rcx, r13
call fcn.14033a6f0
mov rcx, qword [r13 + 8]
mov r9d, 1
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.14033c8f0
mov esi, eax
jmp 0x14037981d
mov esi, 7
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov edx, 0xffffffff
mov qword [rdi + 0x30], rax
mov rcx, rbx
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x80], rax
movzx eax, byte [rsp + 0x20]
mov byte [rdi + 0x6e], al
mov byte [rdi + 0xc4], 0
call fcn.14033c8f0
mov byte [rdi + 0x65], 1
test r12, r12
je 0x14037988c
mov rcx, qword [r12 + 8]
call fcn.140339560
mov qword [r12 + 8], 0
mov qword [r12 + 0x18], 0
mov rcx, rdi
call fcn.140377a10
mov eax, esi
mov rsi, qword [rsp + 0x80]
mov r13, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1403ca460
add rsp, 0x88
pop r15
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret