Function at 0x140040e50
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x8d8
lea rcx, [rsp + 0x8e0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140041131
mov rax, qword [rsp + 0x8e0]
xor edx, edx
sub rax, qword [0x140098f18]
mov rcx, qword [0x1400c14f8]
imul rax, rax, 0xf4240
mov qword [rsp + 0x8c0], r13
div qword [0x140098f10]
lea rdx, [0x140089804]
mov qword [rsp + 0x8b0], r15
mov r13, rax
add r13, qword [0x140098f20]
call fcn.140014890
mov r15, rax
test rax, rax
jne 0x140040edc
mov r8, qword [0x1400c14f8]
lea rdx, str.profiler:_failed_to_write_profiler_output_file_into__s
lea ecx, [rax + 2]
call fcn.140013c50
jmp 0x140041119
mov rcx, qword [0x1400c14f8]
lea rdx, str.traceevents
mov qword [rsp + 0x8e8], rbx
mov qword [rsp + 0x8f0], rbp
call fcn.14004d90c
test rax, rax
setne bl
mov byte [rsp + 0x8e0], bl
test rax, rax
jne 0x140040f3e
mov rdx, r15
lea rcx, [0x14008d3d4]
call fcn.140057710
mov rdx, r15
lea rcx, str._instructions_readme_:__1__Open_Chrome__2__go_to_chrome:__tracing__3__click_Load__4__navigate_to_this_file.___n
call fcn.140057710
mov rdx, r15
lea rcx, str._traceEvents_:__n
call fcn.140057710
mov rdx, r15
lea rcx, str.__cat_:_____pid_:12345___tid_:0___ts_:0___ph_:_M____name_:_process_name____args_:___name_:_bee_backend____n
call fcn.140057710
mov ecx, dword [0x1400c1508]
xor ebp, ebp
test ecx, ecx
jle 0x140041082
mov qword [rsp + 0x8f8], rsi
mov qword [rsp + 0x8d0], rdi
mov qword [rsp + 0x8c8], r12
xor r12d, r12d
mov qword [rsp + 0x8b8], r14
mov rsi, qword [0x1400c1500]
xor r14d, r14d
cmp dword [rsi + r12 + 0x38], r14d
jle 0x14004104c
xor edi, edi
nop word [rax + rax]
mov rbx, qword [rsi + r12 + 0x30]
lea rdx, [rsp + 0x4b0]
mov rcx, qword [rdi + rbx + 0x10]
call fcn.140040d70
mov rcx, qword [rdi + rbx + 0x18]
lea rdx, [rsp + 0xb0]
call fcn.140040d70
mov r9, qword [rdi + rbx + 0x20]
lea rax, [0x1400879b6]
test r9, r9
je 0x140040ff5
lea r8, str._cname_:__s__
mov edx, 0x64
lea rcx, [rsp + 0x40]
call fcn.1400033a0
lea rax, [rsp + 0x40]
mov r9, qword [rdi + rbx]
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x38], rcx
lea rdx, str.___pid_:12345___tid_:_d___ts_:_llu___dur_:_llu___ph_:_X____name_:___s____s__args_:___detail_:__s___n
mov qword [rsp + 0x30], rax
mov r8d, ebp
lea rax, [rsp + 0x4b0]
mov rcx, r15
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + rbx + 8]
mov qword [rsp + 0x20], rax
call fcn.140001150
inc r14d
add rdi, 0x28
cmp r14d, dword [rsi + r12 + 0x38]
jl 0x140040fa0
mov ecx, dword [0x1400c1508]
inc ebp
add r12, 0x40
cmp ebp, ecx
jl 0x140040f80
movzx ebx, byte [rsp + 0x8e0]
mov r14, qword [rsp + 0x8b8]
mov r12, qword [rsp + 0x8c8]
mov rdi, qword [rsp + 0x8d0]
mov rsi, qword [rsp + 0x8f8]
lea rcx, [rsp + 0x8e0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbp, qword [rsp + 0x8f0]
test eax, eax
je 0x14004113e
mov rax, qword [rsp + 0x8e0]
xor edx, edx
sub rax, qword [0x140098f18]
mov r8, r13
imul rax, rax, 0xf4240
mov rcx, r15
div qword [0x140098f10]
lea rdx, str.___pid_:12345___tid_:0___ts_:_llu___dur_:_llu___ph_:_X____name_:__ProfilerWriteOutput___n
sub rax, r13
add rax, qword [0x140098f20]
mov r9, rax
call fcn.140001150
test bl, bl
jne 0x1400410fa
mov rdx, r15
lea rcx, [0x14008d5bc]
call fcn.140057710
lea rcx, [0x14008d5c0]
jmp 0x140041101
lea rcx, [0x14008d5c4]
mov rdx, r15
call fcn.140057710
mov rcx, r15
call fcn.14005649c
mov rbx, qword [rsp + 0x8e8]
mov r13, qword [rsp + 0x8c0]
mov r15, qword [rsp + 0x8b0]
add rsp, 0x8d8
ret
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3