Function at 0x14004d8b0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
movaps xmmword [rax - 0xb8], xmm14
movaps xmmword [rax - 0xc8], xmm15
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov rbx, rcx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
lea r14, [rbp + 0x138]
movabs r15, 0xff00ff00ff00ff00
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x60], r14
mov rsi, qword [r14]
xor rsi, r15
mov qword [rbp + 0x50], rsi
mov qword [r14], r12
mov rax, qword [0x14033a850]
mov rdx, qword [rax]
mov rax, qword [0x14033a888]
add rdx, qword [rax]
lea r9d, [r12 + 8]
lea r8, [rbp - 0x20]
call fcn.14004be10
test al, al
mov edx, r12d
je 0x14004d983
mov rdx, qword [rbp - 0x20]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x10]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be10
test al, al
mov rdx, r12
je 0x14004d9a8
mov rdx, qword [rbp - 0x20]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be10
test al, al
mov rdx, r12
je 0x14004d9cd
mov rdx, qword [rbp - 0x20]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be10
test al, al
mov rdx, r12
je 0x14004d9e7
mov rdx, qword [rbp - 0x20]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp - 0x18]
call fcn.14004be10
test al, al
jne 0x14004da0e
mov r13, r12
mov qword [rbp - 0x18], r12
jmp 0x14004da12
mov r13, qword [rbp - 0x18]
mov rax, qword [0x14033a888]
movd xmm7, dword [rax + 0x10]
cvtdq2pd xmm7, xmm7
mulsd xmm7, qword [0x14006a668]
movsd qword [rsp + 0x60], xmm7
movd xmm8, dword [rax + 0xc]
cvtdq2pd xmm8, xmm8
mulsd xmm8, qword [0x14006a668]
movsd qword [rbp - 0x18], xmm8
xorps xmm15, xmm15
xorps xmm11, xmm11
xorps xmm12, xmm12
mov rax, qword [0x14033a850]
mov rdx, qword [rax + 0x70]
add rdx, rbx
mov r9d, 8
lea r8, [rbp + 0x48]
call fcn.14004be10
test al, al
jne 0x14004da80
mov rdi, r12
mov qword [rbp + 0x48], r12
jmp 0x14004da84
mov rdi, qword [rbp + 0x48]
mov rax, qword [0x14033a848]
mov ecx, dword [rax + 8]
movsd xmm13, qword [0x14006aa90]
test ecx, ecx
jne 0x14004dfa7
lea r9d, [rcx + 0x6d]
mov r8, rdi
lea rdx, [rbp - 0x60]
call fcn.14004c5c0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm0
mov rax, qword [0x14033a850]
mov rdx, qword [rax]
mov rax, qword [0x14033a888]
add rdx, qword [rax]
mov r9d, 8
lea r8, [rbp]
call fcn.14004be10
test al, al
jne 0x14004daf1
mov rbx, r12
mov qword [rbp], rbx
jmp 0x14004daf5
mov rbx, qword [rbp]
mov rax, qword [0x14033a850]
mov rdx, qword [rax + 0x10]
add rdx, rbx
mov r9d, 8
lea r8, [rbp + 8]
call fcn.14004be10
test al, al
jne 0x14004db1f
mov rdx, r12
mov qword [rbp + 8], rdx
jmp 0x14004db23
mov rdx, qword [rbp + 8]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp + 0x10]
call fcn.14004be10
test al, al
jne 0x14004db4a
mov rdx, r12
mov qword [rbp + 0x10], rdx
jmp 0x14004db4e
mov rdx, qword [rbp + 0x10]
mov r9d, 8
lea r8, [rbp + 0x18]
call fcn.14004be10
test al, al
jne 0x14004db6a
mov rdx, r12
mov qword [rbp + 0x18], rdx
jmp 0x14004db6e
mov rdx, qword [rbp + 0x18]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp + 0x20]
call fcn.14004be10
test al, al
jne 0x14004db95
mov r14, r12
mov qword [rbp + 0x20], r12
jmp 0x14004db99
mov r14, qword [rbp + 0x20]
lea rdx, [rbx + 0x110]
mov r9d, 8
lea r8, [rbp + 0x28]
call fcn.14004be10
test al, al
jne 0x14004dbbc
mov rdi, r12
mov qword [rbp + 0x28], r12
jmp 0x14004dbc0
mov rdi, qword [rbp + 0x28]
lea rdx, [rbx + 0x120]
mov r9d, 8
lea r8, [rbp + 0x30]
call fcn.14004be10
test al, al
jne 0x14004dbe3
mov rbx, r12
mov qword [rbp + 0x30], rbx
jmp 0x14004dbe7
mov rbx, qword [rbp + 0x30]
mov r9d, 8
lea r8, [rbp + 0x38]
mov rdx, rbx
call fcn.14004be10
test al, al
jne 0x14004dc09
xorps xmm8, xmm8
movsd qword [rbp + 0x38], xmm8
jmp 0x14004dc0f
movsd xmm8, qword [rbp + 0x38]
lea rdx, [rbx + 0x20]
mov r9d, 8
lea r8, [rbp + 0x40]
call fcn.14004be10
test al, al
jne 0x14004dc32
xorps xmm9, xmm9
movsd qword [rbp + 0x40], xmm9
jmp 0x14004dc38
movsd xmm9, qword [rbp + 0x40]
lea rdx, [rbx + 0x1d0]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be10
test al, al
jne 0x14004dc5c
xorps xmm6, xmm6
movsd qword [rbp - 0x20], xmm6
jmp 0x14004dc61
movsd xmm6, qword [rbp - 0x20]
movups xmmword [rsp + 0x38], xmm15
movsd qword [rsp + 0x30], xmm15
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.14004be10
test al, al
jne 0x14004dc94
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
movsd xmm0, qword [rsp + 0x30]
movsd qword [rbp - 0x10], xmm0
movsd xmm0, qword [rsp + 0x38]
movsd qword [rsp + 0x48], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rsp + 0x68], xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_asin
movaps xmm10, xmm0
mulsd xmm10, qword [0x14006a6c0]
movsd xmm7, qword [0x14006a868]
mulsd xmm8, xmm7
movaps xmm1, xmm9
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2
movaps xmm9, xmm0
mulsd xmm9, qword [0x14006a6c0]
mulsd xmm9, xmm7
mulsd xmm9, xmm7
lea rdx, [r14 + 0x394]
mov r9d, 4
lea r8, [rbp - 0x24]
call fcn.14004be10
test al, al
jne 0x14004dd21
xorps xmm0, xmm0
movss dword [rbp - 0x24], xmm0
jmp 0x14004dd26
movss xmm0, dword [rbp - 0x24]
movss dword [rbp - 0x28], xmm0
mulsd xmm10, qword [0x14006a680]
divsd xmm10, qword [0x14006a6e0]
mulsd xmm9, qword [0x14006a680]
divsd xmm9, qword [0x14006a6e0]
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm10
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm7, xmm7
cvtss2sd xmm7, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm8, xmm8
cvtss2sd xmm8, xmm0
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm9
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm11, xmm11
cvtss2sd xmm11, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm9, xmm9
cvtss2sd xmm9, xmm0
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm10, xmm10
cvtss2sd xmm10, xmm0
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm4, xmm4
cvtss2sd xmm4, xmm0
movaps xmm3, xmm10
mulsd xmm3, xmm7
movaps xmm5, xmm4
mulsd xmm5, xmm7
cvtpd2ps xmm0, xmm7
cvtps2pd xmm14, xmm0
movaps xmm1, xmm11
mulsd xmm1, xmm8
cvtpd2ps xmm0, xmm1
cvtps2pd xmm12, xmm0
movaps xmm2, xmm9
mulsd xmm2, xmm8
cvtpd2ps xmm0, xmm2
cvtps2pd xmm7, xmm0
movaps xmm1, xmm10
xorps xmm1, xmm13
mulsd xmm1, xmm8
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
cvtps2pd xmm15, xmm0
movaps xmm2, xmm3
mulsd xmm2, xmm11
movaps xmm0, xmm4
mulsd xmm0, xmm9
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm2
cvtps2pd xmm13, xmm0
mulsd xmm3, xmm9
movaps xmm0, xmm4
mulsd xmm0, xmm11
subsd xmm3, xmm0
cvtpd2ps xmm0, xmm3
cvtps2pd xmm1, xmm0
movsd qword [rbp - 0x30], xmm1
mulsd xmm4, xmm8
cvtpd2ps xmm0, xmm4
cvtps2pd xmm6, xmm0
movaps xmm1, xmm10
mulsd xmm1, xmm9
movaps xmm0, xmm5
mulsd xmm0, xmm11
subsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm4, xmm0
mulsd xmm5, xmm9
mulsd xmm10, xmm11
addsd xmm5, xmm10
xorps xmm5, xmmword [0x14006aa90]
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm5
cvtps2pd xmm9, xmm0
movsd xmm5, qword [rbp - 0x80]
subsd xmm5, qword [rsp + 0x68]
movups xmm8, xmmword [rsp + 0x50]
movaps xmm3, xmm8
unpckhpd xmm3, xmm8
subsd xmm3, qword [rsp + 0x48]
subsd xmm8, qword [rbp - 0x10]
movaps xmm2, xmm8
mulsd xmm2, xmm7
movaps xmm0, xmm3
mulsd xmm0, xmm12
addsd xmm2, xmm0
movaps xmm1, xmm5
mulsd xmm1, xmm14
addsd xmm2, xmm1
mulsd xmm9, xmm8
movaps xmm0, xmm3
mulsd xmm0, xmm4
addsd xmm9, xmm0
movaps xmm1, xmm5
mulsd xmm1, xmm6
addsd xmm9, xmm1
movsd xmm11, qword [rbp - 0x30]
mulsd xmm11, xmm8
mulsd xmm3, xmm13
addsd xmm11, xmm3
mulsd xmm5, xmm15
addsd xmm11, xmm5
movsd xmm8, qword [0x14006a670]
maxsd xmm8, xmm2
mov rbx, qword [0x14033a888]
xorps xmm7, xmm7
cvtsi2ss xmm7, dword [rbx + 0xc]
mulss xmm7, dword [0x14006a618]
movss xmm0, dword [rbp - 0x28]
mulss xmm0, dword [0x14006a79c]
mulss xmm0, dword [0x14006a6b8]
divss xmm0, dword [0x14006a7f8]
call sub.api_ms_win_crt_math_l1_1_0.dll_tanf
movaps xmm1, xmm7
divss xmm1, xmm0
cvtps2pd xmm3, xmm1
movaps xmm0, xmm3
mulsd xmm11, xmm3
xorps xmm2, xmm2
cvtsi2ss xmm2, dword [rbx + 0x10]
mulsd xmm0, xmm9
mulss xmm2, dword [0x14006a618]
divsd xmm0, xmm8
cvtps2pd xmm12, xmm2
subsd xmm12, xmm0
divsd xmm11, xmm8
cvtps2pd xmm0, xmm7
addsd xmm11, xmm0
xorps xmm15, xmm15
jmp 0x14004ed27
cmp ecx, 1
jne 0x14004e486
lea r9d, [rcx + 0x42]
mov r8, rdi
lea rdx, [rbp - 0x48]
call fcn.14004c5c0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm0
mov rax, qword [0x14033a850]
mov rdx, qword [rax]
mov rax, qword [0x14033a888]
add rdx, qword [rax]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be10
test al, al
jne 0x14004e002
mov rbx, r12
mov qword [rbp - 0x20], rbx
jmp 0x14004e006
mov rbx, qword [rbp - 0x20]
mov rax, qword [0x14033a850]
mov rdx, qword [rax + 0x10]
add rdx, rbx
mov r9d, 8
lea r8, [rbp + 0x40]
call fcn.14004be10
test al, al
jne 0x14004e030
mov rdx, r12
mov qword [rbp + 0x40], rdx
jmp 0x14004e034
mov rdx, qword [rbp + 0x40]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp + 0x38]
call fcn.14004be10
test al, al
jne 0x14004e05b
mov rdx, r12
mov qword [rbp + 0x38], rdx
jmp 0x14004e05f
mov rdx, qword [rbp + 0x38]
mov r9d, 8
lea r8, [rbp + 0x30]
call fcn.14004be10
test al, al
jne 0x14004e07b
mov rdx, r12
mov qword [rbp + 0x30], rdx
jmp 0x14004e07f
mov rdx, qword [rbp + 0x30]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp + 0x28]
call fcn.14004be10
test al, al
jne 0x14004e0a6
mov r14, r12
mov qword [rbp + 0x28], r12
jmp 0x14004e0aa
mov r14, qword [rbp + 0x28]
lea rdx, [rbx + 0x110]
mov r9d, 8
lea r8, [rbp + 0x20]
call fcn.14004be10
test al, al
jne 0x14004e0cd
mov rdi, r12
mov qword [rbp + 0x20], r12
jmp 0x14004e0d1
mov rdi, qword [rbp + 0x20]
lea rdx, [rbx + 0x120]
mov r9d, 8
lea r8, [rbp + 0x18]
call fcn.14004be10
test al, al
jne 0x14004e0f4
mov rbx, r12
mov qword [rbp + 0x18], rbx
jmp 0x14004e0f8
mov rbx, qword [rbp + 0x18]
mov r9d, 8
lea r8, [rbp + 0x10]
mov rdx, rbx
call fcn.14004be10
test al, al
jne 0x14004e11a
xorps xmm8, xmm8
movsd qword [rbp + 0x10], xmm8
jmp 0x14004e120
movsd xmm8, qword [rbp + 0x10]
lea rdx, [rbx + 0x20]
mov r9d, 8
lea r8, [rbp + 8]
call fcn.14004be10
test al, al
jne 0x14004e143
xorps xmm9, xmm9
movsd qword [rbp + 8], xmm9
jmp 0x14004e149
movsd xmm9, qword [rbp + 8]
lea rdx, [rbx + 0x1d0]
mov r9d, 8
lea r8, [rbp]
call fcn.14004be10
test al, al
jne 0x14004e16d
xorps xmm6, xmm6
movsd qword [rbp], xmm6
jmp 0x14004e172
movsd xmm6, qword [rbp]
movups xmmword [rsp + 0x38], xmm15
movsd qword [rsp + 0x30], xmm15
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.14004be10
test al, al
jne 0x14004e1a5
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x40], rax
movsd xmm0, qword [rsp + 0x30]
movsd qword [rsp + 0x48], xmm0
movsd xmm0, qword [rsp + 0x38]
movsd qword [rbp - 0x10], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbp - 0x30], xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_asin
movaps xmm10, xmm0
mulsd xmm10, qword [0x14006a6c0]
movsd xmm7, qword [0x14006a868]
mulsd xmm8, xmm7
movaps xmm1, xmm9
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2
movaps xmm9, xmm0
mulsd xmm9, qword [0x14006a6c0]
mulsd xmm9, xmm7
mulsd xmm9, xmm7
lea rdx, [r14 + 0x394]
mov r9d, 4
lea r8, [rbp - 0x28]
call fcn.14004be10
test al, al
jne 0x14004e231
xorps xmm0, xmm0
movss dword [rbp - 0x28], xmm0
jmp 0x14004e236
movss xmm0, dword [rbp - 0x28]
movss dword [rbp - 0x24], xmm0
mulsd xmm10, qword [0x14006a680]
divsd xmm10, qword [0x14006a6e0]
mulsd xmm9, qword [0x14006a680]
divsd xmm9, qword [0x14006a6e0]
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm10
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm7, xmm7
cvtss2sd xmm7, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm8, xmm8
cvtss2sd xmm8, xmm0
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm9
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm11, xmm11
cvtss2sd xmm11, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm9, xmm9
cvtss2sd xmm9, xmm0
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm10, xmm10
cvtss2sd xmm10, xmm0
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm4, xmm4
cvtss2sd xmm4, xmm0
movaps xmm3, xmm10
mulsd xmm3, xmm7
movaps xmm6, xmm4
mulsd xmm6, xmm7
cvtpd2ps xmm0, xmm7
cvtps2pd xmm13, xmm0
movaps xmm1, xmm11
mulsd xmm1, xmm8
cvtpd2ps xmm0, xmm1
cvtps2pd xmm7, xmm0
movaps xmm2, xmm9
mulsd xmm2, xmm8
cvtpd2ps xmm0, xmm2
cvtps2pd xmm15, xmm0
movaps xmm1, xmm10
xorps xmm1, xmmword [0x14006aa90]
mulsd xmm1, xmm8
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
cvtps2pd xmm14, xmm0
movaps xmm2, xmm4
mulsd xmm2, xmm9
movaps xmm0, xmm11
mulsd xmm0, xmm3
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm2
cvtps2pd xmm12, xmm0
movaps xmm1, xmm9
mulsd xmm1, xmm3
movaps xmm0, xmm4
mulsd xmm0, xmm11
subsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm2, xmm0
movsd qword [rsp + 0x68], xmm2
mulsd xmm4, xmm8
cvtpd2ps xmm0, xmm4
cvtps2pd xmm5, xmm0
movaps xmm1, xmm10
mulsd xmm1, xmm9
movaps xmm0, xmm6
mulsd xmm0, xmm11
subsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm3, xmm0
mulsd xmm6, xmm9
mulsd xmm10, xmm11
addsd xmm6, xmm10
xorps xmm6, xmmword [0x14006aa90]
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm6
cvtps2pd xmm9, xmm0
movsd xmm4, qword [rbp - 0x80]
subsd xmm4, qword [rbp - 0x30]
movups xmm6, xmmword [rsp + 0x50]
movaps xmm2, xmm6
unpckhpd xmm2, xmm6
subsd xmm2, qword [rbp - 0x10]
subsd xmm6, qword [rsp + 0x48]
mulsd xmm15, xmm6
movaps xmm0, xmm2
mulsd xmm0, xmm7
addsd xmm15, xmm0
movaps xmm1, xmm4
mulsd xmm1, xmm13
addsd xmm15, xmm1
mulsd xmm9, xmm6
movaps xmm0, xmm2
mulsd xmm0, xmm3
addsd xmm9, xmm0
movaps xmm1, xmm4
mulsd xmm1, xmm5
addsd xmm9, xmm1
movsd xmm10, qword [rsp + 0x68]
mulsd xmm10, xmm6
mulsd xmm2, xmm12
addsd xmm10, xmm2
mulsd xmm4, xmm14
addsd xmm10, xmm4
movsd xmm8, qword [0x14006a670]
maxsd xmm8, xmm15
mov rbx, qword [0x14033a888]
xorps xmm7, xmm7
cvtsi2ss xmm7, dword [rbx + 0xc]
mulss xmm7, dword [0x14006a618]
movss xmm0, dword [rbp - 0x24]
mulss xmm0, dword [0x14006a79c]
mulss xmm0, dword [0x14006a6b8]
divss xmm0, dword [0x14006a7f8]
call sub.api_ms_win_crt_math_l1_1_0.dll_tanf
movaps xmm1, xmm7
divss xmm1, xmm0
cvtps2pd xmm11, xmm1
movaps xmm0, xmm11
mulsd xmm11, xmm10
jmp 0x14004df6e
cmp ecx, 2
jne 0x14004ed43
lea r9d, [rcx + 0x23]
mov r8, rdi
lea rdx, [rbp - 0x78]
call fcn.14004c5c0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm0
mov rax, qword [0x14033a850]
mov rdx, qword [rax]
mov rax, qword [0x14033a888]
add rdx, qword [rax]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rbx, r12
je 0x14004e4df
mov rbx, qword [rbp - 0x30]
mov rax, qword [0x14033a850]
mov rdx, qword [rax + 0x10]
add rdx, rbx
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rdx, r12
je 0x14004e507
mov rdx, qword [rbp - 0x30]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rdx, r12
je 0x14004e52c
mov rdx, qword [rbp - 0x30]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rdx, r12
je 0x14004e546
mov rdx, qword [rbp - 0x30]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov r15, r12
je 0x14004e56b
mov r15, qword [rbp - 0x30]
lea rdx, [rbx + 0x110]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov r14, r12
je 0x14004e58c
mov r14, qword [rbp - 0x30]
lea rdx, [rbx + 0x120]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rbx, r12
je 0x14004e5ad
mov rbx, qword [rbp - 0x30]
mov r9d, 8
lea r8, [rbp - 0x30]
mov rdx, rbx
call fcn.14004be10
test al, al
jne 0x14004e5c8
xorps xmm7, xmm7
jmp 0x14004e5cd
movsd xmm7, qword [rbp - 0x30]
lea rdx, [rbx + 0x20]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
jne 0x14004e5ea
xorps xmm9, xmm9
jmp 0x14004e5f0
movsd xmm9, qword [rbp - 0x30]
lea rdx, [rbx + 0x1d0]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
jne 0x14004e60f
xorps xmm6, xmm6
jmp 0x14004e614
movsd xmm6, qword [rbp - 0x30]
movups xmmword [rsp + 0x38], xmm15
movsd qword [rsp + 0x30], xmm15
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rdx, r14
call fcn.14004be10
test al, al
jne 0x14004e647
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
mov qword [rsp + 0x40], rax
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_asin
movaps xmm11, xmm0
mulsd xmm11, qword [0x14006a6c0]
movsd xmm6, qword [0x14006a868]
mulsd xmm7, xmm6
movaps xmm1, xmm9
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2
movaps xmm9, xmm0
mulsd xmm9, qword [0x14006a6c0]
mulsd xmm9, xmm6
mulsd xmm9, xmm6
lea rdx, [r15 + 0x394]
mov r9d, 4
lea r8, [rbp - 0x28]
call fcn.14004be10
test al, al
jne 0x14004e6af
xorps xmm0, xmm0
movss dword [rbp - 0x28], xmm0
jmp 0x14004e6b4
movss xmm0, dword [rbp - 0x28]
movss dword [rbp - 0x24], xmm0
mulsd xmm11, qword [0x14006a680]
divsd xmm11, qword [0x14006a6e0]
mulsd xmm9, qword [0x14006a680]
divsd xmm9, qword [0x14006a6e0]
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm11
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm7, xmm7
cvtss2sd xmm7, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm8, xmm8
cvtss2sd xmm8, xmm0
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm9
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm11, xmm11
cvtss2sd xmm11, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm9, xmm9
cvtss2sd xmm9, xmm0
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm6, xmm6
cvtss2sd xmm6, xmm0
movsd qword [rbp - 0x20], xmm6
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm4, xmm4
cvtss2sd xmm4, xmm0
movsd qword [rsp + 0x48], xmm4
movaps xmm3, xmm6
mulsd xmm3, xmm7
movaps xmm10, xmm6
xorps xmm10, xmm13
movsd qword [rbp - 0x10], xmm10
movaps xmm5, xmm4
mulsd xmm5, xmm7
cvtpd2ps xmm0, xmm7
cvtps2pd xmm12, xmm0
movaps xmm1, xmm11
mulsd xmm1, xmm8
cvtpd2ps xmm0, xmm1
cvtps2pd xmm6, xmm0
movaps xmm2, xmm9
mulsd xmm2, xmm8
cvtpd2ps xmm0, xmm2
cvtps2pd xmm14, xmm0
movaps xmm1, xmm10
mulsd xmm1, xmm8
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
cvtps2pd xmm13, xmm0
movaps xmm2, xmm3
mulsd xmm2, xmm11
movaps xmm0, xmm4
mulsd xmm0, xmm9
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm2
cvtps2pd xmm10, xmm0
mulsd xmm3, xmm9
movaps xmm0, xmm4
mulsd xmm0, xmm11
subsd xmm3, xmm0
cvtpd2ps xmm0, xmm3
cvtps2pd xmm7, xmm0
movaps xmm1, xmm4
mulsd xmm1, xmm8
cvtpd2ps xmm0, xmm1
cvtps2pd xmm4, xmm0
movsd xmm2, qword [rbp - 0x20]
mulsd xmm2, xmm9
movaps xmm0, xmm5
mulsd xmm0, xmm11
subsd xmm2, xmm0
cvtpd2ps xmm0, xmm2
cvtps2pd xmm3, xmm0
mulsd xmm5, xmm9
movsd xmm0, qword [rbp - 0x20]
mulsd xmm0, xmm11
addsd xmm5, xmm0
xorps xmm5, xmmword [0x14006aa90]
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm5
cvtps2pd xmm8, xmm0
movsd xmm2, qword [rbp - 0x80]
subsd xmm2, qword [rsp + 0x40]
movups xmm5, xmmword [rsp + 0x50]
movaps xmm9, xmm5
unpckhpd xmm9, xmm5
subsd xmm9, qword [rsp + 0x38]
subsd xmm5, qword [rsp + 0x30]
mulsd xmm14, xmm5
movaps xmm0, xmm9
mulsd xmm0, xmm6
addsd xmm14, xmm0
movaps xmm1, xmm2
mulsd xmm1, xmm12
addsd xmm14, xmm1
mulsd xmm8, xmm5
movaps xmm0, xmm9
mulsd xmm0, xmm3
addsd xmm8, xmm0
movaps xmm1, xmm2
mulsd xmm1, xmm4
addsd xmm8, xmm1
mulsd xmm9, xmm10
mulsd xmm7, xmm5
addsd xmm9, xmm7
mulsd xmm2, xmm13
addsd xmm9, xmm2
movsd xmm7, qword [0x14006a670]
maxsd xmm7, xmm14
mov rbx, qword [0x14033a888]
xorps xmm6, xmm6
cvtsi2ss xmm6, dword [rbx + 0xc]
movss xmm14, dword [0x14006a618]
mulss xmm6, xmm14
movss xmm0, dword [rbp - 0x24]
mulss xmm0, dword [0x14006a79c]
mulss xmm0, dword [0x14006a6b8]
divss xmm0, dword [0x14006a7f8]
call sub.api_ms_win_crt_math_l1_1_0.dll_tanf
movaps xmm1, xmm6
divss xmm1, xmm0
cvtps2pd xmm3, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, dword [rbx + 0x10]
mulss xmm2, xmm14
cvtps2pd xmm12, xmm2
mulsd xmm8, xmm3
divsd xmm8, xmm7
subsd xmm12, xmm8
mulsd xmm9, xmm3
divsd xmm9, xmm7
cvtps2pd xmm0, xmm6
addsd xmm9, xmm0
movaps xmmword [rsp + 0x50], xmm9
mov r9d, 8
mov r8, rdi
lea rdx, [rbp - 0x78]
call fcn.14004c5c0
movups xmm13, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm0
mov rax, qword [0x14033a850]
mov rdx, qword [rax]
mov rax, qword [0x14033a888]
add rdx, qword [rax]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rbx, r12
je 0x14004e98d
mov rbx, qword [rbp - 0x30]
mov rax, qword [0x14033a850]
mov rdx, qword [rax + 0x10]
add rdx, rbx
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rdx, r12
je 0x14004e9b5
mov rdx, qword [rbp - 0x30]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rdx, r12
je 0x14004e9da
mov rdx, qword [rbp - 0x30]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rdx, r12
je 0x14004e9f4
mov rdx, qword [rbp - 0x30]
mov rax, qword [0x14033a850]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov r14, r12
je 0x14004ea19
mov r14, qword [rbp - 0x30]
lea rdx, [rbx + 0x110]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rdi, r12
je 0x14004ea3a
mov rdi, qword [rbp - 0x30]
lea rdx, [rbx + 0x120]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
mov rbx, r12
je 0x14004ea5b
mov rbx, qword [rbp - 0x30]
mov r9d, 8
lea r8, [rbp - 0x30]
mov rdx, rbx
call fcn.14004be10
test al, al
jne 0x14004ea77
xorps xmm8, xmm8
jmp 0x14004ea7d
movsd xmm8, qword [rbp - 0x30]
lea rdx, [rbx + 0x20]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
jne 0x14004ea9a
xorps xmm9, xmm9
jmp 0x14004eaa0
movsd xmm9, qword [rbp - 0x30]
lea rdx, [rbx + 0x1d0]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be10
test al, al
jne 0x14004eabf
xorps xmm6, xmm6
jmp 0x14004eac4
movsd xmm6, qword [rbp - 0x30]
movups xmmword [rsp + 0x38], xmm15
movsd qword [rsp + 0x30], xmm15
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.14004be10
test al, al
jne 0x14004eaf7
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
mov qword [rsp + 0x40], rax
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_asin
movaps xmm7, xmm0
mulsd xmm7, qword [0x14006a6c0]
movsd xmm6, qword [0x14006a868]
mulsd xmm8, xmm6
movaps xmm1, xmm9
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2
movaps xmm9, xmm0
mulsd xmm9, qword [0x14006a6c0]
mulsd xmm9, xmm6
mulsd xmm9, xmm6
lea rdx, [r14 + 0x394]
mov r9d, 4
lea r8, [rbp - 0x28]
call fcn.14004be10
test al, al
jne 0x14004eb61
xorps xmm11, xmm11
movss dword [rbp - 0x28], xmm11
jmp 0x14004eb67
movss xmm11, dword [rbp - 0x28]
mulsd xmm7, qword [0x14006a680]
divsd xmm7, qword [0x14006a6e0]
mulsd xmm9, qword [0x14006a680]
divsd xmm9, qword [0x14006a6e0]
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm7
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm7, xmm7
cvtss2sd xmm7, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm8, xmm8
cvtss2sd xmm8, xmm0
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm9
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm9, xmm9
cvtss2sd xmm9, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm3, xmm3
cvtss2sd xmm3, xmm0
movsd xmm4, qword [rbp - 0x20]
mulsd xmm4, xmm7
cvtpd2ps xmm0, xmm7
cvtps2pd xmm10, xmm0
movaps xmm1, xmm9
mulsd xmm1, xmm8
cvtpd2ps xmm0, xmm1
cvtps2pd xmm7, xmm0
movaps xmm2, xmm3
mulsd xmm2, xmm8
cvtpd2ps xmm0, xmm2
cvtps2pd xmm5, xmm0
movsd xmm1, qword [rbp - 0x10]
mulsd xmm1, xmm8
cvtpd2ps xmm0, xmm1
cvtps2pd xmm8, xmm0
movaps xmm1, xmm4
mulsd xmm1, xmm9
movsd xmm2, qword [rsp + 0x48]
movaps xmm0, xmm2
mulsd xmm0, xmm3
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm6, xmm0
mulsd xmm4, xmm3
mulsd xmm2, xmm9
subsd xmm4, xmm2
cvtpd2ps xmm0, xmm4
cvtps2pd xmm3, xmm0
movsd xmm4, qword [rbp - 0x80]
subsd xmm4, qword [rsp + 0x40]
movaps xmm2, xmm13
unpckhpd xmm2, xmm13
subsd xmm2, qword [rsp + 0x38]
subsd xmm13, qword [rsp + 0x30]
movaps xmm1, xmm13
mulsd xmm1, xmm5
movaps xmm0, xmm2
mulsd xmm0, xmm7
addsd xmm1, xmm0
mulsd xmm10, xmm4
addsd xmm1, xmm10
mulsd xmm13, xmm3
mulsd xmm6, xmm2
addsd xmm13, xmm6
mulsd xmm4, xmm8
addsd xmm13, xmm4
movsd xmm7, qword [0x14006a670]
maxsd xmm7, xmm1
mov rax, qword [0x14033a888]
xorps xmm6, xmm6
cvtsi2ss xmm6, dword [rax + 0xc]
mulss xmm6, xmm14
mulss xmm11, dword [0x14006a79c]
mulss xmm11, dword [0x14006a6b8]
divss xmm11, dword [0x14006a7f8]
movaps xmm0, xmm11
call sub.api_ms_win_crt_math_l1_1_0.dll_tanf
movaps xmm1, xmm6
divss xmm1, xmm0
cvtps2pd xmm11, xmm1
mulsd xmm11, xmm13
divsd xmm11, xmm7
cvtps2pd xmm0, xmm6
addsd xmm11, xmm0
movaps xmm0, xmmword [rsp + 0x50]
subsd xmm11, xmm0
mulsd xmm11, qword [0x14006a668]
addsd xmm11, xmm0
movabs r15, 0xff00ff00ff00ff00
movsd xmm7, qword [rsp + 0x60]
movsd xmm8, qword [rbp - 0x18]
movsd xmm13, qword [0x14006aa90]
lea r14, [rbp + 0x138]
comisd xmm11, xmm8
jbe 0x14004ed59
movaps xmm6, xmm8
subsd xmm6, xmm11
xorps xmm6, xmm13
jmp 0x14004ed62
movaps xmm6, xmm11
subsd xmm6, xmm8
mov rax, qword [0x14033a848]
movss xmm1, dword [rax + 0x14]
cvtps2pd xmm1, xmm1
divsd xmm6, xmm1
movaps xmm0, xmm6
addsd xmm0, xmm8
addsd xmm8, xmm8
comisd xmm0, xmm8
ja 0x14004ed90
comisd xmm15, xmm0
jbe 0x14004ed93
xorps xmm6, xmm6
comisd xmm12, xmm7
jbe 0x14004eda8
movaps xmm2, xmm7
subsd xmm2, xmm12
xorps xmm2, xmm13
jmp 0x14004edb0
movaps xmm2, xmm12
subsd xmm2, xmm7
divsd xmm2, xmm1
movaps xmm0, xmm2
addsd xmm0, xmm7
addsd xmm7, xmm7
comisd xmm0, xmm7
ja 0x14004edcc
comisd xmm15, xmm0
jbe 0x14004edcf
xorps xmm2, xmm2
divsd xmm6, xmm1
xorps xmm2, xmm13
divsd xmm2, xmm1
lea rdx, [r13 + 0x520]
call fcn.14005fbb0
lea rdx, [r13 + 0x528]
movaps xmm2, xmm6
call fcn.14005fbb0
mov rax, qword [0x14033a848]
cmp byte [rax + 0x18], 0
je 0x14004ee9e
mov ecx, 8
call fcn.140060b1c
lea rcx, [0x14004d800]
mov qword [rax], rcx
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140060790]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x14004ef09
cmp dword [rbp - 8], 0
jne 0x14004ee60
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 8], eax
jne 0x14004ee77
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x14004ee9e
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor rsi, r15
mov qword [r14], rsi
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.140060860
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rbp - 8], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3