Function at 0x91cf70
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 0x91cfa8
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 0x91d2e8
mov r8, rdi
mov edx, 1
xor ebx, ebx
xor r14d, r14d
call fcn.0088dce0
mov rcx, qword [r12 + 0x20]
call fcn.008eff10
cmp eax, 0x64
je 0x91d298
mov rcx, qword [r12 + 0x20]
call fcn.008cb150
mov r10d, dword [r12 + 0x40]
test r10d, r10d
je 0x91d180
test r14, r14
je 0x91cf94
cmp ebx, 3
jle 0x91d238
test rbp, rbp
je 0x91d360
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 0x91d338
mov ebx, dword [rsp + 0x3c]
sub ebx, 1
mov dword [rsp + 0x5c], ebx
test r10d, r10d
je 0x91d24d
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 0x91d1e8
mov qword [rsp + 0x40], r15
mov r9d, r12d
mov r15, rsi
jmp 0x91d11f
cmp esi, ebx
setg al
test al, al
jne 0x91d153
test rbp, rbp
je 0x91d111
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 0x91d1c0
movd xmm0, eax
movd xmm2, esi
comiss xmm0, xmm2
ja 0x91d0f0
movd xmm0, ebx
movd xmm3, edx
comiss xmm0, xmm3
jbe 0x91d111
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.008b3120
mov r9d, dword [rsp + 0x38]
add r13, 1
cmp dword [r14 + 0x1c], r13d
jle 0x91d1e0
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 0x91d0a0
movd xmm0, esi
movd xmm1, ebx
comiss xmm0, xmm1
seta al
test al, al
je 0x91d0ad
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.008b3120
mov r9d, dword [rsp + 0x38]
jmp 0x91d0ad
mov dword [r12 + 0x40], eax
test eax, eax
jne 0x91cff2
test r14, r14
jne 0x91cff7
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.008b3120
cmp ebx, edx
jg 0x91d0f0
cmp esi, eax
jl 0x91d0f0
add r13, 1
cmp dword [r14 + 0x1c], r13d
jg 0x91d11f
nop
mov r15, qword [rsp + 0x40]
mov r12d, r9d
mov r9d, dword [rsp + 0x3c]
test r9d, r9d
je 0x91d268
mov r9, rdi
mov r8, r15
xor edx, edx
mov rcx, r14
call fcn.009138e0
mov r8, qword [rsp + 0x48]
mov r9, r15
mov rcx, r14
mov edx, dword [rsp + 0x5c]
add r12d, 1
call fcn.0091cf70
add dword [r14 + 0x3c], 1
cmp r12d, dword [rsp + 0x58]
je 0x91d28b
mov edx, dword [r14 + 0x1c]
lea eax, [rdx + 1]
jmp 0x91d05b
mov r9d, ebx
mov r8, rdi
lea rdx, str.Node__lld_is_too_small___d_bytes_
mov rcx, r12
call fcn.008b3120
mov rcx, r14
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.00869af0
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.009138e0
add r12d, 1
add dword [r14 + 0x38], 1
cmp r12d, dword [rsp + 0x58]
jne 0x91d226
mov r14, qword [rsp + 0x50]
jmp 0x91d24d
mov rcx, qword [r12 + 0x20]
xor edx, edx
call fcn.0087c040
mov rcx, qword [r12 + 0x20]
xor edx, edx
mov ebx, eax
call fcn.0088ed40
mov r13, rax
call fcn.008a3730
test eax, eax
jne 0x91d320
movsxd r15, ebx
mov rcx, r15
call fcn.00873280
mov r14, rax
test rax, rax
je 0x91d320
mov r8, r15
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x91cfda
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.0090abf0
mov r11d, dword [r12 + 0x40]
mov qword [r12 + 0x20], rax
mov rcx, rax
test r11d, r11d
je 0x91cfb5
jmp 0x91cf94
mov dword [r12 + 0x40], 7
xor ebx, ebx
xor r14d, r14d
jmp 0x91cfda
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.008b3120
jmp 0x91d24d
movzx edx, byte [r14]
movzx eax, byte [r14 + 1]
shl edx, 8
add eax, edx
mov dword [rsp + 0x3c], eax
cmp eax, 0x28
jle 0x91d009
mov r8d, eax
lea rdx, str.Rtree_depth_out_of_range___d_
mov rcx, r12
call fcn.008b3120
jmp 0x91d24d