Function at 0x10102870
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [edx - 6]
mov dword [esp + 0xc], ecx
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 0x10102f40
push 1
push 1
push ecx
call fcn.100ad2f0
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov edi, dword [edx + 4]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x101028d1
mov ebx, dword [edx + 8]
sub edi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x101028e0
sub ebx, ecx
call fcn.100cb1b0
test eax, eax
jne 0x10102f34
lea eax, [edi + 0x1fa]
add eax, ebx
push 0
push eax
call fcn.1001e4e0
mov esi, eax
add esp, 8
test esi, esi
je 0x10102f34
lea eax, [edi + 0x1fa]
add eax, ebx
push eax
push 0
push esi
call fcn.101298f0
lea ecx, [esi + 0x1f8]
mov dword [esi + 0x28], 1
add esp, 0xc
mov dword [esi], 0x101676b8
lea eax, [ecx + 1]
mov dword [esi + 0x20], ecx
add eax, edi
cmp dword [esp + 0x10], 0
mov dword [esi + 0x24], eax
setne al
mov byte [esi + 0x16], al
mov eax, dword [ebp + 0xc]
push edi
push dword [eax + 4]
push ecx
call fcn.1012ad80
add esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push dword [ebx + 8]
push dword [esi + 0x24]
call fcn.1012ad80
add esp, 0xc
call fcn.100cb1b0
test eax, eax
jne 0x101029c4
push eax
push 0x18
call fcn.1001e4e0
mov edi, eax
add esp, 8
test edi, edi
je 0x101029c4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10102999
mov eax, dword [eax + 0x78]
jmp 0x1010299e
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 0x101029c9
mov edi, 0x10167bd8
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.100ca1e0
push dword [ebx + 0xc]
push eax
push str.CREATE_TABLE_x__.s_INT
push edi
call fcn.10021720
mov ebx, 4
add esp, 0x10
cmp dword [ebp + 8], ebx
jle 0x10102a6f
nop dword [eax]
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 0x10102a32
inc ecx
mov dword [esp + 0x14], 0
inc al
lea edx, [esp + 0x14]
push ecx
mov byte [esi + 0x19], al
call fcn.100ca1e0
push eax
push str.__.s
jmp 0x10102a60
test al, al
jne 0x10102a6f
inc byte [esi + 0x15]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.100ca1e0
push dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and eax, 4
push dword [eax + 0x1014ecd8]
push edi
call fcn.10021720
inc ebx
add esp, 0x10
cmp ebx, dword [ebp + 8]
jl 0x10102a00
push 0x1015ec1c
push edi
call fcn.10021720
add esp, 8
test edi, edi
je 0x10102d93
cmp edi, 0x10167bd8
je 0x10102d93
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10102ab4
mov eax, dword [edi + 0x10]
mov byte [ecx + eax], 0
cmp dword [edi + 0xc], 0
jbe 0x10102ab4
test byte [edi + 0x15], 4
jne 0x10102ab4
mov ecx, edi
call fcn.100210f0
jmp 0x10102ab7
mov eax, dword [edi + 4]
cmp dword [0x10165b38], 0
mov dword [esp + 0x10], eax
je 0x10102b09
mov eax, dword [0x10168b88]
test eax, eax
je 0x10102ad7
push eax
call dword [0x10165b88]
add esp, 4
push edi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push edi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10102b13
push eax
call dword [0x10165b90]
jmp 0x10102b10
push edi
call dword [0x10165b5c]
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10102d93
cmp ebx, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
jge 0x10102b3d
push str.Auxiliary_rtree_columns_must_be_last
push 0x101577b8
call fcn.10021540
mov edi, 1
jmp 0x10102b67
push eax
push dword [esp + 0x10]
call fcn.100ac850
mov edi, eax
add esp, 8
test edi, edi
je 0x10102b6c
push dword [esp + 0xc]
call fcn.100cda40
add esp, 4
push eax
push 0x101577b8
call fcn.10021540
mov dword [ebx], eax
add esp, 8
cmp dword [0x10165b38], 0
je 0x10102bc0
mov eax, dword [0x10168b88]
test eax, eax
je 0x10102b88
push eax
call dword [0x10165b88]
add esp, 4
push dword [esp + 0x10]
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push dword [esp + 0x10]
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10102bcd
push eax
call dword [0x10165b90]
jmp 0x10102bca
push dword [esp + 0x10]
call dword [0x10165b5c]
add esp, 4
test edi, edi
jne 0x10102d98
mov cl, byte [esi + 0x15]
mov al, cl
shr al, 1
mov byte [esi + 0x14], al
cmp al, 1
jae 0x10102be8
lea eax, [edi + 2]
jmp 0x10102bfe
cmp cl, 0xa
jbe 0x10102bf4
mov eax, 3
jmp 0x10102bfe
test cl, 1
je 0x10102c1b
mov eax, 1
push dword [esp + eax*4 + 0x1c]
push 0x101577b8
call fcn.10021540
add esp, 8
mov dword [ebx], eax
mov edi, 1
jmp 0x10102d98
mov eax, dword [esi + 0x20]
add cl, 2
shl cl, 2
cmp dword [ebp + 0x18], 0
mov byte [esi + 0x17], cl
je 0x10102c7a
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x1c], 0
call fcn.10021540
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.10102750
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10102ca7
movzx eax, byte [esi + 0x17]
mov ecx, dword [esp + 0x14]
imul eax, eax, 0x33
add ecx, 0xffffffc0
mov dword [esi + 0x10], ecx
add eax, 4
cmp eax, ecx
jge 0x10102cdb
mov dword [esi + 0x10], eax
jmp 0x10102cdb
push dword [esi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.10021540
add esp, 0xc
mov dword [esp + 0x10], eax
lea ecx, [esi + 0x10]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.10102750
mov edi, eax
add esp, 4
test edi, edi
je 0x10102cbb
push dword [esp + 0xc]
call fcn.100cda40
add esp, 4
push eax
push 0x101577b8
jmp 0x10102cd1
cmp dword [esi + 0x10], 0x1c0
jge 0x10102cdb
push dword [esi + 0x24]
mov edi, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call fcn.10021540
add esp, 8
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10102d43
cmp dword [0x10165b38], 0
je 0x10102d39
mov ecx, dword [0x10168b88]
test ecx, ecx
je 0x10102d04
push ecx
call dword [0x10165b88]
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push dword [esp + 0x10]
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10102d43
push eax
call dword [0x10165b90]
jmp 0x10102d40
push eax
call dword [0x10165b5c]
add esp, 4
test edi, edi
jne 0x10102d98
mov eax, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 0x18]
mov edx, dword [esp + 0x10]
push dword [eax + 8]
push dword [eax + 4]
call fcn.101020d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10102d85
push dword [esp + 0xc]
call fcn.100cda40
add esp, 4
push eax
push 0x101577b8
call fcn.10021540
add esp, 8
mov dword [ebx], eax
jmp 0x10102d98
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 + 0x28], 0xffffffff
jne 0x10102f2b
mov ebx, dword [esi + 0x4c]
mov byte [esi + 0x18], 0
test ebx, ebx
je 0x10102e07
cmp dword [esi + 0x38], 0
jne 0x10102e07
mov dword [esi + 0x4c], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10102ddd
push ecx
call dword [0x10165b88]
mov eax, dword [esp + 0x18]
add esp, 4
mov edx, ebx
mov ecx, eax
call fcn.1001e7b0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10102dfb
push eax
call dword [0x10165b90]
add esp, 4
push dword [esp + 0x18]
call fcn.10048ca0
add esp, 4
push dword [esi + 0x50]
call fcn.10048ca0
add esp, 4
push dword [esi + 0x54]
call fcn.10048ca0
add esp, 4
push dword [esi + 0x58]
call fcn.10048ca0
add esp, 4
push dword [esi + 0x5c]
call fcn.10048ca0
add esp, 4
push dword [esi + 0x60]
call fcn.10048ca0
add esp, 4
push dword [esi + 0x64]
call fcn.10048ca0
add esp, 4
push dword [esi + 0x68]
call fcn.10048ca0
add esp, 4
push dword [esi + 0x6c]
call fcn.10048ca0
add esp, 4
push dword [esi + 0x70]
call fcn.10048ca0
mov ebx, dword [esi + 0x40]
add esp, 4
test ebx, ebx
je 0x10102ec9
cmp dword [0x10165b38], 0
je 0x10102ebf
mov eax, dword [0x10168b88]
test eax, eax
je 0x10102e8d
push eax
call dword [0x10165b88]
add esp, 4
push ebx
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push ebx
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10102ece
push eax
call dword [0x10165b90]
jmp 0x10102ec6
push ebx
call dword [0x10165b5c]
add esp, 4
mov eax, dword [0x10168b88]
cmp dword [0x10165b38], 0
je 0x10102f21
test eax, eax
je 0x10102ee5
push eax
call dword [0x10165b88]
add esp, 4
push esi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push esi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10102f2b
push eax
call dword [0x10165b90]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x10165b5c]
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 ecx, 4
cmp edx, 6
cmovge eax, ecx
push dword [esp + eax + 0x24]
push 0x101577b8
call fcn.10021540
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