Function at 0x140091a30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, qword [rsp + 0xb0]
mov rsi, rdx
mov rdi, rcx
lea rdx, str.SITrayPipeManager::Initialize
mov ecx, 8
mov r14, r9
call fcn.140093500
mov edx, 0xffffffff
lea rcx, str..pipe_spacedeskServiceTrayPipe
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x140091ae2
nop word [rax + rax]
mov r8d, ebx
lea rdx, str.WaitNamedPipe__d
mov ecx, 0x40
call fcn.140093500
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x5a
ja 0x140091b3c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140091b3c
mov edx, 0xffffffff
lea rcx, str..pipe_spacedeskServiceTrayPipe
inc ebx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140091a90
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, str..pipe_spacedeskServiceTrayPipe
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x140091b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateFile_failed___d:_n
mov ecx, 1
mov r8d, eax
call fcn.140093500
jmp 0x140091cd2
lea rdx, str.SITrayPipeManager::Initialize_failed__timeout_n
jmp 0x140091cc8
xor edx, edx
mov dword [rsp + 0x50], 0
mov rcx, rdi
lea r8d, [rdx + 4]
call fcn.140091cf0
test al, al
jne 0x140091b6e
lea rdx, str.InternalTransmitHeader_failed._ST_PIPE_MSG_ID_CONNECT_n
jmp 0x140091cc8
mov r9b, 1
lea rdx, [rsp + 0x50]
mov r8d, 4
call fcn.140092000
mov rcx, qword [rdi]
lea r9, [rsp + 0x54]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140091bcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SITrayPipeManager::InternalTransmitData_WriteFile_failed__d
mov ecx, 1
mov r8d, eax
call fcn.140093500
lea rdx, str.InternalTransmitData_failed._ST_PIPE_MSG_ID_CONNECT_n
jmp 0x140091cc8
mov r9d, dword [rsp + 0x54]
cmp r9d, 4
je 0x140091bfa
mov r8d, 4
lea rdx, str.SITrayPipeManager::InternalTransmitData_WriteFile_not_all_bytes_written_CountByte__d_CountBytesWritten__d
lea ecx, [r8 - 3]
call fcn.140093500
lea rdx, str.InternalTransmitData_failed._ST_PIPE_MSG_ID_CONNECT_n
jmp 0x140091cc8
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 3]
call fcn.140091cf0
test al, al
jne 0x140091c19
lea rdx, str.InternalTransmitHeader_failed._ST_PIPE_MSG_ID_MENU_ACTIVATE_MENU1_HOOK_STANDARD_n
jmp 0x140091cc8
lea rdx, str.ST_PIPE_MSG_ID_MENU_CHANGE_EVENT_GET_n
mov ecx, 0x40
call fcn.140093500
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 4]
call fcn.140091cf0
test al, al
je 0x140091cc1
mov r9d, 8
lea r8, [rsp + 0x40]
mov rcx, rdi
lea edx, [r9 - 4]
call fcn.140091ef0
test al, al
jne 0x140091c65
lea rdx, str.SITrayPipeManager::Initialize_InternalReceiveResponse__1__failed._n
jmp 0x140091cc8
lea rdx, str.ST_PIPE_MSG_ID_DISPLAY_CHANGE_EVENT_GET_n
mov ecx, 0x40
call fcn.140093500
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 9]
call fcn.140091cf0
test al, al
je 0x140091cc1
mov r9d, 8
lea r8, [rsp + 0x48]
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.140091ef0
test al, al
jne 0x140091cad
lea rdx, str.SITrayPipeManager::Initialize_InternalReceiveResponse__2__failed._n
jmp 0x140091cc8
mov rax, qword [rsp + 0x40]
mov qword [r14], rax
mov rax, qword [rsp + 0x48]
mov qword [r15], rax
mov al, 1
jmp 0x140091cd4
lea rdx, str.InternalTransmitHeader_failed._ST_PIPE_MSG_ID_EVENT_DISPLAYCHANGE_GET_n
mov ecx, 1
call fcn.140093500
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret