Function at 0x140124240
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push r12
push r13
push r15
sub rsp, 0x80
lea rax, str.Wrong_number_of_columns_for_an_rtree_table
mov qword [r11 - 0x60], 0
mov qword [r11 - 0x58], rax
mov r13, r9
lea rax, str.Too_few_columns_for_an_rtree_table
mov r12, rdx
mov qword [r11 - 0x50], rax
mov r15, rcx
lea rax, str.Too_many_columns_for_an_rtree_table
mov qword [r11 - 0x48], rax
lea rax, str.Auxiliary_rtree_columns_must_be_last
mov qword [r11 - 0x40], rax
lea eax, [r8 - 6]
cmp eax, 0x61
ja 0x1401249b4
mov edx, 1
mov qword [r11 + 0x20], rbx
mov r8d, edx
mov qword [r11 - 0x30], rdi
call fcn.140089340
mov rax, qword [r13 + 8]
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1401242d0
mov rax, qword [r13 + 0x10]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1401242e0
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x60], r14
call fcn.140195a20
test eax, eax
jne 0x1401249aa
movsxd rsi, ebx
movsxd r14, edi
lea rbp, [r14 + rsi]
lea rcx, [rbp + 0x3ca]
call fcn.140160ac0
mov rbx, rax
test rax, rax
je 0x1401249aa
lea r8, [rbp + 0x3ca]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140211540]
mov dword [rbx + 0x40], 1
mov qword [rbx], rax
lea rcx, [rbx + 0x3c8]
lea eax, [rdi + 1]
mov qword [rbx + 0x30], rcx
movsxd rdx, eax
mov r8, r14
add rdx, rcx
mov qword [rbx + 0x38], rdx
test r12, r12
setne al
mov byte [rbx + 0x26], al
mov rdx, qword [r13 + 8]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [r13 + 0x10]
mov r8, rsi
mov rcx, qword [rbx + 0x38]
call sub.VCRUNTIME140.dll_memcpy
call fcn.140195a20
lea rsi, [0x14020e910]
test eax, eax
jne 0x1401243d1
lea ecx, [rax + 0x20]
call fcn.140160ac0
mov rdi, rax
test rax, rax
je 0x1401243d1
test r15, r15
je 0x1401243b4
mov eax, dword [r15 + 0x88]
jmp 0x1401243b9
mov eax, 0x3b9aca00
xor ecx, ecx
mov dword [rdi + 0x14], eax
mov qword [rdi + 8], rcx
mov qword [rdi], rcx
mov dword [rdi + 0x10], ecx
mov dword [rdi + 0x18], ecx
mov word [rdi + 0x1c], cx
jmp 0x1401243d4
mov rdi, rsi
mov rcx, qword [r13 + 0x18]
lea rdx, [rsp + 0x30]
call fcn.14015b4f0
mov r9, qword [r13 + 0x18]
lea rdx, str.CREATE_TABLE_x__.s_INT
mov r8d, eax
mov rcx, rdi
call fcn.140084d90
movsxd rbp, dword [rsp + 0xb0]
mov r12d, 4
mov qword [rsp + 0x30], rbp
cmp rbp, r12
jle 0x1401244c1
mov r15, qword [rsp + 0x30]
lea r14, str.__.s_REAL
mov ebp, r12d
nop dword [rax]
nop word [rax + rax]
mov rsi, qword [r13 + rbp*8]
movzx eax, byte [rbx + 0x29]
cmp byte [rsi], 0x2b
jne 0x14012445f
inc al
lea rdx, [rsp + 0x30]
inc rsi
mov byte [rbx + 0x29], al
mov rcx, rsi
lea r14, str.__.s
call fcn.14015b4f0
mov r8d, eax
jmp 0x14012448b
test al, al
jne 0x1401244ab
inc byte [rbx + 0x25]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14015b4f0
mov r8d, eax
mov rax, qword [rsp + 0xa8]
neg rax
sbb rcx, rcx
and ecx, 8
mov r14, qword [rcx + r14]
mov r9, rsi
mov rdx, r14
mov rcx, rdi
call fcn.140084d90
inc r12d
lea r14, str.__.s_REAL
inc rbp
cmp rbp, r15
jl 0x140124430
mov r15, qword [rsp + 0xa0]
lea rsi, [0x14020e910]
mov ebp, dword [rsp + 0xb0]
lea rdx, [0x1401db0d8]
mov rcx, rdi
call fcn.140084d90
test rdi, rdi
je 0x140124813
cmp rdi, rsi
je 0x140124813
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14012450b
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x14012450b
test byte [rdi + 0x1d], 4
jne 0x14012450b
mov rcx, rdi
call fcn.140197250
mov rsi, rax
jmp 0x14012450f
mov rsi, qword [rdi + 8]
cmp dword [0x14020e0b0], 0
je 0x140124561
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012452a
call qword [0x14020e130]
mov rcx, rdi
call qword [0x14020e0e8]
dec qword [0x140213658]
movsxd rcx, eax
sub qword [0x140213610], rcx
mov rcx, rdi
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012456a
call qword [0x14020e140]
jmp 0x14012456a
mov rcx, rdi
call qword [0x14020e0d8]
test rsi, rsi
je 0x140124813
mov r14, qword [rsp + 0xc8]
cmp r12d, ebp
jge 0x14012459a
lea rdx, str.Auxiliary_rtree_columns_must_be_last
lea rcx, [0x1401d47c0]
call fcn.1400a6650
mov edi, 1
jmp 0x1401245c2
mov rdx, rsi
mov rcx, r15
call fcn.140082d80
mov edi, eax
test eax, eax
je 0x1401245c5
mov rcx, r15
call fcn.1400a8040
mov rdx, rax
lea rcx, [0x1401d47c0]
call fcn.1400a6650
mov qword [r14], rax
cmp dword [0x14020e0b0], 0
je 0x140124617
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x1401245e0
call qword [0x14020e130]
mov rcx, rsi
call qword [0x14020e0e8]
dec qword [0x140213658]
movsxd rcx, eax
sub qword [0x140213610], rcx
mov rcx, rsi
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x140124620
call qword [0x14020e140]
jmp 0x140124620
mov rcx, rsi
call qword [0x14020e0d8]
test edi, edi
jne 0x140124818
movzx ecx, byte [rbx + 0x25]
movzx eax, cl
shr al, 1
mov byte [rbx + 0x24], al
cmp al, 1
jae 0x140124641
lea rdx, str.Too_few_columns_for_an_rtree_table
jmp 0x14012465b
cmp cl, 0xa
jbe 0x14012464f
lea rdx, str.Too_many_columns_for_an_rtree_table
jmp 0x14012465b
test cl, 1
je 0x140124674
lea rdx, str.Wrong_number_of_columns_for_an_rtree_table
lea rcx, [0x1401d47c0]
call fcn.1400a6650
mov qword [r14], rax
mov edi, 1
jmp 0x140124818
mov r12d, dword [rsp + 0xd0]
add cl, 2
mov rdx, qword [rbx + 0x30]
shl cl, 2
mov byte [rbx + 0x27], cl
test r12d, r12d
je 0x1401246e1
lea rcx, str.PRAGMA__Q.page_size
mov dword [rsp + 0xb0], 0
call fcn.1400a6650
lea r8, [rsp + 0xb0]
mov rdx, rax
mov rcx, r15
mov rsi, rax
call fcn.140106950
mov edi, eax
test eax, eax
jne 0x140124709
movzx ecx, byte [rbx + 0x27]
mov edx, dword [rsp + 0xb0]
imul eax, ecx, 0x33
add edx, 0xffffffc0
mov dword [rbx + 0x20], edx
add eax, 4
cmp eax, edx
jge 0x14012473e
mov dword [rbx + 0x20], eax
jmp 0x14012473e
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.1400a6650
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, r15
mov rsi, rax
call fcn.140106950
mov edi, eax
test eax, eax
je 0x14012471d
mov rcx, r15
call fcn.1400a8040
mov rdx, rax
lea rcx, [0x1401d47c0]
jmp 0x140124736
cmp dword [rbx + 0x20], 0x1c0
jge 0x14012473e
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.1400a6650
mov qword [r14], rax
test rsi, rsi
je 0x14012479e
cmp dword [0x14020e0b0], 0
je 0x140124795
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012475e
call qword [0x14020e130]
mov rcx, rsi
call qword [0x14020e0e8]
dec qword [0x140213658]
movsxd rcx, eax
sub qword [0x140213610], rcx
mov rcx, rsi
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012479e
call qword [0x14020e140]
jmp 0x14012479e
mov rcx, rsi
call qword [0x14020e0d8]
test edi, edi
jne 0x140124818
mov r9, qword [r13 + 0x10]
mov rdx, r15
mov r8, qword [r13 + 8]
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.140125070
mov edi, eax
test eax, eax
je 0x1401247dc
mov rcx, r15
call fcn.1400a8040
mov rdx, rax
lea rcx, [0x1401d47c0]
call fcn.1400a6650
mov qword [r14], rax
jmp 0x140124818
mov rax, qword [rsp + 0xc0]
mov qword [rax], rbx
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x68]
add rsp, 0x80
pop r15
pop r13
pop r12
ret
mov edi, 7
add dword [rbx + 0x40], 0xffffffff
jne 0x1401249a3
mov rsi, qword [rbx + 0x70]
mov byte [rbx + 0x28], 0
test rsi, rsi
je 0x140124876
cmp dword [rbx + 0x50], 0
jne 0x140124876
mov qword [rbx + 0x70], 0
mov rbp, qword [rsi + 0x20]
mov r14, qword [rsi + 0x18]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140124854
call qword [0x14020e130]
mov rdx, rsi
mov rcx, rbp
call fcn.140138d80
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14012486e
call qword [0x14020e140]
mov rcx, r14
call fcn.14007ede0
mov rcx, qword [rbx + 0x78]
call fcn.14007ede0
mov rcx, qword [rbx + 0x80]
call fcn.14007ede0
mov rcx, qword [rbx + 0x88]
call fcn.14007ede0
mov rcx, qword [rbx + 0x90]
call fcn.14007ede0
mov rcx, qword [rbx + 0x98]
call fcn.14007ede0
mov rcx, qword [rbx + 0xa0]
call fcn.14007ede0
mov rcx, qword [rbx + 0xa8]
call fcn.14007ede0
mov rcx, qword [rbx + 0xb0]
call fcn.14007ede0
mov rcx, qword [rbx + 0xb8]
call fcn.14007ede0
mov rsi, qword [rbx + 0x58]
test rsi, rsi
je 0x140124943
cmp dword [0x14020e0b0], 0
je 0x14012493a
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x140124903
call qword [0x14020e130]
mov rcx, rsi
call qword [0x14020e0e8]
dec qword [0x140213658]
mov rcx, rsi
movsxd rdx, eax
sub qword [0x140213610], rdx
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012494a
call qword [0x14020e140]
jmp 0x140124943
mov rcx, rsi
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
cmp dword [0x14020e0b0], 0
je 0x14012499a
test rcx, rcx
je 0x14012495e
call qword [0x14020e130]
mov rcx, rbx
call qword [0x14020e0e8]
dec qword [0x140213658]
movsxd rcx, eax
sub qword [0x140213610], rcx
mov rcx, rbx
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x1401249a3
call qword [0x14020e140]
mov eax, edi
jmp 0x1401247e9
mov rcx, rbx
call qword [0x14020e0d8]
mov eax, edi
jmp 0x1401247e9
mov eax, 7
jmp 0x1401247e9
cmp r8d, 6
lea rcx, [0x1401d47c0]
mov eax, 0x18
mov edx, 0x10
cmovge edx, eax
mov rdx, qword [rsp + rdx + 0x38]
call fcn.1400a6650
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rax
mov eax, 1
add rsp, 0x80
pop r15
pop r13
pop r12
ret