Function at 0x1400346e0
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
sub rsp, 0x20
mov rax, qword [rdx + 8]
mov rdi, rcx
cmp rax, 4
jne 0x14003489f
lea rdx, str.Suspending_to_lower_power_mode
lea ecx, [rax + 2]
call fcn.140083970
mov rax, qword [rdi + 0x20]
mov edx, 1
mov byte [rax], 1
mov rcx, qword [rdi + 0x20]
call fcn.140042ae0
cmp eax, 2
jne 0x14003472f
mov rcx, qword [rdi + 0x20]
lea edx, [rax - 1]
xor r8d, r8d
call fcn.140043fd0
cmp byte [rdi + 0x142], 0
jne 0x14003474b
mov rcx, qword [rdi + 0x20]
mov edx, 2
call fcn.140042ae0
cmp eax, 4
je 0x140034754
cmp byte [rdi + 0x149], 0
je 0x14003475b
mov byte [rdi + 0x142], 1
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
lea edx, [r8 + 2]
call fcn.140043fd0
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
lea edx, [r8 + 3]
call fcn.140043fd0
mov rcx, qword [rdi + 0x20]
cmp byte [rcx + 0x68], 0
je 0x1400347a9
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 [rdi + 0x20]
cmp dword [rcx + 8], 0
je 0x1400347b6
mov dl, 1
call fcn.1400410c0
cmp byte [rdi + 0x60], 0
je 0x1400347d5
mov rdx, rdi
xor ecx, ecx
call fcn.140048ae0
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + 0x18]
mov rdx, rdi
mov ecx, 1
call fcn.140048ae0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x78]
test al, al
je 0x14003480b
mov rdx, rdi
mov ecx, 1
call fcn.140048ae0
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + 0x18]
mov rdx, rdi
mov ecx, 4
call fcn.140048ae0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x78]
test al, al
je 0x140034841
mov rdx, rdi
mov ecx, 4
call fcn.140048ae0
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + 0x18]
mov rdx, rdi
mov ecx, 5
call fcn.140048ae0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x78]
test al, al
je 0x140034877
mov rdx, rdi
mov ecx, 5
call fcn.140048ae0
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + 0x18]
mov rcx, qword [rdi + 0x28]
cmp byte [rcx + 0x18], 0
je 0x140034888
xor edx, edx
call fcn.14002c610
mov rax, qword [rdi + 0x20]
mov byte [rax], 0
mov rcx, qword [rdi + 0x18]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_ResetEvent]
cmp rax, 0x12
jne 0x14003491e
lea rdx, str.Back_to_normal_power_mode
lea ecx, [rax - 0xc]
call fcn.140083970
cmp byte [rdi + 0x143], 0
jne 0x140034986
cmp byte [rdi + 0x142], 0
je 0x14003490a
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
mov byte [rdi + 0x149], al
mov byte [rdi + 0x142], 0
add rsp, 0x20
pop rdi
ret
xor al, al
mov byte [rdi + 0x149], al
mov byte [rdi + 0x142], al
add rsp, 0x20
pop rdi
ret
cmp rax, 0x8013
jne 0x140034986
mov rcx, qword [rdx + 0x10]
mov rax, qword [rcx]
cmp rax, qword [0x14019cff0]
jne 0x140034986
mov rax, qword [rcx + 8]
cmp rax, qword [0x14019cff8]
jne 0x140034986
mov qword [rsp + 0x30], rbx
lea rdx, str.Display_State:__d
mov ebx, dword [rcx + 0x14]
mov r8d, ebx
mov ecx, 6
call fcn.140083970
test ebx, ebx
mov rbx, qword [rsp + 0x30]
jne 0x140034986
mov rdx, rdi
xor ecx, ecx
call fcn.140048ae0
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r9, qword [rax]
add rsp, 0x20
pop rdi
jmp qword [r9 + 0x18]
add rsp, 0x20
pop rdi
ret