Function at 0x1401725f0
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, [0x1402cd9b0]
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 0x140172826
call fcn.1401e45d0
test eax, eax
jne 0x140172684
mov ecx, 0x20
call fcn.1401aeec0
mov rbx, rax
test rax, rax
je 0x140172684
test r14, r14
je 0x140172669
mov eax, dword [r14 + 0x88]
jmp 0x14017266e
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 0x140172687
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.1400c8630
cmp byte [rbp + 0x29], dil
jbe 0x1401726be
mov r8d, edi
lea rdx, str._a_d
mov rcx, rbx
call fcn.1400c8630
movzx eax, byte [rbp + 0x29]
inc edi
cmp edi, eax
jl 0x1401726a2
mov r9, r15
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r12
mov rcx, rbx
call fcn.1400c8630
mov r9, r15
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r12
mov rcx, rbx
call fcn.1400c8630
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.1400c8630
test rbx, rbx
je 0x1401728dd
cmp rbx, rsi
je 0x1401728dd
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14017273f
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x14017273f
test byte [rbx + 0x1d], 4
jne 0x14017273f
mov rcx, rbx
call fcn.1401e5dc0
mov rdi, rax
jmp 0x140172743
mov rdi, qword [rbx + 8]
cmp dword [0x1402cd290], 0
je 0x140172795
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x14017275e
call qword [0x1402cd310]
mov rcx, rbx
call qword [0x1402cd2c8]
dec qword [0x1402d3a38]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x1402d39f0], rdx
call qword [0x1402cd2b8]
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x14017279e
call qword [0x1402cd320]
jmp 0x14017279e
mov rcx, rbx
call qword [0x1402cd2b8]
test rdi, rdi
je 0x1401728dd
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, r14
mov rdx, rdi
call fcn.1400e7870
cmp dword [0x1402cd290], 0
mov ebx, eax
je 0x140172813
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x1401727dc
call qword [0x1402cd310]
mov rcx, rdi
call qword [0x1402cd2c8]
dec qword [0x1402d3a38]
movsxd rcx, eax
sub qword [0x1402d39f0], rcx
mov rcx, rdi
call qword [0x1402cd2b8]
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x14017281c
call qword [0x1402cd320]
jmp 0x14017281c
mov rcx, rdi
call qword [0x1402cd2b8]
test ebx, ebx
jne 0x140172d82
xor edi, edi
cmp dword [0x1402d36b8], 2
lea rax, [rbp + 0x78]
mov qword [rsp + 0xd8], r13
jl 0x1401728e7
movdqa xmm3, xmmword [0x140266980]
movdqa xmm2, xmmword [0x140294e20]
pmovsxdq xmm0, xmm3
psllq xmm0, 3
paddq xmm0, xmm6
paddq xmm0, xmm2
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x140294e40]
paddd xmm0, xmm3
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x140266990]
psllq xmm1, 3
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x60], xmm1
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x140294e50]
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 0x140172902
mov eax, 7
jmp 0x140172d84
lea rcx, [rsp + 0x50]
mov edx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
add rax, 8
sub rdx, 1
jne 0x1401728f1
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.1400c5ba0
mov ebx, eax
test eax, eax
je 0x140172956
cmp eax, 1
mov r13d, 0
mov esi, 0x100000
cmove ebx, r13d
jmp 0x140172a42
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.1400ea510
mov rdi, rax
test rax, rax
jne 0x14017297c
mov ebx, 7
jmp 0x140172a38
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.1401ae9b0
mov ebx, eax
test eax, eax
jne 0x1401729dd
mov rbx, qword [rsp + 0xd0]
mov rcx, rbx
call fcn.1400c06c0
cmp eax, esi
jne 0x1401729d3
xor edx, edx
mov rcx, rbx
call fcn.1400c0ba0
mov r13, rax
mov rcx, rbx
call fcn.1400c13a0
mov ebx, eax
cmp dword [0x1402cd290], 0
je 0x140172a2f
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x1401729f8
call qword [0x1402cd310]
mov rcx, rdi
call qword [0x1402cd2c8]
dec qword [0x1402d3a38]
movsxd rcx, eax
sub qword [0x1402d39f0], rcx
mov rcx, rdi
call qword [0x1402cd2b8]
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x140172a38
call qword [0x1402cd320]
jmp 0x140172a38
mov rcx, rdi
call qword [0x1402cd2b8]
cmp r13, rsi
cmovg rsi, r13
xor r13d, r13d
mov qword [rbp + 0x50], rsi
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rdi, r13
test ebx, ebx
jne 0x140172b3a
cmp rdi, 3
jne 0x140172a74
cmp byte [rbp + 0x29], bl
je 0x140172a74
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 0x140172a80
lea rbx, [rdi*8]
mov rcx, qword [rbx + rax]
mov r8, r15
mov rdx, r12
call fcn.1400ea510
mov rsi, rax
test rax, rax
je 0x140172b21
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.1401ae9b0
cmp dword [0x1402cd290], 0
mov ebx, eax
je 0x140172b16
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x140172adf
call qword [0x1402cd310]
mov rcx, rsi
call qword [0x1402cd2c8]
dec qword [0x1402d3a38]
movsxd rcx, eax
sub qword [0x1402d39f0], rcx
mov rcx, rsi
call qword [0x1402cd2b8]
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x140172b26
call qword [0x1402cd320]
jmp 0x140172b26
mov rcx, rsi
call qword [0x1402cd2b8]
jmp 0x140172b26
mov ebx, 7
inc rdi
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
cmp rdi, 8
jl 0x140172a50
cmp byte [rbp + 0x29], 0
je 0x140172d7a
cmp ebx, 7
je 0x140172d7a
mov r8, r15
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r12
call fcn.1400ea510
mov qword [rbp + 0x60], rax
test rax, rax
je 0x140172d75
call fcn.1401e45d0
test eax, eax
jne 0x140172bbb
mov ecx, 0x20
call fcn.1401aeec0
mov rbx, rax
test rax, rax
je 0x140172bbb
test r14, r14
je 0x140172b95
mov eax, dword [r14 + 0x88]
jmp 0x140172b9a
mov eax, 0x3b9aca00
mov qword [rbx + 8], r13
lea rsi, [0x1402cd9b0]
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 0x140172bc5
lea rsi, [0x1402cd9b0]
mov rbx, rsi
mov r9, r15
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r12
mov rcx, rbx
call fcn.1400c8630
cmp byte [rbp + 0x29], 0
mov edi, r13d
jbe 0x140172c37
test edi, edi
je 0x140172c17
mov eax, dword [rbx + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rbx + 0x10]
jb 0x140172c09
mov r8d, 1
lea rdx, [0x14028f080]
mov rcx, rbx
call fcn.140103680
jmp 0x140172c17
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.1400c8630
movzx eax, byte [rbp + 0x29]
inc edi
cmp edi, eax
jl 0x140172be3
lea rdx, str._WHERE_rowid_1
mov rcx, rbx
call fcn.1400c8630
test rbx, rbx
je 0x140172d75
cmp rbx, rsi
je 0x140172d75
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140172c81
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x140172c81
test byte [rbx + 0x1d], 4
jne 0x140172c81
mov rcx, rbx
call fcn.1401e5dc0
mov rdi, rax
jmp 0x140172c85
mov rdi, qword [rbx + 8]
cmp dword [0x1402cd290], 0
je 0x140172cd7
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x140172ca0
call qword [0x1402cd310]
mov rcx, rbx
call qword [0x1402cd2c8]
dec qword [0x1402d3a38]
movsxd rcx, eax
sub qword [0x1402d39f0], rcx
mov rcx, rbx
call qword [0x1402cd2b8]
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x140172ce0
call qword [0x1402cd320]
jmp 0x140172ce0
mov rcx, rbx
call qword [0x1402cd2b8]
test rdi, rdi
je 0x140172d75
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.1401ae9b0
cmp dword [0x1402cd290], 0
mov ebx, eax
je 0x140172d6a
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x140172d33
call qword [0x1402cd310]
mov rcx, rdi
call qword [0x1402cd2c8]
dec qword [0x1402d3a38]
movsxd rcx, eax
sub qword [0x1402d39f0], rcx
mov rcx, rdi
call qword [0x1402cd2b8]
mov rcx, qword [0x1402d3ab0]
test rcx, rcx
je 0x140172d7a
call qword [0x1402cd320]
jmp 0x140172d7a
mov rcx, rdi
call qword [0x1402cd2b8]
jmp 0x140172d7a
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