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

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
xor r15d, r15d
lea rdi, [rcx + 0x10]
mov ebx, r15d
mov r13, rcx
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FLowLevelMemTracker::bIsDisabled]
cmp byte [rax], r15b
je 0x1800a8574
mov rax, r15
jmp 0x1800a8598
mov rax, qword [sym.imp.FactoryServer_Core.dll_class_FLowLevelMemTracker____ptr64___ptr64_FLowLevelMemTracker::TrackerInstance]
mov rax, qword [rax]
test rax, rax
jne 0x1800a8589
call qword [sym.imp.FactoryServer_Core.dll_public:_static_class_FLowLevelMemTracker____ptr64___cdecl_FLowLevelMemTracker::Construct_void_]
movzx r8d, bl
mov dl, 1
mov rcx, rax
call qword [sym.imp.FactoryServer_Core.dll_public:_class_UE::LLMPrivate::FTagData_const____ptr64___cdecl_FLowLevelMemTracker::GetActiveTagData_enum_ELLMTracker__enum_ELLMTagSet____ptr64]
mov qword [rdi], rax
inc ebx
add rdi, 8
cmp ebx, 3
jl 0x1800a8563
call qword [sym.imp.FactoryServer_Core.dll_int___cdecl_MemoryTrace_GetActiveTag_void_]
mov dword [r13 + 0x28], eax
call qword [sym.imp.FactoryServer_Core.dll_public:_static_unsigned_int___cdecl_FMetadataTrace::SaveStack_void_]
xor r12b, r12b
mov qword [rbp - 0x78], r15
mov dword [r13 + 0x2c], eax
mov rdi, qword [r13 + 0x60]
mov rbx, qword [rdi]
test ebx, ebx
jne 0x1800a85d7
mov rax, rbx
shr rax, 0x20
test eax, eax
je 0x1800a864a
mov rax, qword [sym.imp.FactoryServer_Core.dll_int_GCycleStatsShouldEmitNamedEvents]
cmp dword [rax], r15d
je 0x1800a8632
mov rdx, qword [rdi + 0x10]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], r15d
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 r12b, 1
mov rcx, qword [rax]
mov eax, dword [rcx + 0x18]
test eax, eax
js 0x1800a8632
mov rdx, qword [rdi + 8]
mov rax, rbx
shr rax, 0x20
xor r9d, r9d
mov dword [rsp + 0x6c], eax
xor r8d, r8d
mov dword [rsp + 0x68], ebx
mov rcx, qword [rsp + 0x68]
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 r12b, 3
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bPrimaryDisableForever]
cmp byte [rax], r15b
je 0x1800a8653
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bPrimaryEnable]
cmp byte [rax], r15b
jne 0x1800a8653
mov rsi, qword [rbp - 0x78]
jmp 0x1800a8752
mov rax, rbx
mov dword [rsp + 0x68], ebx
shr rax, 0x20
mov dword [rsp + 0x6c], eax
mov rax, qword [sym.imp.FactoryServer_Core.dll_unsigned_int_FThreadStats::TlsSlot]
mov rsi, qword [rsp + 0x68]
mov qword [rbp - 0x78], rsi
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1800a8694
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
inc dword [rdi + 0x44]
lea rcx, [rbp - 0x68]
mov rax, rsi
mov dword [rbp - 0x38], ebx
shr rax, 0x20
and eax, 0xffff4fff
bts eax, 0xe
mov dword [rbp - 0x34], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp - 0x68]
mov qword [rbp - 0x40], rax
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FLowLevelMemTracker::bIsDisabled]
mov word [rbp + 0x50], r15w
cmp byte [rax], r15b
jne 0x1800a86eb
mov byte [rsp + 0x28], 1
lea rcx, [rbp + 0x50]
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 - 0x60]
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 0x1800a8717
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
dec dword [rdi + 0x4c]
lea rcx, [rbp - 0x60]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
cmp byte [rbp + 0x51], r15b
je 0x1800a8734
lea rcx, [rbp + 0x50]
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], r15b
je 0x1800a874e
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FThreadStats::FlushRawStats_bool__bool____ptr64]
or r12b, 4
mov ecx, dword [0x180128694]
lea rdi, str.ThreadPool_Async_Tasks
mov rax, qword gs:[0x58]
lea r14, str.STATCAT_Advanced
mov edx, 0x38
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x180128418], eax
jg 0x1800a8ca1
mov rbx, qword [0x180128410]
test rbx, rbx
jne 0x1800a87e3
mov dword [rsp + 0x58], r15d
lea r9, str.STATGROUP_ThreadPoolAsyncTasks
mov byte [rsp + 0x50], r15b
lea r8, str.FAsyncTask::Start
mov byte [rsp + 0x48], 1
lea rdx, str.STAT_FAsyncTask_Start
mov dword [rsp + 0x40], 2
lea rcx, [0x180128410]
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.FactoryServer_Core.dll_protected:_struct_TStatIdData_const____ptr64___cdecl_FThreadSafeStaticStatBase::DoSetup_char_const____ptr64__wchar_t_const____ptr64__char_const____ptr64__char_const____ptr64__wchar_t_const____ptr64__bool__bool__enum_EStatDataType::Type__bool__bool__enum_FWindowsPlatformMemory::EMemoryCounterRegion_const___ptr64]
mov rbx, rax
mov rdi, qword [rbx]
mov r14d, r15d
mov qword [rsp + 0x78], r15
test edi, edi
jne 0x1800a8801
mov rcx, rdi
shr rcx, 0x20
test ecx, ecx
je 0x1800a897b
mov rax, qword [sym.imp.FactoryServer_Core.dll_int_GCycleStatsShouldEmitNamedEvents]
cmp dword [rax], r14d
je 0x1800a885c
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x74]
mov dword [rsp + 0x74], r14d
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 r15b, 1
mov rcx, qword [rax]
mov eax, dword [rcx + 0x18]
test eax, eax
js 0x1800a885c
mov rdx, qword [rbx + 8]
mov rax, rdi
shr rax, 0x20
xor r9d, r9d
mov dword [rsp + 0x6c], eax
xor r8d, r8d
mov dword [rsp + 0x68], edi
mov rcx, qword [rsp + 0x68]
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 r15b, 3
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bPrimaryEnable]
cmp byte [rax], r14b
je 0x1800a897b
mov rax, rdi
mov dword [rsp + 0x68], edi
shr rax, 0x20
mov dword [rsp + 0x6c], eax
mov rax, qword [sym.imp.FactoryServer_Core.dll_unsigned_int_FThreadStats::TlsSlot]
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x78], rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
test rax, rax
jne 0x1800a88ae
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 r14, rax
inc dword [r14 + 0x44]
lea rcx, [rbp - 0x58]
mov rax, rbx
mov dword [rbp - 0x28], edi
shr rax, 0x20
and eax, 0xffff4fff
bts eax, 0xe
mov dword [rbp - 0x24], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp - 0x58]
mov qword [rbp - 0x30], rax
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FLowLevelMemTracker::bIsDisabled]
mov word [rsp + 0x60], 0
cmp byte [rax], 0
jne 0x1800a8909
mov byte [rsp + 0x28], 1
lea rcx, [rsp + 0x60]
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 - 0x50]
mov dl, 0x2d
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::constructor_enum_ELLMTag__bool____ptr64]
inc dword [r14 + 0x4c]
lea rdx, [r14 + 0x18]
mov ecx, 0x10
call fcn.180073980
test rax, rax
je 0x1800a8936
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rax], xmm0
dec dword [r14 + 0x4c]
lea rcx, [rbp - 0x50]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
cmp byte [rsp + 0x61], 0
je 0x1800a8956
lea rcx, [rsp + 0x60]
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], 0
je 0x1800a8970
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FThreadStats::FlushRawStats_bool__bool____ptr64]
mov r14d, dword [rsp + 0x78]
or r15b, 4
jmp 0x1800a8980
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbp + 0x78]
mov qword [r13 + 0x50], rax
mov rax, qword [rbp + 0x80]
mov qword [r13 + 0x58], rax
sfence
mov rcx, r13
call fcn.180080be0
lock inc dword [r13 + 0x30]
cmp byte [rbp + 0x58], 0
lea rcx, [r13 + 0x38]
movzx eax, byte [rbp + 0x68]
mov rdi, rcx
mov rdx, qword [rbp + 0x60]
mov byte [r13 + 0x48], al
movzx eax, byte [rbp + 0x70]
mov byte [r13 + 0x49], al
mov qword [r13 + 0x40], rdx
je 0x1800a8af8
mov qword [r13 + 0x40], 0
mov rcx, qword [rcx]
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FGenericPlatformProcess::ReturnSynchEventToPool_class_FEvent____ptr64_]
mov rcx, r13
mov qword [rdi], 0
call fcn.180082fd0
test r15b, 1
je 0x1800a89f8
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FWindowsPlatformMisc::EndNamedEvent_void_]
test r15b, 2
je 0x1800a8a04
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FCpuProfilerTrace::OutputEndEvent_void_]
test r15b, 4
je 0x1800a8b4e
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 0x1800a8a37
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 0x1800a8b4e
shr rbx, 0x20
lea rcx, [rbp + 0x60]
and ebx, 0xffff5fff
mov dword [rbp - 0x18], r14d
or ebx, 0x5000
mov dword [rbp - 0x14], ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x60]
mov qword [rbp - 0x20], rax
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FLowLevelMemTracker::bIsDisabled]
mov word [rbp + 0x68], 0
cmp byte [rax], 0
jne 0x1800a8a99
mov byte [rsp + 0x28], 1
lea rcx, [rbp + 0x68]
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 + 0x78]
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 0x1800a8ac5
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rax], xmm0
dec dword [rdi + 0x4c]
lea rcx, [rbp + 0x78]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
cmp byte [rbp + 0x69], 0
je 0x1800a8ae2
lea rcx, [rbp + 0x68]
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Destruct_void____ptr64]
sub dword [rdi + 0x44], 1
jne 0x1800a8b34
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 0x1800a8b4e
test rdx, rdx
je 0x1800a89d4
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1800a8b17
mov cl, 1
call qword [sym.imp.FactoryServer_Core.dll_public:_static_class_FEvent____ptr64___cdecl_FGenericPlatformProcess::GetSynchEventFromPool_bool_]
mov rcx, rax
mov qword [rdi], rax
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [r13 + 0x40]
mov rdx, r13
movzx r8d, byte [rbp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1800a89ec
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bIsRawStatsActive]
cmp byte [rax], 0
je 0x1800a8b4e
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FThreadStats::FlushRawStats_bool__bool____ptr64]
test r12b, 1
je 0x1800a8b5a
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FWindowsPlatformMisc::EndNamedEvent_void_]
test r12b, 2
je 0x1800a8b66
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FCpuProfilerTrace::OutputEndEvent_void_]
test r12b, 4
je 0x1800a8c7c
mov rax, qword [sym.imp.FactoryServer_Core.dll_unsigned_int_FThreadStats::TlsSlot]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1800a8b99
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 rbx, rax
mov eax, dword [rbx + 0x48]
cmp dword [rbx + 0x44], eax
jle 0x1800a8c7c
mov eax, dword [rbp - 0x78]
lea rcx, [rbp + 0x80]
shr rsi, 0x20
and esi, 0xffff5fff
mov dword [rbp - 8], eax
or esi, 0x5000
mov dword [rbp - 4], esi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x80]
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FLowLevelMemTracker::bIsDisabled]
mov word [rbp + 0x58], 0
cmp byte [rax], 0
jne 0x1800a8c03
mov byte [rsp + 0x28], 1
lea rcx, [rbp + 0x58]
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 - 0x48]
mov dl, 0x2d
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::constructor_enum_ELLMTag__bool____ptr64]
inc dword [rbx + 0x4c]
lea rdx, [rbx + 0x18]
mov ecx, 0x10
call fcn.180073980
test rax, rax
je 0x1800a8c2f
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
dec dword [rbx + 0x4c]
lea rcx, [rbp - 0x48]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
cmp byte [rbp + 0x59], 0
je 0x1800a8c4c
lea rcx, [rbp + 0x58]
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Destruct_void____ptr64]
sub dword [rbx + 0x44], 1
jne 0x1800a8c62
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FThreadStats::Flush_bool__bool____ptr64]
jmp 0x1800a8c7c
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bIsRawStatsActive]
cmp byte [rax], 0
je 0x1800a8c7c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FThreadStats::FlushRawStats_bool__bool____ptr64]
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x180128418]
call fcn.1800e2ff0
jmp 0x1800a8787
lea rcx, [0x180128418]
call fcn.1800e3060
cmp dword [0x180128418], 0xffffffff
jne 0x1800a8787
mov rax, qword [0x180128410]
test rax, rax
jne 0x1800a8c90
mov dword [rsp + 0x58], r15d
lea r9, str.STATGROUP_ThreadPoolAsyncTasks
mov byte [rsp + 0x50], r15b
lea r8, str.FAsyncTask::Start
mov byte [rsp + 0x48], 1
lea rdx, str.STAT_FAsyncTask_Start
mov dword [rsp + 0x40], 2
lea rcx, [0x180128410]
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.FactoryServer_Core.dll_protected:_struct_TStatIdData_const____ptr64___cdecl_FThreadSafeStaticStatBase::DoSetup_char_const____ptr64__wchar_t_const____ptr64__char_const____ptr64__char_const____ptr64__wchar_t_const____ptr64__bool__bool__enum_EStatDataType::Type__bool__bool__enum_FWindowsPlatformMemory::EMemoryCounterRegion_const___ptr64]
jmp 0x1800a8c90