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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
movss dword [rsp + 0x10], xmm1
mov dword [rsp + 8], ecx
sub rsp, 0xb8
mov rax, qword [0x1404ca6c0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0xd0], rax
jne 0x1401580ac
mov rax, qword [rsp + 0xd0]
jmp 0x14015893d
cmp dword [rsp + 0xc0], 8
je 0x1401580c7
cmp dword [rsp + 0xc0], 9
je 0x1401580c7
mov byte [rsp + 0x20], 0
jmp 0x1401580cc
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0xe0]
test eax, eax
je 0x140158855
xorps xmm0, xmm0
comiss xmm0, dword [rsp + 0xc8]
jb 0x140158104
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rax
jmp 0x140158850
movss xmm0, dword [rsp + 0xc8]
comiss xmm0, dword [0x140497688]
jb 0x140158128
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
jmp 0x140158850
mov rax, qword [rsp + 0xd0]
cmp qword [rsp + 0xd8], rax
jae 0x140158144
mov dword [rsp + 0x38], 1
jmp 0x14015814c
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0xd0]
test rax, rax
jl 0x140158169
cvtsi2sd xmm0, rax
jmp 0x140158182
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
call fcn.140088620
cvtss2sd xmm1, dword [rsp + 0xe8]
comisd xmm1, xmm0
jbe 0x140158200
mov rax, qword [rsp + 0xd0]
test rax, rax
jl 0x1401581aa
cvtsi2ss xmm0, rax
jmp 0x1401581c3
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1401581e3
movss xmm0, dword [rsp + 0xe8]
xorps xmm0, xmmword [0x140497a60]
movss dword [rsp + 0x3c], xmm0
jmp 0x1401581f2
movss xmm0, dword [rsp + 0xe8]
movss dword [rsp + 0x3c], xmm0
cvtss2sd xmm0, dword [rsp + 0x3c]
movsd qword [rsp + 0x50], xmm0
jmp 0x140158233
mov rax, qword [rsp + 0xd0]
test rax, rax
jl 0x140158214
cvtsi2sd xmm0, rax
jmp 0x14015822d
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
movsd qword [rsp + 0x50], xmm0
movsd xmm0, qword [rsp + 0x50]
movsd qword [rsp + 0x98], xmm0
mov rax, qword [rsp + 0xd8]
test rax, rax
jl 0x140158256
cvtsi2sd xmm0, rax
jmp 0x14015826f
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
call fcn.140088620
cvtss2sd xmm1, dword [rsp + 0xe8]
comisd xmm1, xmm0
jbe 0x1401582ed
mov rax, qword [rsp + 0xd8]
test rax, rax
jl 0x140158297
cvtsi2ss xmm0, rax
jmp 0x1401582b0
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1401582d0
movss xmm0, dword [rsp + 0xe8]
xorps xmm0, xmmword [0x140497a60]
movss dword [rsp + 0x40], xmm0
jmp 0x1401582df
movss xmm0, dword [rsp + 0xe8]
movss dword [rsp + 0x40], xmm0
cvtss2sd xmm0, dword [rsp + 0x40]
movsd qword [rsp + 0x58], xmm0
jmp 0x140158320
mov rax, qword [rsp + 0xd8]
test rax, rax
jl 0x140158301
cvtsi2sd xmm0, rax
jmp 0x14015831a
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
movsd qword [rsp + 0x58], xmm0
movsd xmm0, qword [rsp + 0x58]
movsd qword [rsp + 0x90], xmm0
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x14015834e
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x98]
call fcn.14015a570
nop
mov rax, qword [rsp + 0xd8]
test rax, rax
jl 0x140158362
cvtsi2ss xmm0, rax
jmp 0x14015837b
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
ucomiss xmm0, dword [0x140497434]
jp 0x1401583d8
jne 0x1401583d8
mov rax, qword [rsp + 0xd0]
test rax, rax
jl 0x14015839a
cvtsi2ss xmm0, rax
jmp 0x1401583b3
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1401583d8
movss xmm0, dword [rsp + 0xe8]
xorps xmm0, xmmword [0x140497a60]
cvtss2sd xmm0, xmm0
movsd qword [rsp + 0x90], xmm0
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1401583fa
movss xmm0, dword [0x140497688]
subss xmm0, dword [rsp + 0xc8]
movss dword [rsp + 0x44], xmm0
jmp 0x140158409
movss xmm0, dword [rsp + 0xc8]
movss dword [rsp + 0x44], xmm0
movss xmm0, dword [rsp + 0x44]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0xd0]
imul rax, qword [rsp + 0xd8]
test rax, rax
jl 0x140158432
cvtsi2ss xmm0, rax
jmp 0x14015844b
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1401586c0
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.140154f60
test rax, rax
jl 0x140158478
cvtsi2ss xmm0, rax
jmp 0x140158491
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
xorps xmm0, xmmword [0x140497a60]
movss dword [rsp + 0x4c], xmm0
mov rax, qword [rsp + 0xd8]
test rax, rax
jl 0x1401584b2
cvtsi2ss xmm1, rax
jmp 0x1401584cb
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm2
mov rax, qword [rsp + 0xd0]
test rax, rax
jl 0x1401584df
cvtsi2ss xmm2, rax
jmp 0x1401584f8
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm3, rcx
addss xmm3, xmm3
movaps xmm2, xmm3
subss xmm1, xmm2
movaps xmm0, xmm1
call fcn.14012f050
movss xmm1, dword [rsp + 0x4c]
divss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x30], xmm0
movss xmm0, dword [rsp + 0x30]
subss xmm0, dword [rsp + 0xf0]
movss dword [rsp + 0x48], xmm0
movss xmm0, dword [rsp + 0x30]
addss xmm0, dword [rsp + 0xf0]
movss dword [rsp + 0x34], xmm0
movss xmm0, dword [rsp + 0x24]
comiss xmm0, dword [rsp + 0x48]
jb 0x140158569
movss xmm0, dword [rsp + 0x34]
comiss xmm0, dword [rsp + 0x24]
jb 0x140158569
mov qword [rsp + 0x28], 0
jmp 0x1401586bb
movss xmm0, dword [rsp + 0x30]
comiss xmm0, dword [rsp + 0x24]
jbe 0x140158621
cvtss2sd xmm0, dword [rsp + 0xe8]
movsd qword [rsp + 0x68], xmm0
movss xmm1, dword [rsp + 0x24]
divss xmm1, dword [rsp + 0x48]
movss xmm2, dword [0x140497688]
subss xmm2, xmm1
movaps xmm1, xmm2
cvtss2sd xmm1, xmm1
movsd xmm2, qword [rsp + 0x98]
xorps xmm2, xmmword [0x140497a50]
cvtss2sd xmm3, dword [rsp + 0xe8]
divsd xmm2, xmm3
movaps xmm0, xmm2
call fcn.14012efe0
movsd xmm1, qword [rsp + 0x68]
mulsd xmm1, xmm0
movaps xmm0, xmm1
xorps xmm0, xmmword [0x140497a50]
xor eax, eax
comisd xmm0, xmmword [0x140497900]
jb 0x14015860c
subsd xmm0, qword [0x140497900]
comisd xmm0, xmmword [0x140497900]
jae 0x14015860c
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1401586bb
cvtss2sd xmm0, dword [rsp + 0xe8]
movsd qword [rsp + 0x70], xmm0
movss xmm1, dword [rsp + 0x24]
subss xmm1, dword [rsp + 0x34]
movss xmm2, dword [0x140497688]
subss xmm2, dword [rsp + 0x34]
divss xmm1, xmm2
cvtss2sd xmm1, xmm1
cvtss2sd xmm2, dword [rsp + 0xe8]
movsd xmm3, qword [rsp + 0x90]
divsd xmm3, xmm2
movaps xmm2, xmm3
movaps xmm0, xmm2
call fcn.14012efe0
movsd xmm1, qword [rsp + 0x70]
mulsd xmm1, xmm0
movaps xmm0, xmm1
xor eax, eax
comisd xmm0, xmmword [0x140497900]
jb 0x1401586ab
subsd xmm0, qword [0x140497900]
comisd xmm0, xmmword [0x140497900]
jae 0x1401586ab
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140158850
mov rax, qword [rsp + 0xd0]
test rax, rax
jl 0x1401586d4
cvtsi2ss xmm0, rax
jmp 0x1401586ed
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x14015872e
mov rax, qword [rsp + 0xd8]
test rax, rax
jl 0x140158709
cvtsi2ss xmm0, rax
jmp 0x140158722
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1401587d3
movsd xmm0, qword [rsp + 0x90]
xorps xmm0, xmmword [0x140497a50]
movsd qword [rsp + 0x78], xmm0
movss xmm1, dword [0x140497688]
subss xmm1, dword [rsp + 0x24]
cvtss2sd xmm1, xmm1
movsd xmm2, qword [rsp + 0x98]
xorps xmm2, xmmword [0x140497a50]
movsd xmm3, qword [rsp + 0x90]
xorps xmm3, xmmword [0x140497a50]
divsd xmm2, xmm3
movaps xmm0, xmm2
call fcn.14012efe0
movsd xmm1, qword [rsp + 0x78]
mulsd xmm1, xmm0
movaps xmm0, xmm1
xorps xmm0, xmmword [0x140497a50]
xor eax, eax
comisd xmm0, xmmword [0x140497900]
jb 0x1401587c1
subsd xmm0, qword [0x140497900]
comisd xmm0, xmmword [0x140497900]
jae 0x1401587c1
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140158850
cvtss2sd xmm0, dword [rsp + 0x24]
movsd xmm1, qword [rsp + 0x90]
divsd xmm1, qword [rsp + 0x98]
movsd qword [rsp + 0x80], xmm1
movaps xmm1, xmm0
movsd xmm0, qword [rsp + 0x80]
call fcn.14012efe0
movsd xmm1, qword [rsp + 0x98]
mulsd xmm1, xmm0
movaps xmm0, xmm1
xor eax, eax
comisd xmm0, xmmword [0x140497900]
jb 0x140158840
subsd xmm0, qword [0x140497900]
comisd xmm0, xmmword [0x140497900]
jae 0x140158840
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140158938
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140158886
movss xmm2, dword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.14015a780
mov qword [rsp + 0x28], rax
jmp 0x140158938
cvtss2sd xmm0, dword [rsp + 0xc8]
movsd xmm1, qword [0x1404976f0]
comisd xmm1, xmm0
jbe 0x14015892b
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
sub rcx, rax
mov rax, rcx
cvtsi2ss xmm0, rax
mulss xmm0, dword [rsp + 0xc8]
cvtss2sd xmm0, xmm0
movsd qword [rsp + 0x88], xmm0
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0xd0], rax
jbe 0x1401588f4
movsd xmm0, qword [0x1404979e0]
movsd qword [rsp + 0x60], xmm0
jmp 0x140158902
movsd xmm0, qword [0x1404976d8]
movsd qword [rsp + 0x60], xmm0
movsd xmm0, qword [rsp + 0x88]
addsd xmm0, qword [rsp + 0x60]
cvttsd2si rax, xmm0
mov rcx, qword [rsp + 0xd0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140158938
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140320fe0
add rsp, 0xb8
ret