Function at 0x140221fc0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov ebp, dword [rcx + 0x40]
test ebp, ebp
mov rsi, rcx
mov r13d, edx
mov r15, r8
mov r12, r9
je 0x140221ff8
add rsp, 0x58
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 0x140222246
mov r8, r12
mov edx, 1
call fcn.1401935c0
mov rcx, qword [rsi + 0x20]
call fcn.1401f4fe0
cmp eax, 0x64
je 0x140222060
mov rcx, qword [rsi + 0x20]
call fcn.1401c5d20
mov ebx, dword [rsi + 0x40]
test ebx, ebx
jne 0x140221fe3
test eax, eax
mov dword [rsi + 0x40], eax
jne 0x140221fe3
lea rdx, str.Node__lld_missing_from_database
mov r8, r12
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401b97c0
mov rcx, qword [rsi + 0x20]
xor edx, edx
call fcn.140170ff0
mov r14, qword [rsi + 0x20]
xor edx, edx
mov ebx, eax
mov rcx, r14
call fcn.14015a5d0
mov rcx, rax
call fcn.1401718c0
test r14, r14
mov rdi, rax
je 0x140222093
mov rcx, r14
call fcn.14015a570
mov r14d, dword [0x14025aa34]
test r14d, r14d
jne 0x1402223ba
call fcn.14014eaf0
test eax, eax
jne 0x140222278
call fcn.140198fd0
test eax, eax
jne 0x140222278
movsxd r14, ebx
mov rcx, r14
call fcn.140153820
test rax, rax
mov qword [rsp + 0x38], rax
je 0x140222278
mov r8, r14
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x20]
call fcn.1401c5d20
mov r11d, dword [rsi + 0x40]
test r11d, r11d
je 0x1402223c5
cmp ebx, 3
jle 0x14022230b
test r15, r15
je 0x140222380
mov rax, qword [rsp + 0x38]
mov edx, dword [rsi + 0x1c]
movzx eax, word [rax + 2]
mov r11d, eax
mov word [rsp + 0x34], ax
lea eax, [rdx + 1]
rol r11w, 8
movzx r9d, r11w
mov ecx, eax
imul ecx, r9d
lea ecx, [rcx*8 + 3]
cmp ecx, ebx
jge 0x140222360
test r9d, r9d
je 0x140222320
mov rcx, r15
mov dword [rsp + 0x4c], r9d
mov r15, rsi
mov dword [rsp + 0x48], r13d
mov rsi, rcx
imul eax, ebp
mov rcx, qword [rsp + 0x38]
xor ebx, ebx
test edx, edx
lea eax, [rax*8 + 4]
cdqe
lea r14, [rcx + rax]
mov rax, qword [r14]
bswap rax
mov qword [rsp + 0x40], rax
jle 0x1402222b6
mov r13, r14
mov r14, rsi
jmp 0x1402221f5
cmp edi, esi
jg 0x140222220
test r14, r14
je 0x1402221e7
mov ecx, dword [r15 + 0x18]
mov eax, dword [r14 + rbx*8]
mov edx, dword [r14 + rbx*8 + 4]
test ecx, ecx
bswap eax
bswap edx
jne 0x140222288
movd xmm0, eax
movd xmm2, edi
comiss xmm0, xmm2
ja 0x1402221d0
movd xmm0, esi
movd xmm3, edx
comiss xmm0, xmm3
jbe 0x1402221e7
mov qword [rsp + 0x20], r12
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
mov r9d, ebp
mov rcx, r15
call fcn.1401b97c0
add rbx, 1
cmp dword [r15 + 0x1c], ebx
jle 0x1402222b0
mov r9d, dword [r15 + 0x18]
mov r8d, ebx
mov edi, dword [r13 + rbx*8 + 8]
mov esi, dword [r13 + rbx*8 + 0xc]
test r9d, r9d
bswap edi
bswap esi
jne 0x140222190
movd xmm0, edi
movd xmm1, esi
comiss xmm0, xmm1
jbe 0x140222198
mov qword [rsp + 0x20], r12
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
mov r9d, ebp
mov rcx, r15
mov dword [rsp + 0x34], r8d
call fcn.1401b97c0
mov r8d, dword [rsp + 0x34]
jmp 0x140222198
mov r9, qword [rsi + 0x10]
mov rcx, rsi
mov r8, qword [rsi + 8]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
call fcn.140210480
mov rcx, rax
mov qword [rsi + 0x20], rax
mov eax, dword [rsi + 0x40]
test eax, eax
je 0x140222005
jmp 0x140221fe3
mov dword [rsi + 0x40], 7
jmp 0x140222020
cmp esi, edx
jg 0x1402221d0
cmp edi, eax
jl 0x1402221d0
add rbx, 1
cmp dword [r15 + 0x1c], ebx
jg 0x1402221f5
nop word cs:[rax + rax]
mov rsi, r14
mov r14, r13
mov r10d, dword [rsp + 0x48]
test r10d, r10d
je 0x140222340
mov rdi, qword [rsp + 0x40]
mov r9, r12
xor edx, edx
mov rcx, r15
mov r8, rdi
call fcn.14021d510
mov eax, dword [rsp + 0x48]
mov r9, rdi
mov rcx, r15
lea r8, [r14 + 8]
lea edx, [rax - 1]
call fcn.140221fc0
add dword [r15 + 0x3c], 1
mov eax, dword [rsp + 0x4c]
add ebp, 1
cmp ebp, eax
je 0x140222320
mov edx, dword [r15 + 0x1c]
lea eax, [rdx + 1]
jmp 0x14022215d
mov r9d, ebx
mov r8, r12
mov rcx, rsi
lea rdx, str.Node__lld_is_too_small___d_bytes_
call fcn.1401b97c0
mov rcx, qword [rsp + 0x38]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14014fe50
mov r8, qword [rsp + 0x40]
mov r9, r12
mov edx, 1
mov rcx, r15
call fcn.14021d510
add dword [r15 + 0x38], 1
jmp 0x1402222f4
mov dword [rsp + 0x20], ebx
lea rdx, str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
mov r8, r12
mov rcx, rsi
call fcn.1401b97c0
jmp 0x140222320
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
mov r13d, eax
mov word [rsp + 0x34], ax
rol r13w, 8
movzx r13d, r13w
cmp r13d, 0x28
jle 0x14022210c
lea rdx, str.Rtree_depth_out_of_range___d_
mov r8d, r13d
mov rcx, rsi
call fcn.1401b97c0
jmp 0x140222320
lock or qword [rsp], 0
jmp 0x1402220bd
mov dword [rsi + 0x40], eax
jmp 0x1402220fa