Function at 0x1800933b0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rax, qword [0x18014b940]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edi, edi
mov qword [rcx + 0x18], rdx
lea r14, [0x180147850]
movq xmm6, rcx
mov r12, r9
mov r15, r8
mov rbp, rdx
mov rsi, rcx
mov r13d, 0x3b9aca00
punpcklqdq xmm6, xmm6
cmp dword [rsp + 0x130], edi
je 0x1800935f4
call fcn.1800fff70
test eax, eax
jne 0x18009344f
lea ecx, [rdi + 0x20]
call fcn.1800ca1d0
mov rbx, rax
test rax, rax
je 0x18009344f
test rbp, rbp
je 0x180093436
mov eax, dword [rbp + 0x7c]
jmp 0x180093439
mov eax, r13d
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 0x180093452
mov rbx, r14
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r8, r15
mov rcx, rbx
call fcn.180101c70
cmp byte [rsi + 0x29], dil
jbe 0x18009348c
nop dword [rax]
mov r8d, edi
lea rdx, str._a_d
mov rcx, rbx
call fcn.180101c70
movzx eax, byte [rsi + 0x29]
inc edi
cmp edi, eax
jl 0x180093470
mov r9, r12
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r15
mov rcx, rbx
call fcn.180101c70
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r15
mov rcx, rbx
call fcn.180101c70
mov eax, dword [rsi + 0x20]
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov r9, r12
mov dword [rsp + 0x20], eax
mov r8, r15
mov rcx, rbx
call fcn.180101c70
test rbx, rbx
je 0x1800936ab
cmp rbx, r14
je 0x1800936ab
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18009350d
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x18009350d
test byte [rbx + 0x1d], 4
jne 0x18009350d
mov rcx, rbx
call fcn.180104690
mov rdi, rax
jmp 0x180093511
mov rdi, qword [rbx + 8]
cmp dword [0x180147090], 0
je 0x180093563
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x18009352c
call qword [0x180147110]
mov rcx, rbx
call qword [0x1801470c8]
dec qword [0x18014bdb8]
movsxd rcx, eax
sub qword [0x18014bd70], rcx
mov rcx, rbx
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x18009356c
call qword [0x180147120]
jmp 0x18009356c
mov rcx, rbx
call qword [0x1801470b8]
test rdi, rdi
je 0x1800936ab
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbp
call fcn.1800fefb0
cmp dword [0x180147090], 0
mov ebx, eax
je 0x1800935e1
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x1800935aa
call qword [0x180147110]
mov rcx, rdi
call qword [0x1801470c8]
dec qword [0x18014bdb8]
movsxd rcx, eax
sub qword [0x18014bd70], rcx
mov rcx, rdi
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x1800935ea
call qword [0x180147120]
jmp 0x1800935ea
mov rcx, rdi
call qword [0x1801470b8]
test ebx, ebx
jne 0x180093c63
xor edi, edi
cmp dword [0x18014b920], 2
jl 0x1800936b5
movdqa xmm3, xmmword [0x180131e20]
mov eax, 3
movdqa xmm2, xmmword [0x180131df0]
pmovsxdq xmm0, xmm3
movd xmm4, eax
lea rax, [rsi + 0x78]
psllq xmm0, xmm4
paddq xmm0, xmm6
paddq xmm0, xmm2
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x180131e10]
paddd xmm0, xmm3
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x180131e30]
psllq xmm1, xmm4
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x70], xmm1
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x180131e40]
psllq xmm1, xmm4
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x80], xmm1
pmovsxdq xmm1, xmm0
movq xmm0, rax
psllq xmm1, xmm4
punpcklqdq xmm0, xmm0
paddq xmm1, xmm0
movdqu xmmword [rsp + 0x90], xmm1
jmp 0x1800936e8
mov eax, 7
jmp 0x180093c65
lea rcx, [rsp + 0x60]
mov rdx, rdi
mov r8d, 8
nop dword [rax]
nop word [rax + rax]
lea rax, [rsi + 0x78]
add rax, rdx
add rdx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub r8, 1
jne 0x1800936d0
mov rdx, qword [rsi + 0x30]
lea r8, str.sqlite_stat1
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov rcx, rbp
mov qword [rsp + 0x30], rdi
mov r14, rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.1801035f0
mov ebx, eax
test eax, eax
je 0x180093733
cmp eax, 1
mov qword [rsi + 0x48], 0x100000
cmove ebx, edi
jmp 0x18009383c
mov r8, qword [rsi + 0x38]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov rdx, qword [rsi + 0x30]
call fcn.1801004e0
mov rdi, rax
test rax, rax
jne 0x180093757
lea ebx, [rax + 7]
jmp 0x18009383a
xor r13d, r13d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov r9d, 0x80
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], r13
lea r8d, [r13 - 1]
call fcn.1800c9e40
mov ebx, eax
test eax, eax
jne 0x1800937cf
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.180101220
cmp eax, 0x64
jne 0x1800937a8
xor edx, edx
mov rcx, rbx
call fcn.1800fdd40
mov r14, rax
mov rcx, rbx
call fcn.1800ffcb0
mov ebx, eax
mov ecx, eax
test eax, eax
jne 0x1800937df
test r14, r14
je 0x1800937d7
mov eax, 0x64
cmp r14, rax
cmovg rax, r14
mov qword [rsi + 0x48], rax
jmp 0x1800937df
cmp eax, 7
je 0x1800937df
mov ebx, r13d
mov qword [rsi + 0x48], 0x100000
cmp dword [0x180147090], r13d
je 0x180093831
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x1800937fa
call qword [0x180147110]
mov rcx, rdi
call qword [0x1801470c8]
dec qword [0x18014bdb8]
movsxd rcx, eax
sub qword [0x18014bd70], rcx
mov rcx, rdi
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x18009383a
call qword [0x180147120]
jmp 0x18009383a
mov rcx, rdi
call qword [0x1801470b8]
xor edi, edi
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
xor r13d, r13d
test ebx, ebx
jne 0x18009391f
cmp rdi, 3
jne 0x180093861
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
cmp byte [rsi + 0x29], r13b
jne 0x180093865
mov rcx, qword [rax + rdi*8]
mov r8, r12
mov rdx, r15
call fcn.1801004e0
mov r14, rax
test rax, rax
je 0x180093906
mov rcx, qword [rsp + rdi*8 + 0x60]
mov r9d, 0x85
mov qword [rsp + 0x30], r13
mov r8d, 0xffffffff
mov qword [rsp + 0x28], rcx
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], r13
call fcn.1800c9e40
cmp dword [0x180147090], r13d
mov ebx, eax
je 0x1800938fb
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x1800938c4
call qword [0x180147110]
mov rcx, r14
call qword [0x1801470c8]
dec qword [0x18014bdb8]
movsxd rcx, eax
sub qword [0x18014bd70], rcx
mov rcx, r14
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x18009390b
call qword [0x180147120]
jmp 0x18009390b
mov rcx, r14
call qword [0x1801470b8]
jmp 0x18009390b
mov ebx, 7
inc rdi
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
cmp rdi, 8
jl 0x180093846
cmp byte [rsi + 0x29], r13b
mov r13d, 0x3b9aca00
je 0x180093c63
mov r8, r12
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r15
call fcn.1801004e0
mov qword [rsi + 0x58], rax
test rax, rax
je 0x180093c5e
call fcn.1800fff70
test eax, eax
jne 0x180093990
lea ecx, [rax + 0x20]
call fcn.1800ca1d0
mov rbx, rax
test rax, rax
je 0x180093990
test rbp, rbp
je 0x180093970
mov r13d, dword [rbp + 0x7c]
xor eax, eax
mov dword [rbx + 0x14], r13d
mov qword [rbx + 8], rax
lea r14, [0x180147850]
mov qword [rbx], rax
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x18], eax
mov word [rbx + 0x1c], ax
jmp 0x18009399a
lea r14, [0x180147850]
mov rbx, r14
mov r9, r12
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r15
mov rcx, rbx
call fcn.180101c70
xor r15d, r15d
mov edi, r15d
cmp byte [rsi + 0x29], r15b
jbe 0x180093a2e
nop dword [rax + rax]
test edi, edi
je 0x1800939f4
mov eax, dword [rbx + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rbx + 0x10]
jb 0x1800939e6
mov r8d, 1
lea rdx, [0x18012c710]
mov rcx, rbx
call fcn.180033d10
jmp 0x1800939f4
mov dword [rbx + 0x18], ecx
mov rcx, rax
mov rax, qword [rbx + 8]
mov byte [rcx + rax], 0x2c
movzx eax, byte [rsi + 0x2a]
lea r9d, [rdi + 2]
mov r8d, edi
mov rcx, rbx
cmp edi, eax
jge 0x180093a18
lea rdx, str.a_dcoalesce___d_a_d_
mov dword [rsp + 0x20], edi
call fcn.180101c70
jmp 0x180093a24
lea rdx, str.a_d__d
call fcn.180101c70
movzx eax, byte [rsi + 0x29]
inc edi
cmp edi, eax
jl 0x1800939c0
lea rdx, str._WHERE_rowid_1
mov rcx, rbx
call fcn.180101c70
test rbx, rbx
je 0x180093c5e
cmp rbx, r14
je 0x180093c5e
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180093a78
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], r15b
cmp dword [rbx + 0x14], r15d
jbe 0x180093a78
test byte [rbx + 0x1d], 4
jne 0x180093a78
mov rcx, rbx
call fcn.180104690
mov r14, rax
jmp 0x180093a7c
mov r14, qword [rbx + 8]
cmp dword [0x180147090], r15d
je 0x180093ace
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x180093a97
call qword [0x180147110]
mov rcx, rbx
call qword [0x1801470c8]
dec qword [0x18014bdb8]
movsxd rcx, eax
sub qword [0x18014bd70], rcx
mov rcx, rbx
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x180093ad7
call qword [0x180147120]
jmp 0x180093ad7
mov rcx, rbx
call qword [0x1801470b8]
test r14, r14
je 0x180093c5e
add rsi, 0xb8
mov edi, r15d
mov qword [rsi], r15
test rbp, rbp
jne 0x180093afb
lea r8, str.NULL
jmp 0x180093b21
mov eax, dword [rbp + 0x70]
cmp eax, 0xa029a697
je 0x180093b60
cmp eax, 0x4b771290
je 0x180093b1a
lea r8, str.invalid
cmp eax, 0xf03b7906
jne 0x180093b21
lea r8, str.unopened
mov ebx, 0x15
lea rdx, str.API_call_with__s_database_connection_pointer
mov ecx, ebx
call fcn.1801003c0
lea rax, [0x180131c04]
mov r9d, 0x1f831
lea r8, str.misuse
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, ebx
call fcn.1801003c0
jmp 0x180093c01
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x180093b6f
call qword [0x180147110]
cmp byte [rbp + 0x69], dil
jne 0x180093b80
mov rcx, rbp
call fcn.18002a100
nop dword [rax]
mov qword [rsp + 0x30], r15
mov r9d, 0x85
mov qword [rsp + 0x28], rsi
mov r8d, 0xffffffff
mov rdx, r14
mov qword [rsp + 0x20], r15
mov rcx, rbp
call fcn.1800d25a0
mov ebx, eax
cmp eax, 0x201
je 0x180093b80
cmp eax, 0x11
jne 0x180093bc7
lea edx, [rax - 0x12]
mov rcx, rbp
call fcn.1800d4420
mov eax, edi
inc edi
test eax, eax
je 0x180093b80
cmp byte [rbp + 0x69], r15b
jne 0x180093bd5
mov rcx, rbp
call fcn.18002a450
cmp byte [rbp + 0x61], r15b
jne 0x180093be8
cmp ebx, 0xc0a
je 0x180093be8
and ebx, dword [rbp + 0x54]
jmp 0x180093bf2
mov rcx, rbp
call fcn.180026100
mov ebx, eax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x180093c01
call qword [0x180147120]
cmp dword [0x180147090], r15d
je 0x180093c53
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x180093c1c
call qword [0x180147110]
mov rcx, r14
call qword [0x1801470c8]
dec qword [0x18014bdb8]
movsxd rcx, eax
sub qword [0x18014bd70], rcx
mov rcx, r14
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x180093c63
call qword [0x180147120]
jmp 0x180093c63
mov rcx, r14
call qword [0x1801470b8]
jmp 0x180093c63
mov ebx, 7
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.18011eb70
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret