Function at 0x1400370c0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm13
movaps xmmword [rax - 0xc8], xmm14
movaps xmmword [rax - 0xd8], xmm15
movaps xmm6, xmm2
mov r14, rdx
mov rdi, rcx
xor r13d, r13d
mov rsi, qword [rax + 0x28]
mov rdx, qword [rsi + 8]
sub rdx, qword [rsi]
sar rdx, 5
mov qword [rcx + 0x60], rdx
add rcx, 0x78
call fcn.140038180
mov rdx, qword [rdi + 0x60]
lea rcx, [rdi + 0x90]
call fcn.140038180
movss dword [rdi + 0x68], xmm6
movabs rax, 0x3ff0000000000000
mov qword [rdi + 0x70], rax
mov byte [rdi + 0xa8], 1
movsd xmm11, qword [0x1400797d8]
movaps xmm15, xmm11
xorps xmm12, xmm12
xorps xmm7, xmm7
movaps xmm6, xmm11
xorps xmm8, xmm8
lea rcx, [rsp + 0x58]
call fcn.14003fb20
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x1b0]
call qword [rax + 0x40]
test eax, eax
jne 0x140037356
movsd xmm15, qword [0x1400797b8]
movss xmm9, dword [rdi + 0x4c]
subss xmm9, dword [rdi + 0x50]
movaps xmm0, xmm9
movss xmm13, dword [rsp + 0x1b0]
subss xmm0, xmm13
xorps xmm10, xmm10
comiss xmm0, xmm10
jbe 0x140037211
cvtps2pd xmm7, xmm0
mulsd xmm7, qword [0x1400797c0]
divsd xmm7, qword [0x1400797a8]
movss xmm0, dword [rdi + 0x54]
cvtps2pd xmm0, xmm0
mulsd xmm7, xmm0
movaps xmm8, xmm7
xorps xmm8, xmmword [0x140079980]
jmp 0x140037251
comiss xmm10, xmm0
jbe 0x140037247
cvtps2pd xmm6, xmm0
movaps xmm0, xmm6
divsd xmm0, qword [0x140079838]
call sub.api_ms_win_crt_math_l1_1_0.dll_exp
movaps xmm7, xmm0
mulsd xmm6, qword [0x1400797c0]
mulsd xmm7, xmm6
movss xmm0, dword [rdi + 0x54]
cvtps2pd xmm0, xmm0
mulsd xmm7, xmm0
jmp 0x140037251
movsd xmm8, qword [rsp + 0x1a8]
movsd xmm0, qword [0x1400797e0]
call sub.api_ms_win_crt_math_l1_1_0.dll_log
movaps xmm1, xmm8
divsd xmm1, qword [0x1400797e8]
mulsd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_exp
movsd qword [rdi + 0x70], xmm0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm8
addss xmm1, xmm13
movsd xmm6, qword [0x1400797d0]
movsd qword [rsp + 0x1a8], xmm6
subss xmm9, xmm1
comiss xmm9, xmm10
jbe 0x1400372e1
movaps xmm0, xmm9
xorps xmm0, xmmword [0x140079990]
cvtss2sd xmm0, xmm0
divsd xmm0, qword [0x140079840]
call sub.api_ms_win_crt_math_l1_1_0.dll_exp
movaps xmm8, xmm0
cvtps2pd xmm0, xmm9
mulsd xmm0, qword [0x140079798]
mulsd xmm8, xmm0
movss xmm0, dword [rdi + 0x54]
cvtps2pd xmm0, xmm0
mulsd xmm8, xmm0
jmp 0x140037328
comiss xmm10, xmm9
jbe 0x140037324
cvtps2pd xmm6, xmm9
movaps xmm0, xmm6
divsd xmm0, qword [0x140079830]
call sub.api_ms_win_crt_math_l1_1_0.dll_exp
movaps xmm8, xmm0
mulsd xmm6, qword [0x140079788]
mulsd xmm8, xmm6
movss xmm0, dword [rdi + 0x54]
cvtps2pd xmm0, xmm0
mulsd xmm8, xmm0
movsd xmm6, qword [rsp + 0x1a8]
jmp 0x140037328
xorps xmm8, xmm8
movaps xmm2, xmm8
andps xmm2, xmmword [0x140079970]
movaps xmm1, xmm7
andps xmm1, xmmword [0x140079970]
maxsd xmm2, xmm1
movsd xmm0, qword [0x140079790]
comisd xmm0, xmm2
seta al
mov byte [rdi + 0xa8], al
mov r12d, r13d
cmp qword [rdi + 0x60], r12
jbe 0x140037677
movsd xmm10, qword [0x140079818]
divsd xmm7, xmm10
movaps xmm1, xmm7
movsd xmm7, qword [0x1400797f8]
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm9, xmm0
addsd xmm15, xmm15
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1400373a1
xorps xmm14, xmm14
sqrtsd xmm14, xmm0
jmp 0x1400373aa
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movaps xmm14, xmm0
addsd xmm14, xmm14
movaps xmm1, xmm9
addsd xmm1, xmm11
movsd qword [rsp + 0x1a0], xmm1
movaps xmm3, xmm9
subsd xmm3, xmm11
movsd qword [rsp + 0x1c0], xmm3
movaps xmm0, xmm9
addsd xmm0, xmm9
movsd qword [rsp + 0x38], xmm0
mov rbx, r13
divsd xmm8, xmm10
movaps xmm1, xmm8
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm10, xmm0
addsd xmm6, xmm6
movsd qword [rsp + 0x1a8], xmm6
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x14003741b
xorps xmm13, xmm13
sqrtsd xmm13, xmm0
jmp 0x140037424
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movaps xmm13, xmm0
addsd xmm13, xmm13
movaps xmm0, xmm10
subsd xmm0, xmm11
movsd qword [rsp + 0x40], xmm0
movaps xmm1, xmm10
addsd xmm1, xmm11
movsd qword [rsp + 0x48], xmm1
movaps xmm0, xmm10
mulsd xmm0, qword [0x140079880]
movsd qword [rsp + 0x50], xmm0
movsd xmm11, qword [rsp + 0x1a8]
nop dword [rax]
nop word [rax + rax]
movss xmm1, dword [rdi + 0x68]
cvtps2pd xmm1, xmm1
movsd xmm6, qword [0x140079848]
divsd xmm6, xmm1
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
movaps xmm7, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
divsd xmm7, xmm15
movaps xmm4, xmm14
mulsd xmm4, xmm7
movsd xmm2, qword [rsp + 0x1c0]
mulsd xmm2, xmm0
movsd xmm3, qword [rsp + 0x1a0]
movaps xmm7, xmm3
subsd xmm7, xmm2
movaps xmm8, xmm7
addsd xmm8, xmm4
mulsd xmm8, xmm9
movaps xmm1, xmm3
mulsd xmm1, xmm0
movsd xmm6, qword [rsp + 0x1c0]
subsd xmm6, xmm1
mulsd xmm6, qword [rsp + 0x38]
subsd xmm7, xmm4
mulsd xmm7, xmm9
movaps xmm5, xmm3
addsd xmm5, xmm2
movaps xmm0, xmm5
addsd xmm0, xmm4
movsd xmm3, qword [rsp + 0x1c0]
addsd xmm3, xmm1
mulsd xmm3, qword [0x140079880]
subsd xmm5, xmm4
divsd xmm8, xmm0
divsd xmm6, xmm0
divsd xmm7, xmm0
divsd xmm3, xmm0
divsd xmm5, xmm0
xorps xmm2, xmm2
lea rbx, [rbx + rbx*4]
add rbx, rbx
mov rax, qword [rdi + 0x78]
unpcklpd xmm6, xmm7
movaps xmmword [rax + rbx*8], xmm6
unpcklpd xmm3, xmm5
movaps xmmword [rax + rbx*8 + 0x10], xmm3
unpcklpd xmm8, xmm12
movaps xmmword [rax + rbx*8 + 0x20], xmm8
movaps xmmword [rax + rbx*8 + 0x30], xmm2
movaps xmm0, xmmword [rsp + 0xb0]
movsd xmm0, xmm12
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rax + rbx*8 + 0x40], xmm0
movss xmm1, dword [rdi + 0x68]
cvtps2pd xmm1, xmm1
movsd xmm6, qword [0x140079860]
divsd xmm6, xmm1
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
movaps xmm7, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
movaps xmm2, xmm0
divsd xmm7, xmm11
movaps xmm3, xmm13
mulsd xmm3, xmm7
movaps xmm1, xmm0
movsd xmm8, qword [rsp + 0x40]
mulsd xmm1, xmm8
movaps xmm6, xmm1
movsd xmm0, qword [rsp + 0x48]
addsd xmm6, xmm0
movaps xmm7, xmm6
addsd xmm7, xmm3
mulsd xmm7, xmm10
mulsd xmm2, xmm0
movaps xmm5, xmm2
addsd xmm5, xmm8
mulsd xmm5, qword [rsp + 0x50]
subsd xmm6, xmm3
mulsd xmm6, xmm10
movaps xmm4, xmm0
subsd xmm4, xmm1
movaps xmm0, xmm4
addsd xmm0, xmm3
movaps xmm1, xmm8
subsd xmm1, xmm2
addsd xmm1, xmm1
subsd xmm4, xmm3
divsd xmm7, xmm0
divsd xmm5, xmm0
divsd xmm6, xmm0
divsd xmm1, xmm0
divsd xmm4, xmm0
xorps xmm2, xmm2
mov rax, qword [rdi + 0x90]
unpcklpd xmm5, xmm6
movaps xmmword [rax + rbx*8], xmm5
unpcklpd xmm1, xmm4
movaps xmmword [rax + rbx*8 + 0x10], xmm1
unpcklpd xmm7, xmm12
movaps xmmword [rax + rbx*8 + 0x20], xmm7
movaps xmmword [rax + rbx*8 + 0x30], xmm2
movaps xmm0, xmmword [rsp + 0xb0]
movsd xmm0, xmm12
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rax + rbx*8 + 0x40], xmm0
inc r12d
mov ebx, r12d
cmp rbx, qword [rdi + 0x60]
jb 0x140037470
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9, rdi
lea r8, [0x140037750]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], r13
mov rdx, qword [rsi + 8]
mov qword [rsi + 8], r13
mov rax, qword [rsi]
mov qword [rsi], r13
mov qword [r14], rax
mov qword [r14 + 8], rdx
mov qword [r14 + 0x10], r8
mov rcx, rsi
call fcn.140014760
mov rax, r14
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x58]
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 rdi
pop rsi
pop rbp
ret