Function at 0x1800196b0
Capabilities:
Check for time delay via queryperformancecounter
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x180146030]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, r8
mov rsi, rcx
test edx, edx
je 0x180019565
sub edx, 1
je 0x1800192d0
sub edx, 1
je 0x180019230
nop dword [rax]
cmp edx, 1
jne 0x180019647
mov rax, qword [0x180146040]
lea rbx, [0x180146040]
cmp rax, rbx
je 0x18001917b
nop dword [rax]
test byte [rax + 0x44], dl
je 0x18001917b
cmp byte [rax + 0x41], 4
jb 0x18001917b
xor eax, eax
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x180146040]
lea r8, [0x180132130]
mov r9, qword [rbp - 0x10]
mov edx, 0x11
mov rcx, qword [rcx + 0x38]
call fcn.180018fe0
lea rcx, [0x180152a20]
call fcn.18008afa0
mov esi, dword [0x180152880]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1800191ec
mov rdx, 0xffffffffffffffff
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x18015294c]
cmp dword [0x180152948], eax
ja 0x1800191d5
mov rax, qword [0x180152940]
mov rcx, rdi
call qword [case.0x180020d94.0]
jmp 0x1800191ec
lock inc dword [0x18015294c]
mov rdx, rdi
lea rcx, [0x180152920]
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov rax, qword [0x180146040]
cmp rax, rbx
je 0x180019647
test byte [rax + 0x44], 1
je 0x180019647
cmp byte [rax + 0x41], 4
jb 0x180019647
xor eax, eax
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, 0x12
jmp 0x18001962c
mov rax, qword [0x180146040]
lea rbx, [0x180146040]
nop
cmp rax, rbx
je 0x180019647
test byte [rax + 0x44], 1
je 0x18001928d
cmp byte [rax + 0x41], 4
jb 0x18001928d
xor eax, eax
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x180146040]
lea r8, [0x180132130]
mov r9, qword [rbp - 0x10]
mov edx, 0xf
mov rcx, qword [rcx + 0x38]
call fcn.180018fe0
mov rax, qword [0x180146040]
cmp rax, rbx
je 0x180019647
test byte ds:[rax + 0x44], 1
je 0x180019647
cmp byte [rax + 0x41], 4
jb 0x180019647
xor eax, eax
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, 0x10
jmp 0x18001962c
mov qword [rsp + 0x88], r14
xor r14d, r14d
mov qword [0x180156dd8], 1
lea rax, [0x180156de8]
mov qword [0x180156dd0], r14
mov qword [0x180156dc0], rax
lea rbx, [0x180156dc0]
lea rax, [0x180131ea8]
mov qword [0x180156df8], r14
mov qword [0x180156db0], rax
lea rdi, [0x180156db0]
lea rax, [0x180131e88]
mov qword [0x180156de8], r14
mov qword [0x180156db8], rax
mov qword [0x180156e00], 1
mov qword [0x180146040], rbx
nop word [rax + rax]
mov r8, qword [rdi]
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
lea rcx, [0x180019040]
mov qword [rsp + 0x30], r14
lea rax, [rbp - 0x20]
mov qword [rbp - 0x20], r8
lea rdi, [rdi + 8]
mov qword [rbp - 0x18], r14
mov r9d, 1
mov qword [rsp + 0x28], r14
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x20], r8
call qword [sym.imp.ntdll.dll_EtwRegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180019350
mov rax, qword [0x180146040]
lea rbx, [0x180146040]
cmp rax, rbx
je 0x1800193f3
test byte [rax + 0x44], 1
je 0x1800193f3
cmp byte [rax + 0x41], 4
jb 0x1800193f3
xor eax, eax
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x180146040]
lea r8, [0x180132130]
mov r9, qword [rbp - 0x10]
mov edx, 0xa
mov rcx, qword [rcx + 0x38]
call fcn.180018fe0
mov rax, qword [0x180146040]
xorps xmm0, xmm0
mov qword [0x180152670], r14
movups xmmword [0x180152770], xmm0
movups xmmword [0x180152780], xmm0
movups xmmword [0x180152790], xmm0
movups xmmword [0x1801527a0], xmm0
movups xmmword [0x1801527b0], xmm0
movups xmmword [0x1801527c0], xmm0
movups xmmword [0x1801527d0], xmm0
movups xmmword [0x1801527e0], xmm0
movups xmmword [0x1801527f0], xmm0
mov dword [0x180152770], r14d
mov dword [0x180152678], r14d
mov dword [0x180152668], r14d
mov dword [0x180152660], r14d
mov r14, qword [rsp + 0x88]
cmp rax, rbx
je 0x18001951d
test byte [rax + 0x1c], 1
je 0x180019494
cmp byte [rax + 0x19], 4
jb 0x180019494
mov rcx, qword [rax + 0x10]
lea r8, [0x180132130]
mov edx, 0xb
mov r9, rsi
call fcn.180013700
mov rax, qword [0x180146040]
cmp rax, rbx
je 0x18001951d
test byte [rax + 0x1c], 1
je 0x1800194dc
cmp byte [rax + 0x19], 4
jb 0x1800194dc
lea rcx, [0x1801320f8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x180146040]
lea r8, [0x180132130]
mov r9, rax
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
call fcn.180013700
mov rax, qword [0x180146040]
nop dword [rax]
cmp rax, rbx
je 0x18001951d
test byte [rax + 0x1c], 1
je 0x18001951d
cmp byte [rax + 0x19], 4
jb 0x18001951d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x180146040]
lea r8, [0x180132130]
mov r9, rax
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
call fcn.180013700
nop dword [rax]
call fcn.18001a400
mov rax, qword [0x180146040]
cmp rax, rbx
je 0x180019647
test byte [rax + 0x44], 1
je 0x180019647
cmp byte [rax + 0x41], 4
jb 0x180019647
xor eax, eax
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, 0xe
jmp 0x18001962c
mov rax, qword [0x180146040]
lea rbx, [0x180146040]
cmp rax, rbx
je 0x1800195bb
test byte [rax + 0x44], 1
je 0x1800195bb
cmp byte [rax + 0x41], 4
jb 0x1800195bb
xor eax, eax
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x180146040]
lea r8, [0x180132130]
mov r9, qword [rbp - 0x10]
mov edx, 0x13
mov rcx, qword [rcx + 0x38]
call fcn.180018fe0
mov rax, qword [0x180146040]
cmp byte [0x1801527f4], 0
jne 0x180019606
test rdi, rdi
je 0x180019668
call fcn.18001a020
mov rax, qword [0x180146040]
cmp rax, rbx
je 0x180019647
test byte [rax + 0x1c], 1
je 0x180019606
cmp byte [rax + 0x19], 4
jb 0x180019606
mov rcx, qword [rax + 0x10]
lea r8, [0x180132130]
mov edx, 0x14
call fcn.180011520
mov rax, qword [0x180146040]
cmp rax, rbx
je 0x180019647
test byte [rax + 0x44], 1
je 0x180019647
cmp byte [rax + 0x41], 4
jb 0x180019647
xor ecx, ecx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, 0x16
mov rcx, qword [0x180146040]
lea r8, [0x180132130]
mov r9, qword [rbp - 0x10]
mov rcx, qword [rcx + 0x38]
call fcn.180018fe0
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18008e6f0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
cmp rax, rbx
je 0x1800196a9
test byte [rax + 0x44], 1
je 0x1800196a9
cmp byte [rax + 0x41], 4
jb 0x1800196a9
xor eax, eax
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x180146040]
lea r8, [0x180132130]
mov r9, qword [rbp - 0x10]
mov edx, 0x15
mov rcx, qword [rcx + 0x38]
call fcn.180018fe0
xor eax, eax
jmp 0x18001964c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov edi, edx
mov rsi, rcx
call fcn.18008e710
mov r8, rbx
mov edx, edi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800190e0