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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x180128180]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
lea rdx, [rbp + 0xf]
add rcx, 0x10
call qword [sym.imp.FactoryServer_Core.dll_public:_class_UE::FInheritedContextScope___cdecl_UE::FInheritedContextBase::RestoreInheritedContext_void____ptr64]
mov rbx, qword [r15 + 0x60]
xor r12d, r12d
xor r14b, r14b
mov qword [rbp - 0x41], r12
mov esi, r12d
mov rdi, qword [rbx]
test edi, edi
jne 0x180083030
mov rax, rdi
shr rax, 0x20
test eax, eax
je 0x18008309d
mov rax, qword [sym.imp.FactoryServer_Core.dll_int_GCycleStatsShouldEmitNamedEvents]
cmp dword [rax], esi
je 0x180083085
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x49], r12d
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FWindowsPlatformMisc::BeginNamedEvent_struct_FColor_const____ptr64__char_const____ptr64_]
mov rax, qword [sym.imp.FactoryServer_Core.dll_class_UE::Trace::FChannel____ptr64___ptr64_CpuChannel]
mov r14b, 1
mov rcx, qword [rax]
mov eax, dword [rcx + 0x18]
test eax, eax
js 0x180083085
mov rdx, qword [rbx + 8]
mov rax, rdi
shr rax, 0x20
xor r9d, r9d
mov dword [rbp - 0x4d], eax
xor r8d, r8d
mov dword [rbp - 0x51], edi
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FCpuProfilerTrace::OutputBeginDynamicEventWithId_class_FName__wchar_t_const____ptr64__char_const____ptr64__unsigned_int_]
mov r14b, 3
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bPrimaryDisableForever]
cmp byte [rax], sil
je 0x1800830a6
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bPrimaryEnable]
cmp byte [rax], sil
jne 0x1800830a6
mov rbx, qword [rbp - 0x41]
jmp 0x1800831a5
mov rax, rdi
mov dword [rbp - 0x51], edi
shr rax, 0x20
mov dword [rbp - 0x4d], eax
mov rax, qword [sym.imp.FactoryServer_Core.dll_unsigned_int_FThreadStats::TlsSlot]
mov rbx, qword [rbp - 0x51]
mov qword [rbp - 0x41], rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x1800830e4
call qword [sym.imp.FactoryServer_Core.dll_public:_static_struct_FThreadStatsPool____ptr64___cdecl_FThreadStatsPool::Get_void_]
mov rcx, rax
call qword [sym.imp.FactoryServer_Core.dll_public:_class_FThreadStats____ptr64___cdecl_FThreadStatsPool::GetFromPool_void____ptr64]
mov rsi, rax
inc dword [rsi + 0x44]
lea rcx, [rbp - 0x31]
mov rax, rbx
mov dword [rbp - 9], edi
shr rax, 0x20
and eax, 0xffff4fff
bts eax, 0xe
mov dword [rbp - 5], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp - 0x31]
mov qword [rbp - 0x11], rax
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FLowLevelMemTracker::bIsDisabled]
mov word [rbp - 0x59], r12w
cmp byte [rax], r12b
jne 0x18008313b
mov byte [rsp + 0x28], 1
lea rcx, [rbp - 0x59]
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor r8d, r8d
mov dl, 0x2d
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Init_enum_ELLMTag__bool__enum_ELLMTagSet__enum_ELLMTracker__bool____ptr64]
mov r8b, 1
lea rcx, [rbp - 0x29]
mov dl, 0x2d
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::constructor_enum_ELLMTag__bool____ptr64]
inc dword [rsi + 0x4c]
lea rdx, [rsi + 0x18]
mov ecx, 0x10
call fcn.180073980
test rax, rax
je 0x180083167
movups xmm0, xmmword [rbp - 0x11]
movups xmmword [rax], xmm0
dec dword [rsi + 0x4c]
lea rcx, [rbp - 0x29]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
cmp byte [rbp - 0x58], r12b
je 0x180083184
lea rcx, [rbp - 0x59]
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Destruct_void____ptr64]
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bIsRawStatsActive]
cmp byte [rax], r12b
je 0x18008319e
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FThreadStats::FlushRawStats_bool__bool____ptr64]
mov esi, dword [rbp - 0x41]
or r14b, 4
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x30]
xor eax, eax
lock cmpxchg dword [r15 + 0x30], r12d
cmp eax, 1
je 0x1800831eb
mov r9, qword [rbp + 0x5f]
lea rax, [0x1800eb948]
mov r8d, 0x121
mov qword [rsp + 0x20], rax
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeCorePublicAsyncAsyncWork.h
lea rcx, str.WorkNotFinishedCounter.GetValue____1
call qword [sym.imp.FactoryServer_Core.dll_public:_static_bool___cdecl_FDebug::CheckVerifyFailedImpl_char_const____ptr64__char_const____ptr64__int__void____ptr64__wchar_t_const____ptr64_]
test al, al
je 0x1800831eb
nop
int3
lock dec dword [r15 + 0x30]
test r14b, 1
je 0x1800831fc
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FWindowsPlatformMisc::EndNamedEvent_void_]
test r14b, 2
je 0x180083208
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FCpuProfilerTrace::OutputEndEvent_void_]
test r14b, 4
je 0x180083314
mov rax, qword [sym.imp.FactoryServer_Core.dll_unsigned_int_FThreadStats::TlsSlot]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x18008323b
call qword [sym.imp.FactoryServer_Core.dll_public:_static_struct_FThreadStatsPool____ptr64___cdecl_FThreadStatsPool::Get_void_]
mov rcx, rax
call qword [sym.imp.FactoryServer_Core.dll_public:_class_FThreadStats____ptr64___cdecl_FThreadStatsPool::GetFromPool_void____ptr64]
mov rdi, rax
mov eax, dword [rdi + 0x48]
cmp dword [rdi + 0x44], eax
jle 0x180083314
shr rbx, 0x20
lea rcx, [rbp - 0x21]
and ebx, 0xffff5fff
mov dword [rbp + 7], esi
or ebx, 0x5000
mov dword [rbp + 0xb], ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp - 0x21]
mov qword [rbp - 1], rax
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FLowLevelMemTracker::bIsDisabled]
mov word [rbp - 0x55], r12w
cmp byte [rax], r12b
jne 0x18008329b
mov byte [rsp + 0x28], 1
lea rcx, [rbp - 0x55]
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor r8d, r8d
mov dl, 0x2d
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Init_enum_ELLMTag__bool__enum_ELLMTagSet__enum_ELLMTracker__bool____ptr64]
mov r8b, 1
lea rcx, [rbp - 0x19]
mov dl, 0x2d
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::constructor_enum_ELLMTag__bool____ptr64]
inc dword [rdi + 0x4c]
lea rdx, [rdi + 0x18]
mov ecx, 0x10
call fcn.180073980
test rax, rax
je 0x1800832c7
movups xmm0, xmmword [rbp - 1]
movups xmmword [rax], xmm0
dec dword [rdi + 0x4c]
lea rcx, [rbp - 0x19]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
cmp byte [rbp - 0x54], r12b
je 0x1800832e4
lea rcx, [rbp - 0x55]
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Destruct_void____ptr64]
sub dword [rdi + 0x44], 1
jne 0x1800832fa
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FThreadStats::Flush_bool__bool____ptr64]
jmp 0x180083314
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bIsRawStatsActive]
cmp byte [rax], r12b
je 0x180083314
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FThreadStats::FlushRawStats_bool__bool____ptr64]
lea rcx, [rbp + 0x2b]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMetadataRestoreScope::destructor_void____ptr64]
lea rcx, [rbp + 0x23]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
mov edi, dword [rbp + 0x1b]
lea rbx, [rbp + 0xf]
test edi, edi
je 0x18008334b
cmp byte [rbx + 1], r12b
je 0x180083342
mov rcx, rbx
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Destruct_void____ptr64]
add rbx, 3
sub edi, 1
jne 0x180083333
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800e3250
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret