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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, qword [rsp + 0xa0]
mov rsi, r8
mov r10, qword [rcx]
movzx r11d, r9w
mov rbx, qword [rcx + 0x10]
mov r15, qword [rsp + 0xb0]
mov rax, qword [rdi + 0x20]
mov r14, qword [rcx + 8]
mov r13, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rax
mov rax, qword [r10]
mov qword [rsp + 0x30], rax
movzx eax, byte [rbx + 0x10]
imul rax, rax, 0x68
mov qword [rsp + 0x20], rax
mov rax, qword [r10 + 8]
movsxd r10, dword [rdi]
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rbx], rdx
mov r8, qword [rdi + 8]
mov dword [r15], eax
test r10d, r10d
jle 0x140105c80
add r8, 5
mov r9d, r10d
nop dword [rax + rax]
movsxd rax, dword [r8 + 3]
imul rcx, rax, 0x38
add rcx, qword [r14 + 0x20]
mov byte [r8], 0
mov rax, qword [rcx + 0x28]
and rax, rsi
cmp rax, qword [rcx + 0x28]
jne 0x140105c76
test word [rcx + 0x14], r11w
jne 0x140105c76
test r13, r13
jne 0x140105c72
call fcn.140105f70
test eax, eax
jne 0x140105c76
mov byte [r8], 1
add r8, 0xc
sub r9, 1
jne 0x140105c40
mov rcx, qword [rsp + 0x88]
lea rbp, [r10*8]
mov r8, rbp
xor edx, edx
mov r12, r10
call fcn.1400b83c0
mov rcx, qword [rsp + 0x20]
xor esi, esi
mov rdx, qword [rsp + 0x28]
movabs rax, 0x546d42aea2879f2e
mov qword [rdi + 0x30], rsi
mov r8, rdi
mov dword [rdi + 0x28], esi
mov dword [rdi + 0x3c], esi
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x48], 0x19
mov dword [rdi + 0x50], esi
mov rax, qword [rcx + rdx + 0x58]
mov qword [rdi + 0x58], rax
mov dword [rdi + 0x78], esi
mov rdx, qword [rcx + rdx + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140107f80
test eax, eax
je 0x140105cf9
cmp eax, 0x13
cmove eax, esi
jmp 0x140105f50
mov rcx, qword [rbx + 0x48]
mov r8, rbp
xor edx, edx
mov esi, 0xffffffff
call fcn.1400b83c0
xorps xmm0, xmm0
xor r9d, r9d
mov r10d, r9d
movups xmmword [rbx + 0x18], xmm0
movups xmmword [rbx + 0x28], xmm0
mov rax, qword [rdi + 8]
test r12, r12
jle 0x140105e4c
lea rbp, [rax + 5]
mov r11d, r9d
mov rax, qword [rsp + 0x88]
nop dword [rax]
movsxd rcx, dword [rax + r11*8]
lea edx, [rcx - 1]
test edx, edx
js 0x140105e39
cmp edx, r12d
jge 0x140105ec0
movsxd rax, dword [rbp + 3]
test eax, eax
js 0x140105ec0
cmp eax, dword [r14 + 0x14]
jge 0x140105ec0
mov r9, rcx
mov rcx, qword [rbx + 0x48]
cmp qword [rcx + r9*8 - 8], 0
jne 0x140105ec0
cmp byte [rbp], 0
je 0x140105ec0
imul r8, rax, 0x38
add r8, qword [r14 + 0x20]
mov rax, qword [r8 + 0x28]
or qword [rbx], rax
mov eax, edx
cmp edx, esi
mov qword [rcx + r9*8 - 8], r8
cmovle eax, esi
mov esi, eax
mov rax, qword [rsp + 0x88]
cmp byte [rax + r11*8 + 4], 0
je 0x140105de2
cmp r10d, 0x10
jge 0x140105dd7
movzx eax, word [rsp + 0xa8]
bt eax, r10d
jb 0x140105dd7
movzx eax, word [rbx + 0x22]
bts eax, edx
mov word [rbx + 0x22], ax
cmp byte [r8 + 0x17], 0x4a
jne 0x140105de2
or dword [rbx + 0x1c], 2
mov ecx, r10d
mov eax, 1
shl eax, cl
mov r9d, 0
cmp r10d, 0x1f
cmovg eax, r9d
test dword [rdi + 0x78], eax
je 0x140105e0a
mov eax, dword [rbx + 0x30]
bts eax, edx
mov dword [rbx + 0x30], eax
jmp 0x140105e20
test byte [r8 + 0x14], 1
je 0x140105e20
and dword [rdi + 0x50], 0xfffffffe
mov dword [rdi + 0x3c], r9d
mov dword [r15], 1
mov rcx, r8
call fcn.140105f70
test eax, eax
je 0x140105e31
cmp dword [r15], r9d
jne 0x140105e99
mov rax, qword [rsp + 0x88]
inc r10d
inc r11
add rbp, 0xc
cmp r11, r12
jl 0x140105d40
lea eax, [rsi + 1]
mov ecx, r9d
mov word [rbx + 0x3c], ax
test esi, esi
js 0x140105e70
mov rax, qword [rbx + 0x48]
nop
cmp qword [rax], 0
je 0x140105ec0
inc ecx
add rax, 8
cmp ecx, esi
jle 0x140105e60
mov eax, dword [rdi + 0x28]
mov dword [rbx + 0x18], eax
mov eax, dword [rbx + 0x1c]
xor eax, dword [rdi + 0x38]
and eax, 1
xor dword [rbx + 0x1c], eax
mov rax, qword [rdi + 0x30]
mov dword [rdi + 0x38], r9d
mov qword [rbx + 0x28], rax
cmp dword [rdi + 0x3c], 0
je 0x140105eea
mov eax, dword [rdi + 0x10]
jmp 0x140105eed
cmp dword [rdi + 0x38], r9d
je 0x140105eb1
mov rcx, qword [rdi + 0x30]
call fcn.1401804c0
xor eax, eax
mov qword [rdi + 0x30], rax
mov dword [rdi + 0x38], eax
mov dword [r13], 1
xor eax, eax
jmp 0x140105f50
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov r8, qword [r8 + rdx + 0x28]
lea rdx, str._s.xBestIndex_malfunction
mov r8, qword [r8]
call fcn.14017cad0
mov eax, 1
jmp 0x140105f50
mov eax, r9d
mov byte [rbx + 0x20], al
mov word [rbx + 0x12], r9w
movsd xmm0, qword [rdi + 0x40]
call fcn.14017a8a0
mov word [rbx + 0x14], ax
mov rcx, qword [rdi + 0x48]
call fcn.14017a940
mov edx, dword [rbx + 0x38]
mov word [rbx + 0x16], ax
mov eax, edx
mov ecx, dword [rdi + 0x50]
bts edx, 0xc
btr eax, 0xc
and cl, 1
mov rcx, qword [rsp + 0x80]
cmove edx, eax
mov dword [rbx + 0x38], edx
mov rdx, rbx
call fcn.140107770
test byte [rbx + 0x1c], 1
mov edi, eax
je 0x140105f4e
mov rcx, qword [rbx + 0x28]
call fcn.1401804c0
and dword [rbx + 0x1c], 0xfffffffe
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret