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

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x90
cmp byte [0x1800dd9f4], 0
mov rbp, rcx
je 0x1800053e5
cmp qword [0x1800dda08], 0
je 0x1800053e5
mov rax, qword [0x18008eab8]
mov qword [r11 + 0x18], rsi
xor esi, esi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x10], r14
mov r14d, esi
mov rdi, qword [rax]
mov qword [r11 - 0x18], r15
mov r15, qword [rax + 8]
movaps xmmword [rsp + 0x70], xmm6
movss xmm6, dword [0x180080b04]
cmp rdi, r15
je 0x1800053c0
mov qword [r11 + 8], rbx
lea rbx, [rdi + 0x2c]
nop word [rax + rax]
mov rcx, qword [rbx + 0x14]
mov rax, qword [rbx + 0xc]
cmp rax, rcx
je 0x180005134
cmp byte [rbx + 0x3c], sil
jne 0x1800050d4
cmp byte [rax + 0x15], sil
jne 0x1800050d4
add rax, 0x18
cmp rax, rcx
jne 0x1800050c3
jmp 0x180005134
mov rcx, qword [0x1800dda08]
call fcn.1800049f0
movss xmm0, dword [rax + 4]
subss xmm0, dword [rbx]
movss xmm2, dword [rax]
subss xmm2, dword [rbx - 4]
movss xmm1, dword [rax + 8]
subss xmm1, dword [rbx + 4]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm2, xmm0
xorps xmm0, xmm0
addss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x180005121
xorps xmm0, xmm0
sqrtss xmm0, xmm2
jmp 0x180005129
movaps xmm0, xmm2
call fcn.18006c0f8
comiss xmm6, xmm0
jbe 0x180005134
movaps xmm6, xmm0
mov r14, rdi
add rdi, 0x70
add rbx, 0x70
cmp rdi, r15
jne 0x1800050b0
test r14, r14
je 0x1800053b8
mov rcx, qword [0x1800dda08]
mov rdi, qword [r14 + 0x38]
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rsp + 0x40], xmm9
movaps xmmword [rsp + 0x30], xmm10
call fcn.1800049f0
mov rbx, rax
call fcn.180004950
movss xmm0, dword [rbx]
movss xmm1, dword [rbx + 4]
movss xmm8, dword [rdi + 0x90]
addss xmm0, dword [rax]
addss xmm1, dword [rax + 4]
movss xmm9, dword [rdi + 0x94]
movss xmm6, dword [rdi + 0x98]
subss xmm8, xmm0
movss xmm0, dword [rbx + 8]
addss xmm0, dword [rax + 8]
subss xmm9, xmm1
subss xmm6, xmm0
movaps xmm0, xmm8
mulss xmm0, xmm8
movaps xmm1, xmm9
mulss xmm1, xmm9
xorps xmm6, xmmword [0x180080f90]
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x1800051ef
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x1800051f7
movaps xmm0, xmm1
call fcn.18006c0f8
movaps xmm1, xmm0
movaps xmm0, xmm6
call fcn.180068840
xorps xmm2, xmm2
movaps xmm1, xmm8
cvtss2sd xmm2, xmm0
movaps xmm0, xmm9
mulsd xmm2, qword [0x180080a38]
cvtpd2ps xmm7, xmm2
call fcn.180068840
movss xmm8, dword [0x180080acc]
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
movaps xmm0, xmm7
mulsd xmm1, qword [0x180080a38]
cvtpd2ps xmm6, xmm1
movaps xmm1, xmm8
call fcn.18004f718
movaps xmm10, xmm0
movaps xmm1, xmm8
movaps xmm0, xmm6
movss dword [rsp + 0x20], xmm10
call fcn.18004f718
movaps xmm9, xmm0
movaps xmm1, xmm8
xorps xmm0, xmm0
movss dword [rsp + 0x24], xmm9
call fcn.18004f718
movss xmm7, dword [0x180080b2c]
lea rcx, [rsp + 0x20]
comiss xmm7, xmm10
mov dword [rsp + 0xa8], 0x42b20000
movss dword [rsp + 0x28], xmm0
ja 0x1800052b4
comiss xmm10, dword [0x180080aa4]
lea rax, [rsp + 0xa8]
cmovbe rax, rcx
movss xmm7, dword [rax]
movss xmm6, dword [0x180080b34]
lea rcx, [rsp + 0x24]
comiss xmm6, xmm9
mov dword [rsp + 0xa8], 0x43340000
movaps xmm10, xmmword [rsp + 0x30]
movss dword [rsp + 0x20], xmm7
ja 0x1800052f6
comiss xmm9, dword [0x180080abc]
lea rax, [rsp + 0xa8]
cmovbe rax, rcx
movss xmm6, dword [rax]
movss xmm8, dword [0x180080b28]
lea rcx, [rsp + 0x28]
comiss xmm8, xmm0
mov dword [rsp + 0xa8], 0x42340000
movaps xmm9, xmmword [rsp + 0x40]
movss dword [rsp + 0x24], xmm6
ja 0x180005339
comiss xmm0, dword [0x180080a98]
lea rax, [rsp + 0xa8]
cmovbe rax, rcx
movss xmm8, dword [rax]
call fcn.180004a90
mov rcx, qword [rbp + 0x38]
movsd xmm0, qword [rax]
movss xmm1, dword [rax + 4]
mulss xmm0, dword [0x180080a14]
mov eax, dword [rcx]
mulss xmm1, dword [0x180080a14]
subss xmm7, xmm0
subss xmm6, xmm1
test eax, eax
jle 0x1800053ad
mov rdx, rsi
cmp esi, eax
jge 0x18000539d
cmp esi, dword [rbp + 0x30]
jge 0x18000539d
mov rax, qword [rcx + rdx + 8]
test rax, rax
je 0x18000539d
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18000539d
movss dword [rcx + 0x18], xmm7
movss dword [rcx + 0x1c], xmm6
movss dword [rcx + 0x20], xmm8
or qword [rax + 0x10], 1
mov rcx, qword [rbp + 0x38]
inc esi
add rdx, 8
mov eax, dword [rcx]
cmp esi, eax
jl 0x180005370
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x50]
mov rbx, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x90
pop rbp
ret