Function at 0x140011b00
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd00
xor dil, dil
cmp dword [0x1400dd138], 0
mov rbx, rcx
je 0x140011b2b
mov rdx, rcx
lea rcx, str.WinMainClient_WtsStateProcessing_is_called_with_state__u
call fcn.14000cbb0
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8d, 0x620
call fcn.14007cd30
lea r11, [rbx - 1]
cmp r11, 7
ja case.0x140011b60.3
lea rcx, [0x140000000]
mov eax, dword [rcx + r11*4 + 0x11fd0]
add rax, rcx
jmp rax
lea rcx, [0x1400e0280]
call fcn.14001b1b0
cmp dword [0x1400df34c], 8
jb case.0x140011b60.3
call fcn.14000bb90
cmp dword [0x1400df344], 0
je case.0x140011b60.3
mov dil, 1
jmp case.0x140011b60.3
cmp rbx, 8
jne 0x140011ba7
lea rcx, [0x1400dfe00]
call fcn.14001b1b0
mov rcx, qword [0x1400df3c0]
test rcx, rcx
je 0x140011bb8
call fcn.14001dff0
cmp rbx, 8
jne 0x140011bcb
call fcn.140067a60
test eax, eax
je case.0x140011b60.3
lea rcx, [rsp + 0x6e0]
xor edx, edx
mov r8d, 0x620
call fcn.14007cd30
mov eax, dword [0x1400df4cc]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x2c]
mov dword [rsp + 0x6e8], 0xb
mov dword [rsp + 0x6f0], eax
mov dword [rsp + 0x6e0], 0x8001
mov dword [rsp + 0x6e4], 0x620
call fcn.14007cd30
lea rax, [rsp + 0xd10]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x6e0]
lea rcx, str..pipeExtEventPipe_Service
mov r8d, 0x620
mov dword [rsp + 0x20], 0x2c
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x140011c65
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, 1
jne 0x140011c7a
mov dword [0x1400df4e8], 0
call fcn.140011750
cmp dword [0x1400df4e8], 0
jne 0x140011c9f
cmp rbx, 8
jne 0x140011c9f
bt dword [0x1400df368], 0x1b
jae 0x140011c9f
mov rcx, qword [0x1400dd148]
call fcn.140046580
cmp dword [0x1400df34c], 8
jb case.0x140011b60.3
cmp rbx, 1
jne 0x140011cb7
call fcn.14000bb90
xor eax, eax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x40], 7
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
call fcn.140063540
cmp dword [0x1400df34c], 8
jb case.0x140011b60.3
jmp 0x140011b80
lea rcx, [0x1400e0280]
call fcn.14001b1f0
cmp rbx, 2
mov dword [0x1400e1cd8], ebx
je 0x140011d30
cmp rbx, 6
je 0x140011d30
lea rcx, [0x1400dfe00]
call fcn.14001b1f0
mov rcx, qword [0x1400df3c0]
test rcx, rcx
je 0x140011d72
xor edx, edx
call fcn.14001e030
jmp 0x140011d6b
mov rcx, qword [0x1400df3c0]
mov dword [0x1400df4e8], 1
test rcx, rcx
je 0x140011d57
mov edx, 1
call fcn.14001e030
mov rcx, qword [0x1400df3c0]
mov rax, qword [0x1400df398]
test rax, rax
je 0x140011d72
mov rcx, rax
call fcn.140003540
mov rcx, qword [0x1400df3c0]
cmp rbx, 7
jne 0x140011d95
call fcn.140067a60
test eax, eax
je 0x140011d8e
mov dword [rsp + 0xc8], 0xd
jmp 0x140011daa
mov rcx, qword [0x1400df3c0]
test rcx, rcx
je 0x140011d9f
call fcn.14001dda0
mov dword [rsp + 0xc8], 0xc
mov eax, dword [0x1400df4cc]
lea rcx, [rsp + 0x58]
mov r8d, 0x2c
xor edx, edx
mov dword [rsp + 0xc4], 0x620
mov dword [rsp + 0xc0], 0x8001
mov dword [rsp + 0xd0], eax
call fcn.14007cd30
lea rax, [rsp + 0xd10]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0xc0]
lea rcx, str..pipeExtEventPipe_Service
mov r8d, 0x620
mov dword [rsp + 0x20], 0x2c
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x140011e26
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.140033f30
test dil, dil
mov dword [0x1400e1cd8], ebx
je 0x140011fa8
cmp dword [0x1400e40e4], 0
je 0x140011fa8
xor eax, eax
lea rcx, [rsp + 0x6e0]
xor edx, edx
mov r8d, 0x620
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
call fcn.14007cd30
xor edx, edx
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0x2c]
call fcn.14007cd30
mov eax, dword [0x1400df4cc]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x2c]
mov dword [rsp + 0x6e8], 0x3f
mov dword [rsp + 0x6f0], eax
mov dword [rsp + 0x6e0], 0x8001
mov dword [rsp + 0x6e4], 0x620
call fcn.14007cd30
lea rax, [rsp + 0xd10]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x6e0]
lea rcx, str..pipeExtEventPipe_Service
mov r8d, 0x620
mov dword [rsp + 0x20], 0x2c
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x140011f4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140011f4e
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x88]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [rcx + 0x20]
mov qword [rdx + 0x20], rax
mov eax, dword [rcx + 0x28]
mov dword [rdx + 0x28], eax
lea rcx, [rsp + 0x94]
lea rdx, [rsp + 0x40]
mov eax, dword [rcx]
mov dword [rdx], eax
mov eax, dword [rcx + 4]
mov dword [rdx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rdx + 0xc], eax
mov eax, dword [rcx + 0x10]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0x94]
shr rax, 0x20
cmp eax, 2
je 0x140011f8d
cmp eax, 1
jne 0x140011fbe
lea rcx, [rsp + 0x40]
call fcn.140056100
mov rbx, qword [rsp + 0xd18]
add rsp, 0xd00
pop rdi
ret
bt dword [0x1400dd138], 0x10
jae 0x140011fbe
lea rcx, str.Not_ready_to_switch_yet__will_switch_later_when_iGPU_driver_initialized__n
call fcn.14000cbb0
mov rbx, qword [rsp + 0xd18]
add rsp, 0xd00
pop rdi
ret