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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, qword [0x180296cd0]
movsxd rax, dword [rbx + 0x4078]
test eax, eax
jle 0x18005d86d
mov r8, qword [rbx + 0x4080]
lea rdx, [rax - 1]
imul rcx, rdx, 0x38
add r8, 8
add r8, rcx
nop
mov rcx, qword [r8]
test rcx, rcx
je 0x18005d863
test dword [rcx + 0xc], 0x8000000
je 0x18005d863
cmp byte [rcx + 0x96], 0
je 0x18005d863
cmp byte [rcx + 0x9d], 0
je 0x18005d86f
sub r8, 0x38
sub rdx, 1
jns 0x18005d840
xor ecx, ecx
movss xmm1, dword [rbx + 0x424c]
xorps xmm0, xmm0
comiss xmm1, xmm0
ja 0x18005d88c
comiss xmm0, dword [rbx + 0x4234]
jae 0x18005db3e
mov r8, qword [rbx + 0x4220]
test r8, r8
je 0x18005d8a6
cmp byte [r8 + 0x96], 0
je 0x18005d8a6
mov al, 1
jmp 0x18005d8a8
xor al, al
test rcx, rcx
jne 0x18005da7a
test al, al
je 0x18005db3e
mov qword [rsp + 0x68], rsi
mov ecx, 0x33
mov qword [rsp + 0x70], rdi
call fcn.1800575c0
mov edx, eax
mov rcx, r8
call fcn.18005d5b0
mov rdi, qword [rbx + 0x4220]
movss xmm1, dword [rbx + 0x3c00]
mov rax, qword [0x180296cd0]
movss xmm5, dword [rdi + 0x18]
movss xmm4, dword [rdi + 0x1c]
movaps xmm3, xmm5
addss xmm5, dword [rdi + 0x20]
mov rcx, qword [rax + 0x40a8]
subss xmm3, xmm1
movaps xmm2, xmm4
addss xmm4, dword [rdi + 0x24]
subss xmm2, xmm1
mov rsi, qword [rcx]
addss xmm5, xmm1
movss dword [rsp + 0x40], xmm3
addss xmm4, xmm1
movss dword [rsp + 0x44], xmm2
movaps xmm0, xmm5
movss dword [rsp + 0x48], xmm5
subss xmm0, xmm3
movss dword [rsp + 0x4c], xmm4
comiss xmm0, dword [rsi + 0xc]
jb 0x18005d98d
movaps xmm0, xmm4
subss xmm0, xmm2
comiss xmm0, dword [rsi + 0x10]
jb 0x18005d98d
xorps xmm1, xmmword [0x1801245f0]
subss xmm1, dword [0x1801237e4]
movaps xmm0, xmm1
subss xmm3, xmm1
subss xmm2, xmm1
addss xmm0, xmm5
addss xmm1, xmm4
movss dword [rsp + 0x40], xmm3
movss dword [rsp + 0x44], xmm2
movss dword [rsp + 0x48], xmm0
movss dword [rsp + 0x4c], xmm1
mov rcx, qword [rdi + 0x288]
cmp dword [rcx], 0
jne 0x18005d9a5
call fcn.18006d6b0
mov rcx, qword [rdi + 0x288]
movss xmm0, dword [rsi + 4]
lea rdx, [rsi + 4]
movss xmm2, dword [rdx + 4]
lea r8, [rsp + 0x60]
addss xmm0, dword [rsi + 0xc]
addss xmm2, dword [rsi + 0x10]
xor r9d, r9d
movss dword [rsp + 0x60], xmm0
movss dword [rsp + 0x64], xmm2
call fcn.18006d980
movss xmm1, dword [rbx + 0x4234]
mov ecx, 0x32
call fcn.1800575c0
movss xmm0, dword [0x180123b70]
lea r8, [rsp + 0x48]
movss xmm1, dword [rdi + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 0x288]
mov r9d, eax
movss dword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
movss dword [rsp + 0x20], xmm1
call fcn.1800702c0
mov rcx, qword [rdi + 0x288]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov eax, dword [rcx + 0x58]
sub eax, 1
mov dword [rcx + 0x58], eax
jne 0x18005da5a
mov rax, qword [rcx + 0x38]
add rax, 0x1c
movups xmm0, xmmword [rax]
movups xmmword [rcx + 0x88], xmm0
add rsp, 0x50
pop rbx
jmp fcn.18006d770
dec eax
cdqe
shl rax, 4
add rax, qword [rcx + 0x60]
movups xmm0, xmmword [rax]
movups xmmword [rcx + 0x88], xmm0
add rsp, 0x50
pop rbx
jmp fcn.18006d770
mov r11, qword [rbx + 0x3e48]
mov r10, rcx
movsxd rax, dword [rbx + 0x3e40]
mov rdx, r11
lea r8, [r11 + rax*8]
cmp r11, r8
jae 0x18005daa5
cmp qword [rdx], rcx
je 0x18005daa5
add rdx, 8
cmp rdx, r8
jb 0x18005da97
sub rdx, r11
sar rdx, 3
test edx, edx
js 0x18005db25
movsxd r9, edx
lea r11, [r11 + r9*8]
nop word [rax + rax]
mov rdx, qword [r11]
mov r8d, dword [rdx + 0xc]
bt r8d, 0x18
jb 0x18005db1b
mov rax, rdx
cmp qword [rdx + 0x368], rcx
je 0x18005daf3
nop word [rax + rax]
cmp rax, rcx
je 0x18005daf3
mov rax, qword [rax + 0x360]
test rax, rax
jne 0x18005dae0
jmp 0x18005db25
cmp byte [rdx + 0x96], 0
je 0x18005db1b
cmp byte [rdx + 0x9d], 0
jne 0x18005db1b
mov eax, dword [rcx + 0xc]
and r8d, 0x2000000
and eax, 0x2000000
cmp r8d, eax
cmovbe r10, rdx
sub r11, 8
sub r9, 1
jns 0x18005dac0
mov ecx, 0x34
call fcn.1800575c0
mov edx, eax
mov rcx, r10
add rsp, 0x50
pop rbx
jmp fcn.18005d5b0
add rsp, 0x50
pop rbx
ret