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

Disassembly:
push rdi
sub rsp, 0x80
mov rdi, qword [0x1403c1b40]
movsxd rax, dword [rdi + 0x4000]
test eax, eax
jle 0x1400088d2
mov r8, qword [rdi + 0x4008]
lea rdx, [rax - 1]
lea rcx, [rdx + rdx*2]
add r8, 8
shl rcx, 4
add r8, rcx
mov rcx, qword [r8]
test rcx, rcx
je 0x1400088c8
test dword [rcx + 0xc], 0x8000000
je 0x1400088c8
cmp byte [rcx + 0x8e], 0
je 0x1400088c8
cmp byte [rcx + 0x95], 0
je 0x1400088d4
sub r8, 0x30
sub rdx, 1
jns 0x1400088a5
xor ecx, ecx
vmovss xmm2, dword [rdi + 0x41c4]
vxorps xmm0, xmm0, xmm0
vcomiss xmm0, xmm2
jb 0x1400088f4
vcomiss xmm0, dword [rdi + 0x41bc]
jae 0x140008c8e
mov r8, qword [rdi + 0x41a8]
test r8, r8
je 0x14000890e
cmp byte [r8 + 0x8e], 0
je 0x14000890e
mov al, 1
jmp 0x140008910
xor al, al
test rcx, rcx
jne 0x140008bae
test al, al
je 0x140008c8e
vmovups xmm1, xmmword [rdi + 0x3b70]
vmulss xmm0, xmm2, dword [rdi + 0x3778]
mov qword [rsp + 0xa0], rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0xa8], rsi
vmovups xmmword [rsp + 0x30], xmm1
vmovaps xmmword [rsp + 0x70], xmm6
vshufps xmm1, xmm1, xmm1, 0xff
vmulss xmm0, xmm1, xmm0
vmovaps xmmword [rsp + 0x60], xmm7
vmovaps xmmword [rsp + 0x50], xmm8
vmovss dword [rsp + 0x3c], xmm0
vmovaps xmmword [rsp + 0x40], xmm9
call fcn.140003420
mov edx, eax
mov rcx, r8
call fcn.140008630
mov rsi, qword [rdi + 0x41a8]
vmovss xmm2, dword [rdi + 0x3b98]
mov rax, qword [0x1403c1b40]
vmovss xmm0, dword [rsi + 0x10]
vmovss xmm1, dword [rsi + 0x14]
mov rcx, qword [rax + 0x4030]
vsubss xmm9, xmm0, xmm2
vaddss xmm0, xmm0, dword [rsi + 0x18]
vaddss xmm7, xmm0, xmm2
vaddss xmm0, xmm1, dword [rsi + 0x1c]
mov rbx, qword [rcx]
vaddss xmm6, xmm0, xmm2
vsubss xmm0, xmm7, xmm9
vsubss xmm8, xmm1, xmm2
vcomiss xmm0, dword [rbx + 0xc]
jb 0x1400089fe
vsubss xmm0, xmm6, xmm8
vcomiss xmm0, dword [rbx + 0x10]
jb 0x1400089fe
vxorps xmm0, xmm2, xmmword [0x1403b8d40]
vsubss xmm1, xmm0, dword [0x1403b8904]
vsubss xmm9, xmm9, xmm1
vsubss xmm8, xmm8, xmm1
vaddss xmm7, xmm1, xmm7
vaddss xmm6, xmm1, xmm6
mov rcx, qword [rsi + 0x270]
cmp dword [rcx], 0
jne 0x140008a16
call fcn.14001f470
mov rcx, qword [rsi + 0x270]
vmovss xmm3, dword [rbx + 4]
vmovss xmm2, dword [rbx + 8]
vaddss xmm1, xmm3, dword [rbx + 0xc]
vaddss xmm0, xmm2, dword [rbx + 0x10]
vunpcklps xmm0, xmm1, xmm0
vunpcklps xmm1, xmm3, xmm2
vmovq rdx, xmm1
xor r9d, r9d
vmovq r8, xmm0
call fcn.14001f730
mov rax, qword [0x1403c1b40]
lea rcx, [rsp + 0x30]
vmovss xmm0, dword [rdi + 0x41bc]
mov rbx, qword [rsi + 0x270]
vmovups xmm2, xmmword [rax + 0x3b60]
vmulss xmm1, xmm0, dword [rax + 0x3778]
vmovups xmmword [rsp + 0x30], xmm2
vshufps xmm2, xmm2, xmm2, 0xff
vmulss xmm0, xmm2, xmm1
vmovss dword [rsp + 0x3c], xmm0
call fcn.140003420
mov edi, eax
test eax, 0xff000000
je 0x140008b49
test byte [rbx + 0x30], 1
lea r8, [rsp + 0x90]
vmovss xmm1, dword [0x1403b88b8]
vmovss xmm3, dword [rsi + 0x48]
vaddss xmm2, xmm9, xmm1
vaddss xmm4, xmm8, xmm1
vmovss dword [rsp + 0x98], xmm2
vmovss dword [rsp + 0x9c], xmm4
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x98]
mov rcx, rbx
je 0x140008ae8
vsubss xmm0, xmm7, xmm1
vsubss xmm1, xmm6, xmm1
jmp 0x140008af8
vsubss xmm0, xmm7, dword [0x1403b88b4]
vsubss xmm1, xmm6, dword [0x1403b88b4]
vmovss dword [rsp + 0x90], xmm0
vmovss dword [rsp + 0x94], xmm1
call fcn.1400218c0
vmovss xmm0, dword [0x1403b8960]
mov r8d, dword [rbx + 0x78]
mov r9d, edi
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
vmovss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
call fcn.14001fb60
mov dword [rbx + 0x78], 0
mov rbx, qword [rsi + 0x270]
mov eax, dword [rbx + 0x58]
vmovaps xmm9, xmmword [rsp + 0x40]
sub eax, 1
vmovaps xmm8, xmmword [rsp + 0x50]
vmovaps xmm7, xmmword [rsp + 0x60]
vmovaps xmm6, xmmword [rsp + 0x70]
mov rsi, qword [rsp + 0xa8]
mov dword [rbx + 0x58], eax
jne 0x140008b7e
mov rax, qword [rbx + 0x38]
add rax, 0x1c
jmp 0x140008b8a
dec eax
cdqe
shl rax, 4
add rax, qword [rbx + 0x60]
vmovups xmm0, xmmword [rax]
mov rcx, rbx
vmovups xmmword [rbx + 0x88], xmm0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
jmp fcn.14001f530
mov r11, qword [rdi + 0x3dd0]
mov r9, rcx
movsxd rax, dword [rdi + 0x3dc8]
mov rdx, r11
lea r8, [r11 + rax*8]
cmp r11, r8
jae 0x140008bde
nop dword [rax + rax]
cmp qword [rdx], rcx
je 0x140008bde
add rdx, 8
cmp rdx, r8
jb 0x140008bd0
sub rdx, r11
sar rdx, 3
test edx, edx
js 0x140008c55
movsxd r10, edx
lea r11, [r11 + r10*8]
mov rdx, qword [r11]
mov r8d, dword [rdx + 0xc]
bt r8d, 0x18
jb 0x140008c4b
mov rax, rdx
cmp qword [rdx + 0x350], rcx
je 0x140008c23
nop word [rax + rax]
cmp rax, rcx
je 0x140008c23
mov rax, qword [rax + 0x348]
test rax, rax
jne 0x140008c10
jmp 0x140008c55
cmp byte [rdx + 0x8e], 0
je 0x140008c4b
cmp byte [rdx + 0x95], 0
jne 0x140008c4b
mov eax, dword [rcx + 0xc]
and r8d, 0x2000000
and eax, 0x2000000
cmp r8d, eax
cmovbe r9, rdx
sub r11, 8
sub r10, 1
jns 0x140008bf0
vmovups xmm1, xmmword [rdi + 0x3b80]
vmulss xmm0, xmm2, dword [rdi + 0x3778]
vmovups xmmword [rsp + 0x30], xmm1
vshufps xmm1, xmm1, xmm1, 0xff
vmulss xmm0, xmm1, xmm0
lea rcx, [rsp + 0x30]
vmovss dword [rsp + 0x3c], xmm0
call fcn.140003420
mov edx, eax
mov rcx, r9
call fcn.140008630
add rsp, 0x80
pop rdi
ret