Function at 0x1010d440
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], ebx
lea eax, [ecx - 6]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], str.Wrong_number_of_columns_for_an_rtree_table
mov dword [esp + 0x34], str.Too_few_columns_for_an_rtree_table
mov dword [esp + 0x38], str.Too_many_columns_for_an_rtree_table
mov dword [esp + 0x3c], str.Auxiliary_rtree_columns_must_be_last
cmp eax, 0x61
ja 0x1010dba1
push 1
push 1
push ebx
call fcn.100b8880
add esp, 0xc
push 2
push ebx
call fcn.100b8880
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 0x1010d4b0
mov ebx, dword [ecx + 8]
sub edi, edx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1010d4c0
sub ebx, ecx
call fcn.100d6670
test eax, eax
jne 0x1010db95
lea eax, [ebx + 0x100]
lea eax, [edi + eax*2]
push 0
push eax
call fcn.100267c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1010db95
lea eax, [ebx + 0x100]
lea eax, [edi + eax*2]
push eax
push 0
push esi
call fcn.10138870
mov dword [esi + 0x2c], 1
lea eax, [esi + 0x2c]
mov dword [esp + 0x34], eax
lea ecx, [esi + 0x1f8]
mov dword [esi + 0x20], ecx
lea eax, [esi + 0x20]
mov dword [esp + 0x30], eax
lea edx, [esi + 0x24]
lea eax, [ecx + 1]
mov dword [esi], 0x10179808
add eax, edi
mov dword [esp + 0x20], edx
add esp, 0xc
mov dword [edx], eax
inc eax
add eax, ebx
cmp dword [esp + 0x18], 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.10139d00
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
push dword [edi + 8]
push dword [eax]
call fcn.10139d00
add esp, 0xc
push ebx
push dword [edi + 8]
push dword [esi + 0x28]
call fcn.10139d00
mov ecx, dword [esi + 0x28]
add esp, 0xc
mov eax, dword [str._node]
mov dword [ecx + ebx], eax
mov ax, word [0x10170090]
mov word [ecx + ebx + 4], ax
call fcn.100d6670
test eax, eax
jne 0x1010d5e5
push eax
push 0x18
call fcn.100267c0
mov edi, eax
add esp, 8
test edi, edi
je 0x1010d5e5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1010d5ba
mov eax, dword [eax + 0x78]
jmp 0x1010d5bf
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 0x1010d5ea
mov edi, 0x10179d5c
mov ebx, dword [ebp + 0xc]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov ecx, dword [ebx + 0xc]
call fcn.100d56b0
push dword [ebx + 0xc]
push eax
push str.CREATE_TABLE_x__.s_INT
push edi
call fcn.100296c0
mov ebx, 4
add esp, 0x10
mov dword [esp + 0xc], ebx
cmp dword [ebp + 8], ebx
jle 0x1010d6af
lea ecx, [esi + 0x19]
mov dword [esp + 0x20], ecx
nop dword [eax]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + ebx*4]
mov al, byte [ecx]
cmp byte [ebx], 0x2b
jne 0x1010d65e
inc al
mov dword [esp + 0x1c], 0
inc ebx
mov byte [ecx], al
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.100d56b0
mov ecx, eax
mov eax, str.__.s
jmp 0x1010d68b
test al, al
jne 0x1010d6ab
inc byte [esi + 0x15]
lea edx, [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x1c], 0
call fcn.100d56b0
mov ecx, eax
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and eax, 4
mov eax, dword [eax + 0x1015fcf4]
push ebx
push ecx
push eax
push edi
call fcn.100296c0
mov ebx, dword [esp + 0x1c]
add esp, 0x10
mov ecx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0xc], ebx
cmp ebx, dword [ebp + 8]
jl 0x1010d630
jmp 0x1010d6af
mov ebx, dword [esp + 0xc]
push 0x101700cc
push edi
mov dword [esp + 0x28], esi
call fcn.100296c0
add esp, 8
test edi, edi
je 0x1010d9f1
cmp edi, 0x10179d5c
je 0x1010d9f1
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1010d6f8
mov eax, dword [edi + 0x10]
mov byte [ecx + eax], 0
cmp dword [edi + 0xc], 0
jbe 0x1010d6f8
test byte [edi + 0x15], 4
jne 0x1010d6f8
mov ecx, edi
call fcn.10029090
jmp 0x1010d6fb
mov eax, dword [edi + 4]
cmp dword [0x10177b48], 0
mov dword [esp + 0xc], eax
je 0x1010d74d
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010d71b
push eax
call dword [0x10177b98]
add esp, 4
push edi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push edi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010d757
push eax
call dword [0x10177ba0]
jmp 0x1010d754
push edi
call dword [0x10177b6c]
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1010d9f1
cmp ebx, dword [ebp + 8]
jge 0x1010d786
push str.Auxiliary_rtree_columns_must_be_last
push 0x101689bc
call fcn.100294e0
mov ebx, dword [ebp + 0x14]
add esp, 8
mov edi, 1
mov dword [ebx], eax
jmp 0x1010d7bb
mov ebx, dword [esp + 0x10]
push eax
push ebx
call fcn.100b7db0
mov edi, eax
add esp, 8
test edi, edi
je 0x1010d7b8
push ebx
call fcn.100d8de0
add esp, 4
push eax
push 0x101689bc
call fcn.100294e0
mov ebx, dword [ebp + 0x14]
add esp, 8
mov dword [ebx], eax
jmp 0x1010d7bb
mov ebx, dword [ebp + 0x14]
cmp dword [0x10177b48], 0
je 0x1010d80f
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010d7d7
push eax
call dword [0x10177b98]
add esp, 4
push dword [esp + 0xc]
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push dword [esp + 0xc]
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010d81c
push eax
call dword [0x10177ba0]
jmp 0x1010d819
push dword [esp + 0xc]
call dword [0x10177b6c]
add esp, 4
test edi, edi
jne 0x1010d9f6
mov cl, byte [esi + 0x15]
mov al, cl
shr al, 1
mov byte [esi + 0x14], al
cmp al, 1
jae 0x1010d837
lea eax, [edi + 2]
jmp 0x1010d84d
cmp cl, 0xa
jbe 0x1010d843
mov eax, 3
jmp 0x1010d84d
test cl, 1
je 0x1010d86a
mov eax, 1
push dword [esp + eax*4 + 0x2c]
push 0x101689bc
call fcn.100294e0
add esp, 8
mov dword [ebx], eax
mov edi, 1
jmp 0x1010d9f6
mov ebx, dword [esp + 0x20]
add cl, 2
mov eax, dword [esp + 0x24]
shl cl, 2
cmp dword [ebp + 0x18], 0
mov byte [ebx + 0x17], cl
mov eax, dword [eax]
je 0x1010d8d2
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x20], 0
call fcn.100294e0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov edx, eax
mov dword [esp + 0x18], eax
mov ecx, esi
call fcn.1010d350
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1010d904
movzx eax, byte [ebx + 0x17]
mov ecx, dword [esp + 0x18]
imul eax, eax, 0x33
add ecx, 0xffffffc0
mov dword [ebx + 0x10], ecx
add eax, 4
cmp eax, ecx
jge 0x1010d93b
mov dword [ebx + 0x10], eax
jmp 0x1010d93b
mov ecx, dword [esp + 0x14]
push dword [ecx]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.100294e0
mov esi, dword [esp + 0x1c]
lea ecx, [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0xc], eax
mov edx, eax
push ecx
mov ecx, esi
call fcn.1010d350
mov edi, eax
add esp, 4
test edi, edi
je 0x1010d915
push esi
call fcn.100d8de0
add esp, 4
push eax
push 0x101689bc
jmp 0x1010d92e
cmp dword [ebx + 0x10], 0x1c0
jge 0x1010d93b
mov eax, dword [esp + 0x14]
mov edi, 0x10b
push dword [eax]
push str.undersize_RTree_blobs_in___q_node_
call fcn.100294e0
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
mov esi, dword [esp + 0xc]
test esi, esi
je 0x1010d99b
cmp dword [0x10177b48], 0
je 0x1010d991
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010d95f
push eax
call dword [0x10177b98]
add esp, 4
push esi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push esi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010d99b
push eax
call dword [0x10177ba0]
jmp 0x1010d998
push esi
call dword [0x10177b6c]
add esp, 4
mov esi, ebx
test edi, edi
jne 0x1010d9f6
mov eax, dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, esi
push dword [eax + 8]
push dword [eax + 4]
call fcn.1010cdf0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1010d9e3
push esi
call fcn.100d8de0
add esp, 4
push eax
push 0x101689bc
call fcn.100294e0
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
mov esi, ebx
jmp 0x1010d9f6
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 7
mov eax, dword [esp + 0x28]
add dword [eax], 0xffffffff
jne 0x1010db8c
mov ebx, dword [esi + 0x48]
mov byte [esi + 0x18], 0
test ebx, ebx
je 0x1010da68
cmp dword [esi + 0x38], 0
jne 0x1010da68
mov dword [esi + 0x48], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1010da3e
push ecx
call dword [0x10177b98]
mov eax, dword [esp + 0x1c]
add esp, 4
mov edx, ebx
mov ecx, eax
call fcn.10026a90
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1010da5c
push eax
call dword [0x10177ba0]
add esp, 4
push dword [esp + 0x28]
call fcn.10053bd0
add esp, 4
push dword [esi + 0x4c]
call fcn.10053bd0
add esp, 4
push dword [esi + 0x50]
call fcn.10053bd0
add esp, 4
push dword [esi + 0x54]
call fcn.10053bd0
add esp, 4
push dword [esi + 0x58]
call fcn.10053bd0
add esp, 4
push dword [esi + 0x5c]
call fcn.10053bd0
add esp, 4
push dword [esi + 0x60]
call fcn.10053bd0
add esp, 4
push dword [esi + 0x64]
call fcn.10053bd0
add esp, 4
push dword [esi + 0x68]
call fcn.10053bd0
add esp, 4
push dword [esi + 0x6c]
call fcn.10053bd0
mov ebx, dword [esi + 0x40]
add esp, 4
test ebx, ebx
je 0x1010db2a
cmp dword [0x10177b48], 0
je 0x1010db20
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010daee
push eax
call dword [0x10177b98]
add esp, 4
push ebx
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push ebx
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010db2f
push eax
call dword [0x10177ba0]
jmp 0x1010db27
push ebx
call dword [0x10177b6c]
add esp, 4
mov eax, dword [0x1017ad00]
cmp dword [0x10177b48], 0
je 0x1010db82
test eax, eax
je 0x1010db46
push eax
call dword [0x10177b98]
add esp, 4
push esi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push esi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010db8c
push eax
call dword [0x10177ba0]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x10177b6c]
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 + 0x34]
push 0x101689bc
call fcn.100294e0
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