Function at 0x1800f55e0
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 r14, [0x18028d438]
xor esi, esi
mov qword [rcx + 0x18], rdx
movq xmm6, rcx
mov r15, r9
mov r12, r8
punpcklqdq xmm6, xmm6
mov rbx, rdx
mov rbp, rcx
cmp dword [rsp + 0xf0], esi
je 0x1800f5814
call fcn.180003c56
test eax, eax
jne 0x1800f5671
lea ecx, [rsi + 0x20]
call fcn.1801408c0
mov rdi, rax
test rax, rax
je 0x1800f5671
test rbx, rbx
je 0x1800f5656
mov eax, dword [rbx + 0x88]
jmp 0x1800f565b
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 0x1800f5674
mov rdi, r14
mov r9, r15
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r8, r12
mov rcx, rdi
call fcn.180001bdb
cmp byte [rbp + 0x29], sil
jbe 0x1800f56ac
nop
mov r8d, esi
lea rdx, str._a_d
mov rcx, rdi
call fcn.180001bdb
movzx eax, byte [rbp + 0x29]
inc esi
cmp esi, eax
jl 0x1800f5690
mov r9, r15
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r12
mov rcx, rdi
call fcn.180001bdb
mov r9, r15
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r12
mov rcx, rdi
call fcn.180001bdb
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, rdi
call fcn.180001bdb
test rdi, rdi
je 0x1800f58cb
cmp rdi, r14
je 0x1800f58cb
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1800f572d
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x1800f572d
test byte [rdi + 0x1d], 4
jne 0x1800f572d
mov rcx, rdi
call fcn.180183b20
mov rsi, rax
jmp 0x1800f5731
mov rsi, qword [rdi + 8]
cmp dword [0x18028cb60], 0
je 0x1800f5783
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f574c
call qword [0x18028cbe0]
mov rcx, rdi
call qword [0x18028cb98]
dec qword [0x180294eb8]
movsxd rcx, eax
sub qword [0x180294e70], rcx
mov rcx, rdi
call qword [0x18028cb88]
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f578c
call qword [0x18028cbf0]
jmp 0x1800f578c
mov rcx, rdi
call qword [0x18028cb88]
test rsi, rsi
je 0x1800f58cb
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rbx
mov rdx, rsi
call fcn.1800042a0
cmp dword [0x18028cb60], 0
mov edi, eax
je 0x1800f5801
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f57ca
call qword [0x18028cbe0]
mov rcx, rsi
call qword [0x18028cb98]
dec qword [0x180294eb8]
movsxd rcx, eax
sub qword [0x180294e70], rcx
mov rcx, rsi
call qword [0x18028cb88]
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f580a
call qword [0x18028cbf0]
jmp 0x1800f580a
mov rcx, rsi
call qword [0x18028cb88]
test edi, edi
jne 0x1800f5ea8
xor esi, esi
cmp dword [0x1802937e0], 2
lea rax, [rbp + 0x78]
mov qword [rsp + 0xd8], r13
jl 0x1800f58d5
movdqa xmm3, xmmword [0x18024f730]
movdqa xmm2, xmmword [0x18024f6d0]
pmovsxdq xmm0, xmm3
psllq xmm0, 3
paddq xmm0, xmm6
paddq xmm0, xmm2
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x18024f710]
paddd xmm0, xmm3
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x18024f750]
psllq xmm1, 3
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x60], xmm1
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x18024f770]
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 0x1800f58f1
mov eax, 7
jmp 0x1800f5eaa
lea rcx, [rsp + 0x50]
mov edx, 8
nop
mov qword [rcx], rax
lea rcx, [rcx + 8]
add rax, 8
sub rdx, 1
jne 0x1800f58e0
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.180004610
mov edi, eax
test eax, eax
je 0x1800f5947
cmp eax, 1
mov r13d, 0
mov r14d, 0x100000
cmove edi, r13d
jmp 0x1800f5a30
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.1800042ff
mov rsi, rax
test rax, rax
jne 0x1800f596b
lea edi, [rax + 7]
jmp 0x1800f5a26
xor ecx, ecx
lea rax, [rsp + 0xd0]
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.180140280
mov edi, eax
test eax, eax
jne 0x1800f59cb
mov rdi, qword [rsp + 0xd0]
mov rcx, rdi
call fcn.180001145
cmp eax, r14d
jne 0x1800f59c1
xor edx, edx
mov rcx, rdi
call fcn.180001aeb
mov r13, rax
mov rcx, rdi
call fcn.180002180
mov edi, eax
cmp dword [0x18028cb60], 0
je 0x1800f5a1d
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f59e6
call qword [0x18028cbe0]
mov rcx, rsi
call qword [0x18028cb98]
dec qword [0x180294eb8]
movsxd rcx, eax
sub qword [0x180294e70], rcx
mov rcx, rsi
call qword [0x18028cb88]
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f5a26
call qword [0x18028cbf0]
jmp 0x1800f5a26
mov rcx, rsi
call qword [0x18028cb88]
cmp r13, r14
cmovg r14, r13
xor r13d, r13d
mov qword [rbp + 0x50], r14
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rsi, r13
nop
test edi, edi
jne 0x1800f5b2b
cmp rsi, 3
jne 0x1800f5a65
cmp byte [rbp + 0x29], dil
je 0x1800f5a65
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 0x1800f5a71
lea rdi, [rsi*8]
mov rcx, qword [rdi + rax]
mov r8, r15
mov rdx, r12
call fcn.1800042ff
mov r14, rax
test rax, rax
je 0x1800f5b12
mov rcx, qword [rsp + rdi + 0x50]
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.180140280
cmp dword [0x18028cb60], 0
mov edi, eax
je 0x1800f5b07
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f5ad0
call qword [0x18028cbe0]
mov rcx, r14
call qword [0x18028cb98]
dec qword [0x180294eb8]
movsxd rcx, eax
sub qword [0x180294e70], rcx
mov rcx, r14
call qword [0x18028cb88]
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f5b17
call qword [0x18028cbf0]
jmp 0x1800f5b17
mov rcx, r14
call qword [0x18028cb88]
jmp 0x1800f5b17
mov edi, 7
inc rsi
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
cmp rsi, 8
jl 0x1800f5a40
cmp byte [rbp + 0x29], 0
je 0x1800f5ea0
cmp edi, 7
je 0x1800f5ea0
mov r8, r15
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r12
call fcn.1800042ff
mov qword [rbp + 0x60], rax
test rax, rax
je 0x1800f5e9b
call fcn.180003c56
test eax, eax
jne 0x1800f5ba9
lea ecx, [rax + 0x20]
call fcn.1801408c0
mov rdi, rax
test rax, rax
je 0x1800f5ba9
test rbx, rbx
je 0x1800f5b83
mov eax, dword [rbx + 0x88]
jmp 0x1800f5b88
mov eax, 0x3b9aca00
mov qword [rdi + 8], r13
lea r14, [0x18028d438]
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 0x1800f5bb3
lea r14, [0x18028d438]
mov rdi, r14
mov r9, r15
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r12
mov rcx, rdi
call fcn.180001bdb
cmp byte [rbp + 0x29], 0
mov esi, r13d
jbe 0x1800f5c3f
test esi, esi
je 0x1800f5c05
mov eax, dword [rdi + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rdi + 0x10]
jb 0x1800f5bf7
mov r8d, 1
lea rdx, [0x180242780]
mov rcx, rdi
call fcn.18006bfe0
jmp 0x1800f5c05
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 0x1800f5c29
lea rdx, str.a_dcoalesce___d_a_d_
mov dword [rsp + 0x20], esi
call fcn.180001bdb
jmp 0x1800f5c35
lea rdx, str.a_d__d
call fcn.180001bdb
movzx eax, byte [rbp + 0x29]
inc esi
cmp esi, eax
jl 0x1800f5bd1
lea rdx, str._WHERE_rowid_1
mov rcx, rdi
call fcn.180001bdb
test rdi, rdi
je 0x1800f5e9b
cmp rdi, r14
je 0x1800f5e9b
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1800f5c89
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x1800f5c89
test byte [rdi + 0x1d], 4
jne 0x1800f5c89
mov rcx, rdi
call fcn.180183b20
mov r12, rax
jmp 0x1800f5c8d
mov r12, qword [rdi + 8]
cmp dword [0x18028cb60], 0
je 0x1800f5cdf
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f5ca8
call qword [0x18028cbe0]
mov rcx, rdi
call qword [0x18028cb98]
dec qword [0x180294eb8]
movsxd rcx, eax
sub qword [0x180294e70], rcx
mov rcx, rdi
call qword [0x18028cb88]
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f5ce8
call qword [0x18028cbf0]
jmp 0x1800f5ce8
mov rcx, rdi
call qword [0x18028cb88]
test r12, r12
je 0x1800f5e9b
xor esi, esi
lea r13, [rbp + 0xb8]
mov qword [r13], rsi
mov ebp, esi
test rbx, rbx
jne 0x1800f5d0e
lea r8, str.NULL
jmp 0x1800f5d2c
movzx eax, byte [rbx + 0x71]
cmp al, 0x76
je 0x1800f5d6b
cmp al, 0xba
je 0x1800f5d25
lea r8, str.invalid
cmp al, 0x6d
jne 0x1800f5d2c
lea r8, str.unopened
mov edi, 0x15
lea rdx, str.API_call_with__s_database_connection_pointer
mov ecx, edi
call fcn.18000206d
lea rax, [0x18024f174]
mov r9d, 0x228c1
lea r8, str.misuse
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, edi
call fcn.18000206d
jmp 0x1800f5e3e
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800f5d7a
call qword [0x18028cbe0]
lea r14, [rbx + 0x67]
nop
mov qword [rsp + 0x30], rsi
mov r9d, 0x85
mov qword [rsp + 0x28], r13
mov r8d, 0xffffffff
mov rdx, r12
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call fcn.18014c030
mov r15d, eax
test eax, eax
je 0x1800f5e0d
cmp byte [rbx + 0x67], 0
lea r14, [rbx + 0x67]
jne 0x1800f5e1c
cmp eax, 0x201
jne 0x1800f5dc9
mov ecx, ebp
inc ebp
cmp ecx, 0x19
jl 0x1800f5d80
jmp 0x1800f5e0d
cmp r15d, 0x11
jne 0x1800f5e0d
cmp dword [rbx + 0x48], 0
jne 0x1800f5e01
cmp dword [rbx + 0x28], 0
mov edi, esi
jle 0x1800f5e01
nop dword [rax]
mov rax, qword [rbx + 0x20]
mov rcx, qword [rsi + rax + 0x18]
test byte [rcx + 0x72], 8
je 0x1800f5df4
call fcn.180151ba0
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x28]
jl 0x1800f5de0
xor esi, esi
mov eax, ebp
inc ebp
test eax, eax
je 0x1800f5d80
cmp byte [r14], 0
jne 0x1800f5e1c
test r15d, r15d
jne 0x1800f5e1c
mov edi, esi
jmp 0x1800f5e29
mov edx, r15d
mov rcx, rbx
call fcn.1800596e0
mov edi, eax
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x278], esi
test rcx, rcx
je 0x1800f5e3e
call qword [0x18028cbf0]
cmp dword [0x18028cb60], 0
je 0x1800f5e90
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f5e59
call qword [0x18028cbe0]
mov rcx, r12
call qword [0x18028cb98]
dec qword [0x180294eb8]
mov rcx, r12
movsxd rdx, eax
sub qword [0x180294e70], rdx
call qword [0x18028cb88]
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800f5ea0
call qword [0x18028cbf0]
jmp 0x1800f5ea0
mov rcx, r12
call qword [0x18028cb88]
jmp 0x1800f5ea0
mov edi, 7
mov r13, qword [rsp + 0xd8]
mov eax, edi
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