Function at 0x180011560
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 0x1800115a4
mov rax, r15
jmp 0x1800115c8
mov rax, qword [sym.imp.FactoryServer_Core.dll_class_FLowLevelMemTracker____ptr64___ptr64_FLowLevelMemTracker::TrackerInstance]
mov rax, qword [rax]
test rax, rax
jne 0x1800115b9
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 0x180011593
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 0x180011607
mov rax, rbx
shr rax, 0x20
test eax, eax
je 0x18001167a
mov rax, qword [sym.imp.FactoryServer_Core.dll_int_GCycleStatsShouldEmitNamedEvents]
cmp dword [rax], r15d
je 0x180011662
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 0x180011662
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 0x180011683
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bPrimaryEnable]
cmp byte [rax], r15b
jne 0x180011683
mov rsi, qword [rbp - 0x78]
jmp 0x180011782
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 0x1800116c4
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 0x18001171b
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.180006240
test rax, rax
je 0x180011747
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 0x180011764
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 0x18001177e
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 rax, qword gs:[0x58]
lea rdi, str.ThreadPool_Async_Tasks
mov ecx, dword [0x180027348]
lea r14, str.STATCAT_Advanced
mov r8d, 0x38
mov rdx, qword [rax + rcx*8]
mov eax, dword [r8 + rdx]
cmp dword [0x180027088], eax
jg 0x180011cd1
mov rbx, qword [0x180027080]
test rbx, rbx
jne 0x180011815
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, [0x180027080]
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 0x180011833
mov rcx, rdi
shr rcx, 0x20
test ecx, ecx
je 0x1800119ad
mov rax, qword [sym.imp.FactoryServer_Core.dll_int_GCycleStatsShouldEmitNamedEvents]
cmp dword [rax], r14d
je 0x18001188e
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 0x18001188e
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 0x1800119ad
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 0x1800118e0
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 0x18001193b
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.180006240
test rax, rax
je 0x180011968
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 0x180011988
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 0x1800119a2
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 0x1800119b2
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.18000ad40
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 0x180011b2a
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.18000b990
test r15b, 1
je 0x180011a2a
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FWindowsPlatformMisc::EndNamedEvent_void_]
test r15b, 2
je 0x180011a36
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FCpuProfilerTrace::OutputEndEvent_void_]
test r15b, 4
je 0x180011b7e
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 0x180011a69
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 0x180011b7e
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 0x180011acb
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.180006240
test rax, rax
je 0x180011af7
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 0x180011b14
lea rcx, [rbp + 0x68]
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Destruct_void____ptr64]
sub dword [rdi + 0x44], 1
jne 0x180011b64
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 0x180011b7e
test rdx, rdx
je 0x180011a06
cmp qword [rcx], 0
jne 0x180011b44
mov cl, 1
call qword [sym.imp.FactoryServer_Core.dll_public:_static_class_FEvent____ptr64___cdecl_FGenericPlatformProcess::GetSynchEventFromPool_bool_]
mov qword [rdi], rax
mov rcx, qword [rdi]
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 0x180011a1e
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bIsRawStatsActive]
cmp byte [rax], 0
je 0x180011b7e
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 0x180011b8a
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FWindowsPlatformMisc::EndNamedEvent_void_]
test r12b, 2
je 0x180011b96
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FCpuProfilerTrace::OutputEndEvent_void_]
test r12b, 4
je 0x180011cac
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 0x180011bc9
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 0x180011cac
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 0x180011c33
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.180006240
test rax, rax
je 0x180011c5f
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 0x180011c7c
lea rcx, [rbp + 0x58]
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Destruct_void____ptr64]
sub dword [rbx + 0x44], 1
jne 0x180011c92
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 0x180011cac
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bIsRawStatsActive]
cmp byte [rax], 0
je 0x180011cac
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, [0x180027088]
call fcn.1800159e4
jmp 0x1800117b9
lea rcx, [0x180027088]
call fcn.180015a4c
cmp dword [0x180027088], 0xffffffff
jne 0x1800117b9
mov rax, qword [0x180027080]
test rax, rax
jne 0x180011cc0
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, [0x180027080]
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 0x180011cc0