Function at 0x1401a7d57
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov dword [rbp - 4], 0
mov dword [rbp - 0x20], 5
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax + 0x18], rdx
cmp dword [rbp + 0x30], 0
je 0x1401a7ece
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.sqlite3_str_new
mov qword [rbp - 0x28], rax
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8, rdx
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov rcx, rax
call sym.sqlite3_str_appendf
mov dword [rbp - 0xc], 0
jmp 0x1401a7ded
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x28]
mov r8d, edx
lea rdx, str._a_d
mov rcx, rax
call sym.sqlite3_str_appendf
add dword [rbp - 0xc], 1
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x29]
movzx eax, al
cmp dword [rbp - 0xc], eax
jl 0x1401a7dd0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8, rdx
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov rcx, rax
call sym.sqlite3_str_appendf
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8, rdx
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov rcx, rax
call sym.sqlite3_str_appendf
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x20]
mov r8, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x28]
mov dword [rsp + 0x20], edx
mov r9, r8
mov r8, rcx
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov rcx, rax
call sym.sqlite3_str_appendf
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.sqlite3_str_finish
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x1401a7e8c
mov eax, 7
jmp 0x1401a81bb
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
call sym.sqlite3_exec
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.sqlite3_free
cmp dword [rbp - 4], 0
je 0x1401a7ece
mov eax, dword [rbp - 4]
jmp 0x1401a81bb
mov rax, qword [rbp + 0x10]
add rax, 0x78
mov qword [rbp - 0x90], rax
mov rax, qword [rbp + 0x10]
sub rax, 0xffffffffffffff80
mov qword [rbp - 0x88], rax
mov rax, qword [rbp + 0x10]
add rax, 0x88
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x10]
add rax, 0x90
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
add rax, 0x98
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x10]
add rax, 0xa0
mov qword [rbp - 0x68], rax
mov rax, qword [rbp + 0x10]
add rax, 0xa8
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x10]
add rax, 0xb0
mov qword [rbp - 0x58], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.rtreeQueryStat1
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
jmp 0x1401a8010
cmp dword [rbp - 8], 3
jne 0x1401a7f71
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x29]
test al, al
jne 0x1401a7f8f
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rax*8]
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rax, qword [rdx + rax]
mov qword [rbp - 0x18], rax
jmp 0x1401a7f9a
lea rax, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call sym.sqlite3_mprintf
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
je 0x1401a7ff9
mov eax, dword [rbp - 8]
cdqe
mov rcx, qword [rbp + rax*8 - 0x90]
mov r8d, dword [rbp - 0x20]
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
mov r9d, r8d
mov r8d, 0xffffffff
mov rcx, rax
call sym.sqlite3_prepare_v3
mov dword [rbp - 4], eax
jmp 0x1401a8000
mov dword [rbp - 4], 7
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.sqlite3_free
add dword [rbp - 8], 1
cmp dword [rbp - 8], 7
jg 0x1401a8020
cmp dword [rbp - 4], 0
je 0x1401a7f5f
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x29]
test al, al
je 0x1401a81b8
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov rdx, rax
lea rax, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rcx, rax
call sym.sqlite3_mprintf
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x60], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x60]
test rax, rax
jne 0x1401a806e
mov dword [rbp - 4], 7
jmp 0x1401a81b8
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.sqlite3_str_new
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x40]
mov r9, rcx
mov r8, rdx
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov rcx, rax
call sym.sqlite3_str_appendf
mov dword [rbp - 0x1c], 0
jmp 0x1401a812c
cmp dword [rbp - 0x1c], 0
je 0x1401a80ca
mov rax, qword [rbp - 0x40]
mov r8d, 1
lea rdx, [0x1403715b7]
mov rcx, rax
call sym.sqlite3_str_append
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x2a]
movzx eax, al
cmp dword [rbp - 0x1c], eax
jge 0x1401a8106
mov eax, dword [rbp - 0x1c]
lea r8d, [rax + 2]
mov ecx, dword [rbp - 0x1c]
mov rax, qword [rbp - 0x40]
mov edx, dword [rbp - 0x1c]
mov dword [rsp + 0x20], edx
mov r9d, r8d
mov r8d, ecx
lea rdx, str.a_dcoalesce___d_a_d_
mov rcx, rax
call sym.sqlite3_str_appendf
jmp 0x1401a8128
mov eax, dword [rbp - 0x1c]
lea ecx, [rax + 2]
mov edx, dword [rbp - 0x1c]
mov rax, qword [rbp - 0x40]
mov r9d, ecx
mov r8d, edx
lea rdx, str.a_d__d
mov rcx, rax
call sym.sqlite3_str_appendf
add dword [rbp - 0x1c], 1
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x29]
movzx eax, al
cmp dword [rbp - 0x1c], eax
jl 0x1401a80ab
mov rax, qword [rbp - 0x40]
lea rdx, str._WHERE_rowid_1
mov rcx, rax
call sym.sqlite3_str_appendf
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.sqlite3_str_finish
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
jne 0x1401a8173
mov dword [rbp - 4], 7
jmp 0x1401a81b8
mov rax, qword [rbp + 0x10]
lea rcx, [rax + 0xb8]
mov r8d, dword [rbp - 0x20]
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
mov r9d, r8d
mov r8d, 0xffffffff
mov rcx, rax
call sym.sqlite3_prepare_v3
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x48]
mov rcx, rax
call sym.sqlite3_free
mov eax, dword [rbp - 4]
add rsp, 0xc0
pop rbp
ret