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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xa0
mov r13d, dword [rcx]
xor r15d, r15d
xor esi, esi
mov r12, r8
test byte [rdx + 0x30], 1
mov rdi, rdx
mov rbx, rcx
je 0x1400856e0
mov eax, dword [rdx + 0x30]
shr eax, 1
test al, 1
je 0x1400856e0
movss xmm3, dword [rcx + 0xa4]
movaps xmm0, xmm3
addss xmm0, xmm3
addss xmm3, dword [0x140092e84]
cvttss2si eax, xmm0
movsxd rdx, eax
mov rax, qword [rdi + 0x38]
add rdx, rdx
mov rcx, qword [rax + 0x1f8]
movups xmm2, xmmword [rcx + rdx*8]
movss dword [rbx + 0xb0], xmm2
movaps xmm0, xmm2
movaps xmm1, xmm2
shufps xmm0, xmm2, 0x55
movss dword [rbx + 0xb4], xmm0
shufps xmm1, xmm2, 0xaa
shufps xmm2, xmm2, 0xff
movss dword [rbx + 0xb8], xmm1
movss dword [rbx + 0xbc], xmm2
movss dword [rbx + 0xa4], xmm3
jmp 0x14008570d
mov rax, qword [rdx + 0x38]
movss xmm0, dword [rax]
movss xmm1, dword [rax + 4]
movss dword [rcx + 0xb8], xmm0
movss dword [rcx + 0xbc], xmm1
movss dword [rcx + 0xb0], xmm0
movss dword [rcx + 0xb4], xmm1
test r13d, r13d
je 0x140085ccc
mov qword [rsp + 0xd0], rbp
mov r8d, 0x40
mov qword [rsp + 0xd8], r14
lea rbp, [rbx + 0x88]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm7
movaps xmmword [rsp + 0x70], xmm8
movaps xmmword [rsp + 0x60], xmm9
movaps xmmword [rsp + 0x50], xmm10
movaps xmmword [rsp + 0x40], xmm11
movaps xmmword [rsp + 0x30], xmm12
movaps xmmword [rsp + 0x20], xmm13
xorps xmm13, xmm13
nop dword [rax + rax]
mov r9d, dword [rbx + 0x8c]
xor edx, edx
mov eax, 0xffff
mov ecx, r13d
sub eax, dword [rdi + 0x34]
div r9d
cmp r13d, eax
mov r14d, eax
cmovb r14d, r13d
cmp r13d, 0x40
cmova ecx, r8d
cmp r14d, ecx
jb 0x1400857d7
cmp r15d, r14d
jb 0x1400857af
sub r15d, r14d
lea rbp, [rbx + 0x88]
jmp 0x14008582e
mov edx, r14d
mov rcx, rdi
sub edx, r15d
mov r8d, edx
imul edx, dword [rbx + 0x88]
imul r8d, r9d
call fcn.140040b90
xor r15d, r15d
lea rbp, [rbx + 0x88]
jmp 0x14008582e
test r15d, r15d
je 0x140085800
movsxd rax, dword [rdi]
mov edx, r15d
imul edx, dword [rbp]
imul rcx, rax, 0x38
imul r9d, r15d
mov rax, qword [rdi + 8]
sub dword [rcx + rax - 0x18], edx
sub dword [rdi + 0x20], r9d
sub dword [rdi + 0x10], edx
xor r15d, r15d
mov r8d, dword [rbx + 0x8c]
xor edx, edx
mov eax, 0xffff
mov rcx, rdi
div r8d
cmp r13d, eax
mov r14d, eax
cmovb r14d, r13d
mov edx, r14d
imul r8d, r14d
imul edx, dword [rbp]
call fcn.140040b90
sub r13d, r14d
add r14d, esi
cmp esi, r14d
je 0x140085c4e
mov ebp, 2
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rbx + 0x90]
xor ecx, ecx
mov edx, dword [r8 + 0x24]
test edx, edx
movsxd r10, dword [r8 + 0x28]
mov r11d, dword [r8 + 0x20]
sete cl
mov r9, qword [r8 + 0x18]
xor eax, eax
cmp r10d, 4
cmove eax, ebp
or ecx, eax
je 0x1400858b9
sub ecx, 1
je 0x1400858ad
sub ecx, 1
je 0x14008589b
cmp ecx, 1
je 0x140085890
movaps xmm0, xmm13
jmp 0x1400858cd
movsxd rax, esi
movss xmm0, dword [r9 + rax*4]
jmp 0x1400858cd
lea eax, [rdx + rsi]
cdq
idiv r11d
movsxd rax, edx
movss xmm0, dword [r9 + rax*4]
jmp 0x1400858cd
mov rcx, r10
movsxd rax, esi
imul rcx, rax
jmp 0x1400858c7
lea eax, [rdx + rsi]
cdq
idiv r11d
movsxd rcx, edx
imul rcx, r10
movss xmm0, dword [rcx + r9]
mov edx, dword [r8 + 0xc]
xor ecx, ecx
movsxd r10, dword [r8 + 0x10]
test edx, edx
mov r11d, dword [r8 + 8]
xorps xmm6, xmm6
mov r9, qword [r8]
sete cl
xor eax, eax
cmp r10d, 4
cvtss2sd xmm6, xmm0
cmove eax, ebp
or ecx, eax
je 0x140085935
sub ecx, 1
je 0x140085929
sub ecx, 1
je 0x140085917
cmp ecx, 1
je 0x14008590c
movaps xmm0, xmm13
jmp 0x140085949
movsxd rax, esi
movss xmm0, dword [r9 + rax*4]
jmp 0x140085949
lea eax, [rdx + rsi]
cdq
idiv r11d
movsxd rax, edx
movss xmm0, dword [r9 + rax*4]
jmp 0x140085949
mov rcx, r10
movsxd rax, esi
imul rcx, rax
jmp 0x140085943
lea eax, [rdx + rsi]
cdq
idiv r11d
movsxd rcx, edx
imul rcx, r10
movss xmm0, dword [rcx + r9]
mov rax, qword [rbx + 0x38]
xorps xmm3, xmm3
cvtss2sd xmm3, xmm0
test rax, rax
je 0x14008598b
mov rdx, qword [rbx + 0x40]
movaps xmm0, xmm3
call rax
movsd xmm1, qword [rbx + 0x20]
movaps xmm3, xmm0
subsd xmm3, qword [rbx + 8]
movsd xmm0, qword [rbx + 0x10]
subsd xmm0, qword [rbx + 8]
subsd xmm1, qword [rbx + 0x18]
divsd xmm3, xmm0
mulsd xmm3, xmm1
addsd xmm3, qword [rbx + 0x18]
subsd xmm3, qword [rbx + 0x18]
mov rax, qword [rbx + 0x78]
xorps xmm9, xmm9
mulsd xmm3, qword [rbx + 0x30]
addsd xmm3, qword [rbx + 0x28]
cvtsd2ss xmm9, xmm3
test rax, rax
je 0x1400859e1
mov rdx, qword [rbx + 0x80]
movaps xmm0, xmm6
call rax
movsd xmm1, qword [rbx + 0x60]
movaps xmm6, xmm0
subsd xmm6, qword [rbx + 0x48]
movsd xmm0, qword [rbx + 0x50]
subsd xmm0, qword [rbx + 0x48]
subsd xmm1, qword [rbx + 0x58]
divsd xmm6, xmm0
mulsd xmm6, xmm1
addsd xmm6, qword [rbx + 0x58]
comiss xmm9, dword [r12]
subsd xmm6, qword [rbx + 0x58]
xorps xmm8, xmm8
mulsd xmm6, qword [rbx + 0x70]
addsd xmm6, qword [rbx + 0x68]
cvtsd2ss xmm8, xmm6
jb 0x140085c39
comiss xmm8, dword [r12 + 4]
jb 0x140085c39
movss xmm0, dword [r12 + 8]
comiss xmm0, xmm9
jb 0x140085c39
movss xmm0, dword [r12 + 0xc]
comiss xmm0, xmm8
jb 0x140085c39
xor r8d, r8d
cmp dword [rbx + 0xa0], r8d
jle 0x140085c3c
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movss xmm3, dword [rbx + 0xa8]
mov rax, qword [rbx + 0x98]
movaps xmm5, xmm3
movss xmm10, dword [rbx + 0xb8]
movaps xmm6, xmm3
movss xmm11, dword [rbx + 0xbc]
movaps xmm7, xmm3
mov ecx, dword [rbx + 0xac]
mulss xmm5, dword [rax + rdx + 8]
mulss xmm3, dword [rax + rdx + 0xc]
mulss xmm6, dword [rax + rdx]
addss xmm5, xmm9
mulss xmm7, dword [rax + rdx + 4]
addss xmm3, xmm8
movss xmm12, dword [rbx + 0xa4]
addss xmm6, xmm9
movaps xmm2, xmm5
addss xmm7, xmm8
movaps xmm4, xmm3
subss xmm2, xmm6
subss xmm4, xmm7
movaps xmm0, xmm2
mulss xmm0, xmm2
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
comiss xmm1, xmm13
jbe 0x140085ae6
rsqrtss xmm0, xmm1
mulss xmm2, xmm0
mulss xmm4, xmm0
mov rax, qword [rdi + 0x48]
movaps xmm1, xmm7
mulss xmm4, xmm12
add r8d, ebp
add rdx, 0x10
mulss xmm2, xmm12
movaps xmm0, xmm4
addss xmm0, xmm6
subss xmm1, xmm2
subss xmm6, xmm4
movss dword [rax], xmm0
mov rax, qword [rdi + 0x48]
movss dword [rax + 4], xmm1
movaps xmm1, xmm3
movsd xmm0, qword [rbx + 0xb0]
subss xmm1, xmm2
mov rax, qword [rdi + 0x48]
addss xmm3, xmm2
addss xmm2, xmm7
movsd qword [rax + 8], xmm0
movaps xmm0, xmm4
mov rax, qword [rdi + 0x48]
addss xmm0, xmm5
subss xmm5, xmm4
mov dword [rax + 0x10], ecx
mov rax, qword [rdi + 0x48]
movss dword [rax + 0x14], xmm0
mov rax, qword [rdi + 0x48]
movss dword [rax + 0x18], xmm1
movsd xmm0, qword [rbx + 0xb0]
mov rax, qword [rdi + 0x48]
movsd qword [rax + 0x1c], xmm0
mov rax, qword [rdi + 0x48]
mov dword [rax + 0x24], ecx
mov rax, qword [rdi + 0x48]
movss dword [rax + 0x28], xmm5
mov rax, qword [rdi + 0x48]
movss dword [rax + 0x2c], xmm3
mov rax, qword [rdi + 0x48]
movss dword [rax + 0x30], xmm10
movss dword [rax + 0x34], xmm11
mov rax, qword [rdi + 0x48]
mov dword [rax + 0x38], ecx
mov rax, qword [rdi + 0x48]
movss dword [rax + 0x3c], xmm6
mov rax, qword [rdi + 0x48]
movss dword [rax + 0x40], xmm2
mov rax, qword [rdi + 0x48]
movss dword [rax + 0x44], xmm10
movss dword [rax + 0x48], xmm11
mov rax, qword [rdi + 0x48]
mov dword [rax + 0x4c], ecx
mov rcx, qword [rdi + 0x50]
movzx eax, word [rdi + 0x34]
add qword [rdi + 0x48], 0x50
mov word [rcx], ax
movzx ecx, word [rdi + 0x34]
mov rax, qword [rdi + 0x50]
inc cx
mov word [rax + 2], cx
mov rax, qword [rdi + 0x50]
movzx ecx, word [rdi + 0x34]
add cx, bp
mov word [rax + 4], cx
mov rcx, qword [rdi + 0x50]
movzx eax, word [rdi + 0x34]
mov word [rcx + 6], ax
mov rax, qword [rdi + 0x50]
movzx ecx, word [rdi + 0x34]
add cx, bp
mov word [rax + 8], cx
movzx ecx, word [rdi + 0x34]
mov rax, qword [rdi + 0x50]
add cx, 3
mov word [rax + 0xa], cx
add qword [rdi + 0x50], 0xc
add dword [rdi + 0x34], 4
cmp r8d, dword [rbx + 0xa0]
jl 0x140085a50
jmp 0x140085c3c
inc r15d
inc esi
cmp esi, r14d
jne 0x140085850
lea rbp, [rbx + 0x88]
mov r8d, 0x40
test r13d, r13d
jne 0x140085770
movaps xmm13, xmmword [rsp + 0x20]
movaps xmm12, xmmword [rsp + 0x30]
movaps xmm11, xmmword [rsp + 0x40]
movaps xmm10, xmmword [rsp + 0x50]
movaps xmm9, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r14, qword [rsp + 0xd8]
test r15d, r15d
je 0x140085cc4
movsxd rax, dword [rdi]
mov edx, r15d
imul r15d, dword [rbp]
imul edx, dword [rbx + 0x8c]
imul rcx, rax, 0x38
mov rax, qword [rdi + 8]
sub dword [rcx + rax - 0x18], r15d
sub dword [rdi + 0x20], edx
sub dword [rdi + 0x10], r15d
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret