Function at 0x140040a90
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 0x140040e52
mov rax, qword [rsp + 0x8e0]
xor edx, edx
sub rax, qword [0x140099f88]
mov rcx, qword [0x1400c2568]
imul rax, rax, 0xf4240
mov qword [rsp + 0x8c0], r13
div qword [0x140099f80]
lea rdx, [0x140089bc4]
mov qword [rsp + 0x8b0], r15
mov r13, rax
add r13, qword [0x140099f90]
call fcn.1400147d0
mov r15, rax
test rax, rax
jne 0x140040b1c
mov r8, qword [0x1400c2568]
lea rdx, str.profiler:_failed_to_write_profiler_output_file_into__s
lea ecx, [rax + 2]
call fcn.140013ae0
jmp 0x140040e3a
mov rcx, qword [0x1400c2568]
lea rdx, str.traceevents
mov qword [rsp + 0x8e8], rbx
mov qword [rsp + 0x8b8], r14
call fcn.14004cad0
test rax, rax
setne bl
mov byte [rsp + 0x8e0], bl
test rax, rax
jne 0x140040b7e
mov rdx, r15
lea rcx, [0x14008d674]
call fcn.1400584d0
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.1400584d0
mov rdx, r15
lea rcx, str._traceEvents_:__n
call fcn.1400584d0
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.1400584d0
mov ecx, dword [0x1400c2578]
xor r14d, r14d
test ecx, ecx
jle 0x140040da3
mov qword [rsp + 0x8f0], rbp
lea r11, [0x140000000]
mov qword [rsp + 0x8f8], rsi
mov qword [rsp + 0x8d0], rdi
mov qword [rsp + 0x8c8], r12
xor r12d, r12d
nop dword [rax + rax]
mov rsi, qword [0x1400c2570]
xor ebp, ebp
cmp dword [rsi + r12 + 0x38], ebp
jle 0x140040d6b
xor edi, edi
nop word [rax + rax]
mov rbx, qword [rsi + r12 + 0x30]
lea r8, [rsp + 0x4b0]
add rbx, rdi
mov r10d, 0x400
mov r9, qword [rbx + 0x10]
cmp byte [r9], 0
je 0x140040c65
cmp r10d, 2
jle 0x140040c65
movsx edx, byte [r9]
lea eax, [rdx - 8]
cmp eax, 0x54
ja case.0x140040c38.9
cdqe
movzx eax, byte [r11 + rax + 0x40e74]
mov ecx, dword [r11 + rax*4 + 0x40e6c]
add rcx, r11
jmp rcx
mov byte [r8], 0x5c
mov byte [r8 + 1], dl
add r8, 2
sub r10d, 2
jmp 0x140040c5c
lea eax, [rdx - 0x20]
cmp al, 0x5d
ja 0x140040c5c
mov byte [r8], dl
inc r8
dec r10d
inc r9
cmp byte [r9], 0
jne 0x140040c10
mov byte [r8], 0
lea rax, [rsp + 0xb0]
mov r9, qword [rbx + 0x18]
mov r10d, 0x400
cmp byte [r9], 0
je 0x140040cd9
cmp r10d, 2
jle 0x140040cd9
movsx r8d, byte [r9]
lea ecx, [r8 - 8]
cmp ecx, 0x54
ja case.0x140040cab.9
movsxd rcx, ecx
movzx ecx, byte [r11 + rcx + 0x40ed4]
mov edx, dword [r11 + rcx*4 + 0x40ecc]
add rdx, r11
jmp rdx
mov byte [rax], 0x5c
mov byte [rax + 1], r8b
add rax, 2
sub r10d, 2
jmp 0x140040cd0
lea ecx, [r8 - 0x20]
cmp cl, 0x5d
ja 0x140040cd0
mov byte [rax], r8b
inc rax
dec r10d
inc r9
cmp byte [r9], 0
jne 0x140040c81
mov byte [rax], 0
lea rax, [0x140087d76]
cmp qword [rbx + 0x20], 0
je 0x140040d09
mov r9, qword [rbx + 0x20]
lea r8, str._cname_:__s__
mov edx, 0x64
lea rcx, [rsp + 0x40]
call fcn.140003390
lea rax, [rsp + 0x40]
mov r9, qword [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, r14d
lea rax, [rsp + 0x4b0]
mov rcx, r15
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call fcn.140001150
inc ebp
lea r11, [0x140000000]
add rdi, 0x28
cmp ebp, dword [rsi + r12 + 0x38]
jl 0x140040bf0
mov ecx, dword [0x1400c2578]
lea r11, [0x140000000]
inc r14d
add r12, 0x40
cmp r14d, ecx
jl 0x140040bd0
mov r12, qword [rsp + 0x8c8]
mov rdi, qword [rsp + 0x8d0]
mov rsi, qword [rsp + 0x8f8]
mov rbp, qword [rsp + 0x8f0]
movzx ebx, byte [rsp + 0x8e0]
lea rcx, [rsp + 0x8e0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r14, qword [rsp + 0x8b8]
test eax, eax
je 0x140040e5f
mov rax, qword [rsp + 0x8e0]
xor edx, edx
sub rax, qword [0x140099f88]
mov r8, r13
imul rax, rax, 0xf4240
mov rcx, r15
div qword [0x140099f80]
lea rdx, str.___pid_:12345___tid_:0___ts_:_llu___dur_:_llu___ph_:_X____name_:__ProfilerWriteOutput___n
sub rax, r13
add rax, qword [0x140099f90]
mov r9, rax
call fcn.140001150
test bl, bl
jne 0x140040e1b
mov rdx, r15
lea rcx, [0x14008d85c]
call fcn.1400584d0
lea rcx, [0x14008d860]
jmp 0x140040e22
lea rcx, [0x14008d864]
mov rdx, r15
call fcn.1400584d0
mov rcx, r15
call fcn.140056cc4
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.140013a60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3