Function at 0x140013360
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rbx, r9
mov rax, r8
mov r15, rdx
mov r12d, 0x80000000
cmp byte [rbp + 0x80], 0
je 0x1400133a8
mov r8d, r12d
jmp 0x1400133b7
movzx r8d, byte [rbp + 0x88]
sub r8d, 0x40000000
mov esi, 0xffffffff
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140011170
nop
mov r13, qword [rsp + 0x48]
mov eax, dword [r13]
nop
cmp eax, 2
je 0x14001369f
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x7c]
shl rcx, 0x20
mov eax, dword [rsp + 0x78]
or rcx, rax
movabs rax, 0x19db1ded53e8000
sub rcx, rax
movabs rax, 0xcccccccccccccccd
mul rcx
mov rbx, rdx
shr rbx, 3
mov r14d, edi
mov esi, edi
mov eax, dword [r13]
nop
cmp eax, 2
je 0x140013593
nop
cmp eax, 3
je 0x1400137cf
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rbp - 0x7c]
shl rcx, 0x20
mov eax, dword [rbp - 0x80]
or rcx, rax
movabs rax, 0x19db1ded53e8000
sub rcx, rax
movabs rax, 0xcccccccccccccccd
mul rcx
shr rdx, 3
sub rdx, rbx
cmp rdx, 0x11e1a300
ja 0x1400137a1
test edi, edi
jne 0x1400134b9
mov eax, dword [0x1400cf868]
test eax, eax
jne 0x1400134a9
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 8]
mov edi, 0x20
cmp eax, 1
mov eax, 0
cmova edi, eax
cmp edi, 8
jb 0x140013583
cmp edi, 0x20
jae 0x1400134ce
pause
jmp 0x140013583
jne 0x14001355f
mov ecx, 7
call fcn.1400201f0
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x3c]
call rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x140013511
mov ecx, dword [rsp + 0x70]
dec ecx
mov eax, 0xd1b71759
mul ecx
mov esi, edx
shr esi, 0xd
inc esi
jmp 0x14001353c
movabs rax, 0x38d7ea4c67fff
cqo
idiv qword [rbp - 0x38]
lea r8, [rax + 1]
mov ecx, dword [rsp + 0x70]
imul rax, rcx, 0x5f5e100
dec rax
cqo
idiv r8
lea rsi, [rax + 1]
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x140013559
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
mov qword [rbp - 0x78], r14
jmp 0x140013583
mov r14, qword [rbp - 0x78]
jmp 0x140013583
test esi, esi
jne 0x140013765
test dil, 1
je 0x140013797
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x140013583
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
mov eax, dword [r13]
nop
cmp eax, 2
jne 0x140013440
mov rcx, qword [rsp + 0x48]
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], r12d
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x68], 0xffffffffffffffff
test rcx, rcx
je 0x1400135cf
sub rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp rbx, 0xffffffffffffffff
je 0x1400135de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbp + 0x80], dil
jne 0x1400135f6
movzx r12d, byte [rbp + 0x88]
sub r12d, 0x40000000
mov esi, 0xffffffff
mov dword [rsp + 0x30], esi
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, r12d
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.140011170
mov rax, qword [rbp - 0x68]
mov r8, qword [rsp + 0x48]
mov qword [rbp - 0x68], r8
mov qword [rsp + 0x48], rax
mov rcx, qword [rbp - 0x60]
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x50], rcx
mov rax, qword [rbp - 0x58]
mov r9, qword [rsp + 0x58]
mov qword [rbp - 0x58], r9
mov qword [rsp + 0x58], rax
mov edx, dword [rbp - 0x50]
mov eax, dword [rsp + 0x60]
mov dword [rbp - 0x50], eax
mov dword [rsp + 0x60], edx
mov rax, qword [rbp - 0x48]
mov rcx, qword [rsp + 0x68]
mov qword [rbp - 0x48], rcx
mov qword [rsp + 0x68], rax
test r8, r8
je 0x14001368f
sub r8, r9
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbp - 0x68], rdi
mov rcx, qword [rbp - 0x48]
cmp rcx, 0xffffffffffffffff
je 0x14001369b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp + 0x78]
mov rdx, qword [rsp + 0x50]
add rdx, 0xfffffffffffffff8
mov rcx, qword [rsp + 0x48]
add rcx, 8
test dil, dil
jne 0x1400136cd
cmp dword [rbx + 8], 0
je 0x1400136cd
cmp rdx, rsi
ja 0x1400136cd
mov rax, qword [rbx]
cmp qword [rax], 0
jne 0x1400136cd
mov qword [rax], rcx
mov r8, qword [r15]
mov rax, qword [rsp + 0x48]
mov qword [r15], rax
mov qword [rsp + 0x48], r8
mov rcx, qword [r15 + 8]
mov rax, qword [rsp + 0x50]
mov qword [r15 + 8], rax
mov qword [rsp + 0x50], rcx
mov r9, qword [r15 + 0x10]
mov rax, qword [rsp + 0x58]
mov qword [r15 + 0x10], rax
mov qword [rsp + 0x58], r9
mov edx, dword [r15 + 0x18]
mov eax, dword [rsp + 0x60]
mov dword [r15 + 0x18], eax
mov dword [rsp + 0x60], edx
mov rcx, qword [r15 + 0x20]
mov rax, qword [rsp + 0x68]
mov qword [r15 + 0x20], rax
mov qword [rsp + 0x68], rcx
test r8, r8
je 0x14001373e
sub r8, r9
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x14001374a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x140013781
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov qword [rbp - 0x70], rcx
jmp 0x140013785
mov rcx, qword [rbp - 0x70]
sub rcx, r14
mov eax, esi
cmp rcx, rax
jb 0x140013571
xor eax, eax
mov esi, eax
mov ecx, 1
jmp 0x14001357d
mov edx, 0x13
lea rcx, [rbp - 0x30]
call fcn.140017660
mov rdx, rax
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.140017790
lea rdx, [0x1400c7d30]
lea rcx, [rbp - 0x28]
call fcn.140067efc
int3
mov edx, 0x13
lea rcx, [rbp - 0x30]
call fcn.140017660
mov rdx, rax
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.140017790
lea rdx, [0x1400c7d30]
lea rcx, [rbp - 0x28]
call fcn.140067efc
int3