Function at 0x140001000
Capabilities:
Create thread
Get session information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
lea rax, [rsp + 0x38]
mov rdi, rcx
lea r9, [rsp + 0x30]
lea r8d, [rsi + 4]
or edx, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
cmp eax, 1
jne 0x140001064
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
mov dword [0x1400185bc], eax
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x140001078
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.WinMain:__Query_session_information_failed.
mov edx, eax
call fcn.140001c40
call fcn.1400018d0
mov ebx, eax
test eax, eax
jne 0x14000108c
lea rcx, str.WinMain:__CreateEventsForHelperAppCommunications___failed.
jmp 0x140001106
call fcn.140001780
mov ebx, eax
test eax, eax
jne 0x1400010a0
lea rcx, str.WinMain:__CreateSharedMemory___failed.
jmp 0x140001106
lea r8, [0x140001640]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov ebx, 1
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400198d0], rax
test rax, rax
jne 0x1400010e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateHelperMainThread:__CreateThread___failed.
mov edx, eax
call fcn.140001c40
mov ebx, esi
test ebx, ebx
jne 0x1400010f1
lea rcx, str.WinMain:__Create_LPM_Helper_main_thread_failed.
jmp 0x140001106
mov rcx, rdi
call fcn.1400014c0
mov ebx, eax
test eax, eax
jne 0x14000110b
lea rcx, str.WinMain:__monitor_session_change_event_loop_failed.
call fcn.140001b60
cmp qword [0x1400198d0], rsi
je 0x140001172
mov rcx, qword [0x1400198c0]
test rcx, rcx
je 0x140001166
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1400198d0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140001150
mov rcx, qword [0x1400198d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400198d0], rsi
jmp 0x140001172
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DestroyHelperThread:_Wait_for_helper_main_thread_terminated_failed_
mov edx, eax
call fcn.140001c40
jmp 0x140001172
lea rcx, str.DestroyLpmHelperMainThread:__Stop_event_handle_has_been_closed.
call fcn.140001b60
mov rcx, qword [0x1400198d8]
test rcx, rcx
je 0x14000118b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400198d8], rsi
mov rcx, qword [0x1400198b0]
test rcx, rcx
je 0x1400011a4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400198b0], rsi
mov rcx, qword [0x1400198c8]
test rcx, rcx
je 0x1400011bd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400198c8], rsi
mov rcx, qword [0x1400198a0]
test rcx, rcx
je 0x1400011d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400198a0], rsi
mov rcx, qword [0x1400198b8]
test rcx, rcx
je 0x1400011ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400198b8], rsi
mov rcx, qword [0x1400198c0]
test rcx, rcx
je 0x140001208
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400198c0], rsi
mov rcx, qword [0x1400198a8]
test rcx, rcx
je 0x140001221
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [0x1400198a8], rsi
mov rcx, qword [0x140019898]
test rcx, rcx
je 0x14000123a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140019898], rsi
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001d60
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret