Function at 0x1402a4b80
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
movaps xmmword [rsp + 0xb0], xmm6
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor esi, esi
mov qword [rcx + 0x18], rdx
lea r14, [0x14066e8b0]
movq xmm6, rcx
mov r12, r9
mov r15, r8
mov rbx, rdx
mov rbp, rcx
punpcklqdq xmm6, xmm6
cmp dword [rsp + 0x130], esi
je 0x1402a4dc4
call fcn.140315020
test eax, eax
jne 0x1402a4c1c
lea ecx, [rsi + 0x20]
call fcn.1402dea40
mov rdi, rax
test rax, rax
je 0x1402a4c1c
test rbx, rbx
je 0x1402a4c01
mov eax, dword [rbx + 0x88]
jmp 0x1402a4c06
mov eax, 0x3b9aca00
mov qword [rdi + 8], rsi
mov qword [rdi], rsi
mov dword [rdi + 0x10], esi
mov dword [rdi + 0x14], eax
mov dword [rdi + 0x18], esi
mov word [rdi + 0x1c], si
jmp 0x1402a4c1f
mov rdi, r14
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r8, r15
mov rcx, rdi
call fcn.14023dd70
cmp byte [rbp + 0x29], sil
jbe 0x1402a4c5c
nop word [rax + rax]
mov r8d, esi
lea rdx, str._a_d
mov rcx, rdi
call fcn.14023dd70
movzx eax, byte [rbp + 0x29]
inc esi
cmp esi, eax
jl 0x1402a4c40
mov r9, r12
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r15
mov rcx, rdi
call fcn.14023dd70
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r15
mov rcx, rdi
call fcn.14023dd70
mov eax, dword [rbp + 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, rdi
call fcn.14023dd70
test rdi, rdi
je 0x1402a4e83
cmp rdi, r14
je 0x1402a4e83
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1402a4cdd
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x1402a4cdd
test byte [rdi + 0x1d], 4
jne 0x1402a4cdd
mov rcx, rdi
call fcn.140316db0
mov rsi, rax
jmp 0x1402a4ce1
mov rsi, qword [rdi + 8]
cmp dword [0x14066e1b0], 0
je 0x1402a4d33
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a4cfc
call qword [0x14066e230]
mov rcx, rdi
call qword [0x14066e1e8]
dec qword [0x140682998]
movsxd rcx, eax
sub qword [0x140682950], rcx
mov rcx, rdi
call qword [0x14066e1d8]
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a4d3c
call qword [0x14066e240]
jmp 0x1402a4d3c
mov rcx, rdi
call qword [0x14066e1d8]
test rsi, rsi
je 0x1402a4e83
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rbx
mov rdx, rsi
call fcn.140232ea0
cmp dword [0x14066e1b0], 0
mov edi, eax
je 0x1402a4db1
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a4d7a
call qword [0x14066e230]
mov rcx, rsi
call qword [0x14066e1e8]
dec qword [0x140682998]
movsxd rcx, eax
sub qword [0x140682950], rcx
mov rcx, rsi
call qword [0x14066e1d8]
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a4dba
call qword [0x14066e240]
jmp 0x1402a4dba
mov rcx, rsi
call qword [0x14066e1d8]
test edi, edi
jne 0x1402a5466
xor esi, esi
cmp dword [0x140672340], 2
mov qword [rsp + 0xc8], r13
jl 0x1402a4e8d
movdqa xmm3, xmmword [0x1405372b0]
mov eax, 3
movdqa xmm2, xmmword [0x140537280]
pmovsxdq xmm0, xmm3
movd xmm4, eax
lea rax, [rbp + 0x78]
psllq xmm0, xmm4
paddq xmm0, xmm6
paddq xmm0, xmm2
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x1405372a0]
paddd xmm0, xmm3
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1405372c0]
psllq xmm1, xmm4
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x70], xmm1
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1405372d0]
psllq xmm1, xmm4
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x80], xmm1
pmovsxdq xmm1, xmm0
movq xmm0, rax
psllq xmm1, xmm4
punpcklqdq xmm0, xmm0
paddq xmm1, xmm0
movdqu xmmword [rsp + 0x90], xmm1
jmp 0x1402a4eb8
mov eax, 7
jmp 0x1402a5468
lea rcx, [rsp + 0x60]
mov rdx, rsi
mov r8d, 8
nop dword [rax + rax]
lea rax, [rbp + 0x78]
add rax, rdx
add rdx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub r8, 1
jne 0x1402a4ea0
mov rdx, qword [rbp + 0x30]
lea r8, str.sqlite_stat1
mov qword [rsp + 0x40], rsi
mov r14d, 0x64
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov r13d, r14d
mov qword [rsp + 0x20], rsi
call fcn.14023a470
mov edi, eax
test eax, eax
je 0x1402a4f0e
cmp eax, 1
mov r13d, 0
mov r14d, 0x100000
cmove edi, r13d
jmp 0x1402a4ff1
mov r8, qword [rbp + 0x38]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov rdx, qword [rbp + 0x30]
call fcn.140234d20
mov rsi, rax
test rax, rax
jne 0x1402a4f32
lea edi, [rax + 7]
jmp 0x1402a4fe7
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov r9d, 0x80
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov qword [rsp + 0x20], rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.1402de560
mov edi, eax
test eax, eax
jne 0x1402a4f8c
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140236dc0
cmp eax, r14d
jne 0x1402a4f82
xor edx, edx
mov rcx, rdi
call fcn.140237610
mov r13, rax
mov rcx, rdi
call fcn.140237c70
mov edi, eax
cmp dword [0x14066e1b0], 0
je 0x1402a4fde
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a4fa7
call qword [0x14066e230]
mov rcx, rsi
call qword [0x14066e1e8]
dec qword [0x140682998]
movsxd rcx, eax
sub qword [0x140682950], rcx
mov rcx, rsi
call qword [0x14066e1d8]
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a4fe7
call qword [0x14066e240]
jmp 0x1402a4fe7
mov rcx, rsi
call qword [0x14066e1d8]
cmp r13, r14
cmovg r14, r13
xor r13d, r13d
mov qword [rbp + 0x48], r14
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rsi, r13
nop
test edi, edi
jne 0x1402a50d9
cmp rsi, 3
jne 0x1402a501b
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
cmp byte [rbp + 0x29], dil
jne 0x1402a501f
mov rcx, qword [rax + rsi*8]
mov r8, r12
mov rdx, r15
call fcn.140234d20
mov r14, rax
test rax, rax
je 0x1402a50c0
mov rcx, qword [rsp + rsi*8 + 0x60]
mov r9d, 0x85
mov qword [rsp + 0x30], r13
mov r8d, 0xffffffff
mov qword [rsp + 0x28], rcx
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x20], r13
call fcn.1402de560
cmp dword [0x14066e1b0], 0
mov edi, eax
je 0x1402a50b5
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a507e
call qword [0x14066e230]
mov rcx, r14
call qword [0x14066e1e8]
dec qword [0x140682998]
movsxd rcx, eax
sub qword [0x140682950], rcx
mov rcx, r14
call qword [0x14066e1d8]
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a50c5
call qword [0x14066e240]
jmp 0x1402a50c5
mov rcx, r14
call qword [0x14066e1d8]
jmp 0x1402a50c5
mov edi, 7
inc rsi
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
cmp rsi, 8
jl 0x1402a5000
cmp byte [rbp + 0x29], 0
je 0x1402a545e
mov r8, r12
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r15
call fcn.140234d20
mov qword [rbp + 0x58], rax
test rax, rax
je 0x1402a5459
call fcn.140315020
test eax, eax
jne 0x1402a514e
lea ecx, [rax + 0x20]
call fcn.1402dea40
mov rdi, rax
test rax, rax
je 0x1402a514e
test rbx, rbx
je 0x1402a5128
mov eax, dword [rbx + 0x88]
jmp 0x1402a512d
mov eax, 0x3b9aca00
mov qword [rdi + 8], r13
lea r14, [0x14066e8b0]
mov qword [rdi], r13
mov dword [rdi + 0x10], r13d
mov dword [rdi + 0x14], eax
mov dword [rdi + 0x18], r13d
mov word [rdi + 0x1c], 0
jmp 0x1402a5158
lea r14, [0x14066e8b0]
mov rdi, r14
mov r9, r12
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r15
mov rcx, rdi
call fcn.14023dd70
cmp byte [rbp + 0x29], 0
mov esi, r13d
jbe 0x1402a51e4
test esi, esi
je 0x1402a51aa
mov eax, dword [rdi + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rdi + 0x10]
jb 0x1402a519c
mov r8d, 1
lea rdx, [0x1405fee70]
mov rcx, rdi
call fcn.140256fc0
jmp 0x1402a51aa
mov dword [rdi + 0x18], ecx
mov rcx, rax
mov rax, qword [rdi + 8]
mov byte [rcx + rax], 0x2c
movzx eax, byte [rbp + 0x2a]
lea r9d, [rsi + 2]
mov r8d, esi
mov rcx, rdi
cmp esi, eax
jge 0x1402a51ce
lea rdx, str.a_dcoalesce___d_a_d_
mov dword [rsp + 0x20], esi
call fcn.14023dd70
jmp 0x1402a51da
lea rdx, str.a_d__d
call fcn.14023dd70
movzx eax, byte [rbp + 0x29]
inc esi
cmp esi, eax
jl 0x1402a5176
lea rdx, str._WHERE_rowid_1
mov rcx, rdi
call fcn.14023dd70
test rdi, rdi
je 0x1402a5459
cmp rdi, r14
je 0x1402a5459
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1402a522e
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x1402a522e
test byte [rdi + 0x1d], 4
jne 0x1402a522e
mov rcx, rdi
call fcn.140316db0
mov r15, rax
jmp 0x1402a5232
mov r15, qword [rdi + 8]
cmp dword [0x14066e1b0], 0
je 0x1402a5284
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a524d
call qword [0x14066e230]
mov rcx, rdi
call qword [0x14066e1e8]
dec qword [0x140682998]
movsxd rcx, eax
sub qword [0x140682950], rcx
mov rcx, rdi
call qword [0x14066e1d8]
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a528d
call qword [0x14066e240]
jmp 0x1402a528d
mov rcx, rdi
call qword [0x14066e1d8]
test r15, r15
je 0x1402a5459
lea r12, [rbp + 0xb8]
mov ebp, r13d
mov qword [r12], r13
test rbx, rbx
jne 0x1402a52b2
lea r8, str.NULL
jmp 0x1402a52d0
movzx eax, byte [rbx + 0x71]
cmp al, 0x76
je 0x1402a530f
cmp al, 0xba
je 0x1402a52c9
lea r8, str.invalid
cmp al, 0x6d
jne 0x1402a52d0
lea r8, str.unopened
mov edi, 0x15
lea rdx, str.API_call_with__s_database_connection_pointer
mov ecx, edi
call fcn.1402415c0
lea rax, [0x1405370b4]
mov r9d, 0x225ab
lea r8, str.misuse
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, edi
call fcn.1402415c0
jmp 0x1402a53fc
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402a531e
call qword [0x14066e230]
cmp byte [rbx + 0x6f], 0
jne 0x1402a5330
mov rcx, rbx
call fcn.14024c550
nop dword [rax]
mov qword [rsp + 0x30], r13
mov r9d, 0x85
mov qword [rsp + 0x28], r12
mov r8d, 0xffffffff
mov rdx, r15
mov qword [rsp + 0x20], r13
mov rcx, rbx
call fcn.1402e7580
mov r14d, eax
test eax, eax
je 0x1402a53bb
cmp byte [rbx + 0x67], 0
jne 0x1402a53bb
cmp eax, 0x201
jne 0x1402a5375
mov ecx, ebp
inc ebp
cmp ecx, 0x19
jl 0x1402a5330
jmp 0x1402a53bb
cmp r14d, 0x11
jne 0x1402a53bb
cmp dword [rbx + 0x48], 0
jne 0x1402a53af
cmp dword [rbx + 0x28], 0
mov edi, r13d
jle 0x1402a53af
mov rsi, r13
nop dword [rax]
mov rax, qword [rbx + 0x20]
mov rcx, qword [rsi + rax + 0x18]
test byte [rcx + 0x72], 8
je 0x1402a53a4
call fcn.1402ec460
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x28]
jl 0x1402a5390
mov eax, ebp
inc ebp
test eax, eax
je 0x1402a5330
cmp byte [rbx + 0x6f], 0
jne 0x1402a53c9
mov rcx, rbx
call fcn.14024c890
cmp byte [rbx + 0x67], 0
jne 0x1402a53d9
test r14d, r14d
jne 0x1402a53d9
mov edi, r13d
jmp 0x1402a53e6
mov edx, r14d
mov rcx, rbx
call fcn.1402488a0
mov edi, eax
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x290], r13d
test rcx, rcx
je 0x1402a53fc
call qword [0x14066e240]
cmp dword [0x14066e1b0], 0
je 0x1402a544e
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a5417
call qword [0x14066e230]
mov rcx, r15
call qword [0x14066e1e8]
dec qword [0x140682998]
movsxd rcx, eax
sub qword [0x140682950], rcx
mov rcx, r15
call qword [0x14066e1d8]
mov rcx, qword [0x140682a00]
test rcx, rcx
je 0x1402a545e
call qword [0x14066e240]
jmp 0x1402a545e
mov rcx, r15
call qword [0x14066e1d8]
jmp 0x1402a545e
mov edi, 7
mov r13, qword [rsp + 0xc8]
mov eax, edi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140359070
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret