Function at 0x1401ef380
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
lea rsi, [0x1403438b0]
xor edi, edi
mov qword [rcx + 0x18], rdx
movq xmm6, rcx
mov r15, r9
mov r12, r8
punpcklqdq xmm6, xmm6
mov r14, rdx
mov rbp, rcx
cmp dword [rsp + 0xf0], edi
je 0x1401ef5b6
call fcn.14025f340
test eax, eax
jne 0x1401ef414
mov ecx, 0x20
call fcn.14022a800
mov rbx, rax
test rax, rax
je 0x1401ef414
test r14, r14
je 0x1401ef3f9
mov eax, dword [r14 + 0x88]
jmp 0x1401ef3fe
mov eax, 0x3b9aca00
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 0x1401ef417
mov rbx, rsi
mov r9, r15
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r8, r12
mov rcx, rbx
call fcn.14014fa80
cmp byte [rbp + 0x29], dil
jbe 0x1401ef44e
mov r8d, edi
lea rdx, str._a_d
mov rcx, rbx
call fcn.14014fa80
movzx eax, byte [rbp + 0x29]
inc edi
cmp edi, eax
jl 0x1401ef432
mov r9, r15
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r12
mov rcx, rbx
call fcn.14014fa80
mov r9, r15
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r12
mov rcx, rbx
call fcn.14014fa80
mov eax, dword [rbp + 0x20]
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r12
mov rcx, rbx
call fcn.14014fa80
test rbx, rbx
je 0x1401ef66d
cmp rbx, rsi
je 0x1401ef66d
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401ef4cf
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x1401ef4cf
test byte [rbx + 0x1d], 4
jne 0x1401ef4cf
mov rcx, rbx
call fcn.140260b80
mov rdi, rax
jmp 0x1401ef4d3
mov rdi, qword [rbx + 8]
cmp dword [0x140343050], 0
je 0x1401ef525
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401ef4ee
call qword [0x1403430d0]
mov rcx, rbx
call qword [0x140343088]
dec qword [0x14034c048]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x14034c000], rdx
call qword [0x140343078]
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401ef52e
call qword [0x1403430e0]
jmp 0x1401ef52e
mov rcx, rbx
call qword [0x140343078]
test rdi, rdi
je 0x1401ef66d
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, r14
mov rdx, rdi
call fcn.14016e490
cmp dword [0x140343050], 0
mov ebx, eax
je 0x1401ef5a3
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401ef56c
call qword [0x1403430d0]
mov rcx, rdi
call qword [0x140343088]
dec qword [0x14034c048]
movsxd rcx, eax
sub qword [0x14034c000], rcx
mov rcx, rdi
call qword [0x140343078]
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401ef5ac
call qword [0x1403430e0]
jmp 0x1401ef5ac
mov rcx, rdi
call qword [0x140343078]
test ebx, ebx
jne 0x1401efb0f
xor edi, edi
cmp dword [0x14034be58], 2
lea rax, [rbp + 0x78]
mov qword [rsp + 0xd8], r13
jl 0x1401ef677
movdqa xmm3, xmmword [0x1402a8f50]
movdqa xmm2, xmmword [0x1402a8f20]
pmovsxdq xmm0, xmm3
psllq xmm0, 3
paddq xmm0, xmm6
paddq xmm0, xmm2
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x1402a8f40]
paddd xmm0, xmm3
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1402a8f60]
psllq xmm1, 3
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x60], xmm1
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1402a8f70]
psllq xmm1, 3
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x70], xmm1
pmovsxdq xmm1, xmm0
movq xmm0, rax
psllq xmm1, 3
punpcklqdq xmm0, xmm0
paddq xmm1, xmm0
movdqu xmmword [rsp + 0x80], xmm1
jmp 0x1401ef692
mov eax, 7
jmp 0x1401efb11
lea rcx, [rsp + 0x50]
mov edx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
add rax, 8
sub rdx, 1
jne 0x1401ef681
mov rdx, qword [rbp + 0x30]
lea r8, str.sqlite_stat1
mov qword [rsp + 0x40], rdi
mov esi, 0x64
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov rcx, r14
mov qword [rsp + 0x28], rdi
mov r13d, esi
mov qword [rsp + 0x20], rdi
call fcn.14014cb00
mov ebx, eax
test eax, eax
je 0x1401ef6e6
cmp eax, 1
mov r13d, 0
mov esi, 0x100000
cmove ebx, r13d
jmp 0x1401ef7d2
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.1401712f0
mov rdi, rax
test rax, rax
jne 0x1401ef70c
mov ebx, 7
jmp 0x1401ef7c8
xor ecx, ecx
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rcx
mov r9d, 0x80
mov qword [rsp + 0x28], rax
mov r8d, 0xffffffff
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, r14
call fcn.14022a2f0
mov ebx, eax
test eax, eax
jne 0x1401ef76d
mov rbx, qword [rsp + 0xd0]
mov rcx, rbx
call fcn.1401745e0
cmp eax, esi
jne 0x1401ef763
xor edx, edx
mov rcx, rbx
call fcn.140148c30
mov r13, rax
mov rcx, rbx
call fcn.1401492c0
mov ebx, eax
cmp dword [0x140343050], 0
je 0x1401ef7bf
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401ef788
call qword [0x1403430d0]
mov rcx, rdi
call qword [0x140343088]
dec qword [0x14034c048]
movsxd rcx, eax
sub qword [0x14034c000], rcx
mov rcx, rdi
call qword [0x140343078]
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401ef7c8
call qword [0x1403430e0]
jmp 0x1401ef7c8
mov rcx, rdi
call qword [0x140343078]
cmp r13, rsi
cmovg rsi, r13
xor r13d, r13d
mov qword [rbp + 0x48], rsi
lea rax, str.8_f_
mov rdi, r13
test ebx, ebx
jne 0x1401ef8ca
cmp rdi, 3
jne 0x1401ef804
cmp byte [rbp + 0x29], bl
je 0x1401ef804
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
lea rbx, [rdi*8]
jmp 0x1401ef810
lea rbx, [rdi*8]
mov rcx, qword [rbx + rax]
mov r8, r15
mov rdx, r12
call fcn.1401712f0
mov rsi, rax
test rax, rax
je 0x1401ef8b1
mov rcx, qword [rsp + rbx + 0x50]
mov r9d, 0x85
mov qword [rsp + 0x30], r13
mov r8d, 0xffffffff
mov qword [rsp + 0x28], rcx
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], r13
call fcn.14022a2f0
cmp dword [0x140343050], 0
mov ebx, eax
je 0x1401ef8a6
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401ef86f
call qword [0x1403430d0]
mov rcx, rsi
call qword [0x140343088]
dec qword [0x14034c048]
movsxd rcx, eax
sub qword [0x14034c000], rcx
mov rcx, rsi
call qword [0x140343078]
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401ef8b6
call qword [0x1403430e0]
jmp 0x1401ef8b6
mov rcx, rsi
call qword [0x140343078]
jmp 0x1401ef8b6
mov ebx, 7
inc rdi
lea rax, str.8_f_
cmp rdi, 8
jl 0x1401ef7e0
cmp byte [rbp + 0x29], 0
je 0x1401efb07
mov r8, r15
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r12
call fcn.1401712f0
mov qword [rbp + 0x58], rax
test rax, rax
je 0x1401efb02
call fcn.14025f340
test eax, eax
jne 0x1401ef942
mov ecx, 0x20
call fcn.14022a800
mov rbx, rax
test rax, rax
je 0x1401ef942
test r14, r14
je 0x1401ef91c
mov eax, dword [r14 + 0x88]
jmp 0x1401ef921
mov eax, 0x3b9aca00
mov qword [rbx + 8], r13
lea rsi, [0x1403438b0]
mov qword [rbx], r13
mov dword [rbx + 0x10], r13d
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], r13d
mov word [rbx + 0x1c], 0
jmp 0x1401ef94c
lea rsi, [0x1403438b0]
mov rbx, rsi
mov r9, r15
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r12
mov rcx, rbx
call fcn.14014fa80
cmp byte [rbp + 0x29], 0
mov edi, r13d
jbe 0x1401ef9c4
nop word [rax + rax]
test edi, edi
je 0x1401ef9a4
mov eax, dword [rbx + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rbx + 0x10]
jb 0x1401ef996
mov r8d, 1
lea rdx, [0x1402a3710]
mov rcx, rbx
call fcn.140188330
jmp 0x1401ef9a4
mov dword [rbx + 0x18], ecx
mov rcx, rax
mov rax, qword [rbx + 8]
mov byte [rcx + rax], 0x2c
lea r9d, [rdi + 2]
mov r8d, edi
lea rdx, str.a_d__d
mov rcx, rbx
call fcn.14014fa80
movzx eax, byte [rbp + 0x29]
inc edi
cmp edi, eax
jl 0x1401ef970
lea rdx, str._WHERE_rowid_1
mov rcx, rbx
call fcn.14014fa80
test rbx, rbx
je 0x1401efb02
cmp rbx, rsi
je 0x1401efb02
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401efa0e
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x1401efa0e
test byte [rbx + 0x1d], 4
jne 0x1401efa0e
mov rcx, rbx
call fcn.140260b80
mov rdi, rax
jmp 0x1401efa12
mov rdi, qword [rbx + 8]
cmp dword [0x140343050], 0
je 0x1401efa64
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401efa2d
call qword [0x1403430d0]
mov rcx, rbx
call qword [0x140343088]
dec qword [0x14034c048]
movsxd rcx, eax
sub qword [0x14034c000], rcx
mov rcx, rbx
call qword [0x140343078]
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401efa6d
call qword [0x1403430e0]
jmp 0x1401efa6d
mov rcx, rbx
call qword [0x140343078]
test rdi, rdi
je 0x1401efb02
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov r9d, 0x85
mov r8d, 0xffffffff
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov rcx, r14
call fcn.14022a2f0
cmp dword [0x140343050], 0
mov ebx, eax
je 0x1401efaf7
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401efac0
call qword [0x1403430d0]
mov rcx, rdi
call qword [0x140343088]
dec qword [0x14034c048]
movsxd rcx, eax
sub qword [0x14034c000], rcx
mov rcx, rdi
call qword [0x140343078]
mov rcx, qword [0x14034c0c0]
test rcx, rcx
je 0x1401efb07
call qword [0x1403430e0]
jmp 0x1401efb07
mov rcx, rdi
call qword [0x140343078]
jmp 0x1401efb07
mov ebx, 7
mov r13, qword [rsp + 0xd8]
mov eax, ebx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret