Function at 0x18000b990
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, 0xd0
mov rax, qword [0x180027018]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
lea rdx, [rbp + 7]
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 - 0x51], r12
mov esi, r12d
mov rdi, qword [rbx]
test edi, edi
jne 0x18000b9f0
mov rax, rdi
shr rax, 0x20
test eax, eax
je 0x18000ba5d
mov rax, qword [sym.imp.FactoryServer_Core.dll_int_GCycleStatsShouldEmitNamedEvents]
cmp dword [rax], esi
je 0x18000ba45
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x59]
mov dword [rbp - 0x59], 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 0x18000ba45
mov rdx, qword [rbx + 8]
mov rax, rdi
shr rax, 0x20
xor r9d, r9d
mov dword [rbp - 0x5d], eax
xor r8d, r8d
mov dword [rbp - 0x61], edi
mov rcx, qword [rbp - 0x61]
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 0x18000ba66
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bPrimaryEnable]
cmp byte [rax], sil
jne 0x18000ba66
mov rbx, qword [rbp - 0x51]
jmp 0x18000bb69
mov rax, rdi
mov dword [rbp - 0x61], edi
shr rax, 0x20
mov dword [rbp - 0x5d], eax
mov rax, qword [sym.imp.FactoryServer_Core.dll_unsigned_int_FThreadStats::TlsSlot]
mov rbx, qword [rbp - 0x61]
mov qword [rbp - 0x51], rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x18000baa4
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 - 0x41]
mov rax, rbx
mov qword [rbp - 1], rbx
shr rax, 0x20
and eax, 0xffff4fff
mov dword [rbp - 0x19], edi
bts eax, 0xe
mov dword [rbp - 0x15], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp - 0x41]
mov qword [rbp - 0x21], rax
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FLowLevelMemTracker::bIsDisabled]
mov word [rbp - 0x69], r12w
cmp byte [rax], r12b
jne 0x18000baff
mov byte [rsp + 0x28], 1
lea rcx, [rbp - 0x69]
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 - 0x39]
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.180006240
test rax, rax
je 0x18000bb2b
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rax], xmm0
dec dword [rsi + 0x4c]
lea rcx, [rbp - 0x39]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
cmp byte [rbp - 0x68], r12b
je 0x18000bb48
lea rcx, [rbp - 0x69]
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 0x18000bb62
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 - 0x51]
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 0x18000bbaf
mov r9, qword [rbp + 0x5f]
lea rax, [0x180019acc]
mov r8d, 0x121
mov qword [rsp + 0x20], rax
lea rdx, str.C:BuildAgentwork78a794e88763017dUE4EngineSourceRuntimeCorePublicAsyncAsyncWork.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 0x18000bbaf
nop
int3
lock dec dword [r15 + 0x30]
test r14b, 1
je 0x18000bbc0
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FWindowsPlatformMisc::EndNamedEvent_void_]
test r14b, 2
je 0x18000bbcc
call qword [sym.imp.FactoryServer_Core.dll_public:_static_void___cdecl_FCpuProfilerTrace::OutputEndEvent_void_]
test r14b, 4
je 0x18000bcd8
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 0x18000bbff
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 0x18000bcd8
shr rbx, 0x20
lea rcx, [rbp - 0x31]
and ebx, 0xffff5fff
mov dword [rbp - 9], esi
or ebx, 0x5000
mov dword [rbp - 5], ebx
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 - 0x65], r12w
cmp byte [rax], r12b
jne 0x18000bc5f
mov byte [rsp + 0x28], 1
lea rcx, [rbp - 0x65]
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 [rdi + 0x4c]
lea rdx, [rdi + 0x18]
mov ecx, 0x10
call fcn.180006240
test rax, rax
je 0x18000bc8b
movups xmm0, xmmword [rbp - 0x11]
movups xmmword [rax], xmm0
dec dword [rdi + 0x4c]
lea rcx, [rbp - 0x29]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
cmp byte [rbp - 0x64], r12b
je 0x18000bca8
lea rcx, [rbp - 0x65]
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Destruct_void____ptr64]
sub dword [rdi + 0x44], 1
jne 0x18000bcbe
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 0x18000bcd8
mov rax, qword [sym.imp.FactoryServer_Core.dll_bool_FThreadStats::bIsRawStatsActive]
cmp byte [rax], r12b
je 0x18000bcd8
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 + 0x23]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMetadataRestoreScope::destructor_void____ptr64]
lea rcx, [rbp + 0x1b]
call qword [sym.imp.FactoryServer_Core.dll_public:_void___cdecl_FMemScope::destructor_void____ptr64]
mov edi, dword [rbp + 0x13]
lea rbx, [rbp + 7]
test edi, edi
je 0x18000bd0f
cmp byte [rbx + 1], r12b
je 0x18000bd06
mov rcx, rbx
call qword [sym.imp.FactoryServer_Core.dll_protected:_void___cdecl_FLLMScope::Destruct_void____ptr64]
add rbx, 3
sub edi, 1
jne 0x18000bcf7
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180015e50
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret