Function at 0x100dd360
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x100dd8cd
cmp dword [edi + 0x14], ebx
jne 0x100dd3ac
push dword [edi + 8]
push dword [edi + 4]
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push edi
call fcn.100dd230
mov dword [edi + 0x14], eax
add esp, 0x10
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x100dd8cd
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push 1
push dword [edi + 0x14]
call sym.sqlite3.dll_sqlite3_bind_int64
push dword [edi + 0x14]
call sym.sqlite3.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x64
jne 0x100dd433
push 0
push dword [edi + 0x14]
call sym.sqlite3.dll_sqlite3_column_bytes
push 0
push dword [edi + 0x14]
mov ebx, eax
call sym.sqlite3.dll_sqlite3_column_blob
add esp, 0x10
mov dword [esp + 0x30], eax
call sym.sqlite3.dll_sqlite3_initialize
test eax, eax
je 0x100dd402
xor ebx, ebx
mov dword [edi + 0x28], 7
mov dword [esp + 0x10], ebx
jmp 0x100dd430
mov eax, ebx
cdq
push edx
push eax
call fcn.100049e0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100dd420
mov dword [edi + 0x28], 7
jmp 0x100dd430
push ebx
push dword [esp + 0x34]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, ebx
mov ebx, dword [ebp + 0x10]
push dword [edi + 0x14]
call sym.sqlite3.dll_sqlite3_reset
mov ecx, dword [edi + 0x28]
add esp, 4
test ecx, ecx
jne 0x100dd470
mov ecx, eax
mov dword [edi + 0x28], eax
test ecx, ecx
jne 0x100dd470
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x100dd47c
mov eax, dword [ebp + 0xc]
push ebx
push eax
push str.Node__lld_missing_from_database
push edi
call fcn.100dd300
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
test edx, edx
je 0x100dd8cd
cmp esi, 4
jge 0x100dd49a
mov eax, dword [ebp + 0xc]
push esi
push ebx
push eax
push str.Node__lld_is_too_small___d_bytes_
push edi
call fcn.100dd300
add esp, 0x14
jmp 0x100dd865
cmp dword [ebp + 8], 0
jne 0x100dd52a
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add eax, ecx
mov dword [esp + 0x1c], eax
cmp eax, 0x28
jbe 0x100dd52a
push eax
push str.Rtree_depth_out_of_range___d_
push edi
call fcn.100dd300
add esp, 0xc
cmp dword [0x1011d0f8], 0
je 0x100dd8bf
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dd4e8
push eax
call dword [0x1011d148]
add esp, 4
mov ebx, dword [esp + 0x10]
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 0x100dd8cd
push eax
call dword [0x1011d150]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 [esp + 0x44], ecx
imul eax, ecx
lea eax, [eax*8 + 4]
cmp eax, esi
jle 0x100dd567
mov eax, dword [ebp + 0xc]
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.100dd300
add esp, 0x18
jmp 0x100dd865
xor edx, edx
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x100dd865
mov ecx, dword [edi + 0x10]
mov esi, dword [esp + 0x10]
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 [esp + 0x14], ebx
add esi, 0xc
bswap edx
xor ebx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], esi
test ecx, ecx
jle 0x100dd6a0
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ecx
mov dword [esp + 0x40], eax
lea edx, [ecx + 4]
mov dword [esp + 0x20], edx
nop dword [eax]
mov ecx, dword [esi + ebx*8]
mov esi, dword [eax + edx]
xor eax, eax
bswap ecx
bswap esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
cmp dword [edi + 0xc], eax
je 0x100dd5e4
cmp ecx, esi
setg al
jmp 0x100dd5f2
movss xmm0, dword [esp + 0x28]
comiss xmm0, dword [esp + 0x2c]
seta al
test eax, eax
je 0x100dd613
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x2c]
push ebx
push str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
push edi
call fcn.100dd300
mov edx, dword [esp + 0x38]
add esp, 0x18
cmp dword [ebp + 8], 0
je 0x100dd687
mov ecx, dword [edx - 4]
xor eax, eax
mov edx, dword [edx]
bswap ecx
bswap edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
cmp dword [edi + 0xc], eax
je 0x100dd63a
cmp dword [esp + 0x34], ecx
setl al
jmp 0x100dd648
movss xmm0, dword [esp + 0x38]
comiss xmm0, dword [esp + 0x28]
seta al
test eax, eax
jne 0x100dd66a
cmp dword [edi + 0xc], eax
je 0x100dd658
cmp esi, edx
setg al
jmp 0x100dd666
movss xmm0, dword [esp + 0x2c]
comiss xmm0, dword [esp + 0x3c]
seta al
test eax, eax
je 0x100dd683
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x2c]
push ebx
push str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
push edi
call fcn.100dd300
add esp, 0x18
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
inc ebx
mov esi, dword [esp + 0x30]
add edx, 8
mov dword [esp + 0x20], edx
cmp ebx, dword [edi + 0x10]
jl 0x100dd5c0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jle 0x100dd790
cmp dword [edi + 0x18], 0
jne 0x100dd6c9
push dword [edi + 8]
push dword [edi + 4]
push str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
push edi
call fcn.100dd230
add esp, 0x10
mov dword [edi + 0x18], eax
cmp dword [edi + 0x28], 0
jne 0x100dd76f
push dword [esp + 0x14]
mov esi, dword [edi + 0x18]
push dword [esp + 0x1c]
push 1
push esi
call sym.sqlite3.dll_sqlite3_bind_int64
push esi
call sym.sqlite3.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x65
jne 0x100dd718
mov ebx, dword [ebp + 0xc]
push str.__parent
push dword [ebp + 0x10]
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
push str.Mapping___lld_____lld__missing_from__s_table
push edi
call fcn.100dd300
add esp, 0x1c
jmp 0x100dd759
cmp eax, 0x64
jne 0x100dd75d
push 0
push esi
call sym.sqlite3.dll_sqlite3_column_int64
mov ebx, dword [ebp + 0xc]
add esp, 8
mov ecx, dword [ebp + 0x10]
cmp eax, ebx
jne 0x100dd736
cmp edx, ecx
je 0x100dd759
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
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.100dd300
add esp, 0x2c
mov ebx, dword [esp + 0x1c]
push esi
call sym.sqlite3.dll_sqlite3_reset
add esp, 4
cmp dword [edi + 0x28], 0
jne 0x100dd76f
mov dword [edi + 0x28], eax
push dword [esp + 0x14]
lea edx, [ebx - 1]
mov ecx, edi
push dword [esp + 0x1c]
push dword [esp + 0x38]
call fcn.100dd360
add esp, 0xc
inc dword [edi + 0x24]
jmp 0x100dd852
cmp dword [edi + 0x1c], 0
jne 0x100dd7ad
push dword [edi + 8]
push dword [edi + 4]
push str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
call fcn.100dd230
add esp, 0x10
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x28], 0
jne 0x100dd84f
push dword [esp + 0x14]
mov esi, dword [edi + 0x1c]
push dword [esp + 0x1c]
push 1
push esi
call sym.sqlite3.dll_sqlite3_bind_int64
push esi
call sym.sqlite3.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x65
jne 0x100dd7fc
mov ebx, dword [ebp + 0xc]
push str.__rowid
push dword [ebp + 0x10]
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
push str.Mapping___lld_____lld__missing_from__s_table
push edi
call fcn.100dd300
add esp, 0x1c
jmp 0x100dd83d
cmp eax, 0x64
jne 0x100dd83d
push 0
push esi
call sym.sqlite3.dll_sqlite3_column_int64
mov ebx, dword [ebp + 0xc]
add esp, 8
mov ecx, dword [ebp + 0x10]
cmp eax, ebx
jne 0x100dd81a
cmp edx, ecx
je 0x100dd83d
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
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.100dd300
add esp, 0x2c
push esi
call sym.sqlite3.dll_sqlite3_reset
add esp, 4
cmp dword [edi + 0x28], 0
jne 0x100dd84f
mov dword [edi + 0x28], eax
inc dword [edi + 0x20]
mov edx, dword [esp + 0x24]
inc edx
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x44]
jl 0x100dd575
cmp dword [0x1011d0f8], 0
je 0x100dd8bf
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dd881
push eax
call dword [0x1011d148]
add esp, 4
mov ebx, dword [esp + 0x10]
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 0x100dd8cd
push eax
call dword [0x1011d150]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
push ebx
call dword [0x1011d11c]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret