Function at 0x10082190
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x1008271d
cmp dword [edi + 0x14], ebx
jne 0x100821d5
push dword [edi + 8]
push dword [edi + 4]
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push edi
call fcn.10082730
mov dword [edi + 0x14], eax
add esp, 0x10
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x1008271d
mov ebx, dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
push 1
push dword [edi + 0x14]
call sym.e_sqlite3.dll_sqlite3_bind_int64
push dword [edi + 0x14]
call sym.e_sqlite3.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x64
jne 0x10082258
push 0
push dword [edi + 0x14]
call sym.e_sqlite3.dll_sqlite3_column_bytes
push 0
push dword [edi + 0x14]
mov ebx, eax
call sym.e_sqlite3.dll_sqlite3_column_blob
add esp, 0x10
mov dword [ebp - 0x24], eax
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
je 0x10082229
xor ebx, ebx
mov dword [edi + 0x28], 7
mov dword [ebp - 4], ebx
jmp 0x10082255
mov eax, ebx
cdq
push edx
push eax
call fcn.100b3720
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x10082246
mov dword [edi + 0x28], 7
jmp 0x10082255
push ebx
push dword [ebp - 0x24]
push eax
call fcn.100fba90
add esp, 0xc
mov esi, ebx
mov ebx, dword [ebp + 0x18]
push dword [edi + 0x14]
call sym.e_sqlite3.dll_sqlite3_reset
mov ecx, dword [edi + 0x28]
add esp, 4
test ecx, ecx
jne 0x10082294
mov ecx, eax
mov dword [edi + 0x28], eax
test ecx, ecx
jne 0x10082294
mov edx, dword [ebp - 4]
test edx, edx
jne 0x1008229f
mov eax, dword [ebp + 0x14]
push ebx
push eax
push str.Node__lld_missing_from_database
push edi
call fcn.100820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
test edx, edx
je 0x1008271d
cmp esi, 4
jge 0x100822bd
mov eax, dword [ebp + 0x14]
push esi
push ebx
push eax
push str.Node__lld_is_too_small___d_bytes_
push edi
call fcn.100820b0
add esp, 0x14
jmp 0x10082685
cmp dword [ebp + 0x10], 0
jne 0x10082377
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add eax, ecx
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x1008237d
push eax
push str.Rtree_depth_out_of_range___d_
push edi
call fcn.100820b0
add esp, 0xc
cmp dword [0x101250f8], 0
je 0x10082706
mov eax, dword [0x10129520]
test eax, eax
je 0x10082318
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov ebx, dword [ebp - 4]
mov esi, dword [0x10125124]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push ebx
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x1008271d
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
add ecx, eax
mov eax, dword [edi + 0x10]
inc eax
mov dword [ebp - 0x38], ecx
imul eax, ecx
lea eax, [eax*8 + 4]
cmp eax, esi
jle 0x100823b9
mov eax, dword [ebp + 0x14]
push esi
push ecx
push ebx
push eax
push str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
push edi
call fcn.100820b0
add esp, 0x18
jmp 0x10082685
xor edx, edx
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x10082685
mov ecx, dword [edi + 0x10]
mov esi, dword [ebp - 4]
lea eax, [ecx + 1]
imul eax, edx
mov ebx, dword [esi + eax*8 + 4]
mov edx, dword [esi + eax*8 + 8]
lea esi, [esi + eax*8]
bswap ebx
mov dword [ebp - 8], ebx
add esi, 0xc
bswap edx
xor ebx, ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], esi
test ecx, ecx
jle 0x100824d4
mov ecx, dword [ebp + 0x10]
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x34], eax
lea edx, [ecx + 4]
mov dword [ebp - 0x14], edx
mov ecx, dword [esi + ebx*8]
mov esi, dword [eax + edx]
xor eax, eax
bswap ecx
bswap esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], esi
cmp dword [edi + 0xc], eax
je 0x10082428
cmp ecx, esi
setg al
jmp 0x10082434
movss xmm0, dword [ebp - 0x1c]
comiss xmm0, dword [ebp - 0x20]
seta al
test eax, eax
je 0x10082453
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x18]
push ebx
push str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
push edi
call fcn.100820b0
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x100824be
mov ecx, dword [edx - 4]
xor eax, eax
mov edx, dword [edx]
bswap ecx
bswap edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
cmp dword [edi + 0xc], eax
je 0x10082477
cmp dword [ebp - 0x28], ecx
setl al
jmp 0x10082483
movss xmm0, dword [ebp - 0x2c]
comiss xmm0, dword [ebp - 0x1c]
seta al
test eax, eax
jne 0x100824a3
cmp dword [edi + 0xc], eax
je 0x10082493
cmp esi, edx
setg al
jmp 0x1008249f
movss xmm0, dword [ebp - 0x20]
comiss xmm0, dword [ebp - 0x30]
seta al
test eax, eax
je 0x100824bb
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x18]
push ebx
push str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
push edi
call fcn.100820b0
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
inc ebx
mov esi, dword [ebp - 0x24]
add edx, 8
mov dword [ebp - 0x14], edx
cmp ebx, dword [edi + 0x10]
jl 0x10082407
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jle 0x100825b9
cmp dword [edi + 0x18], 0
jne 0x100824fc
push dword [edi + 8]
push dword [edi + 4]
push str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
push edi
call fcn.10082730
add esp, 0x10
mov dword [edi + 0x18], eax
cmp dword [edi + 0x28], 0
jne 0x1008259b
push dword [ebp - 8]
mov esi, dword [edi + 0x18]
push dword [ebp - 0xc]
push 1
push esi
call sym.e_sqlite3.dll_sqlite3_bind_int64
push esi
call sym.e_sqlite3.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x65
jne 0x10082547
mov ebx, dword [ebp + 0x14]
push str.__parent
push dword [ebp + 0x18]
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Mapping___lld_____lld__missing_from__s_table
push edi
call fcn.100820b0
add esp, 0x1c
jmp 0x10082586
cmp eax, 0x64
jne 0x10082589
push 0
push esi
call sym.e_sqlite3.dll_sqlite3_column_int64
mov ebx, dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp + 0x18]
cmp eax, ebx
jne 0x10082565
cmp edx, ecx
je 0x10082586
push ecx
mov ecx, dword [ebp - 0xc]
push ebx
mov ebx, dword [ebp - 8]
push ebx
push ecx
push str.__parent
push edx
push eax
push ebx
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push edi
call fcn.100820b0
add esp, 0x2c
mov ebx, dword [ebp - 0x10]
push esi
call sym.e_sqlite3.dll_sqlite3_reset
add esp, 4
cmp dword [edi + 0x28], 0
jne 0x1008259b
mov dword [edi + 0x28], eax
push dword [ebp - 8]
lea eax, [ebx - 1]
push dword [ebp - 0xc]
push dword [ebp - 0x24]
push eax
push edi
call fcn.10082190
add esp, 0x14
inc dword [edi + 0x24]
jmp 0x10082675
cmp dword [edi + 0x1c], 0
jne 0x100825d6
push dword [edi + 8]
push dword [edi + 4]
push str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
call fcn.10082730
add esp, 0x10
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x28], 0
jne 0x10082672
push dword [ebp - 8]
mov esi, dword [edi + 0x1c]
push dword [ebp - 0xc]
push 1
push esi
call sym.e_sqlite3.dll_sqlite3_bind_int64
push esi
call sym.e_sqlite3.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x65
jne 0x10082621
mov ebx, dword [ebp + 0x14]
push str.__rowid
push dword [ebp + 0x18]
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Mapping___lld_____lld__missing_from__s_table
push edi
call fcn.100820b0
add esp, 0x1c
jmp 0x10082660
cmp eax, 0x64
jne 0x10082660
push 0
push esi
call sym.e_sqlite3.dll_sqlite3_column_int64
mov ebx, dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp + 0x18]
cmp eax, ebx
jne 0x1008263f
cmp edx, ecx
je 0x10082660
push ecx
mov ecx, dword [ebp - 0xc]
push ebx
mov ebx, dword [ebp - 8]
push ebx
push ecx
push str.__rowid
push edx
push eax
push ebx
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push edi
call fcn.100820b0
add esp, 0x2c
push esi
call sym.e_sqlite3.dll_sqlite3_reset
add esp, 4
cmp dword [edi + 0x28], 0
jne 0x10082672
mov dword [edi + 0x28], eax
inc dword [edi + 0x20]
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x38]
jl 0x100823c6
cmp dword [0x101250f8], 0
je 0x10082706
mov eax, dword [0x10129520]
test eax, eax
je 0x100826ab
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov ebx, dword [ebp - 4]
mov esi, dword [0x10125124]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push ebx
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x1008271d
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
mov esi, dword [0x1012511c]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret