Function at 0xb95977
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov dword [rbp - 4], 0
mov dword [rbp - 0x20], 5
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax + 0x18], rdx
cmp dword [rbp + 0x30], 0
je 0xb95aee
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.00ac40dc
mov qword [rbp - 0x28], rax
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8, rdx
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov rcx, rax
call fcn.00ac448f
mov dword [rbp - 0xc], 0
jmp 0xb95a0d
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x28]
mov r8d, edx
lea rdx, str._a_d
mov rcx, rax
call fcn.00ac448f
add dword [rbp - 0xc], 1
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x29]
movzx eax, al
cmp eax, dword [rbp - 0xc]
jg 0xb959f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8, rdx
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov rcx, rax
call fcn.00ac448f
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8, rdx
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov rcx, rax
call fcn.00ac448f
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x20]
mov r8, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x28]
mov dword [rsp + 0x20], edx
mov r9, r8
mov r8, rcx
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov rcx, rax
call fcn.00ac448f
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.00ac3f3f
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0xb95aac
mov eax, 7
jmp 0xb95dda
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
call fcn.00b325e3
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x30]
mov rcx, rax
call fcn.00ac0e07
cmp dword [rbp - 4], 0
je 0xb95aee
mov eax, dword [rbp - 4]
jmp 0xb95dda
mov rax, qword [rbp + 0x10]
add rax, 0x78
mov qword [rbp - 0x90], rax
mov rax, qword [rbp + 0x10]
sub rax, 0xffffffffffffff80
mov qword [rbp - 0x88], rax
mov rax, qword [rbp + 0x10]
add rax, 0x88
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x10]
add rax, 0x90
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
add rax, 0x98
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x10]
add rax, 0xa0
mov qword [rbp - 0x68], rax
mov rax, qword [rbp + 0x10]
add rax, 0xa8
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x10]
add rax, 0xb0
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call fcn.00b9578f
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
jmp 0xb95c30
cmp dword [rbp - 8], 3
jne 0xb95b91
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x29]
test al, al
jne 0xb95baf
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rax*8]
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rax, qword [rdx + rax]
mov qword [rbp - 0x18], rax
jmp 0xb95bba
lea rax, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call fcn.00ac4291
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
je 0xb95c19
mov eax, dword [rbp - 8]
cdqe
mov rcx, qword [rbp + rax*8 - 0x90]
mov r8d, dword [rbp - 0x20]
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
mov r9d, r8d
mov r8d, 0xffffffff
mov rcx, rax
call fcn.00b39a2a
mov dword [rbp - 4], eax
jmp 0xb95c20
mov dword [rbp - 4], 7
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.00ac0e07
add dword [rbp - 8], 1
cmp dword [rbp - 8], 7
jg 0xb95c40
cmp dword [rbp - 4], 0
je 0xb95b7f
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x29]
test al, al
je 0xb95dd7
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov rdx, rax
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.00ac4291
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x58], rdx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x58]
test rax, rax
jne 0xb95c8e
mov dword [rbp - 4], 7
jmp 0xb95dd7
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.00ac40dc
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x40]
mov r9, rcx
mov r8, rdx
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov rcx, rax
call fcn.00ac448f
mov dword [rbp - 0x1c], 0
jmp 0xb95d4c
cmp dword [rbp - 0x1c], 0
je 0xb95cea
mov rax, qword [rbp - 0x40]
mov r8d, 1
lea rdx, [0x013dd8f0]
mov rcx, rax
call fcn.00ac3d7c
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x2a]
movzx eax, al
cmp eax, dword [rbp - 0x1c]
jle 0xb95d26
mov eax, dword [rbp - 0x1c]
lea r8d, [rax + 2]
mov ecx, dword [rbp - 0x1c]
mov rax, qword [rbp - 0x40]
mov edx, dword [rbp - 0x1c]
mov dword [rsp + 0x20], edx
mov r9d, r8d
mov r8d, ecx
lea rdx, str.a_dcoalesce___d_a_d_
mov rcx, rax
call fcn.00ac448f
jmp 0xb95d48
mov eax, dword [rbp - 0x1c]
lea ecx, [rax + 2]
mov edx, dword [rbp - 0x1c]
mov rax, qword [rbp - 0x40]
mov r9d, ecx
mov r8d, edx
lea rdx, str.a_d__d
mov rcx, rax
call fcn.00ac448f
add dword [rbp - 0x1c], 1
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x29]
movzx eax, al
cmp eax, dword [rbp - 0x1c]
jg 0xb95ccb
mov rax, qword [rbp - 0x40]
lea rdx, str._WHERE_rowid_1
mov rcx, rax
call fcn.00ac448f
mov rax, qword [rbp - 0x40]
mov rcx, rax
call fcn.00ac3f3f
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
jne 0xb95d93
mov dword [rbp - 4], 7
jmp 0xb95dd7
mov rax, qword [rbp + 0x10]
lea r8, [rax + 0xb8]
mov ecx, dword [rbp - 0x20]
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r8
mov r9d, ecx
mov r8d, 0xffffffff
mov rcx, rax
call fcn.00b39a2a
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x48]
mov rcx, rax
call fcn.00ac0e07
mov eax, dword [rbp - 4]
add rsp, 0xc0
pop rbp
ret