Function at 0x1401aad40
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r14d, dword [rcx + 0x40]
mov r12, rcx
mov ebx, edx
mov r15, r8
mov rbp, r9
test r14d, r14d
jne 0x1401ab092
cmp qword [rcx + 0x20], 0
je 0x1401aad98
mov rcx, qword [r12 + 0x20]
mov r8, rbp
mov edx, 1
call fcn.1401f6d90
mov rcx, qword [r12 + 0x20]
call fcn.1401fc730
cmp eax, 0x64
je 0x1401aadbe
xor r9d, r9d
xor r13d, r13d
jmp 0x1401aae15
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
call fcn.1401ab0b0
cmp dword [r12 + 0x40], 0
mov qword [r12 + 0x20], rax
je 0x1401aad6f
jmp 0x1401ab092
mov rcx, qword [r12 + 0x20]
xor edx, edx
call fcn.1401f7b20
mov rcx, qword [r12 + 0x20]
xor edx, edx
mov dword [rsp + 0x38], eax
call fcn.1401f7af0
movsxd rcx, dword [rsp + 0x38]
mov rsi, rax
mov dword [rsp + 0x48], ecx
mov qword [rsp + 0x38], rcx
call fcn.1401fae60
mov rcx, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x48]
test rax, rax
mov r13, rax
jne 0x1401aae10
mov dword [r12 + 0x40], 7
xor r9d, r9d
jmp 0x1401aae15
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [r12 + 0x20]
mov dword [rsp + 0x38], r9d
call fcn.1401fb9b0
cmp dword [r12 + 0x40], 0
mov r9d, dword [rsp + 0x38]
jne 0x1401aae7e
mov dword [r12 + 0x40], eax
test eax, eax
jne 0x1401aae7e
test r13, r13
je 0x1401aae5c
cmp r9d, 3
jg 0x1401aae88
mov r8, rbp
lea rdx, str.Node__lld_is_too_small___d_bytes_
mov rcx, r12
call fcn.1401aab20
jmp 0x1401ab010
mov r8, rbp
lea rdx, str.Node__lld_missing_from_database
mov rcx, r12
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401aab20
test r13, r13
jne 0x1401aae3f
jmp 0x1401ab092
test r15, r15
jne 0x1401aaeb8
movzx ebx, byte [r13]
movzx edx, byte [r13 + 1]
shl ebx, 8
add ebx, edx
cmp ebx, 0x28
jle 0x1401aaeb8
mov r8d, ebx
lea rdx, str.Rtree_depth_out_of_range___d_
mov rcx, r12
call fcn.1401aab20
jmp 0x1401ab010
movzx esi, byte [r13 + 2]
movzx eax, byte [r13 + 3]
lea edi, [rbx - 1]
mov dword [rsp + 0x4c], edi
shl esi, 8
add eax, esi
mov dword [rsp + 0x48], eax
mov eax, dword [r12 + 0x1c]
inc eax
imul eax, dword [rsp + 0x48]
lea eax, [rax*8 + 3]
cmp eax, r9d
jl 0x1401aafb3
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0x48]
mov r8, rbp
mov rcx, r12
lea rdx, str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
call fcn.1401aab20
jmp 0x1401ab010
mov edx, dword [r10 + rsi*8 + 8]
mov r11d, dword [r10 + rsi*8 + 0xc]
cmp dword [r12 + 0x18], 0
bswap edx
bswap r11d
mov dword [rsp + 0x38], edx
je 0x1401aafe6
cmp edx, r11d
setg dl
test dl, dl
je 0x1401aaf6d
mov qword [rsp + 0x20], rbp
mov r9d, r14d
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
mov rcx, r12
mov dword [rsp + 0x5c], r11d
mov qword [rsp + 0x50], r10
mov dword [rsp + 0x58], r8d
call fcn.1401aab20
mov r11d, dword [rsp + 0x5c]
mov r10, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x58]
test r15, r15
jne 0x1401ab028
inc rsi
mov r8d, esi
cmp dword [r12 + 0x1c], esi
jg 0x1401aaf0f
mov r9, rbp
mov r8, rdi
test ebx, ebx
je 0x1401aaffc
xor edx, edx
mov rcx, r12
call fcn.1401aac20
mov r8, qword [rsp + 0x40]
mov r9, rdi
mov rcx, r12
mov edx, dword [rsp + 0x4c]
call fcn.1401aad40
inc dword [r12 + 0x3c]
inc r14d
cmp r14d, dword [rsp + 0x48]
je 0x1401ab010
mov eax, dword [r12 + 0x1c]
xor esi, esi
inc eax
imul eax, r14d
lea r10d, [rax*8 + 4]
movsxd r10, r10d
add r10, r13
mov rdi, qword [r10]
lea rax, [r10 + 8]
mov qword [rsp + 0x40], rax
bswap rdi
jmp 0x1401aaf79
movss xmm0, dword [rsp + 0x38]
movd xmm1, r11d
comiss xmm0, xmm1
seta dl
jmp 0x1401aaf34
mov edx, 1
mov rcx, r12
call fcn.1401aac20
inc dword [r12 + 0x38]
jmp 0x1401aafb0
mov rcx, r13
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401f9f40
mov edx, dword [r15 + rsi*8]
mov ecx, dword [r15 + rsi*8 + 4]
cmp dword [r12 + 0x18], 0
bswap edx
bswap ecx
jne 0x1401ab04a
movd xmm0, edx
comiss xmm0, dword [rsp + 0x38]
ja 0x1401ab06c
jmp 0x1401ab05a
cmp r11d, ecx
jg 0x1401ab06c
cmp dword [rsp + 0x38], edx
jl 0x1401ab06c
jmp 0x1401aaf76
movd xmm0, r11d
movd xmm2, ecx
comiss xmm0, xmm2
jbe 0x1401aaf76
mov qword [rsp + 0x20], rbp
mov r9d, r14d
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
mov rcx, r12
mov qword [rsp + 0x38], r10
call fcn.1401aab20
mov r10, qword [rsp + 0x38]
jmp 0x1401aaf76
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret