Function at 0x100db940
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10104008]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0x101080ea
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], esi
call fcn.100de193
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], str.Wrong_number_of_columns_for_an_rtree_table
mov dword [esp + 0x38], str.Too_few_columns_for_an_rtree_table
lea eax, [ecx - 6]
mov dword [esp + 0x3c], str.Too_many_columns_for_an_rtree_table
mov dword [esp + 0x40], str.Auxiliary_rtree_columns_must_be_last
cmp eax, 0x61
ja 0x100dbd48
push 1
push 1
push ebx
call fcn.100a6800
mov edi, dword [edi + 4]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100db9d2
mov eax, dword [esp + 0x28]
sub edi, ecx
mov ebx, dword [eax + 8]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100db9e5
sub ebx, ecx
call fcn.100baf60
test eax, eax
jne 0x100dbd31
lea eax, [edi + 0x1fa]
add eax, ebx
push 0
push eax
call fcn.1003f3a0
mov esi, eax
add esp, 8
test esi, esi
je 0x100dbd31
lea eax, [edi + 0x1fa]
add eax, ebx
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x28], 1
lea ecx, [esi + 0x1f8]
mov dword [esi], 0x101054c8
lea eax, [ecx + 1]
mov dword [esi + 0x20], ecx
add eax, edi
cmp dword [esp + 0x18], 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 sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
push dword [edi + 8]
push dword [esi + 0x24]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [esp + 0x24]
call fcn.10041ef0
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x18]
add esp, 4
mov dword [esp + 0x14], 0
mov ebx, eax
mov dword [esp + 0x18], ebx
call fcn.100b9e30
push dword [edi + 0xc]
push eax
push str.CREATE_TABLE_x__.s_INT
push ebx
call fcn.10042330
mov ebx, 4
add esp, 0x10
cmp dword [esp + 0x20], ebx
jle 0x100dbb1a
nop dword [eax + eax]
mov edi, dword [edi + ebx*4]
mov al, byte [esi + 0x19]
cmp byte [edi], 0x2b
jne 0x100dbadb
inc al
mov dword [esp + 0x14], str.__.s
mov byte [esi + 0x19], al
inc edi
jmp 0x100dbaea
test al, al
jne 0x100dbb1a
inc byte [esi + 0x15]
mov dword [esp + 0x14], str.__.s_NUM
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov ecx, edi
call fcn.100b9e30
push edi
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.10042330
mov edi, dword [esp + 0x38]
inc ebx
add esp, 0x10
cmp ebx, dword [esp + 0x20]
jl 0x100dbac0
mov edi, dword [esp + 0x18]
push 0x100f9adc
push edi
call fcn.10042330
push edi
call fcn.10041dc0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x100dbb45
mov ebx, dword [esp + 0x24]
lea edi, [eax + 7]
jmp 0x100dbb96
cmp ebx, dword [esp + 0x20]
jge 0x100dbb65
push str.Auxiliary_rtree_columns_must_be_last
push 0x100f31b4
call fcn.10042120
mov ebx, dword [esp + 0x2c]
mov edi, 1
jmp 0x100dbb8d
mov ebx, dword [esp + 0x24]
push edi
push ebx
call fcn.100a6050
mov edi, eax
add esp, 8
test edi, edi
je 0x100dbb96
push ebx
call fcn.100bd3e0
add esp, 4
push eax
push 0x100f31b4
call fcn.10042120
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ecx], eax
push dword [esp + 0x1c]
call fcn.1003f620
add esp, 4
test edi, edi
jne 0x100dbbea
mov cl, byte [esi + 0x15]
mov al, cl
shr al, 1
mov byte [esi + 0x14], al
cmp al, 1
jae 0x100dbbbb
mov eax, str.Too_few_columns_for_an_rtree_table
jmp 0x100dbbd1
cmp cl, 0xa
jbe 0x100dbbc7
mov eax, str.Too_many_columns_for_an_rtree_table
jmp 0x100dbbd1
test cl, 1
je 0x100dbc05
mov eax, str.Wrong_number_of_columns_for_an_rtree_table
push eax
push 0x100f31b4
call fcn.10042120
mov ecx, dword [esp + 0x18]
add esp, 8
mov edi, 1
mov dword [ecx], eax
mov ecx, esi
call fcn.100d6f10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.100dcb60
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 0x100dbc62
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x20], 0
call fcn.10042120
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
push ecx
mov edx, eax
mov ecx, ebx
call fcn.100db8c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100dbc8d
movzx eax, byte [esi + 0x17]
mov ecx, dword [esp + 0x18]
imul eax, eax, 0x33
add ecx, 0xffffffc0
mov dword [esi + 0x10], ecx
add eax, 4
cmp eax, ecx
jge 0x100dbcc2
mov dword [esi + 0x10], eax
jmp 0x100dbcc2
push dword [esi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.10042120
add esp, 0xc
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x10]
mov edx, eax
push ecx
mov ecx, ebx
call fcn.100db8c0
mov edi, eax
add esp, 4
test edi, edi
je 0x100dbc9e
push ebx
call fcn.100bd3e0
add esp, 4
push eax
push 0x100f31b4
jmp 0x100dbcb4
cmp dword [esi + 0x10], 0x1c0
jge 0x100dbcc2
push dword [esi + 0x24]
mov edi, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call fcn.10042120
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ecx], eax
push dword [esp + 0x14]
call fcn.1003f620
add esp, 4
test edi, edi
jne 0x100dbbea
mov eax, dword [esp + 0x28]
mov edx, ebx
push dword [ebp + 0x18]
mov ecx, esi
push dword [eax + 8]
push dword [eax + 4]
call fcn.100db3f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100dbd17
push ebx
call fcn.100bd3e0
add esp, 4
push eax
push 0x100f31b4
call fcn.10042120
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ecx], eax
jmp 0x100dbbea
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.100dcb60
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.100dcb60
mov esp, ebp
pop ebp
ret
xor eax, eax
mov edx, 4
cmp ecx, 6
cmovge eax, edx
push dword [esp + eax + 0x38]
push 0x100f31b4
call fcn.10042120
mov ecx, dword [esp + 0x4c]
add esp, 8
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret