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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x180054040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r12d, r9d
mov ebp, r8d
mov qword [rsp + 0x30], rdx
mov r15, rcx
lea rbx, [rcx + 0xc0]
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [r15 + 0xc8], eax
cmp qword [r15 + 0xd0], 0
jne 0x180008888
xor r14d, r14d
jmp 0x180008a62
mov esi, dword [r15 + 0xec]
mov r13d, dword [r15 + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor r14d, r14d
mov ecx, r14d
test esi, esi
je 0x180008a55
nop dword [rax]
mov rbx, qword [r15 + 0xd0]
mov edx, ebp
mov rcx, qword [rbx + 0x58]
call sub.EarthPtDll64.dll_PtDllSetFrequency
mov edx, eax
mov rcx, rbx
call fcn.180007e00
test al, al
jne 0x1800088ef
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, edi
sub edx, eax
mov ecx, eax
sub ecx, edi
cmp eax, edi
cmovb ecx, edx
cmp ecx, esi
jb 0x1800088b0
mov ecx, r14d
jmp 0x180008a50
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [r15 + 0xcc], r14d
je 0x1800089eb
test r12d, r12d
jne 0x1800089d2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ecx, r14d
test r13d, r13d
je 0x180008a50
mov ebp, 0xff00
mov edi, dword [rsp + 0xd0]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x48], ax
mov rbx, qword [r15 + 0xd0]
lea rdx, [rsp + 0x38]
mov rcx, qword [rbx + 0x58]
call sub.EarthPtDll64.dll_PtDllGetTmcc
mov edx, eax
mov rcx, rbx
call fcn.180007e00
test al, al
je 0x18000899a
mov rax, r14
movzx edx, word [rsp + rax*2 + 0x3a]
test bp, dx
je 0x180008983
movzx ecx, dx
not cx
test cx, cx
je 0x180008983
mov ecx, edx
and ecx, 7
cmp ecx, edi
je 0x18000898e
inc rax
cmp rax, 8
jl 0x180008965
jmp 0x180008991
mov r12d, edx
test r12d, 0xfffffff8
jne 0x1800089c6
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, esi
sub r9d, eax
mov r8d, eax
sub r8d, esi
cmp eax, esi
cmovb r8d, r9d
cmp r8d, r13d
jb 0x180008930
mov ecx, r14d
test r12d, r12d
je 0x180008a50
mov rax, qword [r15]
mov edx, r12d
mov rcx, r15
call qword [rax + 0x98]
mov ecx, r14d
test eax, eax
setne cl
jmp 0x180008a50
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, r14d
test r13d, r13d
je 0x180008a50
nop dword [rax + rax]
mov rbx, qword [r15 + 0xd0]
lea rdx, [rsp + 0x38]
mov rcx, qword [rbx + 0x58]
call sub.EarthPtDll64.dll_PtDllGetTmcc
mov edx, eax
mov rcx, rbx
call fcn.180007e00
test al, al
jne 0x180008a4b
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, edi
sub edx, eax
mov ecx, eax
sub ecx, edi
cmp eax, edi
cmovb ecx, edx
cmp ecx, r13d
jb 0x180008a00
mov ecx, r14d
jmp 0x180008a50
mov ecx, 1
mov rbx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov dword [rax], ecx
mov r14d, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r14d
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180016000
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret