Function at 0x180038cf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
test dl, dl
je 0x180039253
mov r11, rsp
push rsi
sub rsp, 0x190
mov rax, qword [0x1801f78c0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov qword [r11 + 8], rbx
mov rsi, rcx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], r14
mov qword [r11 + 0x18], rdi
call fcn.180026520
xor ebp, ebp
movabs r14, 0xd80958fc74e988a6
mov rcx, r14
mov dword [rax + 8], ebp
mov dword [rax + 0x18], ebp
call fcn.1800263c0
call fcn.180026520
mov rcx, qword [rax]
mov edx, dword [rcx]
call fcn.180027490
test al, al
je 0x1800390f3
mov rax, qword [0x180238bb0]
movaps xmmword [rsp + 0x180], xmm6
movaps xmmword [rsp + 0x170], xmm7
movaps xmmword [rsp + 0x160], xmm8
movss xmm0, dword [rax + 0x44]
movaps xmmword [rsp + 0x150], xmm9
movaps xmmword [rsp + 0x140], xmm10
movaps xmmword [rsp + 0x130], xmm11
movaps xmmword [rsp + 0x120], xmm12
movaps xmmword [rsp + 0x110], xmm13
movaps xmmword [rsp + 0x100], xmm14
movss xmm14, dword [rax + 0x3c]
movaps xmmword [rsp + 0xf0], xmm15
movss xmm15, dword [rax + 0x40]
movss dword [rsp + 0x50], xmm0
call fcn.180026520
mov dword [rax + 8], ebp
mov dword [rax + 0x18], ebp
call fcn.180026520
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebp
movabs rcx, 0x837765a25378f0bb
inc dword [rax + 8]
call fcn.1800263c0
call fcn.180026520
xorps xmm13, xmm13
mov rcx, qword [rax]
movups xmm0, xmmword [rcx]
movsd xmm2, qword [rcx + 0x10]
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x1801bc6d0]
cvtsd2ss xmm13, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
mulsd xmm0, qword [0x1801bc6d0]
cvtpd2ps xmm11, xmm0
movaps xmm0, xmm13
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movaps xmm12, xmm0
andps xmm12, xmmword [0x1801bcbe0]
call fcn.180026520
mov rcx, r14
mov dword [rax + 8], ebp
mov dword [rax + 0x18], ebp
call fcn.1800263c0
call fcn.180026520
mov rcx, qword [rax]
mov ebx, dword [rcx]
call fcn.180026520
mov dword [rax + 8], ebp
mov dword [rax + 0x18], ebp
call fcn.180026520
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180026520
movabs rcx, 0x3f428d08be5aae31
mov r8d, dword [rax + 8]
mov rdx, qword [rax + 0x10]
mov dword [rdx + r8*8], 0x6f06
inc dword [rax + 8]
call fcn.1800263c0
call fcn.180026520
mov rdx, qword [rax]
mov edi, dword [rdx]
call fcn.180026520
mov rcx, r14
mov dword [rax + 8], ebp
mov dword [rax + 0x18], ebp
call fcn.1800263c0
call fcn.180026520
mov rcx, qword [rax]
mov ebx, dword [rcx]
call fcn.180026520
mov dword [rax + 8], ebp
mov dword [rax + 0x18], ebp
call fcn.180026520
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180026520
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], edi
movabs rcx, 0x44a8fcb8ed227738
inc dword [rax + 8]
call fcn.1800263c0
call fcn.180026520
mov rcx, qword [rax]
movups xmm0, xmmword [rcx]
movsd xmm9, qword [rcx + 0x10]
movups xmmword [rsp + 0xd0], xmm0
call fcn.180026520
movabs rcx, 0xa200eb1ee790f448
mov dword [rax + 8], ebp
mov dword [rax + 0x18], ebp
call fcn.1800263c0
call fcn.180026520
movaps xmm0, xmm11
mov rcx, qword [rax]
movups xmm6, xmmword [rcx]
movsd xmm10, qword [rcx + 0x10]
movaps xmmword [rsp + 0x60], xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movss xmm7, dword [0x1801bc7c4]
mulss xmm0, xmm12
mulss xmm0, xmm7
subss xmm6, xmm0
movaps xmm0, xmm11
movaps xmm8, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss xmm6, dword [rsp + 0x68]
mulss xmm0, xmm12
mulss xmm0, xmm7
addss xmm6, xmm0
movaps xmm0, xmm13
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
mulss xmm0, xmm7
movaps xmm1, xmm10
movups xmm7, xmmword [rsp + 0xd0]
addss xmm1, xmm0
movsd qword [rsp + 0x90], xmm9
movaps xmm0, xmmword [rsp + 0x60]
movss xmm0, xmm8
movaps xmmword [rsp + 0x80], xmm7
shufps xmm0, xmm0, 0xd2
movss xmm0, xmm6
movss xmm10, xmm1
shufps xmm0, xmm0, 0xc9
movss xmm1, dword [rsp + 0x50]
movups xmmword [rsp + 0x98], xmm0
movss xmm0, dword [0x1801bc80c]
mulss xmm14, xmm0
mulss xmm15, xmm0
cvttss2si eax, xmm14
mulss xmm1, xmm0
mov dword [rsp + 0xb0], eax
cvttss2si eax, xmm15
movsd qword [rsp + 0xa8], xmm10
mov dword [rsp + 0xb4], eax
cvttss2si eax, xmm1
mov dword [rsp + 0xb8], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [0x1802b8018]
cmp rdx, qword [0x1802b8020]
movaps xmm15, xmmword [rsp + 0xf0]
movaps xmm14, xmmword [rsp + 0x100]
movaps xmm13, xmmword [rsp + 0x110]
movaps xmm12, xmmword [rsp + 0x120]
movaps xmm11, xmmword [rsp + 0x130]
movaps xmm10, xmmword [rsp + 0x140]
movaps xmm9, xmmword [rsp + 0x150]
movaps xmm8, xmmword [rsp + 0x160]
movaps xmm6, xmmword [rsp + 0x180]
mov dword [rsp + 0xbc], eax
mov dword [rsp + 0xc0], ebp
je 0x1800390de
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movups xmmword [rdx], xmm7
movups xmmword [rdx + 0x10], xmm0
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rdx + 0x20], xmm1
movups xmmword [rdx + 0x30], xmm0
mov dword [rdx + 0x40], ebp
add qword [0x1802b8018], 0x44
jmp 0x1800390eb
lea r8, [rsp + 0x80]
call fcn.18003f6b0
movaps xmm7, xmmword [rsp + 0x170]
mov rbp, qword [0x1802b8018]
mov rbx, qword [0x1802b8010]
mov r14, qword [rsp + 0x1b8]
cmp rbx, rbp
je 0x180039223
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x3c]
cmp eax, dword [rsi + 0x48]
jae 0x180039177
mov eax, dword [rbx + 0x40]
cmp eax, 0xff
je 0x180039130
add eax, 5
mov dword [rbx + 0x40], eax
movss xmm0, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x18]
movss xmm2, dword [rbx + 0x10]
mov dword [rsp + 0x48], eax
mov eax, dword [rbx + 0x38]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x30]
mov dword [rsp + 0x30], eax
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rbx]
movss dword [rsp + 0x20], xmm1
movss xmm1, dword [rbx + 8]
call fcn.18002b620
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsi + 0x48]
sub eax, dword [rbx + 0x3c]
sub ecx, 0x64
cmp eax, ecx
jbe 0x1800391de
mov eax, dword [rbx + 0x40]
test eax, eax
je 0x180039197
add eax, 0xfffffffb
mov dword [rbx + 0x40], eax
movss xmm0, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x18]
movss xmm2, dword [rbx + 0x10]
mov dword [rsp + 0x48], eax
mov eax, dword [rbx + 0x38]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x30]
mov dword [rsp + 0x30], eax
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rbx]
movss dword [rsp + 0x20], xmm1
movss xmm1, dword [rbx + 8]
call fcn.18002b620
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsi + 0x48]
sub eax, dword [rbx + 0x3c]
add ecx, 0x3e8
cmp eax, ecx
jbe 0x180039216
mov rcx, qword [0x1802b8010]
mov r8, qword [0x1802b8018]
lea rdx, [rcx + 0x44]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
sub qword [0x1802b8018], 0x44
add rbx, 0x44
cmp rbx, rbp
jne 0x180039112
mov rdi, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x1a0]
mov rbp, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1801536e0
add rsp, 0x190
pop rsi
ret