Function at 0x10083290
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101289b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
lea eax, [edx - 6]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], str.Wrong_number_of_columns_for_an_rtree_table
mov dword [ebp - 0x10], str.Too_few_columns_for_an_rtree_table
mov dword [ebp - 0xc], str.Too_many_columns_for_an_rtree_table
mov dword [ebp - 8], str.Auxiliary_rtree_columns_must_be_last
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edi
cmp eax, 0x61
ja 0x100837d6
push esi
push 1
push 1
push ecx
call sym.e_sqlite3.dll_sqlite3_vtab_config
mov esi, dword [edi + 4]
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10083303
mov ebx, dword [edi + 8]
sub esi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10083312
sub ebx, ecx
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100837c0
lea eax, [esi + 0x1fa]
add eax, ebx
push 0
push eax
call fcn.100b3720
mov edi, eax
add esp, 8
test edi, edi
je 0x100837c0
lea eax, [esi + 0x1fa]
add eax, ebx
push eax
push 0
push edi
call fcn.100fc010
lea ecx, [edi + 0x1f8]
mov dword [edi + 0x28], 1
lea eax, [ecx + 1]
mov dword [edi], 0x10125230
add eax, esi
mov dword [edi + 0x20], ecx
cmp dword [ebp + 0xc], 0
mov dword [edi + 0x24], eax
setne al
mov byte [edi + 0x16], al
mov eax, dword [ebp - 0x2c]
push esi
push dword [eax + 4]
push ecx
call fcn.100fba90
push ebx
mov ebx, dword [ebp - 0x2c]
push dword [ebx + 8]
push dword [edi + 0x24]
call fcn.100fba90
push dword [ebp - 0x20]
call sym.e_sqlite3.dll_sqlite3_str_new
mov esi, eax
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 0xc]
mov dword [ebp - 0x1c], esi
call fcn.100aebe0
push dword [ebx + 0xc]
push eax
push str.CREATE_TABLE_x__.s_INT
push esi
call sym.e_sqlite3.dll_sqlite3_str_appendf
mov ebx, 4
add esp, 0x40
cmp dword [ebp - 0x28], ebx
jle 0x1008343a
nop
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + ebx*4]
mov al, byte [edi + 0x19]
cmp byte [esi], 0x2b
jne 0x100833fa
inc al
inc esi
mov byte [edi + 0x19], al
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.100aebe0
mov ecx, eax
add esp, 8
mov eax, str.__.s
jmp 0x10083420
test al, al
jne 0x10083437
inc byte [edi + 0x15]
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.100aebe0
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 4
mov eax, dword [eax + 0x101252b0]
push esi
mov esi, dword [ebp - 0x1c]
push ecx
push eax
push esi
call sym.e_sqlite3.dll_sqlite3_str_appendf
inc ebx
add esp, 0x10
cmp ebx, dword [ebp - 0x28]
jl 0x100833d0
jmp 0x1008343a
mov esi, dword [ebp - 0x1c]
push 0x1011465c
push esi
call sym.e_sqlite3.dll_sqlite3_str_appendf
add esp, 8
test esi, esi
je 0x10083728
cmp esi, 0x10125958
je 0x10083728
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10083481
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x10083481
test byte [esi + 0x15], 4
jne 0x10083481
push esi
call fcn.100e2480
add esp, 4
jmp 0x10083484
mov eax, dword [esi + 4]
push esi
mov dword [ebp - 0x1c], eax
call sym.e_sqlite3.dll_sqlite3_free
mov esi, dword [ebp - 0x1c]
add esp, 4
test esi, esi
je 0x10083728
cmp ebx, dword [ebp - 0x28]
jge 0x100834b9
push str.Auxiliary_rtree_columns_must_be_last
push 0x1010ba8c
call sym.e_sqlite3.dll_sqlite3_mprintf
add esp, 8
mov ebx, 1
jmp 0x100834e1
push esi
push dword [ebp - 0x20]
call sym.e_sqlite3.dll_sqlite3_declare_vtab
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100834e6
push dword [ebp - 0x20]
call sym.e_sqlite3.dll_sqlite3_errmsg
push eax
push 0x1010ba8c
call sym.e_sqlite3.dll_sqlite3_mprintf
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
cmp dword [0x101250f8], 0
je 0x10083558
mov eax, dword [0x10129520]
test eax, eax
je 0x1008350f
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 0x1c]
add esp, 4
push esi
mov esi, dword [0x10125124]
mov ecx, esi
call dword [0x1010a1d8]
call esi
sub dword [0x101294b8], eax
add esp, 4
mov eax, dword [ebp - 0x1c]
mov esi, dword [0x1012511c]
mov ecx, esi
dec dword [0x101294dc]
push eax
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x1008356c
mov esi, dword [0x10125150]
push eax
jmp 0x1008355f
push esi
mov esi, dword [0x1012511c]
mov ecx, esi
call dword [0x1010a1d8]
call esi
add esp, 4
test ebx, ebx
jne 0x1008372d
mov cl, byte [edi + 0x15]
mov al, cl
shr al, 1
mov byte [edi + 0x14], al
cmp al, 1
jae 0x10083589
mov eax, str.Too_few_columns_for_an_rtree_table
jmp 0x1008359f
cmp cl, 0xa
jbe 0x10083595
mov eax, str.Too_many_columns_for_an_rtree_table
jmp 0x1008359f
test cl, 1
je 0x100835bc
mov eax, str.Wrong_number_of_columns_for_an_rtree_table
push eax
push 0x1010ba8c
call sym.e_sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp - 0x24]
add esp, 8
mov ebx, 1
mov dword [ecx], eax
jmp 0x1008372d
mov eax, dword [edi + 0x20]
add cl, 2
shl cl, 2
cmp dword [ebp + 0x20], 0
mov byte [edi + 0x17], cl
je 0x10083695
push eax
push str.PRAGMA__Q.page_size
mov dword [ebp - 0x28], 0
call sym.e_sqlite3.dll_sqlite3_mprintf
mov ebx, dword [ebp - 0x20]
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call fcn.100698d0
add esp, 0x14
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10083623
movzx ecx, byte [edi + 0x17]
mov edx, dword [ebp - 0x28]
imul ecx, ecx, 0x33
add edx, 0xffffffc0
mov dword [edi + 0x10], edx
add ecx, 4
cmp ecx, edx
jge 0x1008363c
push esi
mov dword [edi + 0x10], ecx
call sym.e_sqlite3.dll_sqlite3_free
add esp, 4
jmp 0x10083655
push ebx
call sym.e_sqlite3.dll_sqlite3_errmsg
push eax
push 0x1010ba8c
call sym.e_sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ecx], eax
push esi
call sym.e_sqlite3.dll_sqlite3_free
mov eax, dword [ebp - 0x1c]
add esp, 4
mov ebx, eax
test eax, eax
jne 0x1008372d
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
push dword [ebp + 0x20]
push dword [eax + 8]
push dword [eax + 4]
push ebx
push edi
call fcn.10083d80
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x10083710
push dword [ebp - 0x20]
call sym.e_sqlite3.dll_sqlite3_errmsg
push eax
push 0x1010ba8c
call sym.e_sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ecx], eax
jmp 0x1008372d
push dword [edi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call sym.e_sqlite3.dll_sqlite3_mprintf
mov esi, eax
lea eax, [edi + 0x10]
push eax
push esi
push dword [ebp - 0x20]
call fcn.100698d0
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov ebx, eax
test eax, eax
je 0x100836e1
push dword [ebp - 0x20]
call sym.e_sqlite3.dll_sqlite3_errmsg
push eax
push 0x1010ba8c
call sym.e_sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ecx], eax
call sym.e_sqlite3.dll_sqlite3_free
add esp, 0x10
jmp 0x1008372d
cmp dword [edi + 0x10], 0x1c0
jge 0x1008363c
push dword [edi + 0x24]
push str.undersize_RTree_blobs_in___q_node_
call sym.e_sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ecx], eax
call sym.e_sqlite3.dll_sqlite3_free
add esp, 0xc
mov ebx, 0x10b
jmp 0x1008372d
mov eax, dword [ebp - 0x34]
pop esi
mov dword [eax], edi
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fa425
mov esp, ebp
pop ebp
ret
mov ebx, 7
add dword [edi + 0x28], 0xffffffff
jne 0x100837ad
mov eax, dword [edi + 0x4c]
mov byte [edi + 0x18], 0
test eax, eax
je 0x10083754
cmp dword [edi + 0x38], 0
jne 0x10083754
push eax
mov dword [edi + 0x4c], 0
call sym.e_sqlite3.dll_sqlite3_blob_close
add esp, 4
push dword [edi + 0x50]
call sym.e_sqlite3.dll_sqlite3_finalize
push dword [edi + 0x54]
call sym.e_sqlite3.dll_sqlite3_finalize
push dword [edi + 0x58]
call sym.e_sqlite3.dll_sqlite3_finalize
push dword [edi + 0x5c]
call sym.e_sqlite3.dll_sqlite3_finalize
push dword [edi + 0x60]
call sym.e_sqlite3.dll_sqlite3_finalize
push dword [edi + 0x64]
call sym.e_sqlite3.dll_sqlite3_finalize
push dword [edi + 0x68]
call sym.e_sqlite3.dll_sqlite3_finalize
push dword [edi + 0x6c]
call sym.e_sqlite3.dll_sqlite3_finalize
push dword [edi + 0x70]
call sym.e_sqlite3.dll_sqlite3_finalize
push dword [edi + 0x40]
call sym.e_sqlite3.dll_sqlite3_free
push edi
call sym.e_sqlite3.dll_sqlite3_free
add esp, 0x2c
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fa425
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fa425
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 4
cmp edx, 6
cmovge eax, ecx
push dword [ebp + eax - 0x10]
push 0x1010ba8c
call sym.e_sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [ebx], eax
xor ecx, ebp
mov eax, 1
pop edi
pop ebx
call fcn.100fa425
mov esp, ebp
pop ebp
ret