Function at 0x1402a8ee0
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 [0x1404735c0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor esi, esi
mov qword [rcx + 0x18], rdx
lea r14, [0x14046b8f0]
movq xmm6, rcx
mov r12, r9
mov r15, r8
mov rbx, rdx
mov rbp, rcx
punpcklqdq xmm6, xmm6
cmp dword [rsp + 0x130], esi
je 0x1402a9124
call fcn.140319ef0
test eax, eax
jne 0x1402a8f7c
lea ecx, [rsi + 0x20]
call fcn.1402e5070
mov rdi, rax
test rax, rax
je 0x1402a8f7c
test rbx, rbx
je 0x1402a8f61
mov eax, dword [rbx + 0x88]
jmp 0x1402a8f66
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 0x1402a8f7f
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.1402041e0
cmp byte [rbp + 0x29], sil
jbe 0x1402a8fbc
nop word [rax + rax]
mov r8d, esi
lea rdx, str._a_d
mov rcx, rdi
call fcn.1402041e0
movzx eax, byte [rbp + 0x29]
inc esi
cmp esi, eax
jl 0x1402a8fa0
mov r9, r12
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r15
mov rcx, rdi
call fcn.1402041e0
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r15
mov rcx, rdi
call fcn.1402041e0
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.1402041e0
test rdi, rdi
je 0x1402a91de
cmp rdi, r14
je 0x1402a91de
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1402a903d
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x1402a903d
test byte [rdi + 0x1d], 4
jne 0x1402a903d
mov rcx, rdi
call fcn.14031b6d0
mov rsi, rax
jmp 0x1402a9041
mov rsi, qword [rdi + 8]
cmp dword [0x14046b030], 0
je 0x1402a9093
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a905c
call qword [0x14046b0b0]
mov rcx, rdi
call qword [0x14046b068]
dec qword [0x140473788]
movsxd rcx, eax
sub qword [0x140473740], rcx
mov rcx, rdi
call qword [0x14046b058]
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a909c
call qword [0x14046b0c0]
jmp 0x1402a909c
mov rcx, rdi
call qword [0x14046b058]
test rsi, rsi
je 0x1402a91de
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rbx
mov rdx, rsi
call fcn.140223390
cmp dword [0x14046b030], 0
mov edi, eax
je 0x1402a9111
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a90da
call qword [0x14046b0b0]
mov rcx, rsi
call qword [0x14046b068]
dec qword [0x140473788]
movsxd rcx, eax
sub qword [0x140473740], rcx
mov rcx, rsi
call qword [0x14046b058]
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a911a
call qword [0x14046b0c0]
jmp 0x1402a911a
mov rcx, rsi
call qword [0x14046b058]
test edi, edi
jne 0x1402a97ea
xor esi, esi
cmp dword [0x1404735a0], 2
mov qword [rsp + 0xc8], r13
jl 0x1402a91e8
movdqa xmm3, xmmword [0x14035d0d0]
lea rax, [rbp + 0x78]
movdqa xmm2, xmmword [0x14035d0a0]
pmovsxdq xmm0, xmm3
psllq xmm0, 3
paddq xmm0, xmm6
paddq xmm0, xmm2
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x14035d0c0]
paddd xmm0, xmm3
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x14035d0e0]
psllq xmm1, 3
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x70], xmm1
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x14035d0f0]
psllq xmm1, 3
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x80], xmm1
pmovsxdq xmm1, xmm0
movq xmm0, rax
psllq xmm1, 3
punpcklqdq xmm0, xmm0
paddq xmm1, xmm0
movdqu xmmword [rsp + 0x90], xmm1
jmp 0x1402a9218
mov eax, 7
jmp 0x1402a97ec
lea rcx, [rsp + 0x60]
mov rdx, rsi
mov r8d, 8
nop word [rax + rax]
lea rax, [rbp + 0x78]
add rax, rdx
add rdx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub r8, 1
jne 0x1402a9200
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.1401ffe90
mov edi, eax
test eax, eax
je 0x1402a9267
cmp eax, 1
mov r14d, 0x100000
cmove edi, esi
jmp 0x1402a9349
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.140225d20
mov rsi, rax
test rax, rax
jne 0x1402a928b
lea edi, [rax + 7]
jmp 0x1402a9340
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.1402e4b50
mov edi, eax
test eax, eax
jne 0x1402a92e5
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140228410
cmp eax, r14d
jne 0x1402a92db
xor edx, edx
mov rcx, rdi
call fcn.140228ad0
mov r13, rax
mov rcx, rdi
call fcn.1402295e0
mov edi, eax
cmp dword [0x14046b030], 0
je 0x1402a9337
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a9300
call qword [0x14046b0b0]
mov rcx, rsi
call qword [0x14046b068]
dec qword [0x140473788]
movsxd rcx, eax
sub qword [0x140473740], rcx
mov rcx, rsi
call qword [0x14046b058]
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a9340
call qword [0x14046b0c0]
jmp 0x1402a9340
mov rcx, rsi
call qword [0x14046b058]
cmp r13, r14
cmovg r14, r13
xor esi, esi
mov qword [rbp + 0x50], r14
lea r13, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
test edi, edi
jne 0x1402a9438
cmp rsi, 3
jne 0x1402a9379
cmp byte [rbp + 0x29], dil
je 0x1402a9379
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
lea rdi, [rsi*8]
jmp 0x1402a9385
lea rdi, [rsi*8]
mov rcx, qword [rdi + r13]
mov r8, r12
mov rdx, r15
call fcn.140225d20
mov r14, rax
test rax, rax
je 0x1402a9426
mov rcx, qword [rsp + rdi + 0x60]
xor eax, eax
mov qword [rsp + 0x30], rax
mov r9d, 0x85
mov qword [rsp + 0x28], rcx
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [rax - 1]
call fcn.1402e4b50
cmp dword [0x14046b030], 0
mov edi, eax
je 0x1402a941b
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a93e4
call qword [0x14046b0b0]
mov rcx, r14
call qword [0x14046b068]
dec qword [0x140473788]
movsxd rcx, eax
sub qword [0x140473740], rcx
mov rcx, r14
call qword [0x14046b058]
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a942b
call qword [0x14046b0c0]
jmp 0x1402a942b
mov rcx, r14
call qword [0x14046b058]
jmp 0x1402a942b
mov edi, 7
inc rsi
cmp rsi, 8
jl 0x1402a9354
cmp byte [rbp + 0x29], 0
je 0x1402a97e2
mov r8, r12
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r15
call fcn.140225d20
mov qword [rbp + 0x60], rax
test rax, rax
je 0x1402a97dd
call fcn.140319ef0
test eax, eax
jne 0x1402a94ab
lea ecx, [rax + 0x20]
call fcn.1402e5070
mov rdi, rax
test rax, rax
je 0x1402a94ab
test rbx, rbx
je 0x1402a9487
mov eax, dword [rbx + 0x88]
jmp 0x1402a948c
mov eax, 0x3b9aca00
xor ecx, ecx
mov dword [rdi + 0x14], eax
mov qword [rdi + 8], rcx
lea r14, [0x14046b8f0]
mov qword [rdi], rcx
mov dword [rdi + 0x10], ecx
mov dword [rdi + 0x18], ecx
mov word [rdi + 0x1c], cx
jmp 0x1402a94b5
lea r14, [0x14046b8f0]
mov rdi, r14
mov r9, r12
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r15
mov rcx, rdi
call fcn.1402041e0
xor ecx, ecx
mov esi, ecx
cmp byte [rbp + 0x29], cl
jbe 0x1402a9527
test esi, esi
je 0x1402a9507
mov eax, dword [rdi + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rdi + 0x10]
jb 0x1402a94f9
mov r8d, 1
lea rdx, [0x1403573a0]
mov rcx, rdi
call fcn.14023ddc0
jmp 0x1402a9507
mov dword [rdi + 0x18], ecx
mov rcx, rax
mov rax, qword [rdi + 8]
mov byte [rcx + rax], 0x2c
lea r9d, [rsi + 2]
mov r8d, esi
lea rdx, str.a_d__d
mov rcx, rdi
call fcn.1402041e0
movzx eax, byte [rbp + 0x29]
inc esi
cmp esi, eax
jl 0x1402a94d3
lea rdx, str._WHERE_rowid_1
mov rcx, rdi
call fcn.1402041e0
test rdi, rdi
je 0x1402a97dd
cmp rdi, r14
je 0x1402a97dd
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1402a9571
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x1402a9571
test byte [rdi + 0x1d], 4
jne 0x1402a9571
mov rcx, rdi
call fcn.14031b6d0
mov r15, rax
jmp 0x1402a9575
mov r15, qword [rdi + 8]
cmp dword [0x14046b030], 0
je 0x1402a95c7
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a9590
call qword [0x14046b0b0]
mov rcx, rdi
call qword [0x14046b068]
dec qword [0x140473788]
movsxd rcx, eax
sub qword [0x140473740], rcx
mov rcx, rdi
call qword [0x14046b058]
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a95d0
call qword [0x14046b0c0]
jmp 0x1402a95d0
mov rcx, rdi
call qword [0x14046b058]
test r15, r15
je 0x1402a97dd
lea r13, [rbp + 0xb8]
xor esi, esi
mov ebp, esi
test r13, r13
jne 0x1402a961a
lea rax, [0x14035ce34]
mov edi, 0x15
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0x226c9
lea r8, str.misuse
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140208410
jmp 0x1402a9780
mov qword [r13], rsi
test rbx, rbx
jne 0x1402a962c
lea r8, str.NULL
jmp 0x1402a964a
movzx eax, byte [rbx + 0x71]
cmp al, 0x76
je 0x1402a9689
cmp al, 0xba
je 0x1402a9643
lea r8, str.invalid
cmp al, 0x6d
jne 0x1402a964a
lea r8, str.unopened
mov edi, 0x15
lea rdx, str.API_call_with__s_database_connection_pointer
mov ecx, edi
call fcn.140208410
lea rax, [0x14035ce34]
mov r9d, 0x226cd
lea r8, str.misuse
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, edi
call fcn.140208410
jmp 0x1402a9780
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402a9698
call qword [0x14046b0b0]
cmp byte [rbx + 0x6f], sil
jne 0x1402a96a6
mov rcx, rbx
call fcn.140232940
lea r14, [rbx + 0x67]
nop word [rax + rax]
mov qword [rsp + 0x30], rsi
mov r9d, 0x85
mov qword [rsp + 0x28], r13
mov r8d, 0xffffffff
mov rdx, r15
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call fcn.1402ee760
mov r12d, eax
test eax, eax
je 0x1402a973d
cmp byte [rbx + 0x67], 0
lea r14, [rbx + 0x67]
jne 0x1402a973d
cmp eax, 0x201
jne 0x1402a96f9
mov ecx, ebp
inc ebp
cmp ecx, 0x19
jl 0x1402a96b0
jmp 0x1402a973d
cmp r12d, 0x11
jne 0x1402a973d
cmp dword [rbx + 0x48], 0
jne 0x1402a9731
cmp dword [rbx + 0x28], 0
mov edi, esi
jle 0x1402a9731
nop dword [rax]
mov rax, qword [rbx + 0x20]
mov rcx, qword [rsi + rax + 0x18]
test byte [rcx + 0x72], 8
je 0x1402a9724
call fcn.1402f2d30
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x28]
jl 0x1402a9710
xor esi, esi
mov eax, ebp
inc ebp
test eax, eax
je 0x1402a96b0
cmp byte [rbx + 0x6f], 0
jne 0x1402a974f
mov rcx, rbx
call fcn.140232cf0
lea r14, [rbx + 0x67]
cmp byte [r14], 0
jne 0x1402a975e
test r12d, r12d
jne 0x1402a975e
mov edi, esi
jmp 0x1402a976b
mov edx, r12d
mov rcx, rbx
call fcn.14022e8e0
mov edi, eax
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x298], esi
test rcx, rcx
je 0x1402a9780
call qword [0x14046b0c0]
cmp dword [0x14046b030], 0
je 0x1402a97d2
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a979b
call qword [0x14046b0b0]
mov rcx, r15
call qword [0x14046b068]
dec qword [0x140473788]
mov rcx, r15
movsxd rdx, eax
sub qword [0x140473740], rdx
call qword [0x14046b058]
mov rcx, qword [0x140473800]
test rcx, rcx
je 0x1402a97e2
call qword [0x14046b0c0]
jmp 0x1402a97e2
mov rcx, r15
call qword [0x14046b058]
jmp 0x1402a97e2
mov edi, 7
mov r13, qword [rsp + 0xc8]
mov eax, edi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140339750
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret