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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [edx - 6]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
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
push edi
cmp eax, 0x61
ja 0x1010225b
push 1
push 1
push ecx
call fcn.100ac400
mov edi, dword [esi + 4]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10101bc2
mov ebx, dword [esi + 8]
sub edi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10101bd1
sub ebx, ecx
call fcn.100ca320
test eax, eax
jne 0x10102244
lea eax, [edi + 0x1fa]
add eax, ebx
push 0
push eax
call fcn.1001e500
mov esi, eax
add esp, 8
test esi, esi
je 0x10102244
lea eax, [edi + 0x1fa]
add eax, ebx
push eax
push 0
push esi
call fcn.10129b70
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 + 0x1c], 0
mov dword [esi + 0x24], eax
setne al
mov byte [esi + 0x16], al
mov eax, dword [esp + 0x24]
push edi
push dword [eax + 4]
push ecx
call fcn.1012b000
add esp, 0xc
push ebx
mov ebx, dword [esp + 0x28]
push dword [ebx + 8]
push dword [esi + 0x24]
call fcn.1012b000
add esp, 0xc
call fcn.100ca320
test eax, eax
jne 0x10101cb7
push eax
push 0x18
call fcn.1001e500
mov edi, eax
add esp, 8
test edi, edi
je 0x10101cb7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10101c8c
mov eax, dword [eax + 0x78]
jmp 0x10101c91
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 0x10101cbc
mov edi, 0x10167bd8
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
call fcn.100c9350
push dword [ebx + 0xc]
push eax
push str.CREATE_TABLE_x__.s_INT
push edi
call fcn.10021730
mov ebx, 4
add esp, 0x10
cmp dword [esp + 0x10], ebx
jle 0x10101d61
nop dword [eax]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + ebx*4]
mov al, byte [esi + 0x19]
mov dword [esp + 0x2c], ecx
cmp byte [ecx], 0x2b
jne 0x10101d23
inc ecx
mov dword [esp + 0x20], 0
inc al
lea edx, [esp + 0x20]
push ecx
mov byte [esi + 0x19], al
call fcn.100c9350
push eax
push str.__.s
jmp 0x10101d51
test al, al
jne 0x10101d61
inc byte [esi + 0x15]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
call fcn.100c9350
push dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
neg eax
sbb eax, eax
and eax, 4
push dword [eax + 0x1014ecd8]
push edi
call fcn.10021730
inc ebx
add esp, 0x10
cmp ebx, dword [esp + 0x10]
jl 0x10101cf0
push 0x1015ec24
push edi
call fcn.10021730
add esp, 8
test edi, edi
je 0x1010208d
cmp edi, 0x10167bd8
je 0x1010208d
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10101da6
mov eax, dword [edi + 0x10]
mov byte [ecx + eax], 0
cmp dword [edi + 0xc], 0
jbe 0x10101da6
test byte [edi + 0x15], 4
jne 0x10101da6
mov ecx, edi
call fcn.10021100
jmp 0x10101da9
mov eax, dword [edi + 4]
cmp dword [0x10165b38], 0
mov dword [esp + 0x1c], eax
je 0x10101dfb
mov eax, dword [0x10168b88]
test eax, eax
je 0x10101dc9
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 0x10101e05
push eax
call dword [0x10165b90]
jmp 0x10101e02
push edi
call dword [0x10165b5c]
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x1010208d
cmp ebx, dword [esp + 0x10]
jge 0x10101e30
push str.Auxiliary_rtree_columns_must_be_last
push 0x101577c0
call fcn.10021550
mov ebx, dword [esp + 0x24]
mov edi, 1
jmp 0x10101e5e
mov ebx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x18]
call fcn.100ab960
mov edi, eax
add esp, 8
test edi, edi
je 0x10101e67
push dword [esp + 0x14]
call fcn.100ccbc0
add esp, 4
push eax
push 0x101577c0
call fcn.10021550
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx], eax
cmp dword [0x10165b38], 0
je 0x10101eb5
mov eax, dword [0x10168b88]
test eax, eax
je 0x10101e83
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 0x10101ebf
push eax
call dword [0x10165b90]
jmp 0x10101ebc
push ebx
call dword [0x10165b5c]
add esp, 4
test edi, edi
jne 0x10102092
mov cl, byte [esi + 0x15]
mov al, cl
shr al, 1
mov byte [esi + 0x14], al
cmp al, 1
jae 0x10101eda
lea eax, [edi + 2]
jmp 0x10101ef0
cmp cl, 0xa
jbe 0x10101ee6
mov eax, 3
jmp 0x10101ef0
test cl, 1
je 0x10101f11
mov eax, 1
push dword [esp + eax*4 + 0x30]
push 0x101577c0
call fcn.10021550
mov ecx, dword [esp + 0x20]
add esp, 8
mov edi, 1
mov dword [ecx], eax
jmp 0x10102092
mov eax, dword [esi + 0x20]
add cl, 2
shl cl, 2
cmp dword [ebp + 0x18], 0
mov byte [esi + 0x17], cl
je 0x10101f6e
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x18], 0
call fcn.10021550
mov ecx, dword [esp + 0x1c]
mov ebx, eax
lea eax, [esp + 0x18]
mov edx, ebx
push eax
call fcn.10101a10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10101f99
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 0x10101fd1
mov dword [esi + 0x10], eax
jmp 0x10101fd1
push dword [esi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.10021550
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebx, eax
lea eax, [esi + 0x10]
mov edx, ebx
push eax
call fcn.10101a10
mov edi, eax
add esp, 4
test edi, edi
je 0x10101fad
push dword [esp + 0x14]
call fcn.100ccbc0
add esp, 4
push eax
push 0x101577c0
jmp 0x10101fc3
cmp dword [esi + 0x10], 0x1c0
jge 0x10101fd1
push dword [esi + 0x24]
mov edi, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call fcn.10021550
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx], eax
test ebx, ebx
je 0x1010202d
cmp dword [0x10165b38], 0
je 0x10102023
mov eax, dword [0x10168b88]
test eax, eax
je 0x10101ff1
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 0x1010202d
push eax
call dword [0x10165b90]
jmp 0x1010202a
push ebx
call dword [0x10165b5c]
add esp, 4
test edi, edi
jne 0x10102092
mov eax, dword [esp + 0x24]
mov ecx, esi
push dword [ebp + 0x18]
mov ebx, dword [esp + 0x18]
mov edx, ebx
push dword [eax + 8]
push dword [eax + 4]
call fcn.10101330
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10102073
push ebx
call fcn.100ccbc0
add esp, 4
push eax
push 0x101577c0
call fcn.10021550
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx], eax
jmp 0x10102092
mov eax, dword [esp + 0x28]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10128281
mov esp, ebp
pop ebp
ret
mov edi, 7
add dword [esi + 0x28], 0xffffffff
jne 0x10102230
mov ebx, dword [esi + 0x4c]
mov byte [esi + 0x18], 0
test ebx, ebx
je 0x10102101
cmp dword [esi + 0x38], 0
jne 0x10102101
mov dword [esi + 0x4c], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x101020d7
push ecx
call dword [0x10165b88]
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, ebx
mov ecx, eax
call fcn.1001e7d0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101020f5
push eax
call dword [0x10165b90]
add esp, 4
push dword [esp + 0x28]
call fcn.10048cf0
add esp, 4
push dword [esi + 0x50]
call fcn.10048cf0
add esp, 4
push dword [esi + 0x54]
call fcn.10048cf0
add esp, 4
push dword [esi + 0x58]
call fcn.10048cf0
add esp, 4
push dword [esi + 0x5c]
call fcn.10048cf0
add esp, 4
push dword [esi + 0x60]
call fcn.10048cf0
add esp, 4
push dword [esi + 0x64]
call fcn.10048cf0
add esp, 4
push dword [esi + 0x68]
call fcn.10048cf0
add esp, 4
push dword [esi + 0x6c]
call fcn.10048cf0
add esp, 4
push dword [esi + 0x70]
call fcn.10048cf0
mov ebx, dword [esi + 0x40]
add esp, 4
test ebx, ebx
je 0x101021c3
cmp dword [0x10165b38], 0
je 0x101021b9
mov eax, dword [0x10168b88]
test eax, eax
je 0x10102187
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 0x101021c8
push eax
call dword [0x10165b90]
jmp 0x101021c0
push ebx
call dword [0x10165b5c]
add esp, 4
mov eax, dword [0x10168b88]
cmp dword [0x10165b38], 0
je 0x10102226
test eax, eax
je 0x101021df
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 0x10102230
push eax
call dword [0x10165b90]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10128281
mov esp, ebp
pop ebp
ret
push esi
call dword [0x10165b5c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10128281
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.10128281
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 4
cmp edx, 6
cmovge eax, ecx
push dword [esp + eax + 0x38]
push 0x101577c0
call fcn.10021550
mov ecx, dword [esp + 0x4c]
add esp, 8
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10128281
mov esp, ebp
pop ebp
ret