Function at 0x140022b20
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14030b918]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rbp + 0x60]
call fcn.140018c90
nop
mov edx, dword [rsp + 0x58]
lea rcx, [rbp + 0x70]
call fcn.140018e90
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x78]
call fcn.140019860
nop
lea rdx, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
jb 0x140022ba4
mov rdx, qword [rbp + 0x160]
test rdx, rdx
jne 0x140022ba4
mov eax, ebx
jmp 0x140022bba
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140022bb0
mov r8d, eax
mov rcx, rdi
call fcn.140002aa8
nop
mov rdx, qword [rbp + 0x178]
cmp rdx, 8
jb 0x140022c0c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022c07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022de0
call fcn.14000410c
cmp dword [rsp + 0x58], 1
seta al
mov byte [rdi + 8], al
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x140022c3a
xorps xmm1, xmm1
jmp 0x140022c9c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x28]
add qword [rsp + 0x20], rax
rdtsc
shl rdx, 0x20
or rax, rdx
mov rbx, rax
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x20]
cmp qword [rsp + 0x30], rcx
jb 0x140022c60
rdtsc
shl rdx, 0x20
or rax, rdx
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, rbx
subss xmm1, xmm0
divss xmm1, dword [0x1402c5608]
cvttss2si rbx, xmm1
lea rcx, [rsp + 0x70]
call fcn.140023300
nop
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140018e90
mov rcx, rax
lea rdx, str._MHz
call fcn.1400161a0
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x78]
call fcn.140019860
lea rdx, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae rdx, qword [rbp + 0x160]
lea rcx, [rdi + 0x10]
call fcn.14004e680
mov rdx, qword [rbp + 0x178]
cmp rdx, 8
jb 0x140022d3f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022d39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022dda
call fcn.14000410c
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.14001a760
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1402141a0
nop
lea rcx, [rbp + 0x60]
call fcn.140018b80
mov al, 1
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140211970
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14021a9ac
nop
call fcn.14021a9ac
int3