Function at 0x100dc7a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x1011d004]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [edx - 6]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 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 0x100dcded
push 1
push 1
push ecx
call sym.sqlite3.dll_sqlite3_vtab_config
mov edi, dword [esi + 4]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100dc822
mov ebx, dword [esi + 8]
sub edi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100dc831
sub ebx, ecx
call sym.sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100dcdd6
lea eax, [edi + 0x1fa]
add eax, ebx
push 0
push eax
call fcn.100049e0
mov esi, eax
add esp, 8
test esi, esi
je 0x100dcdd6
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], 0x1011ebb0
lea eax, [ecx + 1]
mov dword [esi + 0x20], ecx
add eax, edi
cmp dword [esp + 0x14], 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 + 0x10]
call sym.sqlite3.dll_sqlite3_str_new
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x20]
add esp, 4
mov dword [esp + 0x1c], 0
mov ebx, eax
mov dword [esp + 0x20], ebx
call fcn.100a4880
push dword [edi + 0xc]
push eax
push str.CREATE_TABLE_x__.s_INT
push ebx
call sym.sqlite3.dll_sqlite3_str_appendf
mov edi, 4
add esp, 0x10
cmp dword [esp + 0x24], edi
jle 0x100dc979
mov eax, dword [esp + 0x28]
mov ebx, dword [eax + edi*4]
mov al, byte [esi + 0x19]
cmp byte [ebx], 0x2b
jne 0x100dc935
lea ecx, [ebx + 1]
mov dword [esp + 0x1c], 0
inc al
lea edx, [esp + 0x1c]
push ecx
mov byte [esi + 0x19], al
call fcn.100a4880
push eax
push str.__.s
jmp 0x100dc962
test al, al
jne 0x100dc975
inc byte [esi + 0x15]
lea edx, [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x1c], 0
call fcn.100a4880
push ebx
push eax
mov eax, dword [esp + 0x1c]
neg eax
sbb eax, eax
and eax, 4
push dword [eax + 0x10112314]
push dword [esp + 0x2c]
call sym.sqlite3.dll_sqlite3_str_appendf
inc edi
add esp, 0x10
cmp edi, dword [esp + 0x24]
jl 0x100dc904
mov ebx, dword [esp + 0x20]
push 0x1010f84c
push ebx
call sym.sqlite3.dll_sqlite3_str_appendf
push ebx
call sym.sqlite3.dll_sqlite3_str_finish
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100dcad0
lea edi, [eax + 7]
add dword [esi + 0x28], 0xffffffff
jne 0x100dcdc2
mov ebx, dword [esi + 0x4c]
mov byte [esi + 0x18], 0
test ebx, ebx
je 0x100dca09
cmp dword [esi + 0x38], 0
jne 0x100dca09
mov dword [esi + 0x4c], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100dc9df
push ecx
call dword [0x1011d148]
mov eax, dword [esp + 0x18]
add esp, 4
mov edx, ebx
mov ecx, eax
call fcn.10004cc0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100dc9fd
push eax
call dword [0x1011d150]
add esp, 4
push dword [esp + 0x2c]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
push dword [esi + 0x50]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
push dword [esi + 0x54]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
push dword [esi + 0x58]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
push dword [esi + 0x5c]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
push dword [esi + 0x60]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
push dword [esi + 0x64]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
push dword [esi + 0x68]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
push dword [esi + 0x6c]
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
push dword [esi + 0x70]
call sym.sqlite3.dll_sqlite3_finalize
mov ebx, dword [esi + 0x40]
add esp, 4
test ebx, ebx
je 0x100dcd55
cmp dword [0x1011d0f8], 0
je 0x100dcd4b
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dca97
push eax
call dword [0x1011d148]
add esp, 4
push ebx
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push ebx
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dcd5a
push eax
call dword [0x1011d150]
jmp 0x100dcd52
cmp edi, dword [esp + 0x24]
jge 0x100dcaec
push str.Auxiliary_rtree_columns_must_be_last
push 0x101084e8
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, 1
jmp 0x100dcb16
push ebx
push dword [esp + 0x14]
call sym.sqlite3.dll_sqlite3_declare_vtab
mov edi, eax
add esp, 8
test edi, edi
je 0x100dcb1f
push dword [esp + 0x10]
call sym.sqlite3.dll_sqlite3_errmsg
add esp, 4
push eax
push 0x101084e8
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx], eax
cmp dword [0x1011d0f8], 0
je 0x100dcb6d
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dcb3b
push eax
call dword [0x1011d148]
add esp, 4
push ebx
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push ebx
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dcb77
push eax
call dword [0x1011d150]
jmp 0x100dcb74
push ebx
call dword [0x1011d11c]
add esp, 4
test edi, edi
jne 0x100dc99a
mov cl, byte [esi + 0x15]
mov al, cl
shr al, 1
mov byte [esi + 0x14], al
cmp al, 1
jae 0x100dcb94
mov eax, str.Too_few_columns_for_an_rtree_table
jmp 0x100dcbaa
cmp cl, 0xa
jbe 0x100dcba0
mov eax, str.Too_many_columns_for_an_rtree_table
jmp 0x100dcbaa
test cl, 1
je 0x100dcbc8
mov eax, str.Wrong_number_of_columns_for_an_rtree_table
push eax
push 0x101084e8
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [esp + 0x20]
add esp, 8
mov edi, 1
mov dword [ecx], eax
jmp 0x100dc99a
mov eax, dword [esi + 0x20]
add cl, 2
shl cl, 2
cmp dword [ebp + 0x18], 0
mov byte [esi + 0x17], cl
je 0x100dcc25
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x1c], 0
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea eax, [esp + 0x1c]
mov edx, ebx
push eax
call fcn.100dc5d0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100dcc50
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 0x100dcc88
mov dword [esi + 0x10], eax
jmp 0x100dcc88
push dword [esi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov ebx, eax
lea eax, [esi + 0x10]
mov edx, ebx
push eax
call fcn.100dc5d0
mov edi, eax
add esp, 4
test edi, edi
je 0x100dcc64
push dword [esp + 0x10]
call sym.sqlite3.dll_sqlite3_errmsg
add esp, 4
push eax
push 0x101084e8
jmp 0x100dcc7a
cmp dword [esi + 0x10], 0x1c0
jge 0x100dcc88
push dword [esi + 0x24]
mov edi, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx], eax
test ebx, ebx
je 0x100dcce4
cmp dword [0x1011d0f8], 0
je 0x100dccda
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dcca8
push eax
call dword [0x1011d148]
add esp, 4
push ebx
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push ebx
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dcce4
push eax
call dword [0x1011d150]
jmp 0x100dcce1
push ebx
call dword [0x1011d11c]
add esp, 4
test edi, edi
jne 0x100dc99a
mov eax, dword [esp + 0x28]
mov ecx, esi
push dword [ebp + 0x18]
mov ebx, dword [esp + 0x14]
mov edx, ebx
push dword [eax + 8]
push dword [eax + 4]
call fcn.100dbdd0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100dcd31
push ebx
call sym.sqlite3.dll_sqlite3_errmsg
add esp, 4
push eax
push 0x101084e8
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx], eax
jmp 0x100dc99a
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.10105304
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x1011d11c]
add esp, 4
mov eax, dword [0x1011f3e8]
cmp dword [0x1011d0f8], 0
je 0x100dcdb8
test eax, eax
je 0x100dcd71
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dcdc2
push eax
call dword [0x1011d150]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
push esi
call dword [0x1011d11c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10105304
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.10105304
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 4
cmp edx, 6
cmovge eax, ecx
push dword [esp + eax + 0x38]
push 0x101084e8
call sym.sqlite3.dll_sqlite3_mprintf
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.10105304
mov esp, ebp
pop ebp
ret