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

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x80], rax
mov eax, 0x60
imul rax, rax, 1
mov rcx, qword [rsp + 0xd0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx + 0x10]
imul rcx, rcx, 0x68
lea rax, [rax + rcx + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xe0]
mov dword [rax], 0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xb8]
mov qword [rax], rcx
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x1401386e7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0xc
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x20], eax
jge 0x140138779
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 8]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x40]
mov byte [rax + 5], 0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rax + 0x28]
and rax, rcx
mov rcx, qword [rsp + 0x60]
cmp rax, qword [rcx + 0x28]
jne 0x140138774
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x14]
movzx ecx, word [rsp + 0xc8]
and eax, ecx
test eax, eax
jne 0x140138774
cmp qword [rsp + 0xe8], 0
jne 0x14013876b
mov rcx, qword [rsp + 0x60]
call fcn.140138d60
test eax, eax
jne 0x140138774
mov rax, qword [rsp + 0x40]
mov byte [rax + 5], 1
jmp 0x1401386cf
movsxd rax, dword [rsp + 0x38]
shl rax, 3
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x88]
call fcn.1400d9680
mov rax, qword [rsp + 0xd0]
mov qword [rax + 0x30], 0
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x3c], 0
mov rax, qword [rsp + 0xd0]
movsd xmm0, qword [0x14024e440]
movsd qword [rax + 0x40], xmm0
mov rax, qword [rsp + 0xd0]
mov qword [rax + 0x48], 0x19
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x50], 0
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 0x50]
mov qword [rax + 0x58], rcx
mov rax, qword [rsp + 0x98]
mov dword [rax + 0x18], 0
mov r8, qword [rsp + 0xd0]
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x90]
call fcn.14013c400
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14013885a
cmp dword [rsp + 0x34], 0x13
jne 0x140138851
xor eax, eax
jmp 0x140138d4b
mov eax, dword [rsp + 0x34]
jmp 0x140138d4b
mov dword [rsp + 0x48], 0xffffffff
movsxd rax, dword [rsp + 0x38]
shl rax, 3
mov r8, rax
xor edx, edx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x48]
call fcn.1400d9680
mov rax, qword [rsp + 0x28]
add rax, 0x18
mov r8d, 0x20
xor edx, edx
mov rcx, rax
call fcn.1400d9680
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x1401388ca
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0xc
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x20], eax
jge 0x140138b87
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax*8]
dec eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140138b82
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
jge 0x140138949
cmp dword [rsp + 0x4c], 0
jl 0x140138949
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x4c], eax
jge 0x140138949
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
cmp qword [rcx + rax*8], 0
jne 0x140138949
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 5]
test eax, eax
jne 0x140138973
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x20]
mov r8, qword [rax]
lea rdx, str._s.xBestIndex_malfunction
mov rcx, qword [rsp + 0x90]
call fcn.1401fe960
mov eax, 1
jmp 0x140138d4b
movsxd rax, dword [rsp + 0x4c]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x28]
mov rax, qword [rax]
or rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov rdx, qword [rsp + 0x58]
mov qword [rcx + rax*8], rdx
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x30], eax
jle 0x1401389d2
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
movzx eax, byte [rcx + rax*8 + 4]
test eax, eax
je 0x140138a60
cmp dword [rsp + 0x20], 0x10
jge 0x140138a3f
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov dword [rsp + 0x70], ecx
movzx ecx, al
mov eax, dword [rsp + 0x70]
shl eax, cl
movzx ecx, word [rsp + 0xd8]
and eax, ecx
test eax, eax
jne 0x140138a3f
mov eax, dword [rsp + 0x30]
mov ecx, 1
mov dword [rsp + 0x74], ecx
movzx ecx, al
mov eax, dword [rsp + 0x74]
shl eax, cl
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 0x22]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov word [rcx + 0x22], ax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x17]
cmp eax, 0x4a
jne 0x140138a60
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
or eax, 2
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x1c], eax
cmp dword [rsp + 0x20], 0x1f
jg 0x140138a83
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov dword [rsp + 0x78], ecx
movzx ecx, al
mov eax, dword [rsp + 0x78]
shl eax, cl
mov dword [rsp + 0x50], eax
jmp 0x140138a8b
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
mov ecx, dword [rsp + 0x50]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140138ace
mov eax, dword [rsp + 0x30]
mov ecx, 1
mov dword [rsp + 0x7c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x7c]
shl eax, cl
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x30]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x30], eax
jmp 0x140138b14
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
and eax, 1
test eax, eax
je 0x140138b14
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x3c], 0
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x50]
and eax, 0xfffffffe
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x50], eax
mov rax, qword [rsp + 0xe0]
mov dword [rax], 1
mov rcx, qword [rsp + 0x58]
call fcn.140138d60
test eax, eax
je 0x140138b82
mov rax, qword [rsp + 0xe0]
cmp dword [rax], 0
je 0x140138b82
mov rax, qword [rsp + 0xd0]
cmp dword [rax + 0x38], 0
je 0x140138b6d
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x30]
call fcn.140205c50
mov rax, qword [rsp + 0xd0]
mov qword [rax + 0x30], 0
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x38], 0
mov rax, qword [rsp + 0xe8]
mov dword [rax], 1
xor eax, eax
jmp 0x140138d4b
jmp 0x1401388b2
mov eax, dword [rsp + 0x48]
inc eax
mov rcx, qword [rsp + 0x28]
mov word [rcx + 0x3c], ax
mov dword [rsp + 0x20], 0
jmp 0x140138baa
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x20], eax
jg 0x140138bf5
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
cmp qword [rcx + rax*8], 0
jne 0x140138bf3
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x20]
mov r8, qword [rax]
lea rdx, str._s.xBestIndex_malfunction
mov rcx, qword [rsp + 0x90]
call fcn.1401fe960
mov eax, 1
jmp 0x140138d4b
jmp 0x140138ba0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xd0]
mov ecx, dword [rcx + 0x28]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x38]
and eax, 1
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x1c]
and ecx, 0xfffffffe
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x38], 0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0xd0]
cmp dword [rax + 0x3c], 0
je 0x140138c70
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x54], eax
jmp 0x140138c78
mov dword [rsp + 0x54], 0
mov rax, qword [rsp + 0x28]
movzx ecx, byte [rsp + 0x54]
mov byte [rax + 0x20], cl
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx + 0x12], ax
mov rax, qword [rsp + 0xd0]
movsd xmm0, qword [rax + 0x40]
call fcn.1401fb080
mov rcx, qword [rsp + 0x28]
mov word [rcx + 0x14], ax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x48]
call fcn.1401fb150
mov rcx, qword [rsp + 0x28]
mov word [rcx + 0x16], ax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x50]
and eax, 1
test eax, eax
je 0x140138ced
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x38]
bts eax, 0xc
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x38], eax
jmp 0x140138d01
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x38]
btr eax, 0xc
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x38], eax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xb0]
call fcn.14013b6f0
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
and eax, 1
test eax, eax
je 0x140138d47
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x28]
call fcn.140205c50
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
and eax, 0xfffffffe
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x1c], eax
mov eax, dword [rsp + 0x34]
add rsp, 0xa8
ret