Function at 0x1800023ac
Capabilities:
Migrate process to active window station

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
xor r13d, r13d
mov ebx, edx
lea rcx, [rbp - 0x6c]
xor edx, edx
mov r8d, 0x90
mov r14d, r13d
mov qword [rbp - 0x80], r13
mov r12d, r13d
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r13
mov r15d, r13d
mov edi, r13d
mov esi, r13d
mov qword [rsp + 0x68], r13
mov dword [rbp - 0x70], r13d
call fcn.180015790
lea rcx, [rbp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x30], r13b
call fcn.180015790
xor eax, eax
mov edx, 0x104
lea r9, str..pipe_08X
lea rcx, [rbp + 0x30]
mov r8d, edx
lea r13d, [rsi + 0x4e]
mov dword [rsp + 0x60], 0x4f
mov dword [rsp + 0x64], eax
mov dword [rbp + 0x198], eax
mov dword [rbp + 0x190], eax
mov dword [rsp + 0x20], ebx
call fcn.180015368
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x70], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x18000247c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180002747
cmp dword [rbp - 0x6c], 4
ja 0x18000248b
xor r13d, r13d
lea ebx, [r13 + 1]
jmp 0x18000248f
mov ebx, dword [rsp + 0x60]
lea rcx, str.WinSta0
xor edx, edx
mov r8d, 0x37f
call qword [sym.imp.USER32.dll_OpenWindowStationA]
mov r14, rax
test rax, rax
jne 0x18000258a
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x1800024db
lea rcx, str.WinSta0
xor edx, edx
mov r8d, 0x37f
call qword [sym.imp.USER32.dll_OpenWindowStationA]
mov r14, rax
test rax, rax
jne 0x18000258a
mov ebx, 6
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.1800022a8
test r15, r15
je 0x180002501
mov rcx, qword [rsp + 0x70]
mov rdx, r15
call qword [sym.imp.USER32.dll_ReleaseDC]
test rdi, rdi
je 0x18000250f
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
test rsi, rsi
je 0x18000251d
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18000252c
call fcn.180014fd8
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x18000253e
mov rcx, rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180002551
mov rcx, rax
call qword [sym.imp.USER32.dll_SetThreadDesktop]
test r14, r14
je 0x18000255f
mov rcx, r14
call qword [sym.imp.USER32.dll_CloseWindowStation]
test r12, r12
je 0x18000256d
mov rcx, r12
call qword [sym.imp.USER32.dll_CloseDesktop]
mov eax, ebx
mov rbx, qword [rsp + 0x288]
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
mov rcx, r14
mov qword [rbp - 0x80], rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x18000246f
xor edx, edx
xor ecx, ecx
mov r8d, 0x2000000
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov r12, rax
test rax, rax
je 0x18000246f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov rcx, r12
mov qword [rsp + 0x78], rax
call qword [sym.imp.USER32.dll_SetThreadDesktop]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.USER32.dll_GetDC]
mov r15, rax
test rax, rax
je 0x18000246f
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdi, rax
test rax, rax
je 0x18000246f
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, ebx
mov r13d, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [rbp - 0x6c], 4
mov ebx, eax
mov dword [rsp + 0x60], eax
jb 0x180002654
mov ecx, 0x4c
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x4d
mov dword [rbp + 0x198], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rbp + 0x190], eax
mov r8d, ebx
mov edx, r13d
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rsi, rax
test rax, rax
je 0x18000246f
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
test rax, rax
je 0x18000246f
lea rcx, str.user32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1800026b9
lea rdx, str.SetProcessDPIAware
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800026b0
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, 0x4f
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x4e
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0x190]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x198]
mov r9d, r13d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], eax
call qword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
je 0x18000246f
mov r8d, dword [rbp + 0x180]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x68]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180001970
cmp eax, 1
jne 0x1800024db
xor ebx, ebx
test ebx, ebx
jne 0x1800024e0
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x68]
jmp 0x1800024e5