Function at 0x1800abdd0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x1800e2008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rcx
mov qword [rcx + 0x18], rdx
xor edi, edi
lea rbp, [0x1800e52c8]
mov r12, r9
mov r15, r8
mov r14, rdx
mov r13d, 0x3b9aca00
movq xmm6, rsi
punpcklqdq xmm6, xmm6
cmp dword [rsp + 0x110], edi
je 0x1800abf6f
call sym.SQLite3.dll_sqlite3_initialize
test eax, eax
jne 0x1800abe70
lea ecx, [rdi + 0x20]
call fcn.1800041a0
mov rbx, rax
test rax, rax
je 0x1800abe70
test r14, r14
je 0x1800abe57
mov eax, dword [r14 + 0x7c]
jmp 0x1800abe5a
mov eax, r13d
mov qword [rbx + 8], rdi
mov qword [rbx], rdi
mov dword [rbx + 0x10], edi
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], edi
mov word [rbx + 0x1c], di
jmp 0x1800abe73
mov rbx, rbp
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r8, r15
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_str_appendf
cmp byte [rsi + 0x29], dil
jbe 0x1800abeac
nop
mov r8d, edi
lea rdx, str._a_d
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_str_appendf
movzx eax, byte [rsi + 0x29]
inc edi
cmp edi, eax
jl 0x1800abe90
mov r9, r12
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r15
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_str_appendf
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r15
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_str_appendf
mov eax, dword [rsi + 0x20]
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov r9, r12
mov dword [rsp + 0x20], eax
mov r8, r15
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_str_appendf
test rbx, rbx
je 0x1800abf63
cmp rbx, rbp
je 0x1800abf63
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800abf25
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x1800abf25
test byte [rbx + 0x1d], 4
jne 0x1800abf25
mov rcx, rbx
call fcn.180006960
mov rdi, rax
jmp 0x1800abf29
mov rdi, qword [rbx + 8]
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_free
test rdi, rdi
je 0x1800abf63
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, r14
mov rdx, rdi
call sym.SQLite3.dll_sqlite3_exec
mov rcx, rdi
mov ebx, eax
call sym.SQLite3.dll_sqlite3_free
test ebx, ebx
je 0x1800abf6d
mov eax, ebx
jmp 0x1800ac335
mov eax, 7
jmp 0x1800ac335
xor edi, edi
cmp dword [0x1800e2018], 2
jl 0x1800ac01b
movdqa xmm5, xmmword [0x1800d3b60]
mov eax, 3
movdqa xmm3, xmmword [0x1800d3b90]
movdqa xmm1, xmmword [0x1800d3b80]
movq xmm0, xmm3
paddd xmm1, xmm0
movd xmm4, eax
pmovsxdq xmm2, xmm0
psllq xmm2, xmm4
paddq xmm2, xmm5
paddq xmm2, xmm6
movdqu xmmword [rsp + 0x40], xmm2
pmovsxdq xmm2, xmm1
movdqa xmm1, xmmword [0x1800d3ba0]
psllq xmm2, xmm4
paddd xmm1, xmm0
paddq xmm2, xmm5
paddq xmm2, xmm6
movdqu xmmword [rsp + 0x50], xmm2
pmovsxdq xmm2, xmm1
movdqa xmm1, xmmword [0x1800d3bb0]
psllq xmm2, xmm4
paddd xmm1, xmm0
paddq xmm2, xmm5
paddq xmm2, xmm6
movdqu xmmword [rsp + 0x60], xmm2
pmovsxdq xmm2, xmm1
psllq xmm2, xmm4
paddq xmm2, xmm5
paddq xmm2, xmm6
movdqu xmmword [rsp + 0x70], xmm2
jmp 0x1800ac048
lea rcx, [rsp + 0x40]
mov rdx, rdi
mov r8d, 8
nop dword [rax]
lea rax, [rsi + 0x78]
add rax, rdx
add rdx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub r8, 1
jne 0x1800ac030
mov rdx, rsi
mov rcx, r14
call fcn.1800abac0
mov ebp, eax
lea r13, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rbx, rdi
nop
test ebp, ebp
jne 0x1800ac133
cmp rbx, 3
jne 0x1800ac07b
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
cmp byte [rsi + 0x29], bpl
jne 0x1800ac080
mov rcx, qword [r13 + rbx*8]
mov r8, r12
mov rdx, r15
call sym.SQLite3.dll_sqlite3_mprintf
mov rdi, rax
test rax, rax
je 0x1800ac121
mov rcx, qword [rsp + rbx*8 + 0x40]
xor eax, eax
mov qword [rsp + 0x30], rax
mov r9d, 0x85
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rax
lea r8d, [rax - 1]
call fcn.180071160
cmp dword [0x1800e29b0], 0
mov ebp, eax
je 0x1800ac116
mov rcx, qword [0x1800e69e8]
test rcx, rcx
je 0x1800ac0df
call qword [0x1800e2a30]
mov rcx, rdi
call qword [0x1800e29e8]
dec qword [0x1800e6778]
movsxd rcx, eax
sub qword [0x1800e6730], rcx
mov rcx, rdi
call qword [0x1800e29d8]
mov rcx, qword [0x1800e69e8]
test rcx, rcx
je 0x1800ac126
call qword [0x1800e2a40]
jmp 0x1800ac126
mov rcx, rdi
call qword [0x1800e29d8]
jmp 0x1800ac126
mov ebp, 7
inc rbx
cmp rbx, 8
jl 0x1800ac060
cmp byte [rsi + 0x29], 0
mov r13d, 0x3b9aca00
je 0x1800ac333
mov r8, r12
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r15
call sym.SQLite3.dll_sqlite3_mprintf
mov qword [rsi + 0x58], rax
test rax, rax
je 0x1800ac32e
call sym.SQLite3.dll_sqlite3_initialize
test eax, eax
jne 0x1800ac1a4
lea ecx, [rax + 0x20]
call fcn.1800041a0
mov rbx, rax
test rax, rax
je 0x1800ac1a4
test r14, r14
je 0x1800ac184
mov r13d, dword [r14 + 0x7c]
xor edi, edi
mov dword [rax + 0x14], r13d
mov qword [rax + 8], rdi
lea rbp, [0x1800e52c8]
mov qword [rax], rdi
mov dword [rax + 0x10], edi
mov dword [rax + 0x18], edi
mov word [rax + 0x1c], di
jmp 0x1800ac1b0
lea rbp, [0x1800e52c8]
xor edi, edi
mov rbx, rbp
mov r9, r12
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r15
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_str_appendf
cmp byte [rsi + 0x29], 0
jbe 0x1800ac243
nop dword [rax + rax]
test edi, edi
je 0x1800ac209
mov eax, dword [rbx + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rbx + 0x10]
jb 0x1800ac1f6
mov r8d, 1
lea rdx, [0x1800c9b30]
mov rcx, rbx
call fcn.180006890
jmp 0x1800ac209
mov dword [rbx + 0x18], ecx
mov rcx, rax
add rcx, qword [rbx + 8]
movzx eax, byte [0x1800c9b30]
mov byte [rcx], al
movzx eax, byte [rsi + 0x2a]
lea r9d, [rdi + 2]
mov r8d, edi
mov rcx, rbx
cmp edi, eax
jge 0x1800ac22d
lea rdx, str.a_dcoalesce___d_a_d_
mov dword [rsp + 0x20], edi
call sym.SQLite3.dll_sqlite3_str_appendf
jmp 0x1800ac239
lea rdx, str.a_d__d
call sym.SQLite3.dll_sqlite3_str_appendf
movzx eax, byte [rsi + 0x29]
inc edi
cmp edi, eax
jl 0x1800ac1d0
lea rdx, str._WHERE_rowid_1
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_str_appendf
test rbx, rbx
je 0x1800ac32e
cmp rbx, rbp
je 0x1800ac32e
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800ac28d
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x1800ac28d
test byte [rbx + 0x1d], 4
jne 0x1800ac28d
mov rcx, rbx
call fcn.180006960
mov rdi, rax
jmp 0x1800ac291
mov rdi, qword [rbx + 8]
mov rcx, rbx
call sym.SQLite3.dll_sqlite3_free
test rdi, rdi
je 0x1800ac32e
xor ecx, ecx
lea rax, [rsi + 0xb8]
mov qword [rsp + 0x30], rcx
mov r9d, 0x85
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x20], rcx
lea r8d, [rcx - 1]
mov rcx, r14
call fcn.180071160
cmp dword [0x1800e29b0], 0
mov ebp, eax
je 0x1800ac323
mov rcx, qword [0x1800e69e8]
test rcx, rcx
je 0x1800ac2ec
call qword [0x1800e2a30]
mov rcx, rdi
call qword [0x1800e29e8]
dec qword [0x1800e6778]
movsxd rcx, eax
sub qword [0x1800e6730], rcx
mov rcx, rdi
call qword [0x1800e29d8]
mov rcx, qword [0x1800e69e8]
test rcx, rcx
je 0x1800ac333
call qword [0x1800e2a40]
jmp 0x1800ac333
mov rcx, rdi
call qword [0x1800e29d8]
jmp 0x1800ac333
mov ebp, 7
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800ae0b0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret