Function at 0x10186650
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [ebp + 8], 0x67
mov eax, ecx
push ebx
push esi
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
jle 0x1018668f
push str.Too_many_columns_for_an_rtree_table
push 0x102682b4
call fcn.100e2630
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 1
push eax
call fcn.1014b770
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov edi, dword [ecx + 4]
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x101866a5
mov ebx, dword [ecx + 8]
sub edi, edx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x101866b4
sub ebx, ecx
call fcn.10160610
test eax, eax
jne 0x10186a04
lea eax, [edi + 0x1fa]
add eax, ebx
push 0
push eax
call fcn.100dfb50
mov esi, eax
add esp, 8
test esi, esi
je 0x10186a04
lea eax, [edi + 0x1fa]
add eax, ebx
push eax
push 0
push esi
call fcn.101ee530
add esp, 0xc
mov dword [esi + 0x28], 1
lea ecx, [esi + 0x1f8]
mov dword [esi], 0x1029d140
lea eax, [ecx + 1]
mov dword [esi + 0x20], ecx
add eax, edi
cmp dword [esp + 0x14], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
setne al
mov byte [esi + 0x16], al
push dword [edi + 4]
push ecx
call fcn.101ec960
add esp, 0xc
push ebx
push dword [edi + 8]
push dword [esi + 0x24]
call fcn.101ec960
add esp, 0xc
push dword [esp + 0xc]
call fcn.100e2410
add esp, 4
mov ebx, eax
push dword [edi + 0xc]
push str.CREATE_TABLE_x__s
push ebx
call fcn.100e2800
mov edi, 4
add esp, 0xc
cmp dword [ebp + 8], edi
jle 0x101867a8
nop dword [eax]
mov edx, dword [ebp + 0xc]
mov cl, byte [esi + 0x19]
mov eax, dword [edx + edi*4]
cmp byte [eax], 0x2b
jne 0x10186789
inc cl
mov byte [esi + 0x19], cl
mov eax, dword [edx + edi*4]
inc eax
jmp 0x10186793
test cl, cl
jne 0x101867a8
inc byte [esi + 0x15]
mov eax, dword [edx + edi*4]
push eax
push 0x10278920
push ebx
call fcn.100e2800
inc edi
add esp, 0xc
cmp edi, dword [ebp + 8]
jl 0x10186770
push 0x1027891c
push ebx
call fcn.100e2800
add esp, 8
test ebx, ebx
je 0x1018685a
cmp ebx, 0x1029e320
je 0x1018685a
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x101867ed
mov eax, dword [ebx + 0x10]
mov byte [ecx + eax], 0
cmp dword [ebx + 0xc], 0
jbe 0x101867ed
test byte [ebx + 0x15], 4
jne 0x101867ed
mov ecx, ebx
call fcn.100e2250
jmp 0x101867f0
mov eax, dword [ebx + 4]
push ebx
mov dword [esp + 0x14], eax
call fcn.100dfd40
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x10186864
cmp edi, dword [ebp + 8]
jge 0x10186828
push str.Auxiliary_rtree_columns_must_be_last
push 0x102682b4
call fcn.100e2630
mov ebx, dword [ebp + 0x14]
add esp, 8
mov edi, 1
mov dword [ebx], eax
jmp 0x10186875
mov ebx, dword [esp + 0xc]
push eax
push ebx
call fcn.1014af90
mov edi, eax
add esp, 8
test edi, edi
je 0x10186872
push ebx
call fcn.10162a50
add esp, 4
push eax
push 0x102682b4
call fcn.100e2630
mov ebx, dword [ebp + 0x14]
add esp, 8
mov dword [ebx], eax
jmp 0x10186875
mov ebx, dword [ebp + 0x14]
xor eax, eax
lea edi, [eax + 7]
jmp 0x10186879
mov eax, dword [esp + 0x10]
mov edi, 7
mov ebx, dword [ebp + 0x14]
jmp 0x10186879
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0x10]
push eax
call fcn.100dfd40
add esp, 4
test edi, edi
jne 0x101868c6
mov cl, byte [esi + 0x15]
mov al, cl
shr al, 1
mov byte [esi + 0x14], al
cmp al, 1
jae 0x1018689b
mov eax, str.Too_few_columns_for_an_rtree_table
jmp 0x101868b1
cmp cl, 0xa
jbe 0x101868a7
mov eax, str.Too_many_columns_for_an_rtree_table
jmp 0x101868b1
test cl, 1
je 0x101868d6
mov eax, str.Wrong_number_of_columns_for_an_rtree_table
push eax
push 0x102682b4
call fcn.100e2630
add esp, 8
mov dword [ebx], eax
mov edi, 1
mov ecx, esi
call fcn.101819d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x20]
add cl, 2
shl cl, 2
cmp dword [ebp + 0x18], 0
mov byte [esi + 0x17], cl
je 0x10186935
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x18], 0
call fcn.100e2630
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push ecx
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.101865e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10186962
movzx eax, byte [esi + 0x17]
mov ecx, dword [esp + 0x10]
imul eax, eax, 0x33
add ecx, 0xffffffc0
mov dword [esi + 0x10], ecx
add eax, 4
cmp eax, ecx
jge 0x10186996
mov dword [esi + 0x10], eax
jmp 0x10186996
push dword [esi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.100e2630
add esp, 0xc
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x10]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.101865e0
mov edi, eax
add esp, 4
test edi, edi
je 0x10186976
push dword [esp + 0xc]
call fcn.10162a50
add esp, 4
push eax
push 0x102682b4
jmp 0x1018698c
cmp dword [esi + 0x10], 0x1c0
jge 0x10186996
push dword [esi + 0x24]
mov edi, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call fcn.100e2630
add esp, 8
mov dword [ebx], eax
push dword [esp + 0x14]
call fcn.100dfd40
add esp, 4
test edi, edi
jne 0x101868c6
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x18]
mov edx, dword [esp + 0x10]
push dword [ecx + 8]
push dword [ecx + 4]
mov ecx, esi
call fcn.10186040
mov edi, eax
add esp, 0xc
test edi, edi
je 0x101869f6
push dword [esp + 0xc]
call fcn.10162a50
add esp, 4
push eax
push 0x102682b4
call fcn.100e2630
add esp, 8
mov dword [ebx], eax
mov ecx, esi
call fcn.101819d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret