Function at 0x1800e6bd0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1801eab50]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor r13d, r13d
mov qword [rcx + 0x18], rdx
mov r15, r9
mov r14, r8
mov r12, rdx
mov rdi, rcx
cmp dword [rsp + 0x130], r13d
je 0x1800e6cd9
mov eax, dword [rcx + 0x20]
lea rcx, str.CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY__data_BLOB__CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY__nodeno_INTEGER__CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY__parentnode_INTEGER__INSERT_INTO__q._q_node_VALUES_1__zeroblob__d__
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
mov r9, r8
mov rdx, r9
mov r8, r15
call fcn.180063690
mov rbx, rax
test rax, rax
jne 0x1800e6c5b
lea eax, [rbx + 7]
jmp 0x1800e6f28
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call fcn.18005eb40
cmp dword [0x1801e5920], r13d
mov esi, eax
je 0x1800e6cc5
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800e6c8e
call qword [0x1801e59a8]
mov rcx, rbx
call qword [0x1801e5960]
dec qword [0x1801ee598]
movsxd rcx, eax
sub qword [0x1801ee550], rcx
mov rcx, rbx
call qword [0x1801e5950]
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800e6cce
call qword [0x1801e59b8]
jmp 0x1800e6cce
mov rcx, rbx
call qword [0x1801e5950]
test esi, esi
je 0x1800e6cd9
mov eax, esi
jmp 0x1800e6f28
mov r8, qword [rdi + 0x38]
lea rax, [rdi + 0x60]
mov rdx, qword [rdi + 0x30]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov qword [rsp + 0x60], rax
mov rsi, r13
lea rax, [rdi + 0x68]
mov qword [rsp + 0xc8], rbp
mov qword [rsp + 0x68], rax
lea rax, [rdi + 0x70]
mov qword [rsp + 0x70], rax
lea rax, [rdi + 0x78]
mov qword [rsp + 0x78], rax
lea rax, [rdi + 0x80]
mov qword [rsp + 0x80], rax
lea rax, [rdi + 0x88]
mov qword [rsp + 0x88], rax
lea rax, [rdi + 0x90]
mov qword [rsp + 0x90], rax
lea rax, [rdi + 0x98]
mov qword [rsp + 0x98], rax
lea rax, [rdi + 0xa0]
mov qword [rsp + 0xa0], rax
call fcn.180063690
mov rbp, rax
test rax, rax
jne 0x1800e6d77
lea ebx, [rax + 7]
jmp 0x1800e6e58
mov r9d, 1
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x50]
mov rdx, rbp
mov qword [rsp + 0x28], rax
mov rcx, r12
mov qword [rsp + 0x20], r13
lea r8d, [r9 - 2]
call fcn.18011d5f0
mov ebx, eax
test eax, eax
jne 0x1800e6ded
mov rcx, qword [rsp + 0x50]
call fcn.180067080
cmp eax, 0x64
jne 0x1800e6dc4
mov rcx, qword [rsp + 0x50]
xor edx, edx
call fcn.180067af0
mov rsi, rax
mov rcx, qword [rsp + 0x50]
call fcn.1800681f0
mov ebx, eax
mov ecx, eax
test eax, eax
jne 0x1800e6dfd
test rsi, rsi
je 0x1800e6df5
mov eax, 0x64
cmp rsi, rax
cmovg rax, rsi
mov qword [rdi + 0x48], rax
jmp 0x1800e6dfd
cmp eax, 7
je 0x1800e6dfd
mov ebx, r13d
mov qword [rdi + 0x48], 0x100000
cmp dword [0x1801e5920], r13d
je 0x1800e6e4f
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800e6e18
call qword [0x1801e59a8]
mov rcx, rbp
call qword [0x1801e5960]
dec qword [0x1801ee598]
movsxd rcx, eax
sub qword [0x1801ee550], rcx
mov rcx, rbp
call qword [0x1801e5950]
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800e6e58
call qword [0x1801e59b8]
jmp 0x1800e6e58
mov rcx, rbp
call qword [0x1801e5950]
mov rsi, r13
lea rbp, str.SELECT_data_FROM__q._q_node_WHERE_nodeno__:1
test ebx, ebx
jne 0x1800e6f1e
mov rcx, qword [rsi + rbp]
mov r8, r15
mov rdx, r14
call fcn.180063690
mov rdi, rax
test rax, rax
je 0x1800e6f0b
mov rcx, qword [rsp + rsi + 0x60]
lea r9d, [rbx + 1]
mov qword [rsp + 0x30], r13
lea r8d, [rbx - 1]
mov qword [rsp + 0x28], rcx
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], r13
call fcn.18011d5f0
cmp dword [0x1801e5920], r13d
mov ebx, eax
je 0x1800e6f00
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800e6ec9
call qword [0x1801e59a8]
mov rcx, rdi
call qword [0x1801e5960]
dec qword [0x1801ee598]
movsxd rcx, eax
sub qword [0x1801ee550], rcx
mov rcx, rdi
call qword [0x1801e5950]
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x1800e6f10
call qword [0x1801e59b8]
jmp 0x1800e6f10
mov rcx, rdi
call qword [0x1801e5950]
jmp 0x1800e6f10
mov ebx, 7
add rsi, 8
cmp rsi, 0x48
jl 0x1800e6e62
mov rbp, qword [rsp + 0xc8]
mov eax, ebx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18015fd80
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret