Function at 0x14004d800
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 [0x140071040]
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 [0x1402ad280]
mov rdx, qword [rax]
mov rax, qword [0x1402ad2b8]
add rdx, qword [rax]
lea r9d, [r12 + 8]
lea r8, [rbp - 0x20]
call fcn.14004be20
test al, al
mov edx, r12d
je 0x14004d8d3
mov rdx, qword [rbp - 0x20]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x10]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be20
test al, al
mov rdx, r12
je 0x14004d8f8
mov rdx, qword [rbp - 0x20]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be20
test al, al
mov rdx, r12
je 0x14004d91d
mov rdx, qword [rbp - 0x20]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be20
test al, al
mov rdx, r12
je 0x14004d937
mov rdx, qword [rbp - 0x20]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp - 0x18]
call fcn.14004be20
test al, al
jne 0x14004d95e
mov r13, r12
mov qword [rbp - 0x18], r12
jmp 0x14004d962
mov r13, qword [rbp - 0x18]
mov rax, qword [0x1402ad2b8]
movd xmm7, dword [rax + 0x10]
cvtdq2pd xmm7, xmm7
mulsd xmm7, qword [0x1400684f0]
movsd qword [rsp + 0x60], xmm7
movd xmm8, dword [rax + 0xc]
cvtdq2pd xmm8, xmm8
mulsd xmm8, qword [0x1400684f0]
movsd qword [rbp - 0x18], xmm8
xorps xmm15, xmm15
xorps xmm11, xmm11
xorps xmm12, xmm12
mov rax, qword [0x1402ad280]
mov rdx, qword [rax + 0x70]
add rdx, rbx
mov r9d, 8
lea r8, [rbp + 0x48]
call fcn.14004be20
test al, al
jne 0x14004d9d0
mov rdi, r12
mov qword [rbp + 0x48], r12
jmp 0x14004d9d4
mov rdi, qword [rbp + 0x48]
mov rax, qword [0x1402ad278]
mov ecx, dword [rax + 8]
movsd xmm13, qword [0x140068910]
test ecx, ecx
jne 0x14004def7
lea r9d, [rcx + 0x6d]
mov r8, rdi
lea rdx, [rbp - 0x60]
call fcn.14004c510
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm0
mov rax, qword [0x1402ad280]
mov rdx, qword [rax]
mov rax, qword [0x1402ad2b8]
add rdx, qword [rax]
mov r9d, 8
lea r8, [rbp]
call fcn.14004be20
test al, al
jne 0x14004da41
mov rbx, r12
mov qword [rbp], rbx
jmp 0x14004da45
mov rbx, qword [rbp]
mov rax, qword [0x1402ad280]
mov rdx, qword [rax + 0x10]
add rdx, rbx
mov r9d, 8
lea r8, [rbp + 8]
call fcn.14004be20
test al, al
jne 0x14004da6f
mov rdx, r12
mov qword [rbp + 8], rdx
jmp 0x14004da73
mov rdx, qword [rbp + 8]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp + 0x10]
call fcn.14004be20
test al, al
jne 0x14004da9a
mov rdx, r12
mov qword [rbp + 0x10], rdx
jmp 0x14004da9e
mov rdx, qword [rbp + 0x10]
mov r9d, 8
lea r8, [rbp + 0x18]
call fcn.14004be20
test al, al
jne 0x14004daba
mov rdx, r12
mov qword [rbp + 0x18], rdx
jmp 0x14004dabe
mov rdx, qword [rbp + 0x18]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp + 0x20]
call fcn.14004be20
test al, al
jne 0x14004dae5
mov r14, r12
mov qword [rbp + 0x20], r12
jmp 0x14004dae9
mov r14, qword [rbp + 0x20]
lea rdx, [rbx + 0x110]
mov r9d, 8
lea r8, [rbp + 0x28]
call fcn.14004be20
test al, al
jne 0x14004db0c
mov rdi, r12
mov qword [rbp + 0x28], r12
jmp 0x14004db10
mov rdi, qword [rbp + 0x28]
lea rdx, [rbx + 0x120]
mov r9d, 8
lea r8, [rbp + 0x30]
call fcn.14004be20
test al, al
jne 0x14004db33
mov rbx, r12
mov qword [rbp + 0x30], rbx
jmp 0x14004db37
mov rbx, qword [rbp + 0x30]
mov r9d, 8
lea r8, [rbp + 0x38]
mov rdx, rbx
call fcn.14004be20
test al, al
jne 0x14004db59
xorps xmm8, xmm8
movsd qword [rbp + 0x38], xmm8
jmp 0x14004db5f
movsd xmm8, qword [rbp + 0x38]
lea rdx, [rbx + 0x20]
mov r9d, 8
lea r8, [rbp + 0x40]
call fcn.14004be20
test al, al
jne 0x14004db82
xorps xmm9, xmm9
movsd qword [rbp + 0x40], xmm9
jmp 0x14004db88
movsd xmm9, qword [rbp + 0x40]
lea rdx, [rbx + 0x1d0]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be20
test al, al
jne 0x14004dbac
xorps xmm6, xmm6
movsd qword [rbp - 0x20], xmm6
jmp 0x14004dbb1
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.14004be20
test al, al
jne 0x14004dbe4
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 [0x140068540]
movsd xmm7, qword [0x1400686e8]
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 [0x140068540]
mulsd xmm9, xmm7
mulsd xmm9, xmm7
lea rdx, [r14 + 0x394]
mov r9d, 4
lea r8, [rbp - 0x24]
call fcn.14004be20
test al, al
jne 0x14004dc71
xorps xmm0, xmm0
movss dword [rbp - 0x24], xmm0
jmp 0x14004dc76
movss xmm0, dword [rbp - 0x24]
movss dword [rbp - 0x28], xmm0
mulsd xmm10, qword [0x140068508]
divsd xmm10, qword [0x140068560]
mulsd xmm9, qword [0x140068508]
divsd xmm9, qword [0x140068560]
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 [0x140068910]
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 [0x1400684f8]
maxsd xmm8, xmm2
mov rbx, qword [0x1402ad2b8]
xorps xmm7, xmm7
cvtsi2ss xmm7, dword [rbx + 0xc]
mulss xmm7, dword [0x1400684a0]
movss xmm0, dword [rbp - 0x28]
mulss xmm0, dword [0x14006861c]
mulss xmm0, dword [0x140068538]
divss xmm0, dword [0x140068678]
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 [0x1400684a0]
divsd xmm0, xmm8
cvtps2pd xmm12, xmm2
subsd xmm12, xmm0
divsd xmm11, xmm8
cvtps2pd xmm0, xmm7
addsd xmm11, xmm0
xorps xmm15, xmm15
jmp 0x14004ec77
cmp ecx, 1
jne 0x14004e3d6
lea r9d, [rcx + 0x42]
mov r8, rdi
lea rdx, [rbp - 0x48]
call fcn.14004c510
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm0
mov rax, qword [0x1402ad280]
mov rdx, qword [rax]
mov rax, qword [0x1402ad2b8]
add rdx, qword [rax]
mov r9d, 8
lea r8, [rbp - 0x20]
call fcn.14004be20
test al, al
jne 0x14004df52
mov rbx, r12
mov qword [rbp - 0x20], rbx
jmp 0x14004df56
mov rbx, qword [rbp - 0x20]
mov rax, qword [0x1402ad280]
mov rdx, qword [rax + 0x10]
add rdx, rbx
mov r9d, 8
lea r8, [rbp + 0x40]
call fcn.14004be20
test al, al
jne 0x14004df80
mov rdx, r12
mov qword [rbp + 0x40], rdx
jmp 0x14004df84
mov rdx, qword [rbp + 0x40]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp + 0x38]
call fcn.14004be20
test al, al
jne 0x14004dfab
mov rdx, r12
mov qword [rbp + 0x38], rdx
jmp 0x14004dfaf
mov rdx, qword [rbp + 0x38]
mov r9d, 8
lea r8, [rbp + 0x30]
call fcn.14004be20
test al, al
jne 0x14004dfcb
mov rdx, r12
mov qword [rbp + 0x30], rdx
jmp 0x14004dfcf
mov rdx, qword [rbp + 0x30]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp + 0x28]
call fcn.14004be20
test al, al
jne 0x14004dff6
mov r14, r12
mov qword [rbp + 0x28], r12
jmp 0x14004dffa
mov r14, qword [rbp + 0x28]
lea rdx, [rbx + 0x110]
mov r9d, 8
lea r8, [rbp + 0x20]
call fcn.14004be20
test al, al
jne 0x14004e01d
mov rdi, r12
mov qword [rbp + 0x20], r12
jmp 0x14004e021
mov rdi, qword [rbp + 0x20]
lea rdx, [rbx + 0x120]
mov r9d, 8
lea r8, [rbp + 0x18]
call fcn.14004be20
test al, al
jne 0x14004e044
mov rbx, r12
mov qword [rbp + 0x18], rbx
jmp 0x14004e048
mov rbx, qword [rbp + 0x18]
mov r9d, 8
lea r8, [rbp + 0x10]
mov rdx, rbx
call fcn.14004be20
test al, al
jne 0x14004e06a
xorps xmm8, xmm8
movsd qword [rbp + 0x10], xmm8
jmp 0x14004e070
movsd xmm8, qword [rbp + 0x10]
lea rdx, [rbx + 0x20]
mov r9d, 8
lea r8, [rbp + 8]
call fcn.14004be20
test al, al
jne 0x14004e093
xorps xmm9, xmm9
movsd qword [rbp + 8], xmm9
jmp 0x14004e099
movsd xmm9, qword [rbp + 8]
lea rdx, [rbx + 0x1d0]
mov r9d, 8
lea r8, [rbp]
call fcn.14004be20
test al, al
jne 0x14004e0bd
xorps xmm6, xmm6
movsd qword [rbp], xmm6
jmp 0x14004e0c2
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.14004be20
test al, al
jne 0x14004e0f5
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 [0x140068540]
movsd xmm7, qword [0x1400686e8]
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 [0x140068540]
mulsd xmm9, xmm7
mulsd xmm9, xmm7
lea rdx, [r14 + 0x394]
mov r9d, 4
lea r8, [rbp - 0x28]
call fcn.14004be20
test al, al
jne 0x14004e181
xorps xmm0, xmm0
movss dword [rbp - 0x28], xmm0
jmp 0x14004e186
movss xmm0, dword [rbp - 0x28]
movss dword [rbp - 0x24], xmm0
mulsd xmm10, qword [0x140068508]
divsd xmm10, qword [0x140068560]
mulsd xmm9, qword [0x140068508]
divsd xmm9, qword [0x140068560]
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 [0x140068910]
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 [0x140068910]
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 [0x1400684f8]
maxsd xmm8, xmm15
mov rbx, qword [0x1402ad2b8]
xorps xmm7, xmm7
cvtsi2ss xmm7, dword [rbx + 0xc]
mulss xmm7, dword [0x1400684a0]
movss xmm0, dword [rbp - 0x24]
mulss xmm0, dword [0x14006861c]
mulss xmm0, dword [0x140068538]
divss xmm0, dword [0x140068678]
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 0x14004debe
cmp ecx, 2
jne 0x14004ec93
lea r9d, [rcx + 0x23]
mov r8, rdi
lea rdx, [rbp - 0x78]
call fcn.14004c510
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm0
mov rax, qword [0x1402ad280]
mov rdx, qword [rax]
mov rax, qword [0x1402ad2b8]
add rdx, qword [rax]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rbx, r12
je 0x14004e42f
mov rbx, qword [rbp - 0x30]
mov rax, qword [0x1402ad280]
mov rdx, qword [rax + 0x10]
add rdx, rbx
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rdx, r12
je 0x14004e457
mov rdx, qword [rbp - 0x30]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rdx, r12
je 0x14004e47c
mov rdx, qword [rbp - 0x30]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rdx, r12
je 0x14004e496
mov rdx, qword [rbp - 0x30]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov r15, r12
je 0x14004e4bb
mov r15, qword [rbp - 0x30]
lea rdx, [rbx + 0x110]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov r14, r12
je 0x14004e4dc
mov r14, qword [rbp - 0x30]
lea rdx, [rbx + 0x120]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rbx, r12
je 0x14004e4fd
mov rbx, qword [rbp - 0x30]
mov r9d, 8
lea r8, [rbp - 0x30]
mov rdx, rbx
call fcn.14004be20
test al, al
jne 0x14004e518
xorps xmm7, xmm7
jmp 0x14004e51d
movsd xmm7, qword [rbp - 0x30]
lea rdx, [rbx + 0x20]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
jne 0x14004e53a
xorps xmm9, xmm9
jmp 0x14004e540
movsd xmm9, qword [rbp - 0x30]
lea rdx, [rbx + 0x1d0]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
jne 0x14004e55f
xorps xmm6, xmm6
jmp 0x14004e564
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.14004be20
test al, al
jne 0x14004e597
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 [0x140068540]
movsd xmm6, qword [0x1400686e8]
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 [0x140068540]
mulsd xmm9, xmm6
mulsd xmm9, xmm6
lea rdx, [r15 + 0x394]
mov r9d, 4
lea r8, [rbp - 0x28]
call fcn.14004be20
test al, al
jne 0x14004e5ff
xorps xmm0, xmm0
movss dword [rbp - 0x28], xmm0
jmp 0x14004e604
movss xmm0, dword [rbp - 0x28]
movss dword [rbp - 0x24], xmm0
mulsd xmm11, qword [0x140068508]
divsd xmm11, qword [0x140068560]
mulsd xmm9, qword [0x140068508]
divsd xmm9, qword [0x140068560]
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 [0x140068910]
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 [0x1400684f8]
maxsd xmm7, xmm14
mov rbx, qword [0x1402ad2b8]
xorps xmm6, xmm6
cvtsi2ss xmm6, dword [rbx + 0xc]
movss xmm14, dword [0x1400684a0]
mulss xmm6, xmm14
movss xmm0, dword [rbp - 0x24]
mulss xmm0, dword [0x14006861c]
mulss xmm0, dword [0x140068538]
divss xmm0, dword [0x140068678]
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.14004c510
movups xmm13, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm0
mov rax, qword [0x1402ad280]
mov rdx, qword [rax]
mov rax, qword [0x1402ad2b8]
add rdx, qword [rax]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rbx, r12
je 0x14004e8dd
mov rbx, qword [rbp - 0x30]
mov rax, qword [0x1402ad280]
mov rdx, qword [rax + 0x10]
add rdx, rbx
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rdx, r12
je 0x14004e905
mov rdx, qword [rbp - 0x30]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x18]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rdx, r12
je 0x14004e92a
mov rdx, qword [rbp - 0x30]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rdx, r12
je 0x14004e944
mov rdx, qword [rbp - 0x30]
mov rax, qword [0x1402ad280]
add rdx, qword [rax + 0x38]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov r14, r12
je 0x14004e969
mov r14, qword [rbp - 0x30]
lea rdx, [rbx + 0x110]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rdi, r12
je 0x14004e98a
mov rdi, qword [rbp - 0x30]
lea rdx, [rbx + 0x120]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
mov rbx, r12
je 0x14004e9ab
mov rbx, qword [rbp - 0x30]
mov r9d, 8
lea r8, [rbp - 0x30]
mov rdx, rbx
call fcn.14004be20
test al, al
jne 0x14004e9c7
xorps xmm8, xmm8
jmp 0x14004e9cd
movsd xmm8, qword [rbp - 0x30]
lea rdx, [rbx + 0x20]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
jne 0x14004e9ea
xorps xmm9, xmm9
jmp 0x14004e9f0
movsd xmm9, qword [rbp - 0x30]
lea rdx, [rbx + 0x1d0]
mov r9d, 8
lea r8, [rbp - 0x30]
call fcn.14004be20
test al, al
jne 0x14004ea0f
xorps xmm6, xmm6
jmp 0x14004ea14
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.14004be20
test al, al
jne 0x14004ea47
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 [0x140068540]
movsd xmm6, qword [0x1400686e8]
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 [0x140068540]
mulsd xmm9, xmm6
mulsd xmm9, xmm6
lea rdx, [r14 + 0x394]
mov r9d, 4
lea r8, [rbp - 0x28]
call fcn.14004be20
test al, al
jne 0x14004eab1
xorps xmm11, xmm11
movss dword [rbp - 0x28], xmm11
jmp 0x14004eab7
movss xmm11, dword [rbp - 0x28]
mulsd xmm7, qword [0x140068508]
divsd xmm7, qword [0x140068560]
mulsd xmm9, qword [0x140068508]
divsd xmm9, qword [0x140068560]
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 [0x1400684f8]
maxsd xmm7, xmm1
mov rax, qword [0x1402ad2b8]
xorps xmm6, xmm6
cvtsi2ss xmm6, dword [rax + 0xc]
mulss xmm6, xmm14
mulss xmm11, dword [0x14006861c]
mulss xmm11, dword [0x140068538]
divss xmm11, dword [0x140068678]
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 [0x1400684f0]
addsd xmm11, xmm0
movabs r15, 0xff00ff00ff00ff00
movsd xmm7, qword [rsp + 0x60]
movsd xmm8, qword [rbp - 0x18]
movsd xmm13, qword [0x140068910]
lea r14, [rbp + 0x138]
comisd xmm11, xmm8
jbe 0x14004eca9
movaps xmm6, xmm8
subsd xmm6, xmm11
xorps xmm6, xmm13
jmp 0x14004ecb2
movaps xmm6, xmm11
subsd xmm6, xmm8
mov rax, qword [0x1402ad278]
movss xmm1, dword [rax + 0x14]
cvtps2pd xmm1, xmm1
divsd xmm6, xmm1
movaps xmm0, xmm6
addsd xmm0, xmm8
addsd xmm8, xmm8
comisd xmm0, xmm8
ja 0x14004ece0
comisd xmm15, xmm0
jbe 0x14004ece3
xorps xmm6, xmm6
comisd xmm12, xmm7
jbe 0x14004ecf8
movaps xmm2, xmm7
subsd xmm2, xmm12
xorps xmm2, xmm13
jmp 0x14004ed00
movaps xmm2, xmm12
subsd xmm2, xmm7
divsd xmm2, xmm1
movaps xmm0, xmm2
addsd xmm0, xmm7
addsd xmm7, xmm7
comisd xmm0, xmm7
ja 0x14004ed1c
comisd xmm15, xmm0
jbe 0x14004ed1f
xorps xmm2, xmm2
divsd xmm6, xmm1
xorps xmm2, xmm13
divsd xmm2, xmm1
lea rdx, [r13 + 0x520]
call fcn.14005dcc0
lea rdx, [r13 + 0x528]
movaps xmm2, xmm6
call fcn.14005dcc0
mov rax, qword [0x1402ad278]
cmp byte [rax + 0x18], 0
je 0x14004edee
mov ecx, 8
call fcn.14005eaac
lea rcx, [0x14004d750]
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, [0x14005e770]
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 0x14004ee59
cmp dword [rbp - 8], 0
jne 0x14004edb0
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 0x14004edc7
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 0x14004edee
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.14005e7f0
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