Function at 0x49b6d3
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 + 0x28], 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 0x49b71d
cmp dword [ebx + 0x14], 0
jne 0x49b71d
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 fcn.0048b6eb
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x28], 0
jne 0x49ba7d
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 fcn.0042df3c
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x49b7b8
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041fc78
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041fe8a
mov edx, dword [ebp - 0x1c]
mov esi, eax
mov eax, edx
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.00436e2c
test eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x2c]
jne 0x49b7af
mov dword [ebx + 0x28], 7
xor edx, edx
jmp 0x49b7c1
mov edi, dword [ebp - 0x1c]
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
jmp 0x49b7c1
xor edx, edx
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call fcn.0045a638
cmp dword [ebx + 0x28], 0
mov edx, dword [ebp - 0x2c]
jne 0x49b7db
mov dword [ebx + 0x28], eax
cmp dword [ebx + 0x28], 0
jne 0x49b80a
cmp dword [ebp - 0x1c], 0
jne 0x49b814
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 fcn.004484fd
jmp 0x49ba7d
cmp dword [ebp - 0x1c], 0
je 0x49ba7d
cmp edx, 3
jg 0x49b840
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 fcn.004484fd
jmp 0x49ba6b
cmp dword [ebp - 0x34], 0
jne 0x49b879
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 0x49b879
mov dword [esp + 8], eax
mov dword [esp + 4], str.Rtree_depth_out_of_range___d_
mov dword [esp], ebx
call fcn.004484fd
jmp 0x49ba6b
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 0x49b8b2
mov eax, dword [ebp - 0x20]
xor edi, edi
dec eax
mov dword [ebp - 0x48], eax
jmp 0x49b98e
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 fcn.004484fd
jmp 0x49ba6b
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 0x49b9c7
cmp dword [ebp - 0x2c], eax
setg al
test al, al
je 0x49b932
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 fcn.004484fd
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x34], 0
jne 0x49b9d9
inc esi
cmp esi, dword [ebx + 0x10]
jl 0x49b8e0
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 0x49ba57
xor edx, edx
mov eax, ebx
call fcn.00493f0f
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 fcn.0049b6d3
inc dword [ebx + 0x24]
inc edi
cmp edi, dword [ebp - 0x38]
je 0x49ba6b
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 0x49b93d
fld dword [ebp - 0x30]
fld dword [ebp - 0x2c]
fucompi st(1)
fstp st(0)
seta al
jmp 0x49b902
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 0x49b9f4
cmp dword [ebp - 0x2c], ecx
jl 0x49ba26
jmp 0x49ba07
mov dword [ebp - 0x4c], ecx
fld dword [ebp - 0x4c]
fld dword [ebp - 0x2c]
fxch st(1)
fucompi st(1)
fstp st(0)
ja 0x49ba26
jmp 0x49ba11
cmp dword [ebp - 0x30], eax
jg 0x49ba26
jmp 0x49b93c
fld dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
fld dword [ebp - 0x2c]
fxch st(1)
fucompi st(1)
fstp st(0)
jbe 0x49b93c
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 fcn.004484fd
mov edx, dword [ebp - 0x2c]
jmp 0x49b93c
mov edx, 1
mov eax, ebx
call fcn.00493f0f
inc dword [ebx + 0x20]
jmp 0x49b98d
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040b268
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret