Function at 0x4d6920
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
xor esi, esi
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x4d6c72
cmp dword [edi + 0x14], esi
jne 0x4d6964
push dword [edi + 8]
push dword [edi + 4]
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push edi
call fcn.004d6c80
mov dword [edi + 0x14], eax
add esp, 0x10
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x4d6c72
push ebx
mov ebx, dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
push 1
push dword [edi + 0x14]
call fcn.00495a80
push dword [edi + 0x14]
call fcn.00496550
add esp, 0x14
cmp eax, 0x64
jne 0x4d69e8
push 0
push dword [edi + 0x14]
call fcn.00496cf0
push 0
push dword [edi + 0x14]
mov ebx, eax
call fcn.00496810
add esp, 0x10
mov dword [ebp - 0x24], eax
call fcn.0051b8b0
test eax, eax
je 0x4d69b9
xor eax, eax
mov dword [edi + 0x28], 7
mov dword [ebp - 4], eax
jmp 0x4d69e5
mov eax, ebx
cdq
push edx
push eax
call fcn.004f8900
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d69d6
mov dword [edi + 0x28], 7
jmp 0x4d69e5
push ebx
push dword [ebp - 0x24]
push eax
call fcn.00546100
add esp, 0xc
mov esi, ebx
mov ebx, dword [ebp + 0x18]
push dword [edi + 0x14]
call fcn.00497540
mov ecx, dword [edi + 0x28]
add esp, 4
test ecx, ecx
jne 0x4d6a24
mov ecx, eax
mov dword [edi + 0x28], eax
test ecx, ecx
jne 0x4d6a24
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4d6a2f
mov eax, dword [ebp + 0x14]
push ebx
push eax
push str.Node__lld_missing_from_database
push edi
call fcn.004d6730
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
test edx, edx
je 0x4d6c71
cmp esi, 4
jge 0x4d6a5b
mov eax, dword [ebp + 0x14]
push esi
push ebx
push eax
push str.Node__lld_is_too_small___d_bytes_
push edi
call fcn.004d6730
mov edx, dword [ebp - 4]
add esp, 0x14
push edx
call fcn.00493e30
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x4d6a94
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add eax, ecx
mov dword [ebp - 0x14], eax
cmp eax, 0x28
jbe 0x4d6a9a
push eax
push str.Rtree_depth_out_of_range___d_
push edi
call fcn.004d6730
mov eax, dword [ebp - 4]
push eax
call fcn.00493e30
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 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 0x4d6ae4
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.004d6730
mov edx, dword [ebp - 4]
add esp, 0x18
push edx
call fcn.00493e30
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x10], esi
test ecx, ecx
je 0x4d6c68
mov ecx, dword [edi + 0x10]
lea eax, [ecx + 1]
imul eax, esi
mov ebx, dword [edx + eax*8 + 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [edx + eax*8 + 8]
lea edx, [edx + eax*8]
mov edi, dword [ebp - 0xc]
add edx, 0xc
bswap ebx
bswap edi
mov dword [ebp - 0x24], ebx
xor ebx, ebx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edx
test ecx, ecx
jle 0x4d6c15
mov eax, dword [ebp + 0x10]
sub edx, eax
mov dword [ebp - 0x28], edx
lea ecx, [eax + 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + ebx*8]
mov eax, dword [ebp - 0x28]
bswap edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], edx
mov esi, dword [eax + ecx]
xor eax, eax
bswap esi
mov dword [ebp - 0x1c], esi
cmp dword [edi + 0xc], eax
je 0x4d6b5d
cmp edx, esi
setg al
jmp 0x4d6b69
movss xmm0, dword [ebp - 0x18]
comiss xmm0, dword [ebp - 0x1c]
seta al
test eax, eax
je 0x4d6b8b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push ebx
push str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
push edi
call fcn.004d6730
mov edx, dword [ebp - 0x2c]
add esp, 0x18
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], 0
je 0x4d6c02
mov eax, dword [ebp - 8]
mov ecx, dword [ecx - 4]
bswap ecx
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax]
bswap eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
xor eax, eax
cmp dword [edi + 0xc], eax
je 0x4d6bb4
cmp edx, ecx
setl al
jmp 0x4d6bc0
movss xmm0, dword [ebp - 0x2c]
comiss xmm0, dword [ebp - 0x18]
seta al
test eax, eax
jne 0x4d6be1
cmp dword [edi + 0xc], eax
je 0x4d6bd1
cmp esi, dword [ebp - 0x30]
setg al
jmp 0x4d6bdd
movss xmm0, dword [ebp - 0x1c]
comiss xmm0, dword [ebp - 0x34]
seta al
test eax, eax
je 0x4d6bff
push dword [ebp + 0x18]
mov esi, dword [ebp - 0x10]
push dword [ebp + 0x14]
push esi
push ebx
push str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
push edi
call fcn.004d6730
mov ecx, dword [ebp - 8]
add esp, 0x18
jmp 0x4d6c05
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
inc ebx
add ecx, 8
mov dword [ebp - 8], ecx
cmp ebx, dword [edi + 0x10]
jl 0x4d6b36
cmp dword [ebp - 0x14], 0
push dword [ebp + 0x18]
mov ebx, dword [ebp - 0x24]
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push ebx
jle 0x4d6c4a
push 0
push edi
call fcn.004d6810
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
push ebx
push dword [ebp - 0x20]
dec eax
push eax
push edi
call fcn.004d6920
add esp, 0x2c
inc dword [edi + 0x24]
jmp 0x4d6c58
push 1
push edi
call fcn.004d6810
add esp, 0x18
inc dword [edi + 0x20]
mov edx, dword [ebp - 4]
inc esi
mov dword [ebp - 0x10], esi
cmp esi, dword [ebp - 0x38]
jl 0x4d6af1
push edx
call fcn.00493e30
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret