Function at 0x14001e140
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov rdx, qword [rcx + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
xor ebx, ebx
test rax, rax
je 0x14001b7fb
mov rdx, qword [rsi + 0x30]
mov qword [rsp + 0x58], rdx
lea rax, str.Dolphin_Starter_in_OnStart
mov qword [rsp + 0x60], rax
lea ecx, [rbx + 2]
xor r8d, r8d
lea edx, [rbx + 4]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], cx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14001b829
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14001b829
cmp qword [rsi + 0x20], rbx
je 0x14001b829
cmp qword [rsi + 0x28], rbx
je 0x14001b829
mov qword [0x140042f50], rax
mov qword [0x140042f58], rcx
jmp 0x14001b83a
lea rdx, str.dol_start_:_Path_initialisation_failure_n
mov ecx, 0x100
call fcn.14001dcd0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebp, eax
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0xa8], rbx
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa8]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x14001b901
mov edx, dword [rsp + 0x90]
test edx, edx
je 0x14001b8f3
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
lea rdi, [rcx*8]
mov rax, qword [rsp + 0xa8]
cmp dword [rdi + rax], ebp
jne 0x14001b8ed
lea rdx, str.logonui.exe
mov rcx, qword [rdi + rax + 8]
call fcn.1400221fc
test eax, eax
jne 0x14001b8e6
mov rax, qword [rsp + 0xa8]
mov r8d, dword [rdi + rax + 4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14001b967
mov edx, dword [rsp + 0x90]
inc ebx
cmp ebx, edx
jb 0x14001b890
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, 0x10
call fcn.14001e414
lea rcx, [0x14001b9d0]
mov qword [rax], rcx
mov qword [rax + 8], rsi
mov qword [rsp + 0xa8], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x14001bce0]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x14001b9aa
mov edx, 0x10
xor ecx, ecx
call fcn.14001e450
lea rcx, [0x140042f48]
call fcn.14001e030
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
jmp 0x14001e140
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
lea rdx, str.dol_start_:_STARTUP_:_Found_LogonUI_in_active_session__launching_dol_logon.exe_n
mov ecx, 0x100
call fcn.14001dcd0
lea r9, str._startup__wts
mov rdx, qword [0x140042f58]
mov rcx, rdi
call fcn.14001bf10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001b901
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x90], eax
lea rdx, [0x14003f028]
lea rcx, [rsp + 0x90]
call fcn.14001fbec
int3
sub rsp, 0x48
lea rcx, [0x140042f48]
call fcn.14001e030
cmp dword [0x140042f48], 5
jl 0x14001e394
mov qword [rsp + 0x50], rbx
lea rcx, str.kernel32.dll
mov qword [rsp + 0x40], rdi
mov dil, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14001e383
lea rdx, str.CreateBoundaryDescriptorW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AddSIDToBoundaryDescriptor
mov rcx, rbx
mov qword [0x140042f70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OpenPrivateNamespaceW
mov rcx, rbx
mov qword [0x140042f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CreatePrivateNamespaceW
mov rcx, rbx
mov qword [0x140042f68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ClosePrivateNamespace
mov rcx, rbx
mov qword [0x140042f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, qword [0x140042f70]
mov qword [0x140042f60], rax
test r8, r8
je 0x14001e383
cmp qword [0x140042f80], 0
je 0x14001e383
cmp qword [0x140042f68], 0
je 0x14001e383
cmp qword [0x140042f90], 0
je 0x14001e383
test rax, rax
je 0x14001e383
mov rcx, qword [0x140042f88]
test rcx, rcx
je 0x14001e259
xor edx, edx
cmp byte [0x140042f78], dl
setne dl
call rax
mov r8, qword [0x140042f70]
xor edx, edx
mov qword [0x140042f88], 0
lea rcx, str.DOL_MARS_BoundaryDescriptor
call r8
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001e383
lea rdx, [rsp + 0x60]
lea rcx, [0x14003ce28]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x14001e383
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [0x140042f80]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x14001e383
xor r9d, r9d
mov dword [rsp + 0x20], 0x18
lea r8, [rsp + 0x28]
mov dword [rsp + 0x30], 0
lea rcx, str.D:_A__GA___WD__A__GA___AC_S:_ML__NW___LW_
mov qword [rsp + 0x28], 0
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov rdx, qword [rsp + 0x58]
lea r8, str.DOL_MARS
lea rcx, [rsp + 0x20]
call qword [0x140042f90]
mov qword [0x140042f88], rax
test rax, rax
jne 0x14001e33b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001e33b
mov rcx, qword [rsp + 0x58]
lea rdx, str.DOL_MARS
xor dil, dil
call qword [0x140042f68]
mov qword [0x140042f88], rax
mov rcx, qword [rsp + 0x28]
mov byte [0x140042f78], dil
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [0x140042f88], 0
jne 0x14001e372
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x40]
cmp eax, 0x34
mov rbx, qword [rsp + 0x50]
sete al
add rsp, 0x48
ret
mov rdi, qword [rsp + 0x40]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov rdi, qword [rsp + 0x40]
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov al, 1
add rsp, 0x48
ret