Function at 0x6964dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [r8 + 0x18]
mov r15, qword [rsp + 0xa0]
mov r13, r8
mov rbx, qword [r15]
mov r12, qword [rax + 0x68]
mov r14, rdx
mov rbp, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x80], r12
test rbx, rbx
jne 0x696680
mov rax, qword [rdx + 0x20]
xor esi, esi
cmp dword [rdx + 0x14], esi
jle 0x696554
mov edx, dword [r8 + 0x2c]
mov ecx, dword [r14 + 0x14]
add rax, 0x18
cmp dword [rax - 0xc], edx
jne 0x69654a
test byte [rax], 0x81
jne 0x69654a
inc esi
add rax, 0x38
sub rcx, 1
jne 0x69653e
mov r12, qword [rsp + 0x90]
xor edi, edi
test r12, r12
je 0x696598
xor edx, edx
cmp edx, dword [r12]
jge 0x696593
mov rcx, qword [r12 + 0x10]
mov r8, qword [rcx]
cmp byte [r8], 0x97
jne 0x69658f
mov eax, dword [r13 + 0x2c]
cmp dword [r8 + 0x48], eax
jne 0x69658f
inc edx
add rcx, 0x18
cmp edx, dword [r12]
jl 0x696570
cmp edx, dword [r12]
cmove edi, dword [r12]
mov rcx, qword [rbp]
lea eax, [rsi + rsi*4]
shl eax, 2
lea edx, [rax + rdi*8 + 0x48]
call fcn.0065f88c
mov rbx, rax
test rax, rax
jne 0x6965c9
lea rdx, str.out_of_memory
mov rcx, rbp
call fcn.00660b2c
xor eax, eax
jmp 0x6967a2
mov qword [r15], rax
lea rdx, [rax + 0x48]
movsxd rax, esi
lea rcx, [rax + rax*2]
xor r15d, r15d
mov dword [rbx], esi
lea r10, [rdx + rcx*4]
mov dword [rbx + 0x10], edi
mov qword [rbx + 8], rdx
mov qword [rbx + 0x18], r10
movsxd r9, edi
mov r8d, r15d
lea rax, [r10 + r9*8]
mov qword [rbx + 0x20], rax
cmp dword [r14 + 0x14], r15d
mov rcx, qword [r14 + 0x20]
jle 0x696638
add rcx, 0x18
add rdx, 4
mov eax, dword [r13 + 0x2c]
cmp dword [rcx - 0xc], eax
jne 0x69662b
test byte [rcx], 0x81
jne 0x69662b
mov eax, dword [rcx - 8]
mov dword [rdx + 4], r8d
mov dword [rdx - 4], eax
mov al, byte [rcx]
mov byte [rdx], al
add rdx, 0xc
inc r8d
add rcx, 0x38
cmp r8d, dword [r14 + 0x14]
jl 0x69660b
cmp r9, r15
mov rdx, r15
jle 0x69666e
mov r8, r15
mov rax, qword [r12 + 0x10]
mov rcx, qword [r8 + rax]
add r8, 0x18
mov eax, dword [rcx + 0x4c]
mov dword [r10 + rdx*8], eax
mov rax, qword [r12 + 0x10]
inc rdx
cmp rdx, r9
mov cl, byte [r8 + rax - 8]
mov byte [r10 + rdx*8 - 4], cl
jl 0x696643
mov r12, qword [rsp + 0x80]
mov r9, qword [rsp + 0x88]
jmp 0x696683
xor r15d, r15d
cmp dword [rbx], r15d
mov rdx, qword [rbx + 8]
mov rdi, qword [rbx + 0x20]
mov r8d, r15d
jle 0x6966b9
add rdx, 5
mov rax, qword [r14 + 0x20]
movsxd rcx, dword [rdx + 3]
imul rcx, rcx, 0x38
test qword [rcx + rax + 0x28], r9
sete al
inc r8d
mov byte [rdx], al
add rdx, 0xc
cmp r8d, dword [rbx]
jl 0x696697
movsxd r8, dword [rbx]
xor edx, edx
mov rcx, rdi
shl r8, 3
call fcn.006aba40
cmp dword [rbx + 0x38], r15d
je 0x6966d9
mov rcx, qword [rbx + 0x30]
call fcn.0065f654
mov esi, dword [rbx + 0x10]
movabs rax, 0x3fffffffffffffff
mov qword [rbx + 0x30], r15
mov dword [rbx + 0x28], r15d
mov dword [rbx + 0x38], r15d
mov dword [rbx + 0x3c], r15d
mov qword [rbx + 0x40], rax
cmp esi, r15d
je 0x69670d
cmp dword [rsp + 0x98], r15d
jne 0x69670d
mov dword [rbx + 0x10], r15d
mov rax, qword [r12]
mov rdx, rbx
mov rcx, r12
call qword [rax + 0x18]
cmp eax, r15d
je 0x696760
cmp eax, 7
jne 0x69672e
mov rax, qword [rbp]
mov byte [rax + 0x2a], 1
jmp 0x696760
mov r8, qword [r12 + 0x10]
cmp r8, r15
jne 0x696751
movzx ecx, al
cmp ecx, 0x65
jg 0x696747
call fcn.0069c890
jmp 0x69674e
lea rax, str.unknown_error
mov r8, rax
lea rdx, [0x007c1184]
mov rcx, rbp
call fcn.00660b2c
mov rdx, qword [r12 + 0x10]
mov rcx, qword [rbp]
call fcn.0065f6a0
mov qword [r12 + 0x10], r15
cmp dword [rbx], r15d
mov ecx, r15d
jle 0x69679b
mov rax, qword [rbx + 8]
add rax, 5
cmp byte [rax], r15b
jne 0x69678d
cmp dword [rdi], r15d
jg 0x6967b7
inc ecx
add rax, 0xc
add rdi, 8
cmp ecx, dword [rbx]
jl 0x696783
mov rax, qword [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, qword [rsp + 0x20]
lea rdx, str.table__s:_xBestIndex_returned_an_invalid_plan
mov rcx, rbp
mov r8, qword [r8 + 8]
call fcn.00660b2c
jmp 0x6965c2