Function at 0x1402c4bc0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea eax, [r8 - 6]
mov qword [rsp + 0x100], rcx
mov r14, rdx
mov esi, r8d
cmp eax, 0x61
mov rdi, r9
jbe 0x1402c4c38
lea rax, str.Too_many_columns_for_an_rtree_table
cmp r8d, 6
mov ebp, 1
lea rdx, str.Too_few_columns_for_an_rtree_table
cmovge rdx, rax
lea rcx, [0x14046a1c6]
call fcn.14035ca70
mov rdi, qword [rsp + 0x128]
mov qword [rdi], rax
mov eax, ebp
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, 1
mov edx, 1
call fcn.140367a90
mov rcx, qword [rdi + 8]
call sub.msvcrt.dll_strlen
mov rcx, qword [rdi + 0x10]
mov rbp, rax
call sub.msvcrt.dll_strlen
mov r13, rax
call fcn.14035b5c0
test eax, eax
jne 0x1402c4e60
movsxd rbp, ebp
movsxd r13, r13d
lea r12, [rbp + r13 + 0x3ca]
mov rcx, r12
call fcn.140312ca0
test rax, rax
mov rbx, rax
je 0x1402c4e60
test r14, r14
mov r8, r12
mov rcx, rax
lea r12, [rbx + rbp + 0x3c9]
setne r15b
setne r14b
xor edx, edx
movzx r14d, r14b
call sub.msvcrt.dll_memset
lea rcx, [rbx + 0x3c8]
mov byte [rbx + 0x26], r15b
movq xmm1, r12
movq xmm0, rcx
mov r8, rbp
mov dword [rbx + 0x40], 1
punpcklqdq xmm0, xmm1
movups xmmword [rbx + 0x30], xmm0
mov rdx, qword [rdi + 8]
lea rax, [0x140397f60]
mov qword [rbx], rax
call sub.msvcrt.dll_memcpy
mov rdx, qword [rdi + 0x10]
mov r8, r13
mov rcx, r12
lea r13, [rdi + 0x20]
mov r12d, 4
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x100]
call fcn.140362d60
mov r15, qword [rdi + 0x18]
mov rbp, rax
lea rax, [rsp + 0x70]
mov rdx, rax
mov qword [rsp + 0x58], rax
mov rcx, r15
call fcn.14030ae70
mov r9, r15
mov rcx, rbp
lea rdx, str.CREATE_TABLE_x__.s_INT
mov r8d, eax
call fcn.140362c20
lea r15, str.__.s_REAL
jmp 0x1402c4d8f
test al, al
jne 0x1402c4de0
add byte [rbx + 0x25], 1
mov rcx, r9
mov qword [rsp + 0x50], r9
add r12d, 1
mov rdx, qword [rsp + 0x58]
add r13, 8
call fcn.14030ae70
mov rdx, qword [r15 + r14*8]
mov rcx, rbp
mov r9, qword [rsp + 0x50]
mov r8d, eax
call fcn.140362c20
cmp esi, r12d
je 0x1402c4de0
mov r9, qword [r13]
movzx eax, byte [rbx + 0x29]
cmp byte [r9], 0x2b
jne 0x1402c4d50
mov rdx, qword [rsp + 0x58]
add r9, 1
add eax, 1
add r12d, 1
mov rcx, r9
mov byte [rbx + 0x29], al
add r13, 8
mov qword [rsp + 0x50], r9
call fcn.14030ae70
mov r9, qword [rsp + 0x50]
lea rdx, str.__.s
mov rcx, rbp
mov r8d, eax
call fcn.140362c20
cmp esi, r12d
jne 0x1402c4d8f
nop dword [rax]
lea rdx, [0x140473082]
mov rcx, rbp
call fcn.140362c20
test rbp, rbp
je 0x1402c4e70
lea r15, [0x1403982e0]
cmp rbp, r15
je 0x1402c4e70
mov rcx, rbp
call fcn.14032b160
mov rcx, rbp
mov r14, rax
call fcn.14035ad80
test r14, r14
je 0x1402c4e70
cmp esi, r12d
jle 0x1402c4e80
lea rcx, [0x14046a1c6]
lea rdx, str.Auxiliary_rtree_columns_must_be_last
call fcn.14035ca70
mov rdi, qword [rsp + 0x128]
mov rcx, r14
mov qword [rdi], rax
call fcn.14035ad80
mov ebp, 1
sub dword [rbx + 0x40], 1
jne 0x1402c4c1f
mov rcx, rbx
call fcn.1402c8b10
jmp 0x1402c4c1f
mov ebp, 7
jmp 0x1402c4c1f
xor ecx, ecx
mov ebp, 7
call fcn.14035ad80
jmp 0x1402c4e48
mov rcx, qword [rsp + 0x100]
mov rdx, r14
call fcn.140358980
test eax, eax
mov ebp, eax
jne 0x1402c4ee9
mov rcx, r14
call fcn.14035ad80
movzx eax, byte [rbx + 0x25]
mov edx, eax
shr dl, 1
cmp al, 1
mov byte [rbx + 0x24], dl
jbe 0x1402c4fca
cmp al, 0xa
ja 0x1402c4ee0
lea rdx, str.Wrong_number_of_columns_for_an_rtree_table
test al, 1
je 0x1402c4f20
lea rcx, [0x14046a1c6]
call fcn.14035ca70
mov rdi, qword [rsp + 0x128]
mov qword [rdi], rax
jmp 0x1402c4e43
lea rdx, str.Too_many_columns_for_an_rtree_table
jmp 0x1402c4ec0
mov rcx, qword [rsp + 0x100]
call fcn.1403593c0
lea rcx, [0x14046a1c6]
mov rdx, rax
call fcn.14035ca70
mov rdi, qword [rsp + 0x128]
mov rcx, r14
mov qword [rdi], rax
call fcn.14035ad80
jmp 0x1402c4e48
mov r8d, dword [rsp + 0x130]
lea eax, [rax*4 + 8]
mov rdx, qword [rbx + 0x30]
mov byte [rbx + 0x27], al
test r8d, r8d
je 0x1402c4fd6
lea rcx, str.PRAGMA__Q.page_size
call fcn.14035ca70
test rax, rax
mov rsi, rax
je 0x1402c538e
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x100]
mov r8d, pe_nt_image_headers64
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x20], rax
call fcn.140312880
test eax, eax
mov ebp, eax
je 0x1402c543d
mov rcx, qword [rsp + 0x100]
call fcn.1403593c0
lea rcx, [0x14046a1c6]
mov rdx, rax
call fcn.14035ca70
mov rdi, qword [rsp + 0x128]
mov rcx, rsi
mov qword [rdi], rax
call fcn.14035ad80
jmp 0x1402c4e48
lea rdx, str.Too_few_columns_for_an_rtree_table
jmp 0x1402c4ec0
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.14035ca70
test rax, rax
mov rsi, rax
je 0x1402c538e
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x100]
mov r8d, pe_nt_image_headers64
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x20], rax
call fcn.140312880
test eax, eax
mov ebp, eax
jne 0x1402c4f96
mov rbp, qword [rsp + 0x70]
mov rcx, rbp
call fcn.140361710
cmp eax, 0x64
je 0x1402c5703
mov rcx, rbp
call fcn.14035ab70
test eax, eax
mov ebp, eax
jne 0x1402c4f96
cmp dword [rbx + 0x20], 0x1bf
jle 0x1402c56d6
mov rcx, rsi
call fcn.14035ad80
mov rax, qword [rsp + 0x100]
mov r14, qword [rdi + 0x10]
mov rsi, qword [rdi + 8]
mov qword [rbx + 0x18], rax
lea rax, [rbx + 0x78]
mov rdx, qword [rbx + 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x70], rax
lea rax, [rbx + 0x80]
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x78], rax
lea rax, [rbx + 0x88]
mov qword [rsp + 0x80], rax
lea rax, [rbx + 0x90]
mov qword [rsp + 0x88], rax
lea rax, [rbx + 0x98]
mov qword [rsp + 0x90], rax
lea rax, [rbx + 0xa0]
mov qword [rsp + 0x98], rax
lea rax, [rbx + 0xa8]
mov qword [rsp + 0xa0], rax
lea r8, str.sqlite_stat1
mov qword [rsp + 0x38], 0
lea rax, [rbx + 0xb0]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0xa8], rax
call fcn.1403653f0
test eax, eax
mov ebp, eax
je 0x1402c53d2
cmp eax, 1
mov qword [rbx + 0x48], 0x100000
je 0x1402c51c5
cmp byte [rbx + 0x29], 0
jne 0x1402c5260
mov rcx, qword [rsp + 0x100]
call fcn.1403593c0
lea rcx, [0x14046a1c6]
mov rdx, rax
call fcn.14035ca70
mov rdi, qword [rsp + 0x128]
mov qword [rdi], rax
jmp 0x1402c4e48
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.140361710
mov edx, 0x64
cmp eax, 0x64
je 0x1402c578d
mov rcx, rbp
mov qword [rsp + 0x50], rdx
call fcn.14035ab70
mov rcx, rdi
mov ebp, eax
call fcn.14035ad80
mov rdx, qword [rsp + 0x50]
test ebp, ebp
mov qword [rbx + 0x48], rdx
jne 0x1402c5150
lea r13, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
xor edi, edi
nop
cmp rdi, 3
je 0x1402c53c0
lea rax, str._b9G_
mov rcx, qword [rax + rdi*8]
mov r8, r14
mov rdx, rsi
call fcn.14035ca70
test rax, rax
mov r12, rax
je 0x1402c53a0
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov rdx, r12
mov r8d, 0x85
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x100]
mov rax, qword [rax + rdi*8]
mov qword [rsp + 0x20], rax
call fcn.140312880
mov rcx, r12
mov ebp, eax
call fcn.14035ad80
lea eax, [rdi + 1]
cmp eax, 7
setle dl
test ebp, ebp
sete al
add rdi, 1
test dl, al
jne 0x1402c51d0
cmp byte [rbx + 0x29], 0
je 0x1402c5376
nop word cs:[rax + rax]
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov r8, r14
mov rdx, rsi
call fcn.14035ca70
test rax, rax
mov qword [rbx + 0x58], rax
je 0x1402c53b1
mov rcx, qword [rsp + 0x100]
call fcn.140362d60
mov r9, r14
mov r8, rsi
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov rcx, rax
mov rdi, rax
call fcn.140362c20
cmp byte [rbx + 0x29], 0
je 0x1402c5699
lea rsi, str.a_d__d
xor r8d, r8d
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
mov ebp, 1
call fcn.140362c20
cmp byte [rbx + 0x29], 1
jbe 0x1402c5699
mov eax, dword [rdi + 0x18]
lea edx, [rax + 1]
cmp edx, dword [rdi + 0x10]
jae 0x1402c567f
add rax, qword [rdi + 8]
mov dword [rdi + 0x18], edx
mov byte [rax], 0x2c
lea r9d, [rbp + 2]
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
add ebp, 1
call fcn.140362c20
movzx eax, byte [rbx + 0x29]
cmp eax, ebp
jg 0x1402c52d8
lea rdx, str._WHERE_rowid_1
mov rcx, rdi
call fcn.140362c20
cmp rdi, r15
je 0x1402c53b1
mov rcx, rdi
call fcn.14032b160
mov rcx, rdi
mov rsi, rax
call fcn.14035ad80
test rsi, rsi
je 0x1402c53b1
mov rcx, qword [rsp + 0x100]
lea rax, [rbx + 0xb8]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x28], 0
mov r8d, 0x85
mov qword [rsp + 0x20], rax
call fcn.140312880
mov rcx, rsi
mov ebp, eax
call fcn.14035ad80
test ebp, ebp
jne 0x1402c515a
mov rax, qword [rsp + 0x120]
mov qword [rax], rbx
jmp 0x1402c4c1f
mov ebp, 7
jmp 0x1402c4f96
xor ecx, ecx
call fcn.14035ad80
cmp byte [rbx + 0x29], 0
jne 0x1402c5260
mov ebp, 7
jmp 0x1402c515a
cmp byte [rbx + 0x29], 0
mov rcx, r13
jne 0x1402c51e5
jmp 0x1402c51da
mov rdx, qword [rbx + 0x30]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov r8, qword [rbx + 0x38]
call fcn.14035ca70
test rax, rax
mov rdi, rax
je 0x1402c566d
mov rcx, qword [rsp + 0x100]
xor r9d, r9d
mov rdx, rdi
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x68]
mov r8d, pe_nt_image_headers64
mov qword [rsp + 0x20], rax
call fcn.140312880
test eax, eax
mov ebp, eax
je 0x1402c5186
mov rcx, rdi
call fcn.14035ad80
mov qword [rbx + 0x48], 0x64
jmp 0x1402c5150
mov r13, qword [rsp + 0x70]
mov rcx, r13
call fcn.140361710
cmp eax, 0x64
je 0x1402c5730
mov rcx, r13
call fcn.14035ab70
test eax, eax
jne 0x1402c5729
mov dword [rbx + 0x20], 0xffffffc0
mov rcx, rsi
call fcn.14035ad80
mov rax, qword [rsp + 0x100]
mov r14, qword [rdi + 0x10]
mov rsi, qword [rdi + 8]
mov qword [rbx + 0x18], rax
call fcn.14035b5c0
test eax, eax
jne 0x1402c55fc
mov ecx, dword [0x140398100]
test ecx, ecx
je 0x1402c56c3
mov rcx, qword [0x140397da0]
test rcx, rcx
je 0x1402c54b3
call qword [0x140398180]
mov ecx, 0x20
call fcn.140312d00
mov rdi, rax
test rdi, rdi
je 0x1402c55fc
cmp qword [rsp + 0x100], 0
mov eax, 0x3b9aca00
je 0x1402c54e7
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 0x88]
xor edx, edx
pxor xmm0, xmm0
mov dword [rdi + 0x14], eax
mov r9, r14
mov word [rdi + 0x1c], dx
mov r8, rsi
mov rcx, rdi
movups xmmword [rdi], xmm0
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov dword [rdi + 0x10], 0
mov dword [rdi + 0x18], 0
call fcn.140362c20
cmp byte [rbx + 0x29], 0
je 0x1402c5549
lea r12, str._a_d
nop word [rax + rax]
mov r8d, ebp
mov rdx, r12
mov rcx, rdi
call fcn.140362c20
movzx eax, byte [rbx + 0x29]
add ebp, 1
cmp ebp, eax
jl 0x1402c5530
mov r9, r14
mov r8, rsi
mov rcx, rdi
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
call fcn.140362c20
mov r9, r14
mov r8, rsi
mov rcx, rdi
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
call fcn.140362c20
mov eax, dword [rbx + 0x20]
mov r9, r14
mov r8, rsi
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140362c20
cmp rdi, r15
je 0x1402c53b1
mov rax, qword [rdi + 8]
test rax, rax
je 0x1402c56b6
mov edx, dword [rdi + 0x18]
mov byte [rax + rdx], 0
mov eax, dword [rdi + 0x14]
test eax, eax
je 0x1402c55bd
test byte [rdi + 0x1d], 4
je 0x1402c577d
mov r12, qword [rdi + 8]
mov rcx, rdi
call fcn.14035ad80
test r12, r12
je 0x1402c53b1
mov rcx, qword [rsp + 0x100]
xor r8d, r8d
mov rdx, r12
call fcn.14035a0f0
mov rcx, r12
mov ebp, eax
call fcn.14035ad80
test ebp, ebp
je 0x1402c5082
jmp 0x1402c515a
mov r9, r14
mov r8, rsi
mov rcx, r15
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
call fcn.140362c20
cmp byte [rbx + 0x29], 0
lea rdi, [0x1403982e0]
jne 0x1402c5520
mov r9, r14
mov r8, rsi
mov rcx, r15
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
call fcn.140362c20
mov r9, r14
mov r8, rsi
mov rcx, r15
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
call fcn.140362c20
mov eax, dword [rbx + 0x20]
mov r9, r14
mov r8, rsi
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov rcx, r15
mov dword [rsp + 0x20], eax
call fcn.140362c20
jmp 0x1402c53b1
mov qword [rbx + 0x48], 0x64
mov ebp, 7
jmp 0x1402c5150
lea rdx, [0x14046a5d0]
mov r8d, 1
mov rcx, rdi
call fcn.140245710
jmp 0x1402c52f1
lea rdx, str._WHERE_rowid_1
mov rcx, rdi
call fcn.140362c20
test rdi, rdi
jne 0x1402c531d
jmp 0x1402c53b1
mov rcx, rdi
call fcn.14035ad80
jmp 0x1402c53b1
mov ecx, 0x20
call qword [0x140398120]
mov rdi, rax
jmp 0x1402c54c0
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov ebp, 0x10b
call fcn.14035ca70
mov rdi, qword [rsp + 0x128]
mov rcx, rsi
mov qword [rdi], rax
call fcn.14035ad80
jmp 0x1402c4e48
xor edx, edx
mov rcx, rbp
call fcn.14023f9a0
mov rcx, rax
call fcn.14033f270
mov rcx, rbp
mov r14, rax
call fcn.14023f930
mov dword [rbx + 0x20], r14d
jmp 0x1402c5047
mov ebp, eax
jmp 0x1402c4f96
xor edx, edx
mov rcx, r13
call fcn.14023f9a0
mov rcx, rax
call fcn.14033f270
mov rcx, r13
mov r12, rax
call fcn.14023f930
mov rcx, r13
call fcn.14035ab70
test eax, eax
jne 0x1402c5729
movzx eax, byte [rbx + 0x27]
lea r14d, [r12 - 0x40]
mov dword [rbx + 0x20], r14d
imul eax, eax, 0x33
add eax, 4
cmp r14d, eax
jle 0x1402c546a
mov dword [rbx + 0x20], eax
jmp 0x1402c546a
mov rcx, rdi
call fcn.14036cb50
mov r12, rax
jmp 0x1402c55c1
mov rcx, rbp
call fcn.140353e40
mov edx, 0x64
cmp rax, rdx
cmovge rdx, rax
jmp 0x1402c51a1