Function at 0x100e6720
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10140004]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [edx - 6]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], str.Wrong_number_of_columns_for_an_rtree_table
mov dword [esp + 0x34], str.Too_few_columns_for_an_rtree_table
mov dword [esp + 0x38], str.Too_many_columns_for_an_rtree_table
mov dword [esp + 0x3c], str.Auxiliary_rtree_columns_must_be_last
push edi
cmp eax, 0x61
ja 0x100e6b62
push 1
push 1
push ecx
call fcn.100a1d10
mov edi, dword [esi + 4]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100e67a2
mov ebx, dword [esi + 8]
sub edi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100e67b1
sub ebx, ecx
call fcn.100be0c0
test eax, eax
jne 0x100e6b4b
lea eax, [edi + 0x1fa]
add eax, ebx
push 0
push eax
call fcn.1001cb50
mov esi, eax
add esp, 8
test esi, esi
je 0x100e6b4b
lea eax, [edi + 0x1fa]
add eax, ebx
push eax
push 0
push esi
call fcn.10106200
add esp, 0xc
mov dword [esi + 0x28], 1
lea ecx, [esi + 0x1f8]
mov dword [esi], 0x10142678
lea eax, [ecx + 1]
mov dword [esi + 0x20], ecx
add eax, edi
cmp dword [esp + 0x1c], 0
push edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
setne al
mov byte [esi + 0x16], al
push dword [edi + 4]
push ecx
call fcn.10107690
add esp, 0xc
push ebx
push dword [edi + 8]
push dword [esi + 0x24]
call fcn.10107690
add esp, 0xc
push dword [esp + 0x10]
call fcn.1001fae0
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x24]
add esp, 4
mov dword [esp + 0x20], 0
mov ebx, eax
mov dword [esp + 0x24], ebx
call fcn.100bcf90
push dword [edi + 0xc]
push eax
push str.CREATE_TABLE_x__.s_INT
push ebx
call fcn.1001fec0
mov edi, 4
add esp, 0x10
cmp dword [esp + 0x18], edi
jle 0x100e68f9
mov eax, dword [esp + 0x28]
mov ebx, dword [eax + edi*4]
mov al, byte [esi + 0x19]
cmp byte [ebx], 0x2b
jne 0x100e68b5
lea ecx, [ebx + 1]
mov dword [esp + 0x20], 0
inc al
lea edx, [esp + 0x20]
push ecx
mov byte [esi + 0x19], al
call fcn.100bcf90
push eax
push str.__.s
jmp 0x100e68e2
test al, al
jne 0x100e68f5
inc byte [esi + 0x15]
lea edx, [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0x20], 0
call fcn.100bcf90
push ebx
push eax
mov eax, dword [esp + 0x24]
neg eax
sbb eax, eax
and eax, 4
push dword [eax + 0x1012ac00]
push dword [esp + 0x30]
call fcn.1001fec0
inc edi
add esp, 0x10
cmp edi, dword [esp + 0x18]
jl 0x100e6884
mov ebx, dword [esp + 0x24]
push 0x1013aad4
push ebx
call fcn.1001fec0
push ebx
call fcn.1001f9f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100e693a
push ebx
lea edi, [eax + 7]
call fcn.1001cd70
add esp, 4
mov ecx, esi
call fcn.100e19e0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
cmp edi, dword [esp + 0x18]
jge 0x100e697e
push str.Auxiliary_rtree_columns_must_be_last
push 0x10133674
call fcn.1001fce0
mov ecx, dword [esp + 0x1c]
mov edi, 1
mov dword [ecx], eax
push ebx
call fcn.1001cd70
add esp, 0xc
mov ecx, esi
call fcn.100e19e0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
push ebx
push dword [esp + 0x14]
call fcn.100a1200
mov edi, eax
add esp, 8
test edi, edi
jne 0x100e6a87
push ebx
call fcn.1001cd70
mov cl, byte [esi + 0x15]
add esp, 4
mov al, cl
shr al, 1
mov byte [esi + 0x14], al
cmp al, 1
jae 0x100e69b3
mov eax, str.Too_few_columns_for_an_rtree_table
jmp 0x100e69c9
cmp cl, 0xa
jbe 0x100e69bf
mov eax, str.Too_many_columns_for_an_rtree_table
jmp 0x100e69c9
test cl, 1
je 0x100e69e7
mov eax, str.Wrong_number_of_columns_for_an_rtree_table
push eax
push 0x10133674
call fcn.1001fce0
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edi, 1
mov dword [ecx], eax
jmp 0x100e6963
mov eax, dword [esi + 0x20]
add cl, 2
shl cl, 2
cmp dword [ebp + 0x18], 0
mov byte [esi + 0x17], cl
je 0x100e6a58
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x24], 0
call fcn.1001fce0
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea eax, [esp + 0x24]
mov edx, ebx
push eax
call fcn.100e66b0
add esp, 0xc
mov dword [esp + 0x18], eax
mov edi, eax
test eax, eax
jne 0x100e6a87
movzx ecx, byte [esi + 0x17]
mov edx, dword [esp + 0x1c]
imul eax, ecx, 0x33
add edx, 0xffffffc0
mov dword [esi + 0x10], edx
add eax, 4
cmp eax, edx
jge 0x100e6ad5
push ebx
mov dword [esi + 0x10], eax
call fcn.1001cd70
add esp, 4
jmp 0x100e6aec
push dword [esi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.1001fce0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov ebx, eax
lea eax, [esi + 0x10]
mov edx, ebx
push eax
call fcn.100e66b0
add esp, 4
mov dword [esp + 0x18], eax
mov edi, eax
test eax, eax
je 0x100e6aa9
push dword [esp + 0x10]
call fcn.100c07b0
add esp, 4
push eax
push 0x10133674
call fcn.1001fce0
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jmp 0x100e695a
cmp dword [esi + 0x10], 0x1c0
jge 0x100e6ad5
push dword [esi + 0x24]
push str.undersize_RTree_blobs_in___q_node_
call fcn.1001fce0
mov ecx, dword [esp + 0x1c]
push ebx
mov dword [ecx], eax
call fcn.1001cd70
mov edi, 0x10b
jmp 0x100e6960
push ebx
call fcn.1001cd70
mov eax, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test eax, eax
jne 0x100e6963
mov eax, dword [esp + 0x28]
mov ecx, esi
push dword [ebp + 0x18]
mov ebx, dword [esp + 0x14]
mov edx, ebx
push dword [eax + 8]
push dword [eax + 4]
call fcn.100e6180
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100e6b31
push ebx
call fcn.100c07b0
add esp, 4
push eax
push 0x10133674
call fcn.1001fce0
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [ecx], eax
jmp 0x100e6963
mov eax, dword [esp + 0x2c]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 4
cmp edx, 6
cmovge eax, ecx
push dword [esp + eax + 0x38]
push 0x10133674
call fcn.1001fce0
mov ecx, dword [esp + 0x4c]
add esp, 8
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret