Function at 0x1401d500c
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov eax, dword [rcx + 0x40]
xor ebx, ebx
xor esi, esi
mov rbp, r9
mov r14, r8
mov r13d, edx
mov rdi, rcx
test eax, eax
jne 0x1401d53ca
cmp qword [rcx + 0x20], rbx
jne 0x1401d5069
mov r9, qword [rcx + 0x10]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
mov r8, qword [rcx + 8]
call fcn.1401d53e4
mov qword [rdi + 0x20], rax
mov eax, dword [rdi + 0x40]
test eax, eax
jne 0x1401d53ca
mov rcx, qword [rdi + 0x20]
mov r8, rbp
mov edx, 1
call fcn.140187c84
mov rcx, qword [rdi + 0x20]
call fcn.140188220
cmp eax, 0x64
jne 0x1401d50d6
mov rcx, qword [rdi + 0x20]
xor edx, edx
call fcn.1401886e0
mov rcx, qword [rdi + 0x20]
xor edx, edx
movsxd r14, eax
call fcn.140188554
mov rcx, r14
mov r12, rax
call fcn.140186ad8
mov rsi, rax
test rax, rax
jne 0x1401d50bd
mov dword [rdi + 0x40], 7
jmp 0x1401d50ce
mov r8, r14
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov ebx, r14d
mov r14, qword [rsp + 0xa0]
mov rcx, qword [rdi + 0x20]
call fcn.14018881c
mov ecx, dword [rdi + 0x40]
test ecx, ecx
jne 0x1401d510b
mov dword [rdi + 0x40], eax
mov ecx, eax
test eax, eax
jne 0x1401d510b
test rsi, rsi
jne 0x1401d5114
mov r8, rbp
lea rdx, str.Node__lld_missing_from_database
mov rcx, rdi
call fcn.1401d4d98
jmp 0x1401d53ca
test rsi, rsi
je 0x1401d53ca
cmp ebx, 4
jge 0x1401d5133
mov r9d, ebx
lea rdx, str.Node__lld_is_too_small___d_bytes_
mov r8, rbp
mov rcx, rdi
call fcn.1401d4d98
jmp 0x1401d53c2
test r14, r14
jne 0x1401d5164
movzx r13d, byte [rsi]
movzx eax, byte [rsi + 1]
shl r13d, 8
add r13d, eax
cmp r13d, 0x28
jbe 0x1401d5164
mov r8d, r13d
lea rdx, str.Rtree_depth_out_of_range___d_
mov rcx, rdi
call fcn.1401d4d98
jmp 0x1401d53c2
movzx eax, byte [rsi + 3]
movzx r15d, byte [rsi + 2]
shl r15d, 8
add r15d, eax
mov eax, dword [rdi + 0x1c]
inc eax
imul eax, r15d
lea eax, [rax*8 + 4]
cmp eax, ebx
jle 0x1401d51a6
mov r9d, r15d
mov dword [rsp + 0x20], ebx
mov r8, rbp
lea rdx, str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
mov rcx, rdi
call fcn.1401d4d98
jmp 0x1401d53c2
xor r12d, r12d
test r15d, r15d
je 0x1401d53c2
mov eax, dword [rdi + 0x1c]
lea rcx, [rsp + 0x90]
inc eax
mov r8d, 8
imul eax, r12d
lea eax, [rax*8 + 4]
movsxd rbx, eax
add rbx, rsi
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0xa0]
lea rax, [rbx + 8]
mov r14, qword [rsp + 0x90]
mov r9, rax
mov qword [rsp + 0x20], rcx
mov r8d, r12d
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rdx, rbp
bswap r14
call fcn.1401d4e10
xor ebx, ebx
test r13d, r13d
jle 0x1401d52f5
cmp qword [rdi + 0x28], rbx
jne 0x1401d523c
mov r9, qword [rdi + 0x10]
lea rdx, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov r8, qword [rdi + 8]
mov rcx, rdi
call fcn.1401d53e4
mov qword [rdi + 0x28], rax
cmp dword [rdi + 0x40], ebx
jne 0x1401d52d9
mov rbx, qword [rdi + 0x28]
mov r8, r14
mov rcx, rbx
mov edx, 1
call fcn.140187c84
mov rcx, rbx
call fcn.140188220
cmp eax, 0x65
jne 0x1401d5289
lea rax, str.__parent
mov r9, rbp
mov r8, r14
mov qword [rsp + 0x20], rax
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, rdi
call fcn.1401d4d98
jmp 0x1401d52c8
cmp eax, 0x64
jne 0x1401d52c8
xor edx, edx
mov rcx, rbx
call fcn.1401885f0
cmp rax, rbp
je 0x1401d52c8
mov qword [rsp + 0x30], rbp
lea rcx, str.__parent
mov qword [rsp + 0x28], r14
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rcx, rdi
mov r8, r14
call fcn.1401d4d98
mov rcx, rbx
call fcn.14018881c
cmp dword [rdi + 0x40], 0
jne 0x1401d52d9
mov dword [rdi + 0x40], eax
mov r8, qword [rsp + 0x40]
lea edx, [r13 - 1]
mov r9, r14
mov rcx, rdi
call fcn.1401d500c
inc dword [rdi + 0x3c]
jmp 0x1401d53b6
cmp qword [rdi + 0x30], rbx
jne 0x1401d5316
mov r9, qword [rdi + 0x10]
lea rdx, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov r8, qword [rdi + 8]
mov rcx, rdi
call fcn.1401d53e4
mov qword [rdi + 0x30], rax
cmp dword [rdi + 0x40], ebx
jne 0x1401d53b3
mov rbx, qword [rdi + 0x30]
mov r8, r14
mov rcx, rbx
mov edx, 1
call fcn.140187c84
mov rcx, rbx
call fcn.140188220
cmp eax, 0x65
jne 0x1401d5363
lea rax, str.__rowid
mov r9, rbp
mov r8, r14
mov qword [rsp + 0x20], rax
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, rdi
call fcn.1401d4d98
jmp 0x1401d53a2
cmp eax, 0x64
jne 0x1401d53a2
xor edx, edx
mov rcx, rbx
call fcn.1401885f0
cmp rax, rbp
je 0x1401d53a2
mov qword [rsp + 0x30], rbp
lea rcx, str.__rowid
mov qword [rsp + 0x28], r14
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rcx, rdi
mov r8, r14
call fcn.1401d4d98
mov rcx, rbx
call fcn.14018881c
cmp dword [rdi + 0x40], 0
jne 0x1401d53b3
mov dword [rdi + 0x40], eax
inc dword [rdi + 0x38]
inc r12d
cmp r12d, r15d
jl 0x1401d51b2
mov rcx, rsi
call fcn.140186c1c
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret