Function at 0x100c2a60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0x67
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ebx
jle 0x100c2aa5
push str.Too_many_columns_for_an_rtree_table
push 0x10166d2c
call fcn.1007f0f0
add esp, 8
mov dword [ebx], eax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push 1
push eax
call fcn.10089250
mov edi, dword [esi + 4]
add esp, 0xc
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x100c2ac0
mov ebx, dword [esi + 8]
sub edi, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100c2ad0
sub ebx, ecx
call fcn.10106de0
test eax, eax
jne 0x100c2df2
lea eax, [edi + 0x1fa]
add eax, ebx
push 0
push eax
call fcn.100e3e30
mov esi, eax
add esp, 8
test esi, esi
je 0x100c2df2
lea eax, [edi + 0x1fa]
add eax, ebx
push eax
push 0
push esi
call fcn.101293f0
lea ecx, [esi + 0x1f8]
mov dword [esi + 0x28], 1
lea eax, [ecx + 1]
mov dword [esi], 0x101940b8
add eax, edi
mov dword [esi + 0x20], ecx
cmp dword [ebp + 0xc], 0
push edi
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
setne al
mov byte [esi + 0x16], al
push dword [edi + 4]
push ecx
call fcn.101288f0
push ebx
push dword [edi + 8]
push dword [esi + 0x24]
call fcn.101288f0
push dword [ebp - 4]
call fcn.10086530
push dword [edi + 0xc]
mov ebx, eax
push str.CREATE_TABLE_x__s
push ebx
call fcn.100865f0
mov edi, 4
add esp, 0x34
cmp dword [ebp + 0x10], edi
jle 0x100c2bb8
nop word [eax + eax]
mov edx, dword [ebp - 0x10]
mov cl, byte [esi + 0x19]
mov eax, dword [edx + edi*4]
cmp byte [eax], 0x2b
jne 0x100c2b99
inc cl
mov byte [esi + 0x19], cl
mov eax, dword [edx + edi*4]
inc eax
jmp 0x100c2ba3
test cl, cl
jne 0x100c2bb8
inc byte [esi + 0x15]
mov eax, dword [edx + edi*4]
push eax
push 0x1016de90
push ebx
call fcn.100865f0
inc edi
add esp, 0xc
cmp edi, dword [ebp + 0x10]
jl 0x100c2b80
push 0x1016de94
push ebx
call fcn.100865f0
add esp, 8
test ebx, ebx
je 0x100c2c67
cmp ebx, 0x10194d04
je 0x100c2c67
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x100c2bff
mov eax, dword [ebx + 0x10]
mov byte [ecx + eax], 0
cmp dword [ebx + 0xc], 0
jbe 0x100c2bff
test byte [ebx + 0x15], 4
jne 0x100c2bff
push ebx
call fcn.10107d30
add esp, 4
jmp 0x100c2c02
mov eax, dword [ebx + 4]
push ebx
mov dword [ebp - 0xc], eax
call fcn.1007f350
mov ebx, dword [ebp - 0xc]
add esp, 4
test ebx, ebx
je 0x100c2c69
cmp edi, dword [ebp + 0x10]
jge 0x100c2c38
push str.Auxiliary_rtree_columns_must_be_last
push 0x10166d2c
call fcn.1007f0f0
mov ecx, dword [ebp - 8]
add esp, 8
mov edi, 1
mov dword [ecx], eax
jmp 0x100c2c6e
push ebx
push dword [ebp - 4]
call fcn.10084e00
mov edi, eax
add esp, 8
test edi, edi
je 0x100c2c6e
push dword [ebp - 4]
call fcn.100806b0
push eax
push 0x10166d2c
call fcn.1007f0f0
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [ecx], eax
jmp 0x100c2c6e
xor ebx, ebx
mov edi, 7
push ebx
call fcn.1007f350
add esp, 4
test edi, edi
jne 0x100c2cbe
mov cl, byte [esi + 0x15]
mov al, cl
shr al, 1
mov byte [esi + 0x14], al
cmp al, 1
jae 0x100c2c90
mov eax, str.Too_few_columns_for_an_rtree_table
jmp 0x100c2ca6
cmp cl, 0xa
jbe 0x100c2c9c
mov eax, str.Too_many_columns_for_an_rtree_table
jmp 0x100c2ca6
test cl, 1
je 0x100c2cd0
mov eax, str.Wrong_number_of_columns_for_an_rtree_table
push eax
push 0x10166d2c
call fcn.1007f0f0
mov ecx, dword [ebp - 8]
add esp, 8
mov edi, 1
mov dword [ecx], eax
push esi
call fcn.100c3030
add esp, 4
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 + 0x20], 0
mov byte [esi + 0x17], cl
je 0x100c2d28
push eax
push str.PRAGMA__Q.page_size
mov dword [ebp - 0xc], 0
call fcn.1007f0f0
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 4]
call fcn.100b0d10
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100c2d4e
movzx eax, byte [esi + 0x17]
mov ecx, dword [ebp - 0xc]
imul eax, eax, 0x33
add ecx, 0xffffffc0
mov dword [esi + 0x10], ecx
add eax, 4
cmp eax, ecx
jge 0x100c2d89
mov dword [esi + 0x10], eax
jmp 0x100c2d89
push dword [esi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.1007f0f0
mov ebx, eax
lea eax, [esi + 0x10]
push eax
push ebx
push dword [ebp - 4]
call fcn.100b0d10
mov edi, eax
add esp, 0x18
test edi, edi
je 0x100c2d66
push dword [ebp - 4]
call fcn.100806b0
push eax
push 0x10166d2c
call fcn.1007f0f0
add esp, 0xc
jmp 0x100c2d84
cmp dword [esi + 0x10], 0x1c0
jge 0x100c2d89
push dword [esi + 0x24]
mov edi, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call fcn.1007f0f0
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
push ebx
call fcn.1007f350
add esp, 4
test edi, edi
jne 0x100c2cbe
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x20]
mov ebx, dword [ebp - 4]
push dword [eax + 8]
push dword [eax + 4]
push ebx
push esi
call fcn.100c33b0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100c2de4
push ebx
call fcn.100806b0
push eax
push 0x10166d2c
call fcn.1007f0f0
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [ecx], eax
push esi
call fcn.100c3030
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
pop edi
mov dword [eax], esi
xor eax, eax
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