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

Disassembly:
push rdi
sub rsp, 0x70
mov rdi, qword [0x180206788]
mov eax, dword [rdi + 0x1de8]
sub eax, 1
js 0x18004031e
mov r8, qword [rdi + 0x1df0]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
mov rcx, qword [r8]
test rcx, rcx
je 0x180040314
test dword [rcx + 0xc], 0x8000000
je 0x180040314
cmp byte [rcx + 0x8e], 0
je 0x180040314
cmp byte [rcx + 0x95], 0
je 0x180040320
sub r8, 0x30
sub rdx, 1
jns 0x1800402f1
xor ecx, ecx
mov r8, qword [rdi + 0x1f90]
test r8, r8
je 0x18004033a
cmp byte [r8 + 0x8e], 0
je 0x18004033a
mov al, 1
jmp 0x18004033c
xor al, al
test rcx, rcx
jne 0x1800405ba
test al, al
je 0x180040686
movss xmm1, dword [rdi + 0x1fac]
mov ecx, 0x33
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rsi
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm9
call fcn.18003b3c0
mov edx, eax
mov rcx, r8
call fcn.1800400b0
mov rsi, qword [rdi + 0x1f90]
movss xmm1, dword [rdi + 0x1990]
mov rax, qword [0x180206788]
movss xmm7, dword [rsi + 0x10]
movss xmm6, dword [rsi + 0x14]
movaps xmm9, xmm7
addss xmm7, dword [rsi + 0x18]
mov rcx, qword [rax + 0x1e18]
subss xmm9, xmm1
movaps xmm8, xmm6
addss xmm6, dword [rsi + 0x1c]
subss xmm8, xmm1
mov rbx, qword [rcx]
addss xmm7, xmm1
addss xmm6, xmm1
movaps xmm0, xmm7
subss xmm0, xmm9
comiss xmm0, dword [rbx + 0xc]
jb 0x180040423
movaps xmm0, xmm6
subss xmm0, xmm8
comiss xmm0, dword [rbx + 0x10]
jb 0x180040423
xorps xmm1, xmmword [0x180130310]
subss xmm1, dword [0x18012e988]
movaps xmm0, xmm1
subss xmm9, xmm1
subss xmm8, xmm1
addss xmm0, xmm7
addss xmm1, xmm6
movaps xmm7, xmm0
movaps xmm6, xmm1
mov rcx, qword [rsi + 0x270]
cmp dword [rcx], 0
jne 0x180040434
call fcn.18004f280
movss xmm4, dword [rbx + 4]
xor r9d, r9d
movss xmm3, dword [rbx + 8]
movaps xmm0, xmm4
addss xmm0, dword [rbx + 0xc]
mov rcx, qword [rsi + 0x270]
movaps xmm2, xmm3
addss xmm2, dword [rbx + 0x10]
unpcklps xmm0, xmm2
movaps xmm2, xmm4
unpcklps xmm2, xmm3
movq r8, xmm0
movq rdx, xmm2
call fcn.18004f520
movss xmm1, dword [rdi + 0x1fa4]
mov ecx, 0x32
mov rbx, qword [rsi + 0x270]
call fcn.18003b3c0
mov edi, eax
test eax, 0xff000000
je 0x180040546
test byte [rbx + 0x30], 1
lea r8, [rsp + 0x80]
movss xmm0, dword [0x18012e950]
lea rdx, [rsp + 0x88]
movss xmm3, dword [rsi + 0x48]
addss xmm9, xmm0
addss xmm8, xmm0
mov dword [rsp + 0x20], 0
mov rcx, rbx
movss dword [rsp + 0x88], xmm9
movss dword [rsp + 0x8c], xmm8
je 0x1800404ec
subss xmm7, xmm0
subss xmm6, xmm0
jmp 0x1800404fc
subss xmm7, dword [0x18012e94c]
subss xmm6, dword [0x18012e94c]
movss dword [rsp + 0x80], xmm7
movss dword [rsp + 0x84], xmm6
call fcn.180051740
movss xmm0, dword [0x18012e9d8]
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rcx, rbx
mov rdx, qword [rbx + 0x80]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
call fcn.18004f930
mov dword [rbx + 0x78], 0
mov rcx, qword [rsi + 0x270]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
mov eax, dword [rcx + 0x58]
movaps xmm6, xmmword [rsp + 0x60]
sub eax, 1
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov dword [rcx + 0x58], eax
jne 0x18004059a
mov rax, qword [rcx + 0x38]
add rax, 0x1c
movups xmm0, xmmword [rax]
movups xmmword [rcx + 0x88], xmm0
add rsp, 0x70
pop rdi
jmp fcn.18004f340
dec eax
cdqe
shl rax, 4
add rax, qword [rcx + 0x60]
movups xmm0, xmmword [rax]
movups xmmword [rcx + 0x88], xmm0
add rsp, 0x70
pop rdi
jmp fcn.18004f340
mov r11, qword [rdi + 0x1bc8]
mov r9, rcx
movsxd rax, dword [rdi + 0x1bc0]
mov rdx, r11
lea r8, [r11 + rax*8]
cmp r11, r8
jae 0x1800405e5
cmp qword [rdx], rcx
je 0x1800405e5
add rdx, 8
cmp rdx, r8
jb 0x1800405d7
sub rdx, r11
sar rdx, 3
test edx, edx
js 0x180040665
movsxd r10, edx
lea r11, [r11 + r10*8]
nop word [rax + rax]
mov rdx, qword [r11]
mov r8d, dword [rdx + 0xc]
bt r8d, 0x18
jb 0x18004065b
mov rax, rdx
cmp qword [rdx + 0x350], rcx
je 0x180040633
nop word [rax + rax]
cmp rax, rcx
je 0x180040633
mov rax, qword [rax + 0x348]
test rax, rax
jne 0x180040620
jmp 0x180040665
cmp byte [rdx + 0x8e], 0
je 0x18004065b
cmp byte [rdx + 0x95], 0
jne 0x18004065b
mov eax, dword [rcx + 0xc]
and r8d, 0x2000000
and eax, 0x2000000
cmp r8d, eax
cmovbe r9, rdx
sub r11, 8
sub r10, 1
jns 0x180040600
movss xmm1, dword [rdi + 0x1fac]
mov ecx, 0x34
call fcn.18003b3c0
mov edx, eax
mov rcx, r9
add rsp, 0x70
pop rdi
jmp fcn.1800400b0
add rsp, 0x70
pop rdi
ret