Function at 0x140035b00
Capabilities:
Check for time delay via queryperformancecounter
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
dec rdx
cmp rdx, 7
ja case.0x140035b3c.5
lea rcx, [0x140000000]
mov eax, dword [rcx + rdx*4 + 0x35eb8]
add rax, rcx
jmp rax
mov byte [rbx + 0x143], 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x30]
call fcn.140152140
lea r8, str.User_session_out_of_scope
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140155cf8
mov dword [rsp + 0x20], 6
mov byte [rsp + 0x830], 1
xorps xmm0, xmm0
movsd qword [rsp + 0x838], xmm0
mov byte [rsp + 0x840], 0
lea r8, [rsp + 0x30]
lea rdx, str._s_start
mov ecx, 6
call fcn.140083970
nop
mov rax, qword [rbx + 0x20]
mov byte [rax], 1
mov edx, 1
mov rcx, qword [rbx + 0x20]
call fcn.140042ae0
cmp eax, 2
jne 0x140035bdc
xor r8d, r8d
lea edx, [rax - 1]
mov rcx, qword [rbx + 0x20]
call fcn.140043fd0
cmp byte [rbx + 0x142], 0
jne 0x140035bf8
mov edx, 2
mov rcx, qword [rbx + 0x20]
call fcn.140042ae0
cmp eax, 4
je 0x140035c01
cmp byte [rbx + 0x149], 0
je 0x140035c08
mov byte [rbx + 0x142], 1
xor r8d, r8d
lea edx, [r8 + 2]
mov rcx, qword [rbx + 0x20]
call fcn.140043fd0
xor r8d, r8d
lea edx, [r8 + 3]
mov rcx, qword [rbx + 0x20]
call fcn.140043fd0
mov rcx, qword [rbx + 0x20]
cmp byte [rcx + 0x68], 0
je 0x140035c56
lea rdx, str.Telling_RS_to_stop_any_in_progress_Performance_Logging
mov ecx, 6
call fcn.140083970
xor edx, edx
lea rcx, [0x1400401d0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbx + 0x20]
cmp dword [rcx + 8], 0
je 0x140035c63
mov dl, 1
call fcn.1400410c0
cmp byte [rbx + 0x60], 0
je 0x140035c82
mov rdx, rbx
xor ecx, ecx
call fcn.140048ae0
mov r9, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [r9 + 0x18]
mov rdx, rbx
mov ecx, 1
call fcn.140048ae0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x40]
test al, al
je 0x140035cbe
cmp byte [rbx + 0x60], 0
jne 0x140035cbe
mov rdx, rbx
mov ecx, 1
call fcn.140048ae0
mov r9, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [r9 + 0x18]
mov rdx, rbx
mov ecx, 4
call fcn.140048ae0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x40]
test al, al
je 0x140035cfa
cmp byte [rbx + 0x60], 0
jne 0x140035cfa
mov rdx, rbx
mov ecx, 4
call fcn.140048ae0
mov r9, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [r9 + 0x18]
mov rdx, rbx
mov ecx, 5
call fcn.140048ae0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x40]
test al, al
je 0x140035d36
cmp byte [rbx + 0x60], 0
jne 0x140035d36
mov rdx, rbx
mov ecx, 5
call fcn.140048ae0
mov r9, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [r9 + 0x18]
mov rcx, qword [rbx + 0x28]
cmp byte [rcx + 0x18], 0
je 0x140035d47
xor edx, edx
call fcn.14002c610
mov rax, qword [rbx + 0x20]
mov byte [rax], 0
jmp 0x140035e93
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x30]
call fcn.140152140
lea r8, str.User_session_back_in_scope
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140155cf8
mov dword [rsp + 0x20], 6
mov byte [rsp + 0x830], 1
xorps xmm0, xmm0
movsd qword [rsp + 0x838], xmm0
mov byte [rsp + 0x840], 0
lea r8, [rsp + 0x30]
lea rdx, str._s_start
mov ecx, 6
call fcn.140083970
nop
mov byte [rbx + 0x143], 0
cmp byte [rbx + 0x61], 0
jne 0x140035e4c
call fcn.140061c90
mov rcx, rax
call fcn.1400149b0
test al, al
je 0x140035df8
mov rdx, rbx
mov ecx, 1
call fcn.140048ae0
mov r8, qword [rax]
xor edx, edx
mov rcx, rax
call qword [r8 + 8]
call fcn.140061c90
mov rcx, rax
call fcn.140014d30
test al, al
je 0x140035e22
mov rdx, rbx
mov ecx, 4
call fcn.140048ae0
mov r8, qword [rax]
xor edx, edx
mov rcx, rax
call qword [r8 + 8]
call fcn.140061c90
mov rcx, rax
call fcn.1400168a0
test al, al
je 0x140035e4c
mov rdx, rbx
mov ecx, 5
call fcn.140048ae0
mov r8, qword [rax]
xor edx, edx
mov rcx, rax
call qword [r8 + 8]
cmp byte [rbx + 0x142], 0
je 0x140035e84
lea rdx, str.Requesting_performance_overlay_restart_after_delay
mov ecx, 6
call fcn.140083970
call fcn.1400616f0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x808e
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, 1
jmp 0x140035e86
xor al, al
mov byte [rbx + 0x149], al
mov byte [rbx + 0x142], 0
lea rcx, [rsp + 0x20]
call fcn.140083fb0
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14014f2f0
add rsp, 0x860
pop rbx
ret