Function at 0x61e7bfe7
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x6c
cmp dword [ebx + 0x14], 0
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jne 0x61e7c02b
mov eax, dword [ebx + 8]
mov dword [esp + 4], str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
call sym._rtreeCheckPrepare
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x28], 0
jne 0x61e7c382
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_bind_int64
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_step
cmp eax, 0x64
jne 0x61e7c0bd
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_column_bytes
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_column_blob
mov edx, dword [ebp - 0x1c]
mov esi, eax
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call sym.sqlite3.dll_sqlite3_malloc
test eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x2c]
jne 0x61e7c0b4
mov dword [ebx + 0x28], 7
xor edx, edx
jmp 0x61e7c0c6
mov edi, dword [ebp - 0x1c]
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
jmp 0x61e7c0c6
xor edx, edx
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_reset
cmp dword [ebx + 0x28], 0
mov edx, dword [ebp - 0x2c]
jne 0x61e7c0e0
mov dword [ebx + 0x28], eax
cmp dword [ebx + 0x28], 0
jne 0x61e7c10f
cmp dword [ebp - 0x1c], 0
jne 0x61e7c119
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], str.Node__lld_missing_from_database
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call sym._rtreeCheckAppendMsg
jmp 0x61e7c382
cmp dword [ebp - 0x1c], 0
je 0x61e7c382
cmp edx, 3
jg 0x61e7c145
mov dword [esp + 0x10], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], str.Node__lld_is_too_small___d_bytes_
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call sym._rtreeCheckAppendMsg
jmp 0x61e7c370
cmp dword [ebp - 0x34], 0
jne 0x61e7c17e
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
movzx eax, byte [eax]
movzx ecx, byte [edi + 1]
shl eax, 8
add eax, ecx
cmp eax, 0x28
mov dword [ebp - 0x20], eax
jle 0x61e7c17e
mov dword [esp + 8], eax
mov dword [esp + 4], str.Rtree_depth_out_of_range___d_
mov dword [esp], ebx
call sym._rtreeCheckAppendMsg
jmp 0x61e7c370
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
movzx eax, byte [eax + 2]
movzx ecx, byte [edi + 3]
shl eax, 8
add eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x10]
lea eax, [eax*8 + 8]
imul eax, dword [ebp - 0x38]
add eax, 3
cmp eax, edx
jge 0x61e7c1b7
mov eax, dword [ebp - 0x20]
xor edi, edi
dec eax
mov dword [ebp - 0x48], eax
jmp 0x61e7c293
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call sym._rtreeCheckAppendMsg
jmp 0x61e7c370
mov eax, dword [edx + esi*8 + 8]
cmp dword [ebx + 0xc], 0
bswap eax
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + esi*8 + 0xc]
bswap eax
mov dword [ebp - 0x30], eax
je 0x61e7c2cc
cmp dword [ebp - 0x2c], eax
setg al
test al, al
je 0x61e7c237
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
mov dword [esp + 0x10], eax
mov dword [esp], ebx
mov dword [esp + 0x14], edx
call sym._rtreeCheckAppendMsg
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x34], 0
jne 0x61e7c2de
inc esi
cmp esi, dword [ebx + 0x10]
jl 0x61e7c1e5
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
jle 0x61e7c35c
xor edx, edx
mov eax, ebx
call sym._rtreeCheckMapping
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, ebx
call sym._rtreeCheckNode
inc dword [ebx + 0x24]
inc edi
cmp edi, dword [ebp - 0x38]
je 0x61e7c370
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x1c]
xor esi, esi
lea eax, [eax*8 + 8]
imul eax, edi
lea edx, [ecx + eax + 4]
mov eax, dword [edx]
bswap eax
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 4]
bswap eax
mov dword [ebp - 0x40], eax
lea eax, [edx + 8]
mov dword [ebp - 0x44], eax
jmp 0x61e7c242
fld dword [ebp - 0x30]
fld dword [ebp - 0x2c]
fucompi st(1)
fstp st(0)
seta al
jmp 0x61e7c207
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0xc], 0
mov ecx, dword [eax + esi*8]
mov eax, dword [eax + esi*8 + 4]
bswap ecx
bswap eax
je 0x61e7c2f9
cmp dword [ebp - 0x2c], ecx
jl 0x61e7c32b
jmp 0x61e7c30c
mov dword [ebp - 0x4c], ecx
fld dword [ebp - 0x4c]
fld dword [ebp - 0x2c]
fxch st(1)
fucompi st(1)
fstp st(0)
ja 0x61e7c32b
jmp 0x61e7c316
cmp dword [ebp - 0x30], eax
jg 0x61e7c32b
jmp 0x61e7c241
fld dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
fld dword [ebp - 0x2c]
fxch st(1)
fucompi st(1)
fstp st(0)
jbe 0x61e7c241
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
mov dword [esp + 0x10], eax
mov dword [esp], ebx
mov dword [esp + 0x14], edx
call sym._rtreeCheckAppendMsg
mov edx, dword [ebp - 0x2c]
jmp 0x61e7c241
mov edx, 1
mov eax, ebx
call sym._rtreeCheckMapping
inc dword [ebx + 0x20]
jmp 0x61e7c292
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
jmp sym.sqlite3.dll_sqlite3_free
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret