Function at 0x1010fa70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], ebx
lea eax, [ecx - 6]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], str.Wrong_number_of_columns_for_an_rtree_table
mov dword [esp + 0x24], str.Too_few_columns_for_an_rtree_table
mov dword [esp + 0x28], str.Too_many_columns_for_an_rtree_table
mov dword [esp + 0x2c], str.Auxiliary_rtree_columns_must_be_last
cmp eax, 0x61
ja 0x10110175
push 1
push 1
push ebx
call fcn.100bb120
add esp, 0xc
push 2
push ebx
call fcn.100bb120
mov ecx, dword [ebp + 0xc]
add esp, 8
mov edi, dword [ecx + 4]
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x1010fae0
mov ebx, dword [ecx + 8]
sub edi, edx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1010faf0
sub ebx, ecx
call fcn.100d8ee0
test eax, eax
jne 0x10110169
lea eax, [ebx + 0x100]
lea eax, [edi + eax*2]
push 0
push eax
call fcn.10027b10
mov esi, eax
add esp, 8
test esi, esi
je 0x10110169
lea eax, [ebx + 0x100]
lea eax, [edi + eax*2]
push eax
push 0
push esi
call fcn.1013ad10
lea ecx, [esi + 0x1f8]
mov dword [esi + 0x2c], 1
lea eax, [ecx + 1]
mov dword [esi], 0x1017a6f8
add eax, edi
mov dword [esi + 0x20], ecx
add esp, 0xc
mov dword [esi + 0x24], eax
inc eax
add eax, ebx
cmp dword [esp + 0xc], 0
mov dword [esi + 0x28], eax
push edi
mov edi, dword [ebp + 0xc]
setne al
mov byte [esi + 0x16], al
push dword [edi + 4]
push ecx
call fcn.1013c1a0
add esp, 0xc
push ebx
push dword [edi + 8]
push dword [esi + 0x24]
call fcn.1013c1a0
add esp, 0xc
push ebx
push dword [edi + 8]
push dword [esi + 0x28]
call fcn.1013c1a0
mov ecx, dword [esi + 0x28]
add esp, 0xc
mov eax, dword [str._node]
mov dword [ecx + ebx], eax
mov ax, word [0x10170e30]
mov word [ecx + ebx + 4], ax
call fcn.100d8ee0
test eax, eax
jne 0x1010fbfe
push eax
push 0x18
call fcn.10027b10
mov edi, eax
add esp, 8
test edi, edi
je 0x1010fbfe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1010fbd3
mov eax, dword [eax + 0x78]
jmp 0x1010fbd8
mov eax, 0x3b9aca00
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov word [edi + 0x14], 0
jmp 0x1010fc03
mov edi, 0x1017ac4c
mov ebx, dword [ebp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov ecx, dword [ebx + 0xc]
call fcn.100d7f00
push dword [ebx + 0xc]
push eax
push str.CREATE_TABLE_x__.s_INT
push edi
call fcn.1002aa10
mov ebx, 4
add esp, 0x10
cmp dword [ebp + 8], ebx
jle 0x1010fca5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ebx*4]
mov al, byte [esi + 0x19]
mov dword [esp + 0x18], ecx
cmp byte [ecx], 0x2b
jne 0x1010fc68
inc ecx
mov dword [esp + 0x14], 0
inc al
lea edx, [esp + 0x14]
push ecx
mov byte [esi + 0x19], al
call fcn.100d7f00
push eax
push str.__.s
jmp 0x1010fc96
test al, al
jne 0x1010fca5
inc byte [esi + 0x15]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.100d7f00
push dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 4
push dword [eax + 0x10160a84]
push edi
call fcn.1002aa10
inc ebx
add esp, 0x10
cmp ebx, dword [ebp + 8]
jl 0x1010fc36
push 0x10170e6c
push edi
call fcn.1002aa10
add esp, 8
test edi, edi
je 0x1010ffc8
cmp edi, 0x1017ac4c
je 0x1010ffc8
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1010fcea
mov eax, dword [edi + 0x10]
mov byte [ecx + eax], 0
cmp dword [edi + 0xc], 0
jbe 0x1010fcea
test byte [edi + 0x15], 4
jne 0x1010fcea
mov ecx, edi
call fcn.1002a3e0
jmp 0x1010fced
mov eax, dword [edi + 4]
cmp dword [0x10178a38], 0
mov dword [esp + 0xc], eax
je 0x1010fd3f
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1010fd0d
push eax
call dword [0x10178a88]
add esp, 4
push edi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push edi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1010fd49
push eax
call dword [0x10178a90]
jmp 0x1010fd46
push edi
call dword [0x10178a5c]
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1010ffc8
cmp ebx, dword [ebp + 8]
jge 0x1010fd74
push str.Auxiliary_rtree_columns_must_be_last
push 0x10169758
call fcn.1002a830
mov ebx, dword [esp + 0x18]
mov edi, 1
jmp 0x1010fd9c
mov ebx, dword [esp + 0x10]
push eax
push ebx
call fcn.100ba650
mov edi, eax
add esp, 8
test edi, edi
je 0x1010fda4
push ebx
call fcn.100db670
add esp, 4
push eax
push 0x10169758
call fcn.1002a830
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
cmp dword [0x10178a38], 0
je 0x1010fdf8
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1010fdc0
push eax
call dword [0x10178a88]
add esp, 4
push dword [esp + 0xc]
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push dword [esp + 0xc]
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1010fe05
push eax
call dword [0x10178a90]
jmp 0x1010fe02
push dword [esp + 0xc]
call dword [0x10178a5c]
add esp, 4
test edi, edi
jne 0x1010ffcd
mov cl, byte [esi + 0x15]
mov al, cl
shr al, 1
mov byte [esi + 0x14], al
cmp al, 1
jae 0x1010fe20
lea eax, [edi + 2]
jmp 0x1010fe36
cmp cl, 0xa
jbe 0x1010fe2c
mov eax, 3
jmp 0x1010fe36
test cl, 1
je 0x1010fe56
mov eax, 1
push dword [esp + eax*4 + 0x1c]
push 0x10169758
call fcn.1002a830
mov ecx, dword [ebp + 0x14]
add esp, 8
mov edi, 1
mov dword [ecx], eax
jmp 0x1010ffcd
mov eax, dword [esi + 0x20]
add cl, 2
shl cl, 2
cmp dword [ebp + 0x18], 0
mov byte [esi + 0x17], cl
je 0x1010feb3
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x18], 0
call fcn.1002a830
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
push ecx
mov edx, eax
mov ecx, ebx
call fcn.1010f980
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1010fede
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 0x1010ff12
mov dword [esi + 0x10], eax
jmp 0x1010ff12
push dword [esi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.1002a830
add esp, 0xc
mov dword [esp + 0xc], eax
lea ecx, [esi + 0x10]
mov edx, eax
push ecx
mov ecx, ebx
call fcn.1010f980
mov edi, eax
add esp, 4
test edi, edi
je 0x1010feef
push ebx
call fcn.100db670
add esp, 4
push eax
push 0x10169758
jmp 0x1010ff05
cmp dword [esi + 0x10], 0x1c0
jge 0x1010ff12
push dword [esi + 0x24]
mov edi, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call fcn.1002a830
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1010ff7a
cmp dword [0x10178a38], 0
je 0x1010ff70
mov ecx, dword [0x1017bbe8]
test ecx, ecx
je 0x1010ff3b
push ecx
call dword [0x10178a88]
mov eax, dword [esp + 0x10]
add esp, 4
push eax
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push dword [esp + 0xc]
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1010ff7a
push eax
call dword [0x10178a90]
jmp 0x1010ff77
push eax
call dword [0x10178a5c]
add esp, 4
test edi, edi
jne 0x1010ffcd
mov eax, dword [ebp + 0xc]
mov edx, ebx
push dword [ebp + 0x18]
mov ecx, esi
push dword [eax + 8]
push dword [eax + 4]
call fcn.1010f420
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1010ffba
push ebx
call fcn.100db670
add esp, 4
push eax
push 0x10169758
call fcn.1002a830
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
jmp 0x1010ffcd
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 7
add dword [esi + 0x2c], 0xffffffff
jne 0x10110160
mov ebx, dword [esi + 0x48]
mov byte [esi + 0x18], 0
test ebx, ebx
je 0x1011003c
cmp dword [esi + 0x38], 0
jne 0x1011003c
mov dword [esi + 0x48], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10110012
push ecx
call dword [0x10178a88]
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, ebx
mov ecx, eax
call fcn.10027de0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10110030
push eax
call dword [0x10178a90]
add esp, 4
push dword [esp + 0x18]
call fcn.10054ee0
add esp, 4
push dword [esi + 0x4c]
call fcn.10054ee0
add esp, 4
push dword [esi + 0x50]
call fcn.10054ee0
add esp, 4
push dword [esi + 0x54]
call fcn.10054ee0
add esp, 4
push dword [esi + 0x58]
call fcn.10054ee0
add esp, 4
push dword [esi + 0x5c]
call fcn.10054ee0
add esp, 4
push dword [esi + 0x60]
call fcn.10054ee0
add esp, 4
push dword [esi + 0x64]
call fcn.10054ee0
add esp, 4
push dword [esi + 0x68]
call fcn.10054ee0
add esp, 4
push dword [esi + 0x6c]
call fcn.10054ee0
mov ebx, dword [esi + 0x40]
add esp, 4
test ebx, ebx
je 0x101100fe
cmp dword [0x10178a38], 0
je 0x101100f4
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x101100c2
push eax
call dword [0x10178a88]
add esp, 4
push ebx
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push ebx
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10110103
push eax
call dword [0x10178a90]
jmp 0x101100fb
push ebx
call dword [0x10178a5c]
add esp, 4
mov eax, dword [0x1017bbe8]
cmp dword [0x10178a38], 0
je 0x10110156
test eax, eax
je 0x1011011a
push eax
call dword [0x10178a88]
add esp, 4
push esi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push esi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10110160
push eax
call dword [0x10178a90]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x10178a5c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov edx, 4
cmp ecx, 6
cmovge eax, edx
push dword [esp + eax + 0x24]
push 0x10169758
call fcn.1002a830
mov ecx, dword [ebp + 0x14]
add esp, 8
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret