Function at 0x1400e2240
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, 0x118
mov rax, qword [0x14066d440]
xor rax, rsp
mov qword [rsp + 0x100], rax
xorps xmm0, xmm0
comiss xmm0, dword [rsp + 0x128]
jae 0x1400e228c
mov rax, qword [rsp + 0x138]
cmp qword [rsp + 0x130], rax
jne 0x1400e2299
mov rax, qword [rsp + 0x130]
jmp 0x1400e2c8b
movss xmm0, dword [rsp + 0x128]
comiss xmm0, dword [0x1401a12e0]
jb 0x1400e22b8
mov rax, qword [rsp + 0x138]
jmp 0x1400e2c8b
mov qword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x140]
test eax, eax
je 0x1400e2aea
mov rax, qword [rsp + 0x130]
test rax, rax
jl 0x1400e22e5
cvtsi2sd xmm0, rax
jmp 0x1400e22fe
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
movsd qword [rsp + 0x70], xmm0
movsd xmm0, qword [rsp + 0x70]
cvtss2sd xmm1, dword [rsp + 0x148]
comisd xmm1, xmm0
jbe 0x1400e2388
mov rax, qword [rsp + 0x130]
test rax, rax
jl 0x1400e2332
cvtsi2ss xmm0, rax
jmp 0x1400e234b
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 0x1400e236b
movss xmm0, dword [rsp + 0x148]
xorps xmm0, xmmword [0x1401a4090]
movss dword [rsp + 0x38], xmm0
jmp 0x1400e237a
movss xmm0, dword [rsp + 0x148]
movss dword [rsp + 0x38], xmm0
cvtss2sd xmm0, dword [rsp + 0x38]
movsd qword [rsp + 0x60], xmm0
jmp 0x1400e23bb
mov rax, qword [rsp + 0x130]
test rax, rax
jl 0x1400e239c
cvtsi2sd xmm0, rax
jmp 0x1400e23b5
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
movsd qword [rsp + 0x60], xmm0
movsd xmm0, qword [rsp + 0x60]
movsd qword [rsp + 0xf8], xmm0
mov rax, qword [rsp + 0x138]
test rax, rax
jl 0x1400e23de
cvtsi2sd xmm0, rax
jmp 0x1400e23f7
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
movsd qword [rsp + 0x78], xmm0
movsd xmm0, qword [rsp + 0x78]
cvtss2sd xmm1, dword [rsp + 0x148]
comisd xmm1, xmm0
jbe 0x1400e2481
mov rax, qword [rsp + 0x138]
test rax, rax
jl 0x1400e242b
cvtsi2ss xmm0, rax
jmp 0x1400e2444
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 0x1400e2464
movss xmm0, dword [rsp + 0x148]
xorps xmm0, xmmword [0x1401a4090]
movss dword [rsp + 0x3c], xmm0
jmp 0x1400e2473
movss xmm0, dword [rsp + 0x148]
movss dword [rsp + 0x3c], xmm0
cvtss2sd xmm0, dword [rsp + 0x3c]
movsd qword [rsp + 0x68], xmm0
jmp 0x1400e24b4
mov rax, qword [rsp + 0x138]
test rax, rax
jl 0x1400e2495
cvtsi2sd xmm0, rax
jmp 0x1400e24ae
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
movsd qword [rsp + 0x68], xmm0
movsd xmm0, qword [rsp + 0x68]
movsd qword [rsp + 0xf0], xmm0
mov rax, qword [rsp + 0x130]
cmp qword [rsp + 0x138], rax
jae 0x1400e24dc
mov byte [rsp + 0x20], 1
jmp 0x1400e24e1
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1400e2529
movsd xmm0, qword [rsp + 0xf8]
movsd qword [rsp + 0x80], xmm0
movsd xmm0, qword [rsp + 0xf0]
movsd qword [rsp + 0xf8], xmm0
movsd xmm0, qword [rsp + 0x80]
movsd qword [rsp + 0xf0], xmm0
mov rax, qword [rsp + 0x138]
test rax, rax
jl 0x1400e253d
cvtsi2ss xmm0, rax
jmp 0x1400e2556
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
ucomiss xmm0, dword [0x1401a1e60]
jp 0x1400e25b3
jne 0x1400e25b3
mov rax, qword [rsp + 0x130]
test rax, rax
jl 0x1400e2575
cvtsi2ss xmm0, rax
jmp 0x1400e258e
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 0x1400e25b3
movss xmm0, dword [rsp + 0x148]
xorps xmm0, xmmword [0x1401a4090]
cvtss2sd xmm0, xmm0
movsd qword [rsp + 0xf0], xmm0
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1400e25d5
movss xmm0, dword [0x1401a12e0]
subss xmm0, dword [rsp + 0x128]
movss dword [rsp + 0x40], xmm0
jmp 0x1400e25e4
movss xmm0, dword [rsp + 0x128]
movss dword [rsp + 0x40], xmm0
movss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x130]
imul rax, qword [rsp + 0x138]
test rax, rax
jl 0x1400e260d
cvtsi2ss xmm0, rax
jmp 0x1400e2626
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 0x1400e2928
mov rax, qword [rsp + 0x138]
cmp qword [rsp + 0x130], rax
jae 0x1400e2653
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x50], rax
jmp 0x1400e2660
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x130]
test rax, rax
jl 0x1400e2681
cvtsi2ss xmm0, rax
jmp 0x1400e269a
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
mov rax, qword [rsp + 0x138]
test rax, rax
jl 0x1400e26ae
cvtsi2ss xmm1, rax
jmp 0x1400e26c7
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm2
subss xmm1, xmm0
movaps xmm0, xmm1
cvtss2sd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x48], xmm0
movss xmm0, dword [rsp + 0x48]
movss dword [rsp + 0x4c], xmm0
mov rax, qword [rsp + 0x88]
test rax, rax
jl 0x1400e2701
cvtsi2ss xmm0, rax
jmp 0x1400e271a
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
xorps xmm0, xmmword [0x1401a4090]
movss xmm1, dword [rsp + 0x4c]
divss xmm0, xmm1
movss dword [rsp + 0x30], xmm0
movss xmm0, dword [rsp + 0x30]
subss xmm0, dword [rsp + 0x150]
movss dword [rsp + 0x44], xmm0
movss xmm0, dword [rsp + 0x30]
addss xmm0, dword [rsp + 0x150]
movss dword [rsp + 0x34], xmm0
movss xmm0, dword [rsp + 0x24]
comiss xmm0, dword [rsp + 0x44]
jb 0x1400e2783
movss xmm0, dword [rsp + 0x34]
comiss xmm0, dword [rsp + 0x24]
jb 0x1400e2783
mov qword [rsp + 0x28], 0
jmp 0x1400e2923
movss xmm0, dword [rsp + 0x30]
comiss xmm0, dword [rsp + 0x24]
jbe 0x1400e2862
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rsp + 0x44]
movss xmm1, dword [0x1401a12e0]
subss xmm1, xmm0
movaps xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [rsp + 0x90], xmm0
cvtss2sd xmm0, dword [rsp + 0x148]
movsd xmm1, qword [rsp + 0xf8]
xorps xmm1, xmmword [0x1401a4080]
divsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0x98], xmm0
movsd xmm1, qword [rsp + 0x90]
movsd xmm0, qword [rsp + 0x98]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd qword [rsp + 0xa0], xmm0
cvtss2sd xmm0, dword [rsp + 0x148]
movsd xmm1, qword [rsp + 0xa0]
mulsd xmm0, xmm1
xorps xmm0, xmmword [0x1401a4080]
xor eax, eax
comisd xmm0, xmmword [0x1401acc40]
jb 0x1400e284d
subsd xmm0, qword [0x1401acc40]
comisd xmm0, xmmword [0x1401acc40]
jae 0x1400e284d
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1400e2923
movss xmm0, dword [0x1401a12e0]
subss xmm0, dword [rsp + 0x34]
movss xmm1, dword [rsp + 0x24]
subss xmm1, dword [rsp + 0x34]
divss xmm1, xmm0
movaps xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [rsp + 0xa8], xmm0
cvtss2sd xmm0, dword [rsp + 0x148]
movsd xmm1, qword [rsp + 0xf0]
divsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0xb0], xmm0
movsd xmm1, qword [rsp + 0xa8]
movsd xmm0, qword [rsp + 0xb0]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd qword [rsp + 0xb8], xmm0
cvtss2sd xmm0, dword [rsp + 0x148]
movsd xmm1, qword [rsp + 0xb8]
mulsd xmm0, xmm1
xor eax, eax
comisd xmm0, xmmword [0x1401acc40]
jb 0x1400e2913
subsd xmm0, qword [0x1401acc40]
comisd xmm0, xmmword [0x1401acc40]
jae 0x1400e2913
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1400e2ae5
mov rax, qword [rsp + 0x130]
test rax, rax
jl 0x1400e293c
cvtsi2ss xmm0, rax
jmp 0x1400e2955
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 0x1400e2996
mov rax, qword [rsp + 0x138]
test rax, rax
jl 0x1400e2971
cvtsi2ss xmm0, rax
jmp 0x1400e298a
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 0x1400e2a56
movsd xmm0, qword [rsp + 0xf0]
xorps xmm0, xmmword [0x1401a4080]
movsd xmm1, qword [rsp + 0xf8]
xorps xmm1, xmmword [0x1401a4080]
divsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0xc0], xmm0
movss xmm0, dword [0x1401a12e0]
subss xmm0, dword [rsp + 0x24]
cvtss2sd xmm0, xmm0
movaps xmm1, xmm0
movsd xmm0, qword [rsp + 0xc0]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd qword [rsp + 0xc8], xmm0
movsd xmm0, qword [rsp + 0xf0]
xorps xmm0, xmmword [0x1401a4080]
movsd xmm1, qword [rsp + 0xc8]
mulsd xmm0, xmm1
xorps xmm0, xmmword [0x1401a4080]
xor eax, eax
comisd xmm0, xmmword [0x1401acc40]
jb 0x1400e2a41
subsd xmm0, qword [0x1401acc40]
comisd xmm0, xmmword [0x1401acc40]
jae 0x1400e2a41
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1400e2ae5
movsd xmm0, qword [rsp + 0xf0]
divsd xmm0, qword [rsp + 0xf8]
movsd qword [rsp + 0xd0], xmm0
cvtss2sd xmm0, dword [rsp + 0x24]
movaps xmm1, xmm0
movsd xmm0, qword [rsp + 0xd0]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd qword [rsp + 0xd8], xmm0
movsd xmm0, qword [rsp + 0xd8]
movsd xmm1, qword [rsp + 0xf8]
mulsd xmm1, xmm0
movaps xmm0, xmm1
xor eax, eax
comisd xmm0, xmmword [0x1401acc40]
jb 0x1400e2ad5
subsd xmm0, qword [0x1401acc40]
comisd xmm0, xmmword [0x1401acc40]
jae 0x1400e2ad5
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1400e2c86
cmp dword [rsp + 0x120], 8
je 0x1400e2b05
cmp dword [rsp + 0x120], 9
je 0x1400e2b05
mov byte [rsp + 0x22], 0
jmp 0x1400e2b0a
mov byte [rsp + 0x22], 1
movzx eax, byte [rsp + 0x22]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x1400e2be3
mov rax, qword [rsp + 0x130]
test rax, rax
jl 0x1400e2b34
cvtsi2ss xmm0, rax
jmp 0x1400e2b4d
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movaps xmm0, xmm1
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x138]
sub rcx, rax
mov rax, rcx
test rax, rax
jl 0x1400e2b6f
cvtsi2ss xmm1, rax
jmp 0x1400e2b88
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm2
mulss xmm1, dword [rsp + 0x128]
addss xmm0, xmm1
xor eax, eax
comiss xmm0, dword [0x1401acc48]
jb 0x1400e2bbe
subss xmm0, dword [0x1401acc48]
comiss xmm0, dword [0x1401acc48]
jae 0x1400e2bbe
movabs rcx, 0x8000000000000000
add rax, rcx
cvttss2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
jmp 0x1400e2c86
cvtss2sd xmm0, dword [rsp + 0x128]
movsd xmm1, qword [0x1401a3ec8]
comisd xmm1, xmm0
jbe 0x1400e2c86
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x138]
sub rcx, rax
mov rax, rcx
cvtsi2ss xmm0, rax
mulss xmm0, dword [rsp + 0x128]
cvtss2sd xmm0, xmm0
movsd qword [rsp + 0xe8], xmm0
mov rax, qword [rsp + 0x138]
cmp qword [rsp + 0x130], rax
jbe 0x1400e2c51
movsd xmm0, qword [0x1401acc60]
movsd qword [rsp + 0x58], xmm0
jmp 0x1400e2c5f
movsd xmm0, qword [0x1401acc08]
movsd qword [rsp + 0x58], xmm0
movsd xmm0, qword [rsp + 0xe8]
addsd xmm0, qword [rsp + 0x58]
cvttsd2si rax, xmm0
mov rcx, qword [rsp + 0x130]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14019a660
add rsp, 0x118
ret