Function at 0x140263880
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
movaps xmmword [rsp + 0xb0], xmm6
mov rax, qword [0x140430528]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor esi, esi
mov qword [rcx + 0x18], rdx
lea r14, [0x14042cc70]
movq xmm6, rcx
mov r12, r9
mov r15, r8
mov rbx, rdx
mov rbp, rcx
punpcklqdq xmm6, xmm6
cmp dword [rsp + 0x130], esi
je 0x140263ac4
call fcn.1402d3d20
test eax, eax
jne 0x14026391c
lea ecx, [rsi + 0x20]
call fcn.14029d740
mov rdi, rax
test rax, rax
je 0x14026391c
test rbx, rbx
je 0x140263901
mov eax, dword [rbx + 0x88]
jmp 0x140263906
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 0x14026391f
mov rdi, r14
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r8, r15
mov rcx, rdi
call fcn.1401fcad0
cmp byte [rbp + 0x29], sil
jbe 0x14026395c
nop word [rax + rax]
mov r8d, esi
lea rdx, str._a_d
mov rcx, rdi
call fcn.1401fcad0
movzx eax, byte [rbp + 0x29]
inc esi
cmp esi, eax
jl 0x140263940
mov r9, r12
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r15
mov rcx, rdi
call fcn.1401fcad0
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r15
mov rcx, rdi
call fcn.1401fcad0
mov eax, dword [rbp + 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, rdi
call fcn.1401fcad0
test rdi, rdi
je 0x140263b83
cmp rdi, r14
je 0x140263b83
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1402639dd
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x1402639dd
test byte [rdi + 0x1d], 4
jne 0x1402639dd
mov rcx, rdi
call fcn.1402d5a60
mov rsi, rax
jmp 0x1402639e1
mov rsi, qword [rdi + 8]
cmp dword [0x14042c570], 0
je 0x140263a33
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x1402639fc
call qword [0x14042c5f0]
mov rcx, rdi
call qword [0x14042c5a8]
dec qword [0x1404337e8]
movsxd rcx, eax
sub qword [0x1404337a0], rcx
mov rcx, rdi
call qword [0x14042c598]
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140263a3c
call qword [0x14042c600]
jmp 0x140263a3c
mov rcx, rdi
call qword [0x14042c598]
test rsi, rsi
je 0x140263b83
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rbx
mov rdx, rsi
call fcn.1401f1c40
cmp dword [0x14042c570], 0
mov edi, eax
je 0x140263ab1
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140263a7a
call qword [0x14042c5f0]
mov rcx, rsi
call qword [0x14042c5a8]
dec qword [0x1404337e8]
movsxd rcx, eax
sub qword [0x1404337a0], rcx
mov rcx, rsi
call qword [0x14042c598]
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140263aba
call qword [0x14042c600]
jmp 0x140263aba
mov rcx, rsi
call qword [0x14042c598]
test edi, edi
jne 0x140264166
xor esi, esi
cmp dword [0x140430538], 2
mov qword [rsp + 0xc8], r13
jl 0x140263b8d
movdqa xmm3, xmmword [0x14037de00]
mov eax, 3
movdqa xmm2, xmmword [0x1403e6f10]
pmovsxdq xmm0, xmm3
movd xmm4, eax
lea rax, [rbp + 0x78]
psllq xmm0, xmm4
paddq xmm0, xmm6
paddq xmm0, xmm2
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x1403e6f20]
paddd xmm0, xmm3
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1403e6f30]
psllq xmm1, xmm4
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x70], xmm1
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1403e6f40]
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 0x140263bb8
mov eax, 7
jmp 0x140264168
lea rcx, [rsp + 0x60]
mov rdx, rsi
mov r8d, 8
nop dword [rax + rax]
lea rax, [rbp + 0x78]
add rax, rdx
add rdx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub r8, 1
jne 0x140263ba0
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.1401f91d0
mov edi, eax
test eax, eax
je 0x140263c0e
cmp eax, 1
mov r13d, 0
mov r14d, 0x100000
cmove edi, r13d
jmp 0x140263cf1
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.1401f3a90
mov rsi, rax
test rax, rax
jne 0x140263c32
lea edi, [rax + 7]
jmp 0x140263ce7
xor ecx, ecx
lea rax, [rsp + 0x50]
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.14029d260
mov edi, eax
test eax, eax
jne 0x140263c8c
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1401f5b30
cmp eax, r14d
jne 0x140263c82
xor edx, edx
mov rcx, rdi
call fcn.1401f6380
mov r13, rax
mov rcx, rdi
call fcn.1401f69e0
mov edi, eax
cmp dword [0x14042c570], 0
je 0x140263cde
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140263ca7
call qword [0x14042c5f0]
mov rcx, rsi
call qword [0x14042c5a8]
dec qword [0x1404337e8]
movsxd rcx, eax
sub qword [0x1404337a0], rcx
mov rcx, rsi
call qword [0x14042c598]
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140263ce7
call qword [0x14042c600]
jmp 0x140263ce7
mov rcx, rsi
call qword [0x14042c598]
cmp r13, r14
cmovg r14, r13
xor r13d, r13d
mov qword [rbp + 0x48], r14
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rsi, r13
nop
test edi, edi
jne 0x140263dd9
cmp rsi, 3
jne 0x140263d1b
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
cmp byte [rbp + 0x29], dil
jne 0x140263d1f
mov rcx, qword [rax + rsi*8]
mov r8, r12
mov rdx, r15
call fcn.1401f3a90
mov r14, rax
test rax, rax
je 0x140263dc0
mov rcx, qword [rsp + rsi*8 + 0x60]
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.14029d260
cmp dword [0x14042c570], 0
mov edi, eax
je 0x140263db5
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140263d7e
call qword [0x14042c5f0]
mov rcx, r14
call qword [0x14042c5a8]
dec qword [0x1404337e8]
movsxd rcx, eax
sub qword [0x1404337a0], rcx
mov rcx, r14
call qword [0x14042c598]
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140263dc5
call qword [0x14042c600]
jmp 0x140263dc5
mov rcx, r14
call qword [0x14042c598]
jmp 0x140263dc5
mov edi, 7
inc rsi
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
cmp rsi, 8
jl 0x140263d00
cmp byte [rbp + 0x29], 0
je 0x14026415e
mov r8, r12
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r15
call fcn.1401f3a90
mov qword [rbp + 0x58], rax
test rax, rax
je 0x140264159
call fcn.1402d3d20
test eax, eax
jne 0x140263e4e
lea ecx, [rax + 0x20]
call fcn.14029d740
mov rdi, rax
test rax, rax
je 0x140263e4e
test rbx, rbx
je 0x140263e28
mov eax, dword [rbx + 0x88]
jmp 0x140263e2d
mov eax, 0x3b9aca00
mov qword [rdi + 8], r13
lea r14, [0x14042cc70]
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 0x140263e58
lea r14, [0x14042cc70]
mov rdi, r14
mov r9, r12
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r15
mov rcx, rdi
call fcn.1401fcad0
cmp byte [rbp + 0x29], 0
mov esi, r13d
jbe 0x140263ee4
test esi, esi
je 0x140263eaa
mov eax, dword [rdi + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rdi + 0x10]
jb 0x140263e9c
mov r8d, 1
lea rdx, [0x1403fcd64]
mov rcx, rdi
call fcn.140215d10
jmp 0x140263eaa
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 0x140263ece
lea rdx, str.a_dcoalesce___d_a_d_
mov dword [rsp + 0x20], esi
call fcn.1401fcad0
jmp 0x140263eda
lea rdx, str.a_d__d
call fcn.1401fcad0
movzx eax, byte [rbp + 0x29]
inc esi
cmp esi, eax
jl 0x140263e76
lea rdx, str._WHERE_rowid_1
mov rcx, rdi
call fcn.1401fcad0
test rdi, rdi
je 0x140264159
cmp rdi, r14
je 0x140264159
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140263f2e
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x140263f2e
test byte [rdi + 0x1d], 4
jne 0x140263f2e
mov rcx, rdi
call fcn.1402d5a60
mov r15, rax
jmp 0x140263f32
mov r15, qword [rdi + 8]
cmp dword [0x14042c570], 0
je 0x140263f84
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140263f4d
call qword [0x14042c5f0]
mov rcx, rdi
call qword [0x14042c5a8]
dec qword [0x1404337e8]
movsxd rcx, eax
sub qword [0x1404337a0], rcx
mov rcx, rdi
call qword [0x14042c598]
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140263f8d
call qword [0x14042c600]
jmp 0x140263f8d
mov rcx, rdi
call qword [0x14042c598]
test r15, r15
je 0x140264159
lea r12, [rbp + 0xb8]
mov ebp, r13d
mov qword [r12], r13
test rbx, rbx
jne 0x140263fb2
lea r8, str.NULL
jmp 0x140263fd0
movzx eax, byte [rbx + 0x71]
cmp al, 0x76
je 0x14026400f
cmp al, 0xba
je 0x140263fc9
lea r8, str.invalid
cmp al, 0x6d
jne 0x140263fd0
lea r8, str.unopened
mov edi, reloc.WS2_32.dll_setsockopt
lea rdx, str.API_call_with__s_database_connection_pointer
mov ecx, edi
call fcn.140200310
lea rax, [0x1403e6d44]
mov r9d, 0x225ab
lea r8, str.misuse
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, edi
call fcn.140200310
jmp 0x1402640fc
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14026401e
call qword [0x14042c5f0]
cmp byte [rbx + 0x6f], 0
jne 0x140264030
mov rcx, rbx
call fcn.14020b2a0
nop dword [rax]
mov qword [rsp + 0x30], r13
mov r9d, 0x85
mov qword [rsp + 0x28], r12
mov r8d, 0xffffffff
mov rdx, r15
mov qword [rsp + 0x20], r13
mov rcx, rbx
call fcn.1402a6280
mov r14d, eax
test eax, eax
je 0x1402640bb
cmp byte [rbx + 0x67], 0
jne 0x1402640bb
cmp eax, 0x201
jne 0x140264075
mov ecx, ebp
inc ebp
cmp ecx, 0x19
jl 0x140264030
jmp 0x1402640bb
cmp r14d, 0x11
jne 0x1402640bb
cmp dword [rbx + 0x48], 0
jne 0x1402640af
cmp dword [rbx + 0x28], 0
mov edi, r13d
jle 0x1402640af
mov rsi, r13
nop dword [rax]
mov rax, qword [rbx + 0x20]
mov rcx, qword [rsi + rax + 0x18]
test byte [rcx + 0x72], 8
je 0x1402640a4
call fcn.1402ab160
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x28]
jl 0x140264090
mov eax, ebp
inc ebp
test eax, eax
je 0x140264030
cmp byte [rbx + 0x6f], 0
jne 0x1402640c9
mov rcx, rbx
call fcn.14020b5e0
cmp byte [rbx + 0x67], 0
jne 0x1402640d9
test r14d, r14d
jne 0x1402640d9
mov edi, r13d
jmp 0x1402640e6
mov edx, r14d
mov rcx, rbx
call fcn.1402075f0
mov edi, eax
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x290], r13d
test rcx, rcx
je 0x1402640fc
call qword [0x14042c600]
cmp dword [0x14042c570], 0
je 0x14026414e
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x140264117
call qword [0x14042c5f0]
mov rcx, r15
call qword [0x14042c5a8]
dec qword [0x1404337e8]
movsxd rcx, eax
sub qword [0x1404337a0], rcx
mov rcx, r15
call qword [0x14042c598]
mov rcx, qword [0x140433850]
test rcx, rcx
je 0x14026415e
call qword [0x14042c600]
jmp 0x14026415e
mov rcx, r15
call qword [0x14042c598]
jmp 0x14026415e
mov edi, 7
mov r13, qword [rsp + 0xc8]
mov eax, edi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1402f09e0
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret