Function at 0x1402a7380
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
push rdi
sub rsp, 0xa0
mov rdi, rsp
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx + 0x10]
imul rcx, rcx, 0x78
lea rax, [rax + rcx + 8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xe0]
mov dword [rax], 0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb8]
mov qword [rax], rcx
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
jmp 0x1402a7487
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x28]
add rax, 0xc
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x38], eax
jge 0x1402a74f9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 8]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov byte [rax + 5], 0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rax + 0x30]
and rax, rcx
mov rcx, qword [rsp + 0x68]
cmp rax, qword [rcx + 0x30]
jne 0x1402a74f4
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x14]
movzx ecx, word [rsp + 0xc8]
and eax, ecx
test eax, eax
jne 0x1402a74f4
mov rax, qword [rsp + 0x28]
mov byte [rax + 5], 1
jmp 0x1402a746f
movsxd rax, dword [rsp + 0x60]
shl rax, 3
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x88]
rep stosb byte [rdi], al
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 [0x1403572d0]
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 + 0x58]
mov rcx, qword [rcx + 0x60]
mov qword [rax + 0x58], rcx
mov r8, qword [rsp + 0xd0]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.14029f9e0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1402a75c1
mov eax, dword [rsp + 0x40]
jmp 0x1402a79ac
mov dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], 0
jmp 0x1402a75dd
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x38], eax
jge 0x1402a75ff
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x38]
mov qword [rcx + rax*8], 0
jmp 0x1402a75d3
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x1e], ax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
jmp 0x1402a763d
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x28]
add rax, 0xc
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x38], eax
jge 0x1402a77df
lfence
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*8]
dec eax
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jl 0x1402a77da
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x70], eax
jge 0x1402a76c2
cmp dword [rsp + 0x80], 0
jl 0x1402a76c2
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x80], eax
jge 0x1402a76c2
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x38]
cmp qword [rcx + rax*8], 0
jne 0x1402a76c2
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 5]
test eax, eax
jne 0x1402a76e9
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
mov r8, qword [rax]
lea rdx, [0x1403ccb28]
mov rcx, qword [rsp + 0x50]
call fcn.14024bfa0
mov eax, 1
jmp 0x1402a79ac
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rax]
or rax, rcx
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x38]
mov rdx, qword [rsp + 0x78]
mov qword [rcx + rax*8], rdx
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x70], eax
jle 0x1402a7748
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x70], 0x10
jge 0x1402a7794
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax*8 + 4]
test eax, eax
je 0x1402a7794
mov eax, dword [rsp + 0x70]
mov ecx, 1
mov dword [rsp + 0x90], ecx
movzx ecx, al
mov eax, dword [rsp + 0x90]
shl eax, cl
mov rcx, qword [rsp + 0x48]
movzx ecx, word [rcx + 0x1e]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x1e], ax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 0x14]
and eax, 1
test eax, eax
je 0x1402a77da
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
jmp 0x1402a7625
movzx eax, word [rsp + 0xd8]
not eax
mov rcx, qword [rsp + 0x48]
movzx ecx, word [rcx + 0x1e]
and ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x1e], ax
mov eax, dword [rsp + 0x3c]
inc eax
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x2c], ax
mov dword [rsp + 0x38], 0
jmp 0x1402a7822
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x38], eax
jg 0x1402a786a
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x38]
cmp qword [rcx + rax*8], 0
jne 0x1402a7868
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
mov r8, qword [rax]
lea rdx, str._s.xBestIndex_malfunction
mov rcx, qword [rsp + 0x50]
call fcn.14024bfa0
mov eax, 1
jmp 0x1402a79ac
jmp 0x1402a7818
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xd0]
mov ecx, dword [rcx + 0x28]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xd0]
movzx ecx, byte [rcx + 0x38]
mov byte [rax + 0x1c], cl
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x38], 0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0xd0]
cmp dword [rax + 0x3c], 0
je 0x1402a78d7
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x94], eax
jmp 0x1402a78e2
mov dword [rsp + 0x94], 0
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rsp + 0x94]
mov byte [rax + 0x1d], cl
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x12], ax
mov rax, qword [rsp + 0xd0]
movsd xmm0, qword [rax + 0x40]
call fcn.14025ed10
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x14], ax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x48]
call fcn.14025eb70
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x16], ax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x50]
and eax, 1
test eax, eax
je 0x1402a795a
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x28]
bts eax, 0xc
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x28], eax
jmp 0x1402a796e
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x28]
btr eax, 0xc
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x28], eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call fcn.1402a7fc0
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x1c]
test eax, eax
je 0x1402a79a8
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x20]
call fcn.1401f2c00
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x1c], 0
mov eax, dword [rsp + 0x40]
add rsp, 0xa0
pop rdi
ret