Function at 0x6492c0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
cmp dword [rcx + 0x40], 0
mov r13, rcx
mov ebp, edx
mov r15, r8
mov r12, r9
jne 0x649300
cmp qword [rcx + 0x20], 0
jne 0x649300
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
call fcn.00649620
mov qword [r13 + 0x20], rax
mov eax, dword [r13 + 0x40]
test eax, eax
mov dword [rsp + 0x3c], eax
jne 0x649605
mov rcx, qword [r13 + 0x20]
mov r8, r12
mov edx, 1
call fcn.006947f0
mov rcx, qword [r13 + 0x20]
call fcn.00699ec0
cmp eax, 0x64
jne 0x64937d
mov rcx, qword [r13 + 0x20]
xor edx, edx
call fcn.00695520
mov rcx, qword [r13 + 0x20]
xor edx, edx
mov dword [rsp + 0x40], eax
call fcn.006954f0
movsxd r14, dword [rsp + 0x40]
mov rsi, rax
mov rcx, r14
call fcn.00698860
test rax, rax
mov rbx, rax
mov r9d, dword [rsp + 0x40]
jne 0x649373
mov dword [r13 + 0x40], 7
xor r9d, r9d
jmp 0x649382
mov rdi, rax
mov rcx, r14
rep movsb byte [rdi], byte [rsi]
jmp 0x649382
xor r9d, r9d
xor ebx, ebx
mov rcx, qword [r13 + 0x20]
mov dword [rsp + 0x40], r9d
call fcn.00699140
cmp dword [r13 + 0x40], 0
mov r9d, dword [rsp + 0x40]
jne 0x6493a0
mov dword [r13 + 0x40], eax
cmp dword [r13 + 0x40], 0
jne 0x6493ce
test rbx, rbx
jne 0x6493d7
lea rdx, str.Node__lld_missing_from_database
mov r8, r12
mov rcx, r13
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.006490a0
test rbx, rbx
je 0x649605
cmp r9d, 3
jg 0x6493f4
lea rdx, str.Node__lld_is_too_small___d_bytes_
mov r8, r12
mov rcx, r13
call fcn.006490a0
jmp 0x6495ed
test r15, r15
jne 0x649421
movzx ebp, byte [rbx]
movzx eax, byte [rbx + 1]
shl ebp, 8
add ebp, eax
cmp ebp, 0x28
jle 0x649421
lea rdx, str.Rtree_depth_out_of_range___d_
mov r8d, ebp
mov rcx, r13
call fcn.006490a0
jmp 0x6495ed
movzx r14d, byte [rbx + 2]
movzx eax, byte [rbx + 3]
shl r14d, 8
add eax, r14d
mov dword [rsp + 0x48], eax
mov eax, dword [r13 + 0x1c]
lea eax, [rax*8 + 8]
imul eax, dword [rsp + 0x48]
add eax, 3
cmp eax, r9d
jge 0x649459
lea eax, [rbp - 1]
mov dword [rsp + 0x58], eax
jmp 0x649515
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0x48]
lea rdx, str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
mov r8, r12
mov rcx, r13
call fcn.006490a0
jmp 0x6495ed
mov edx, dword [rdi + r14*8 + 8]
cmp dword [r13 + 0x18], 0
bswap edx
mov dword [rsp + 0x40], edx
mov edx, dword [rdi + r14*8 + 0xc]
bswap edx
mov dword [rsp + 0x44], edx
je 0x649550
cmp dword [rsp + 0x40], edx
setg dl
test dl, dl
je 0x6494cc
mov r9d, dword [rsp + 0x3c]
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
mov r8d, r11d
mov qword [rsp + 0x20], r12
mov rcx, r13
mov dword [rsp + 0x4c], r11d
call fcn.006490a0
mov r11d, dword [rsp + 0x4c]
test r15, r15
jne 0x649563
inc r14
cmp r14d, dword [r13 + 0x1c]
mov r11d, r14d
jl 0x64947a
test ebp, ebp
mov r9, r12
mov r8, rsi
je 0x6495d7
xor edx, edx
mov rcx, r13
call fcn.006491a0
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
mov r9, rsi
mov rcx, r13
call fcn.006492c0
inc dword [r13 + 0x3c]
inc dword [rsp + 0x3c]
mov esi, dword [rsp + 0x48]
cmp dword [rsp + 0x3c], esi
je 0x6495ed
mov eax, dword [r13 + 0x1c]
xor r14d, r14d
lea edi, [rax*8 + 8]
imul edi, dword [rsp + 0x3c]
add edi, 4
movsxd rdi, edi
add rdi, rbx
mov rsi, qword [rdi]
lea rax, [rdi + 8]
mov qword [rsp + 0x50], rax
bswap rsi
jmp 0x6494d8
movss xmm0, dword [rsp + 0x40]
ucomiss xmm0, dword [rsp + 0x44]
seta dl
jmp 0x6494a2
mov ecx, dword [r15 + r14*8 + 4]
cmp dword [r13 + 0x18], 0
mov edx, dword [r15 + r14*8]
bswap ecx
bswap edx
mov dword [rsp + 0x4c], ecx
je 0x649583
cmp dword [rsp + 0x40], edx
jl 0x6495b6
jmp 0x649596
mov dword [rsp + 0x5c], edx
movss xmm0, dword [rsp + 0x5c]
ucomiss xmm0, dword [rsp + 0x40]
ja 0x6495b6
jmp 0x6495a5
mov edx, dword [rsp + 0x4c]
cmp dword [rsp + 0x44], edx
jg 0x6495b6
jmp 0x6494d5
movss xmm0, dword [rsp + 0x44]
ucomiss xmm0, dword [rsp + 0x4c]
jbe 0x6494d5
mov r9d, dword [rsp + 0x3c]
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
mov qword [rsp + 0x20], r12
mov r8d, r11d
mov rcx, r13
call fcn.006490a0
jmp 0x6494d5
mov edx, 1
mov rcx, r13
call fcn.006491a0
inc dword [r13 + 0x38]
jmp 0x649511
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.00697980
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret