Function at 0x7f1710
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 esi, dword [rcx + 0x40]
mov dword [rsp + 0x3c], edx
mov r12, rcx
mov rbp, r8
mov rdi, r9
test esi, esi
je 0x7f1748
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x7f1a88
mov r8, rdi
mov edx, 1
xor ebx, ebx
xor r14d, r14d
call fcn.00761bc0
mov rcx, qword [r12 + 0x20]
call fcn.007c4730
cmp eax, 0x64
je 0x7f1a38
mov rcx, qword [r12 + 0x20]
call fcn.0079e1c0
mov r10d, dword [r12 + 0x40]
test r10d, r10d
je 0x7f1920
test r14, r14
je 0x7f1734
cmp ebx, 3
jle 0x7f19d8
test rbp, rbp
je 0x7f1b00
movzx eax, byte [r14 + 2]
movzx edx, byte [r14 + 3]
shl eax, 8
lea r10d, [rax + rdx]
mov edx, dword [r12 + 0x1c]
mov ecx, r10d
mov dword [rsp + 0x58], r10d
lea eax, [rdx + 1]
imul ecx, eax
lea ecx, [rcx*8 + 3]
cmp ecx, ebx
jge 0x7f1ad8
mov ebx, dword [rsp + 0x3c]
sub ebx, 1
mov dword [rsp + 0x5c], ebx
test r10d, r10d
je 0x7f19ed
mov qword [rsp + 0x50], r14
mov r14, r12
mov r12d, esi
imul eax, r12d
mov rbx, qword [rsp + 0x50]
xor r13d, r13d
lea eax, [rax*8 + 4]
cdqe
lea rsi, [rbx + rax]
mov r15, qword [rsi]
lea rax, [rsi + 8]
mov qword [rsp + 0x48], rax
bswap r15
test edx, edx
jle 0x7f1988
mov qword [rsp + 0x40], r15
mov r9d, r12d
mov r15, rsi
jmp 0x7f18bf
cmp esi, ebx
setg al
test al, al
jne 0x7f18f3
test rbp, rbp
je 0x7f18b1
mov eax, dword [rbp + r13*8]
mov edx, dword [rbp + r13*8 + 4]
mov ecx, dword [r14 + 0x18]
bswap eax
bswap edx
test ecx, ecx
jne 0x7f1960
movd xmm0, eax
movd xmm2, esi
comiss xmm0, xmm2
ja 0x7f1890
movd xmm0, ebx
movd xmm3, edx
comiss xmm0, xmm3
jbe 0x7f18b1
nop word cs:[rax + rax]
mov qword [rsp + 0x20], rdi
mov r8d, r12d
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
mov rcx, r14
mov dword [rsp + 0x38], r9d
call fcn.00786ac0
mov r9d, dword [rsp + 0x38]
add r13, 1
cmp dword [r14 + 0x1c], r13d
jle 0x7f1980
mov esi, dword [r15 + r13*8 + 8]
mov ebx, dword [r15 + r13*8 + 0xc]
mov r12d, r13d
mov r8d, dword [r14 + 0x18]
bswap esi
bswap ebx
test r8d, r8d
jne 0x7f1840
movd xmm0, esi
movd xmm1, ebx
comiss xmm0, xmm1
seta al
test al, al
je 0x7f184d
mov qword [rsp + 0x20], rdi
mov r8d, r12d
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
mov rcx, r14
mov dword [rsp + 0x38], r9d
call fcn.00786ac0
mov r9d, dword [rsp + 0x38]
jmp 0x7f184d
mov dword [r12 + 0x40], eax
test eax, eax
jne 0x7f1792
test r14, r14
jne 0x7f1797
mov r8, rdi
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.00786ac0
cmp ebx, edx
jg 0x7f1890
cmp esi, eax
jl 0x7f1890
add r13, 1
cmp dword [r14 + 0x1c], r13d
jg 0x7f18bf
nop
mov r15, qword [rsp + 0x40]
mov r12d, r9d
mov r9d, dword [rsp + 0x3c]
test r9d, r9d
je 0x7f1a08
mov r9, rdi
mov r8, r15
xor edx, edx
mov rcx, r14
call fcn.007e8160
mov r8, qword [rsp + 0x48]
mov r9, r15
mov rcx, r14
mov edx, dword [rsp + 0x5c]
add r12d, 1
call fcn.007f1710
add dword [r14 + 0x3c], 1
cmp r12d, dword [rsp + 0x58]
je 0x7f1a2b
mov edx, dword [r14 + 0x1c]
lea eax, [rdx + 1]
jmp 0x7f17fb
mov r9d, ebx
mov r8, rdi
lea rdx, str.Node__lld_is_too_small___d_bytes_
mov rcx, r12
call fcn.00786ac0
mov rcx, r14
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.0073cea0
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.007e8160
add r12d, 1
add dword [r14 + 0x38], 1
cmp r12d, dword [rsp + 0x58]
jne 0x7f19c6
mov r14, qword [rsp + 0x50]
jmp 0x7f19ed
mov rcx, qword [r12 + 0x20]
xor edx, edx
call fcn.0074f640
mov rcx, qword [r12 + 0x20]
xor edx, edx
mov ebx, eax
call fcn.00762c30
mov r13, rax
call fcn.00776f90
test eax, eax
jne 0x7f1ac0
movsxd r15, ebx
mov rcx, r15
call fcn.00746820
mov r14, rax
test rax, rax
je 0x7f1ac0
mov r8, r15
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x7f177a
mov r9, qword [r12 + 0x10]
mov r8, qword [r12 + 8]
mov rcx, r12
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
call fcn.007df2b0
mov r11d, dword [r12 + 0x40]
mov qword [r12 + 0x20], rax
mov rcx, rax
test r11d, r11d
je 0x7f1755
jmp 0x7f1734
mov dword [r12 + 0x40], 7
xor ebx, ebx
xor r14d, r14d
jmp 0x7f177a
mov dword [rsp + 0x20], ebx
mov r9d, dword [rsp + 0x58]
mov r8, rdi
mov rcx, r12
lea rdx, str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
call fcn.00786ac0
jmp 0x7f19ed
movzx edx, byte [r14]
movzx eax, byte [r14 + 1]
shl edx, 8
add eax, edx
mov dword [rsp + 0x3c], eax
cmp eax, 0x28
jle 0x7f17a9
mov r8d, eax
lea rdx, str.Rtree_depth_out_of_range___d_
mov rcx, r12
call fcn.00786ac0
jmp 0x7f19ed